Thimbleweed Park .ggpack1 and .ggpack2

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: Thimbleweed Park .ggpack1 and .ggpack2

Post by aluigi »

It smells of encryption because there is no clear data at the beginning or end of the archives.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by Savage »

I hope it helps and Aluigi can make a script for this game

GGDump is a tool for listing and extracting files from data archive files of the game Thimbleweed Park, which you should totally buy right now. (Steam, GOG)

https://github.com/mstr-/twp-ggdump/
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by Savage »

aluigi wrote:It smells of encryption because there is no clear data at the beginning or end of the archives.


Looking the source code of https://github.com/mstr-/twp-ggdump/blo ... /ggdump.py i see this

def decode_unbreakable_xor(src):
magic_bytes = b'\x4F\xD0\xA0\xAC\x4A\x5B\xB9\xE5\x93\x79\x45\xA5\xC1\xCB\x31\x93'
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by aluigi »

Well done.
I had to use a work-around because the size is not specified in some files probably because it's the same of the previous file... hope it works:
http://aluigi.org/bms/thimbleweed_park.bms
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by Savage »

Thanks for the script, only works with the quickbms windows version and under windows (not in wine), the game checks for the files ThimbleweedPark.ggpack1 and ThimbleweedPark.ggpack2 anyway, and the script can't reimport files

Error: script invalid for reimporting, it uses MEMORY_FILEs

Last script line before the error or that produced the error:
115 log NAME 0 XSIZE MEMORY_FILE2


But the unpacker/decryptor works :D

It' s possible to modify the script to add the reimport feature?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by aluigi »

Yeah, script 0.1.1 :)
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by Savage »

Something weird happens with the reimportation, i don't get any errors but looks the reimporting is not working well (or i'm doing something wrong).

Example:
I modified a png, then i reimported without errors, but i don't see the changes, i extracted again the files and the png is the original not the modified version, but the MD5 of the .gppack1 is not the same as the original, then something changed, but what?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by aluigi »

I see and I guess the problem is caused by the algorithm that is not one-way (so encryption != decryption), my mistake.
I restored the script removing that invalid reimporting feature.
Sorry.
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by Savage »

I see, thanks anyway :D
Dima Bilan
Posts: 25
Joined: Tue Jul 26, 2016 12:07 am

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by Dima Bilan »

Why after reimport ogg voice of characters doesn't work?
elvisish
Posts: 1
Joined: Thu Aug 03, 2017 1:10 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by elvisish »

Is it possible to reimport yet? I want to bitcrush all of the voices to sound like the early talkies and reimport them.
ili
Posts: 81
Joined: Wed Sep 17, 2014 2:28 pm

Re: Thimbleweed Park .ggpack1 and .ggpack2

Post by ili »

look same engine of return on monkey island