Detective Hayseed - Hollywood - res file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ghylard
Posts: 77
Joined: Wed Oct 08, 2014 1:03 pm

Detective Hayseed - Hollywood - res file

Post by ghylard »

Could anybody make a script to extract the files of resources.res?
I did not find tools capable of making it.
Attention, the file has download fact 1.4 Go

resource.res

Edit:
Following the remark of Aluigi, I added in file attachments a file 7z including the 2 files obtained with file cutter
Last edited by ghylard on Tue Sep 05, 2017 11:13 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Detective Hayseed - Hollywood - res file

Post by aluigi »

Use the filecutter script to generate 2 files to upload:
http://aluigi.org/bms/filecutter.bms
Just in case people have no time and desire to download the whole file.
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

Luigi, Can you help us?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Detective Hayseed - Hollywood - res file

Post by aluigi »

Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

Thanks!

Now I have a codec text db file, in zlib_dynamic or unzip_dynamic

I need extract/import texts.

File: https://www.dropbox.com/s/752gjfmge2dl4 ... B.ENG?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Detective Hayseed - Hollywood - res file

Post by aluigi »

Really weird.
It's compressed with zlib, yes, but after the decompressed data there is additional data like an ogg file.
It's weird because:
- there is no compressed/decompressed size field
- the size of the file is the same of the decompressed data
basically it looks more like a mistake of the developers in correctly using the compression.

The text at the beginning is "PSE text DB file", I don't see anything on search engines about it.
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

In the file are all the game strings. I need extract them and then imports.

The strings are with 00. “D.o. .y.o.u. .w.a.n.t. .s.t.a.r.t. .a. .n.e.w. .g.a.m.e.?.”
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Detective Hayseed - Hollywood - res file

Post by aluigi »

Use this script on the decompressed file:
http://aluigi.org/bms/pse_text_db_file.bms

The script works in reimport mode too, including reimport2 without size limitations.

In theory if you recompress the file it should work with the game... in theory :)

So:
- decompress the file
- run the script on the decompressed file
- edit your strings
- run the script in reimport2 mode on the decompressed file
- compress the file

If you don't know how to recompress the file:

Code: Select all

comtype zlib_compress
get SIZE asize
clog "new_file" 0 SIZE SIZE
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

THANKS! But It doesn't work...

I did all the steps.

The game doesn't like the new file.
The new file is smaller than original. https://www.dropbox.com/s/ly999t8qrsu824g/new_file?dl=0

Image: https://www.dropbox.com/s/p5mmhupao727p ... d.jpg?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Detective Hayseed - Hollywood - res file

Post by aluigi »

Unfortunately that's the max I can do at the moment.
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

With that I can do an "hexadecimal" translation to spanish. :)

Thank you very much!
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

Are there other way to compress the file?
Pakolmo
Posts: 52
Joined: Thu Jun 09, 2016 1:15 am

Re: Detective Hayseed - Hollywood - res file

Post by Pakolmo »

aluigi wrote:http://aluigi.org/bms/detective_hayseed.bms


I think it is not extracting well.

TEXTDB.ENG has a lot of OGG files inside.

Aluigi, can you remake the script, please?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Detective Hayseed - Hollywood - res file

Post by aluigi »

As already said, the problem is that there is no reference to these ogg files.
I didn't see any table at the end of the archive.
If there is an index, it's somewhere else.