Sirduckdude Posted January 4 Posted January 4 Help. Okay I finally got into Hayarigami 1-2-3 Switch's Dat. Files but it isn't the same as the PSP versions since it uses a NXTL file I've tried others but it isn't seemingly working please help me I would be extremely grateful here are examples https://drive.google.com/file/d/18GMdn7Xc0Dv0BgyQFG_0kaDNuvcxG9q5/view?usp=sharing
Moderators ikskoks Posted January 5 Moderators Posted January 5 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)
Sirduckdude Posted January 5 Author Posted January 5 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) Ah thank you for the answer! Hopefully the way for it to be deswizzled can be found out!
Sirduckdude Posted January 5 Author Posted January 5 (edited) Though this is Definitively very helpful thx (image from PSP Version) def gonna try messing with resolutions to see if it helps? Edited January 5 by Sirduckdude 1
DKDave Posted January 5 Posted January 5 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. 1
Sirduckdude Posted January 5 Author Posted January 5 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. Oh Thank you for the response how do you do that?
DKDave Posted January 5 Posted January 5 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.
Sirduckdude Posted January 5 Author Posted January 5 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?
DKDave Posted January 5 Posted January 5 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now