Transformers: The Game (PS2) - TRANS.DAT

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Transformers: The Game (PS2) - TRANS.DAT

Post by AlphaTwentyThree »

https://1fichier.com/?fvd22msm6t

This is the first and last MB of the main game archive. I don't understand the folder structure. I've seen this in some cases and each time I try to write a script I give up.
Here's some basic info:

0x424e2a04 starts with number of files and then

get OFFSET long
math OFFSET *= 0x800 #?
get SIZE long
get ZSIZE long
get ZERO long

After that (at 0x424ff268) there are two entries that I have trouble corresponding because I don't know what they represent. Something like entries or entries without folders?
The next structure is

get NAMEPOS long
get COUNTER byte
get FF byte
get FILENUM short
math NAMEPOS += 0x4250dac0

whereas NAMEPOS is either a file name or folder name. So this is where the confusion starts.
1) the FILENUM values go higher than the number of files
2) I don't know when a folder structure is reset or another subfolder added

If there is anybody willing to help me I'd be really grateful! I'm satisfied with only getting the correct file names without structure.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Transformers: The Game (PS2) - TRANS.DAT

Post by Acewell »

aluigi's ttgames script works with TRANS.dat from PS2 and PS3 platforms from my test at least. :)
http://aluigi.altervista.org/bms/ttgames.bms

i have not tested on the other platforms: Xbox 360, Wii, PC