Jump to content

Recommended Posts

  • Moderators
Posted

Hi. It seems to be a container for images from Switch games. I've put together some info on the wiki
https://rewiki.miraheze.org/wiki/Hayarigami_NLTX

 

You can use this tool to decompress https://github.com/iltrof/ykcmp

like this:
 

ykcmp.exe -a 0x80 file.nltx file.nltx_decompressed

and then you can inspect image data in ImageHeat https://github.com/bartlomiejduda/ImageHeat

 

Sample I was investigating "ci1120.nltx" was a 1920x1080 BC7 image with (custom?) Nintendo Switch swizzling applied.
Haven't figured out swizzle method yet... But closest one is (4,8)

obraz.thumb.png.c91a7168cfd9bffb4a1c71304f15e256.png

  • ikskoks changed the title to Hayarigami 1-2-3 (Nintendo Switch) NLTX
Posted
26 minutes ago, ikskoks said:

Hi. It seems to be a container for images from Switch games. I've put together some info on the wiki
https://rewiki.miraheze.org/wiki/Hayarigami_NLTX

 

You can use this tool to decompress https://github.com/iltrof/ykcmp

like this:
 

ykcmp.exe -a 0x80 file.nltx file.nltx_decompressed

and then you can inspect image data in ImageHeat https://github.com/bartlomiejduda/ImageHeat

 

Sample I was investigating "ci1120.nltx" was a 1920x1080 BC7 image with (custom?) Nintendo Switch swizzling applied.
Haven't figured out swizzle method yet... But closest one is (4,8)

obraz.thumb.png.c91a7168cfd9bffb4a1c71304f15e256.png

Ah thank you for the answer! Hopefully the way for it to be deswizzled can be found out!

Posted (edited)

Though this is Definitively very helpful thx (image from PSP Version) def gonna try messing with resolutions to see if it helps?image.png.de4d083a81235a2946159a0526b17b80.pngci0191(Image0).png.a997a6fbb48d1b4203e8970d7ad31d04.png

Edited by Sirduckdude
  • Like 1
Posted

I did this one with ci0010.nltx

It seems like you have to process it in parts - if you do it as 1 image, the unswizzling doesn't work, but if you unswizzle it separate blocks of height=256 it seems to work, at least for this one, which is 2 separate parts of height 256.

 

test2.thumb.png.d5a06ee5c8a9308bb6842eb538d30602.png

 

  • Like 1
Posted
7 minutes ago, DKDave said:

I did this one with ci0010.nltx

It seems like you have to process it in parts - if you do it as 1 image, the unswizzling doesn't work, but if you unswizzle it separate blocks of height=256 it seems to work, at least for this one, which is 2 separate parts of height 256.

 

test2.thumb.png.d5a06ee5c8a9308bb6842eb538d30602.png

 

Oh Thank you for the response how do you do that?

Posted
6 minutes ago, Sirduckdude said:

Oh Thank you for the response how do you do that?

I just did it manually in Noesis, it *might* be possible to script it if all of the images follow the same pattern.

 

Posted
1 minute ago, DKDave said:

I just did it manually in Noesis, it *might* be possible to script it if all of the images follow the same pattern.

 

ah how did you do it in noesis?

Posted
13 hours ago, Sirduckdude said:

ah how did you do it in noesis?

I just used these 2 commands (twice), and joined the 2 decoded parts together to make the complete image.  I haven't tested on other files, so I don't know if they all follow the same pattern.

    image = rapi.callExtensionMethod("untile_blocklineargob", raw_image, widthinblocks, heightinblocks, 16, 8 )
    image = rapi.imageDecodeDXT(image, width, height, noesis.FOURCC_BC7)

 

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