Jump to content

Recommended Posts

  • Engineers
Posted (edited)

I've logged referencePtr and length (==2, mostly). Decompressing missionj.bin stops very early but for k2tx_01 it doesn't seem to reach the file end, too (but seems to contain a texture):

missionj.bin, ... 26462 2, 26464 2, 26466 2, 26468 2, 26470 2, 26472 2, 26474 2, 26476 2, 26478 2, 26480 2, 26482 2, 26484 2, 26486 2, 26488 9, 26490 2, 26492 2, 26494 2, 26496 2, 26498 2, 26500 2, 26502 2, 26504 2, 26506 13, 26508 17, 26510 3, dist 0
Successfully decompressed to 'mj-decpr.bin'.
Compressed size: 666656 bytes
Decompressed size: 66688 bytes

--------------

K2tx_01, ...130712 2, 130714 2, 130716 3, 130718 3, 130720 2, 130722 2, 130724 2, 130726 2, 130728 4, 130730 4, 130732 8, 130734 16, 130736 17, 130738 17, 130740 17, 130742 17, 130744 17, 130746 17, 130748 17, 130750 17, 130752 9, 1307542, 130756 3, 130758 2, 130760 5, dist 0
Successfully decompressed to 'k2tx_01 decpr.bin'.
Compressed size: 209189 bytes
Decompressed size: 288000 bytes

K2tx_01, decompressed:

K2tx_01.png

Edited by shak-otay
  • Members
Posted
On 9/28/2025 at 7:36 PM, shak-otay said:

I've logged referencePtr and length (==2, mostly). Decompressing missionj.bin stops very early but for k2tx_01 it doesn't seem to reach the file end, too (but seems to contain a texture):

missionj.bin, ... 26462 2, 26464 2, 26466 2, 26468 2, 26470 2, 26472 2, 26474 2, 26476 2, 26478 2, 26480 2, 26482 2, 26484 2, 26486 2, 26488 9, 26490 2, 26492 2, 26494 2, 26496 2, 26498 2, 26500 2, 26502 2, 26504 2, 26506 13, 26508 17, 26510 3, dist 0
Successfully decompressed to 'mj-decpr.bin'.
Compressed size: 666656 bytes
Decompressed size: 66688 bytes

--------------

K2tx_01, ...130712 2, 130714 2, 130716 3, 130718 3, 130720 2, 130722 2, 130724 2, 130726 2, 130728 4, 130730 4, 130732 8, 130734 16, 130736 17, 130738 17, 130740 17, 130742 17, 130744 17, 130746 17, 130748 17, 130750 17, 130752 9, 1307542, 130756 3, 130758 2, 130760 5, dist 0
Successfully decompressed to 'k2tx_01 decpr.bin'.
Compressed size: 209189 bytes
Decompressed size: 288000 bytes

K2tx_01, decompressed:

K2tx_01.png

It seems this format is indeed troublesome.
 

  • 1 month later...
  • Engineers
Posted
On 9/28/2025 at 7:26 AM, shak-otay said:

Thank you!

I got:

tenchu3 decompress titlej.bin xx.bin
Decompressing 'titlej.bin'...
Successfully decompressed to 'xx.bin'.
Compressed size: 1148592 bytes
Decompressed size: 287872 bytes

tenchu3 decompress texture.bin xx2.bin
Decompressing 'texture.bin'...
Successfully decompressed to 'xx2.bin'.
Compressed size: 247456 bytes
Decompressed size: 65632 bytes
 

so for these two samples the decompressed sizes are smaller than the compressed ones (need to check the code in detail).

edit: the code is ok. I compressed the decompressed K2tx_01.bin (decompressed files are here)

and decompressed it. Worked like a charm. Compressed size: 209189 kB

Decompressed size: 288000 kB

 

Hello, I don´t get it.

the original files of the game the decompressor do not work as should.

If you take the image decompressed already and compress e then decompress, the code will work, because the code is ok for it, but not to the original compressed file.

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