Tropical Liquor (.p, .mus) Pack Format

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Snowyyy
Posts: 1
Joined: Sat Apr 06, 2019 6:41 pm

Tropical Liquor (.p, .mus) Pack Format

Post by Snowyyy »

I've already done some little work on my part; Basically:
Image
This is the start of the file, each entry is 80 long, so 80 * file count = All index entries
I've been able to "unpack" the .mus file, since the files in there are not encoded, but in the .p it seems different.
If you go to the file offset you can see that each file has the LZSS magic, but my LZSS decoder doesn't seem to get anything feasible out of it.

I have attached a cut down version of the .p file
(Original is 3.3gb+)
https://mega.nz/#!IdFjzAba!KUDF1yyqIcsS ... efog4AecoI
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Tropical Liquor (.p, .mus) Pack Format

Post by aluigi »

The format is trivial BUT the "LZSS" files are clearly encrypted, probably with blowfish or xtea.

Format:

Code: Select all

idstring "PACK"
get FILES long
for i = 0 < FILES
    getdstring NAME 0x40
    get SIZE long
    get SOME_CRC long
    get OFFSET long
    get ZSIZE long

    savepos TMP
    goto OFFSET
    idstring "LZSS"
    get ZSIZE long
    savepos OFFSET
    encryption blowfish KEY # ???
    if SIZE > ZSIZE
        clog NAME OFFSET ZSIZE SIZE
    else
        log NAME OFFSET SIZE
    endif
    goto TMP
next i

Can you upload the game executable?