Grand Theft Auto Chinatown Wars - DS files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Grand Theft Auto Chinatown Wars - DS files

Post by AnonBaiter »

The samples are in the attachment.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Grand Theft Auto Chinatown Wars - DS files

Post by aluigi »

game.pak has no sense, probably no information.
rom.toc has no sense too:

Code: Select all

get DUMMYSZ long
#math NUM = DUMMYSZ
#math NUM / 3
#for i = 0 < NUM
#    get DUMMY threebyte
#next i
math DUMMYSZ + 4
goto DUMMYSZ
for i = 0
    get DUMMY1 long
    get DUMMY2 long
    get DUMMY3 long
next i
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Grand Theft Auto Chinatown Wars - DS files

Post by AnonBaiter »

I got an error:

Code: Select all

Error: incomplete input file 0: E:\NDS\3517 - Grand Theft Auto - Chinatown Wars multi5 (US)\game.pak
       Can't read 1 bytes from offset 024ddcd2.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0    99%   38639271   38657234

Last script line before the error or that produced the error:
  12  get DUMMY3 long

It's also the same for the ROM.WAD file.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Grand Theft Auto Chinatown Wars - DS files

Post by Ekey »

This script does not unpacks anything.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Grand Theft Auto Chinatown Wars - DS files

Post by aluigi »

Yeah AnonBaiter it was just for debugging with -V to show you the content of the fields.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Grand Theft Auto Chinatown Wars - DS files

Post by AnonBaiter »

So that script was just for debugging purposes? Okay. I'll post the results when I'm done.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Grand Theft Auto Chinatown Wars - DS files

Post by aluigi »

Oh no need of the results, it was just for your information.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Grand Theft Auto Chinatown Wars - DS files

Post by AnonBaiter »

Huh. I wonder if this script is even ready for extracting.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Grand Theft Auto Chinatown Wars - DS files

Post by aluigi »

No offsets/sizes = no extraction. Easy.
I give you an example of what I mean, the byte used in the space between the archived files is 0xad so in rom.wad you can see that a file starts at offset 0x1ff800 but this number is not available in rom.toc and even its div 0x800 value (0x3ff) isn't available.
So the information are somewhere else.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Grand Theft Auto Chinatown Wars - DS files

Post by AnonBaiter »

Ahh, I get it now.
Here's the utility.bin file. It might have some information.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Grand Theft Auto Chinatown Wars - DS files

Post by aluigi »

no
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Grand Theft Auto Chinatown Wars - DS files

Post by AnonBaiter »

You know what, I give up. Rockstar always had this habit of making archive files in a strange way so... yeah?