Granstream saga psx .Bin files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
josekenshin
Posts: 2
Joined: Mon Aug 13, 2018 5:28 pm

Granstream saga psx .Bin files

Post by josekenshin »

Hi,

I'm looking for the game script to do the Spanish translation. I found the secondary text and the graphics but the main script is in the folders: 1S, 2S, 3S, 4S and 5S.

The files seem to be compressed. I can't find text with relative searches.

Image

I'm sure that it is possible to do the translation because there is a Russian translation but I can't find the romhacker.

Any idea of ​​file compression?

Files:
http://www.mediafire.com/file/ofm5w0s0p ... n.rar/file


Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Granstream saga psx .Bin files

Post by aluigi »

Since there is no decompressed size I guess it's a chunk based format where each chunk has probably a size of 0x10000 bytes (usual size).
I didn't check the compression with the comtype scanner (sorry) but I made a script on the fly for covering the format, when the algorithm will be found it's enough to set it (so do not use the script):

Code: Select all

comtype ???
get CHUNKS long
for i = 0 < CHUNKS
    get OFFSET long
    putarray 0 i OFFSET
next i
    get OFFSET asize
    putarray 0 i OFFSET

get NAME basename
append
for i = 0 < CHUNKS
    getarray OFFSET 0 i
    math i + 1
    getarray SIZE   0 i
    math SIZE - OFFSET
    clog NAME OFFSET SIZE 0x10000
next
append
Instead the sx*.bin files are not compressed
josekenshin
Posts: 2
Joined: Mon Aug 13, 2018 5:28 pm

Re: Granstream saga psx .Bin files

Post by josekenshin »

Hi!

I tried to check the compression with the comtype scanner and I found some text in the 499.dmp. But the text does't look correct on some lines.

I'm not sure I checked it correctly. I'll wait for someone to help me and find the algorithm ;)

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Granstream saga psx .Bin files

Post by aluigi »

This format is a good example of candidate for the comptype scanner since you have the offset, compressed size and decompressed size (ok this 3rd argument is not sure) of the compressed data, but have you used it correctly on the right part of data? :)

I did a quick test scanning only some algorithms and there were no good results.
ViT
Posts: 3
Joined: Thu Mar 26, 2020 8:37 am

Re: Granstream saga psx .Bin files

Post by ViT »

aluigi, after 4 years, an unpacking algorithm for these files appeared in your tool, this is "TDCB_lzss" 8-) . But, as I understand it, there is no compression algorithm?
I was asked to translate this game, I found the font, unpacked the files with your tool, it remains only to pack them back. Can you share information about the unpacking algorithm? I'll try to do the compression tool myself.

Just in case