Double Fine Productions games

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

Double Fine Productions games

Post by aluigi »

In my collection I had two scripts covering the games Stacking and Brutal Legend.
Both these games are developed by Double Fine Productions and would be nice to have one script to open most of these games.
So I updated the following script to make it at least compatible with the game Massive Chalice:
http://aluigi.org/bms/stacking.bms

I have many doubts about the other games because the format is very "dynamic" and it was ever slightly different for these 3 games.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

Hi!
Day of the Tentacle Remastered is from this company
https://en.wikipedia.org/wiki/Double_Fine_Productions

And the bms is not working with that, here is the 1st 1mb
http://www53.zippyshare.com/v/twWAvmqg/file.html

Can you make it to work with it? thanks!
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: Double Fine Productions games

Post by MerlinSVK »

Tentacle uses completely different engine than Stacking etc.
Use BMS script for Monkey Island 2 Special Edition.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

Thanks MerlinSVK, it worked fine :D
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

Hi! i tried the script with the game Headlander but i get errors

quickbms.exe db.bms Rg_UI.~h .


offset filesize filename
--------------------------------------
- enter in folder d:\headlander\Win\Packs\a
coverage file 0 0% 0 3772
- open input file d:\headlander\Win\Packs\a\Rg_UI.~h
- enter in folder d:\headlander\Win\Packs\a
- open input file d:\headlanderWin\Packs\a\Rg_UI.~p
00000000 1048592 twod/screens/adultswim/adultswim_0

-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode c0000005 access violation
*EH* ExceptionFlags 00000000
*EH* ExceptionAddress 00555c19
00180000 + 003d5c19 quickbms.exe
*EH* NumberParameters 00000002
*EH* 00000000
*EH* 057a98dc

*EH* Stack Trace:
0x555c19 : d:\headlander\Win\Packs\a\quickbms.exe : spookyhash_fi
nal
0x5558b1 : d:\headlander\Win\Packs\a\quickbms.exe : spookyhash_fi
nal
0x20000 : [unknown module] : [unknown file]

Last script line before the error or that produced the error:
103 clog NAME OFFSET ZSIZE SIZE 1

Press ENTER or close the window to quit


Here is the example: (6mb's)
http://www99.zippyshare.com/v/8QfuU5ks/file.html
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

Do you have samples from this and/or other games of Double Fine for Xbox?
There is a problem recognizing what is the compression algorithm to use.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

aluigi wrote:Do you have samples from this and/or other games of Double Fine for Xbox?
There is a problem recognizing what is the compression algorithm to use.

No, but its zlib compression, precomp works with that and offzip too, the example data is from PC version
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

Yeah I know but I need to find a way to recognize the archives that use xmemdecompress, I found them in the past but I no longer have samples. Anyone has samples from other xbox games of the same developers?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

For example Brutal Legend for xbox.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

aluigi wrote:For example Brutal Legend for xbox.

As "requested" here is some files from Brutal Legend for xbox360

http://www21.zippyshare.com/v/WsinuuCm/file.html (1,26Mb's)

If you need more files just say it :mrgreen: i hope it helps
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

Eh unfortunately there is no data with xmemdecompress there.
Anyway if and when we will encounter one of these archives compressed with xmemdecompress (you will get a compression error) I will check them :)
Script 0.2.3
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

I can upload all the files (xbox 360) if you want, it's only 1,07 Gb's
Last edited by Savage on Sat Jul 30, 2016 1:47 pm, edited 1 time in total.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

With the script 0.2.3 it worked with 00Startup.~h i will check all the files :D
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

to delete
Last edited by Savage on Sat Jul 30, 2016 4:37 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

RgB_Stuff != RgS_Stuff
quickbms is perfectly right
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

Shit! xDDD delete the last two posts.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

Okay here we go..

Example from PC version:
Rg_EnvMtrl_ComputerCore.~p 262Mb's

21.130 Rg_EnvMtrl_ComputerCore.~h
275.054.592 Rg_EnvMtrl_ComputerCore.~p


Code: Select all

quickbms.exe stacking2.bms Rg_EnvMtrl_ComputerCore.~h unpacked

239 files and only 17.0 Mb's

Using precomp

New size: 703300292 instead of 275054592
Recompressed streams: 241/514
zLib streams (intense mode): 241/514
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

Do you mean that quickbms extracted only 17 Mb from an archive of 270 Mb?
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Double Fine Productions games

Post by Savage »

Exactly, but it happens in a lot of files, not only in this one
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Double Fine Productions games

Post by aluigi »

I understand and the problem is just with the work-arounds for calculating zsize and size (long story).
Honestly I don't think there is something I can fix because doesn't exist a real "format", different versions and different games use different ways to store OFFSET, ZSIZE and SIZE and use different compression algorithms (zlib vs xmem).
It's really a pain.

Now while testing my old samples I found that version 2 doesn't want ZSIZE >> 1 so I have just removed it (even if it was there for a reason).
Your files are version 6 and I have found a way that now seems to work.

The current version of the script is 0.2.4 and seems to work correctly with the samples I have but I don't think I'm going to spend other time on this weird format.