Jump to content

NKT File format for NANA (Unswizzling)


Go to solution Solved by DKDave,

Recommended Posts

Posted

i need help with a custom texture format to unswizzle for the ps2 game NANA. If you could help me achieve this in any way it would be a great help as i could get to work on fantranslating the game. I am putting a 65$ USD LTC/BTC bounty on anyone who can successfully unswizzle this format, and it will be paid to the first person who can provide the function or proof that they can unswizzle the current texture format.  Please contact me on my social platforms for this : @mxlg on discord and @mxlgborn on telegram.

image.png.3feba796c7f84b9a1cf9cf99840fffb6.png

This image ^ is what i got in tile molester, from using 8x8 block size 32bpp RGBA, on 2 dimensions with the custom block size. i still see the swizzling, and also i have this image with 24x24: image.png.7364bd56168ac6a03523e8823c433818.png

also here is the sample files you can test in tilemolester or any file explorer: https://www.mediafire.com/folder/gx88877fgxwye/NKT

The issues are the unswizzle method. The pallete starts at 0x1A0 and the texture at 0x5A0. The width and the height it seems is 256x512, the color depth is 8bpp.  image.thumb.png.2e2ecee6926ef70b7d0ca5bf31b8a73e.png

image.png.023ce009908a1d01828b59aa03c08f9d.png

 

  • Solution
Posted
22 minutes ago, pringll0000 said:

i need help with a custom texture format to unswizzle for the ps2 game NANA. If you could help me achieve this in any way it would be a great help as i could get to work on fantranslating the game. I am putting a 65$ USD LTC/BTC bounty on anyone who can successfully unswizzle this format, and it will be paid to the first person who can provide the function or proof that they can unswizzle the current texture format.  Please contact me on my social platforms for this : @mxlg on discord and @mxlgborn on telegram.

image.png.3feba796c7f84b9a1cf9cf99840fffb6.png

This image ^ is what i got in tile molester, from using 8x8 block size 32bpp RGBA, on 2 dimensions with the custom block size. i still see the swizzling, and also i have this image with 24x24: image.png.7364bd56168ac6a03523e8823c433818.png

also here is the sample files you can test in tilemolester or any file explorer: https://www.mediafire.com/folder/gx88877fgxwye/NKT

The issues are the unswizzle method. The pallete starts at 0x1A0 and the texture at 0x5A0. The width and the height it seems is 256x512, the color depth is 8bpp.  image.thumb.png.2e2ecee6926ef70b7d0ca5bf31b8a73e.png

image.png.023ce009908a1d01828b59aa03c08f9d.png

 

I looked at file HAT_1_10001.  That one has 16 tiles.  The palette is at 0x1a0 in RGBA32 format, and the 8-bit image data starts at 0x5a0 (PS2 swizzled).  Each tile is 128 x 64, and the image is made up of 2 x 8 tiles as follows - an example of the individual tiles, only the first 8 in order:

image.png.13b8d023ad388a81707753fd32180834.png

 

 

 

 

 

  • Like 1
Posted

I just did it manually using ImageHeat.  There's some header data, presumably info for each tile, but it's not 100% clear what all the values mean.  So it's not really a proper solution yet for all files that might have different size headers.

 

 

  • Like 1
Posted
6 minutes ago, DKDave said:

I just did it manually using ImageHeat.  There's some header data, presumably info for each tile, but it's not 100% clear what all the values mean.  So it's not really a proper solution yet for all files that might have different size headers.

 

 

Im still not sure what you did in imageheat? all the headers are the same for most of the textures since they are just variations of character movement, although every image should be in the same dimensions.  Can you share a screenshot of the HAT file in imageheat? or what you did to manually do this sorry im new to texture manipulation 🙂

Posted

This is a screenshot with the settings I used.  You can see each tile is 128 x 64 - I've just put the height as 512 so you can see multiple tiles.  They just need to be arranged correctly.  I've looked at the header, but can't make much sense of it at the moment.  If all the info was known, then a script should be easy enough to put together.

image.thumb.png.f8d0a848a5c99b3a217b6e474302ceef.png

  • Like 1
Posted
8 minutes ago, DKDave said:

This is a screenshot with the settings I used.  You can see each tile is 128 x 64 - I've just put the height as 512 so you can see multiple tiles.  They just need to be arranged correctly.  I've looked at the header, but can't make much sense of it at the moment.  If all the info was known, then a script should be easy enough to put together.

image.thumb.png.f8d0a848a5c99b3a217b6e474302ceef.png

image.thumb.png.161872084cd30bc6971b87fd8e74c65e.png

image.thumb.png.8ab42bb4990c707d81ccb931d9cd72ee.png

 

image.thumb.png.c48ead677d753c0906c28f6ad40e8c6e.png

Im pretty sure the header is to indicate a character model, ill delve into some more files to see but i know HAT = Nana Komatsu, NAN= Nana Osaki, SIN = Shinichi Okazaki, and NOB = Nobuo Terashima. I will supply more model files in a second. Also can you tell me how you exported all those images as BMP files to complete the full image? thank you!  Im pretty sure you can generate a script based off the header in a second i just need to test more files.

Posted
49 minutes ago, DKDave said:

This is a screenshot with the settings I used.  You can see each tile is 128 x 64 - I've just put the height as 512 so you can see multiple tiles.  They just need to be arranged correctly.  I've looked at the header, but can't make much sense of it at the moment.  If all the info was known, then a script should be easy enough to put together.

image.thumb.png.f8d0a848a5c99b3a217b6e474302ceef.png

image.thumb.png.15472b4f766b15f199d84e746fa8eea0.png

 

all the files including cutscenes but marked with the character header are all the same, so i assume a script can be made to automatically translate the images with the same offsets and headers, i will link all the files with textures below soon for testing.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...