Tomb Raider Legend - sample 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

Tomb Raider Legend - sample files

Post by AnonBaiter »

Here are the samples from the PS2 and PSP version.

This thread will probably get edited when I find the other versions.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

http://aluigi.org/bms/tomb_raider_legend.bms

If you are going to ask what are these "!WAR" files, I don't know. Probably containers of some data or textures or I don't know
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

They seem to be containers to me.
Besides, I've found these file containers around somewhere:

Code: Select all

.mus
.sam
.mul
.drm
.bak
Maybe these will be of any use in organizing the extracted directories...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

I confirm that !WAR is just a graphic file format of this game with the raw graphics data starting at offset 0x80.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

Anyhow...
Here are the samples from the XBOX version of the game.

If you wish, I can send you more files to analyze. And considering that one of these files include a multiplexed audio file...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

merge them in one big file and give it to the script.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

...and done.

EDIT: Well...

Code: Select all

  0000000096d2c000 8257172    000000000000000b.dat

Error: incomplete input file 0: E:\TRL\XBOX\layer1.dat
       Can't read 64 bytes from offset 0000000096d2c000.
       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     0%   1353748    2513629184

Last script line before the error or that produced the error:
  17  log "" OFFSET SIZE
How about you make the script load the following extensions(000, 001 and so forth) or heck, even make it compartible with the deus_ex_human_revolution.bms script or...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

The format of deus_ex_human_revolution.bms had fields specifying the number of archives while this is not the case here.
The reported maximum size of the data is 0x9857a432 bytes (which the sum of all the archives is 0x95d2f000) with the first file at offset 0x30800 which is correct.
The script is correct and it does exactly what's reported in the TOC.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

Which means that the error I'm getting is... okay?
Or maybe I'm wrong?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

Yes, you are right. The information say that there are files located outside the available data.
What I can do is putting an "if" statement in the script that automatically skips these wrong files if they are not available in the archive.
Does that sound good?
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

Give it a shot, then.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

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

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

Okay, it works now.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

I also tested the script with the PC version, and although it did manage to extract all the files, there are times in which the file starts right in the middle of another file. See here:

Code: Select all

000017B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000017C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000017D0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000017E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000017F0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00001800  E6 7D 00 00 FF FF FF FF 00 3C 00 00 01 00 00 00  æ}..ÿÿÿÿ.<......
00001810  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00001820  00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00  ................
00001830  00 00 00 00 00 00 60 41 00 00 80 3F 00 00 00 00  ......`A..€?....
00001840  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00001850  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00001860  00 00 00 00 00 00 00 00 00 00 80 3F 00 00 00 00  ..........€?....
Anyway, here's the sample from the concatenated bigfile.dat file.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Tomb Raider Legend - sample files

Post by Ekey »

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

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

Ooh, thanks.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

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

Re: Tomb Raider Legend - sample files

Post by aluigi »

Just different endianess, script 0.1.2
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Tomb Raider Legend - sample files

Post by AnonBaiter »

...and done. Thanks mate.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tomb Raider Legend - sample files

Post by aluigi »

Are you 100% sure that your samples from the xbox version are correct?
Because their size is without doubts wrong:
*edit* fixed in the next post.