Tom & Jerry House Trap RESOURCE.RES

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tom & Jerry House Trap RESOURCE.RES

Post by aluigi »

lemurboy12
Posts: 265
Joined: Fri Oct 17, 2014 2:57 am

Re: Tom & Jerry House Trap RESOURCE.RES

Post by lemurboy12 »

Image
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Tom & Jerry House Trap RESOURCE.RES

Post by Mygoshi »

Thanks for the script aluigi it also helped me
emanuelect
Posts: 35
Joined: Sat May 08, 2021 2:07 am

Re: Tom & Jerry House Trap RESOURCE.RES

Post by emanuelect »

I tried the script with the usa and pal version of the game, but it doesn't work.
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tom & Jerry House Trap RESOURCE.RES

Post by aluigi »

Please upload/link that resource.res for analysis.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tom & Jerry House Trap RESOURCE.RES

Post by aluigi »

First use this script for generating a new archive without the Playstation ISO layer:
http://aluigi.org/bms/ps1_disk_chunks.bms

Then use this script for extracting the files:

Code: Select all

get MAX_SIZE asize
for
    get OFFSET long
    if OFFSET == 0
        break
    endif
    get SIZE long
    math OFFSET * 0x800

    xmath TMP "OFFSET + SIZE"
    if TMP u> MAX_SIZE
        xmath SIZE "MAX_SIZE - OFFSET"
    endif

    log "" OFFSET SIZE
next

One of the files (0000003a.dat) is invalid because the reported size is bigger than the archive, it may be related to the size referred to the disk (the original file you provided) instead of the generated archive.
Anyway probably other files may be affected too, I don't know. The "good" thing is that it affects the size on "more", so you may find additional data after the original file.
emanuelect
Posts: 35
Joined: Sat May 08, 2021 2:07 am

Re: Tom & Jerry House Trap RESOURCE.RES

Post by emanuelect »

Thanks, it worked, the problem is that inside I found .dat. .txt and .sfx files, unfortunately the script does not work with these.
emanuelect
Posts: 35
Joined: Sat May 08, 2021 2:07 am

Re: Tom & Jerry House Trap RESOURCE.RES

Post by emanuelect »

I believe the .dat is used to open the .txt, which is actually not a simple text file.