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

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...