Angel333119 Posted January 12 Posted January 12 Hello everyone, I am looking for a way to figure out the compression and decompress .BIN files. Someone told me it’s LZSS. Can anyone help me, please? TEXTURE.zip
hohenheim Posted June 21 Posted June 21 I don't know if it will help, but I tried to analyze some game files (specifically OPTIONS.BIN), and in them I found traces of zlib as well as gzip. 52 Offset 1F 8B (.gz) - GZIP 32 Offset 78 01 (zlib No compression(no preset dictionary) 12 Offset 78 5E (zlib Best speed (no preset dictionary) 1 Offset 78 9C (zlib Default Compression (no preset dictionary) 6 Offset 78 DA (zlib Best Compression (no preset dictionary) 41 Offset 78 20 (zlib No Compression (with preset dictionary) 9 Offset 78 7D (zlib Best speed (with preset dictionary) 5 Offset 78 BB (zlib Default Compression (with preset dictionary) 4 Offset 78 F9 (zlib Best Compression (with preset dictionary) which doesn't say anything exactly but you mentioned the use of ZLSS compression, I don't rule out that since i could be wrong because I didn't research much about compression types. I focused on understanding this game's. On the other hand, I didn't have many results with the bms script (which could help a lot), it has some scripts that I tried to use without success. Maybe the files are compressed one way for the images, and another way for the compiled images, that would explain why there is no header. Something like LZMA that came out years before the game, and is also similar to the LZ77 algorithm according to reliable sources (wikipedia lol), but I hope it is possible to at least outline some alternatives.
hohenheim Posted Monday at 12:57 AM Posted Monday at 12:57 AM (edited) On 1/11/2025 at 11:58 PM, Angel333119 said: Hello everyone, I am looking for a way to figure out the compression and decompress .BIN files. Someone told me it’s LZSS. Can anyone help me, please? TEXTURE.zip 171.55 kB · 14 downloads I've been investigating the textures of another Tenchu game a bit, but I haven't forgotten about this one. The files are very compressed, but using the cheat engine, I was able to locate the uncompressed textures in the PCSX2 memory. I don't know if it will help, but they seem to have the same structure as Tenchu Fatal Shadows. Maybe if I investigate further, I can figure out how they are decompressed in memory. I don't know if I will be able to, to be quite honest, but I extracted one from the TITLEE.BIN file. It seems to be a Japanese control guide, similar to the one in the demo. Edited Monday at 12:57 AM by hohenheim
hohenheim Posted Monday at 02:07 AM Posted Monday at 02:07 AM By the way, here's the dump I made. T3DUMP.zip
morrigan Posted Monday at 05:50 PM Posted Monday at 05:50 PM 16 hours ago, hohenheim said: I've been investigating the textures of another Tenchu game a bit, but I haven't forgotten about this one. The files are very compressed, but using the cheat engine, I was able to locate the uncompressed textures in the PCSX2 memory. I don't know if it will help, but they seem to have the same structure as Tenchu Fatal Shadows. Maybe if I investigate further, I can figure out how they are decompressed in memory. I don't know if I will be able to, to be quite honest, but I extracted one from the TITLEE.BIN file. It seems to be a Japanese control guide, similar to the one in the demo. Actually, you can see a large number of textures with text on them by using the texture dump feature in PCSX2. However, the game's original data is, in fact, compressed, and this is also true for the PSP and Xbox versions. Moreover, this game's compression format is quite difficult, and in all these years, no one has managed to successfully reverse-engineer it.
Engineers Rabatini Posted Monday at 06:07 PM Engineers Posted Monday at 06:07 PM The ideal is to dump the uncompressed raw image file through the PCSX2 memory, and not the whole dump, so it's easier to compare the compressed file with the uncompressed one.
hohenheim Posted Monday at 07:44 PM Posted Monday at 07:44 PM 1 hour ago, morrigan said: Actually, you can see a large number of textures with text on them by using the texture dump feature in PCSX2. However, the game's original data is, in fact, compressed, and this is also true for the PSP and Xbox versions. Moreover, this game's compression format is quite difficult, and in all these years, no one has managed to successfully reverse-engineer it. Compression is indeed quite difficult to understand, but it's been discovered how to decompress the textures of Fatal Shadows and the PSP versions (Tenchu San and Kurenai). After some research, I discovered that Russians have already managed to translate the game and its textures, modifying the files themselves, but accessing these sites is a pain; it seems they don't accept access from other countries.
hohenheim Posted Monday at 07:49 PM Posted Monday at 07:49 PM 1 hour ago, Rabatini said: The ideal is to dump the uncompressed raw image file through the PCSX2 memory, and not the whole dump, so it's easier to compare the compressed file with the uncompressed one. Indeed, here are some that I managed to extract. Uncompressed.zip
Engineers Rabatini Posted Monday at 08:06 PM Engineers Posted Monday at 08:06 PM 16 minutes ago, hohenheim said: Indeed, here are some that I managed to extract. Uncompressed.zip 275.7 kB · 0 downloads Both files are decompressed?
hohenheim Posted Monday at 08:22 PM Posted Monday at 08:22 PM (edited) 17 minutes ago, Rabatini said: Both files are decompressed? Yes, these are the format the game use, it is essentially a tim2 texture, doesn't seems to be much different than one of them. I was able to read the texture using the Console Texture Explorer Edited Monday at 08:23 PM by hohenheim
Engineers Rabatini Posted Monday at 10:50 PM Engineers Posted Monday at 10:50 PM 2 hours ago, hohenheim said: Yes, these are the format the game use, it is essentially a tim2 texture, doesn't seems to be much different than one of them. I was able to read the texture using the Console Texture Explorer My notebook is broken, so I'm using a corporate notebook. I can't use a hexadecimal viewer to compare the files. It would be helpful if the compressed and decompressed files were in the same file.
hohenheim Posted yesterday at 03:01 AM Posted yesterday at 03:01 AM 4 hours ago, Rabatini said: My notebook is broken, so I'm using a corporate notebook. I can't use a hexadecimal viewer to compare the files. It would be helpful if the compressed and decompressed files were in the same file. Sure. Comp-Uncomp.zip
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