100% Orange Juice on Steam - .pak/.dat

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
InfinitePhantasm
Posts: 2
Joined: Sat Apr 15, 2017 2:34 am

100% Orange Juice on Steam - .pak/.dat

Post by InfinitePhantasm »

hello. there appears to have been an old thread on this, but i do not wish to necro it.

i'm looking into cracking open this game's files for modding in the future. the old thread has slight amounts of info that might be useful, but here's the jist for the files:

Ekey wrote:*.PAK - simple ZIP
*.DAT - obfuscated / encrypted - seems xor


the .PAKs for textures are easily openable in 7zip, winrar or any other program.
however, the ones for items such as music appear to be unopenable that way, but there appears to be a script to extract the files:
aluigi wrote:You can use this script to dump the ogg files:

Code: Select all

quickbmsver "0.7.6a"
get PAK_SIZE asize
math OFFSET = 0
    callfunction TEST 1
do
    math OFFSET = NEW_OFFSET
    goto NEXT_OFFSET
    getdstring DUMMY 10
    callfunction TEST 1
    xmath SIZE "NEW_OFFSET - OFFSET"
    log "" OFFSET SIZE
    math OFFSET = NEW_OFFSET
while OFFSET != PAK_SIZE

startfunction TEST
    math LAST_OFFSET = OFFSET
    findloc NEXT_OFFSET binary "\x01vorbis" 0 ""
    if NEXT_OFFSET == ""
        get NEW_OFFSET asize
    else
        goto NEXT_OFFSET
        findloc NEW_OFFSET binary "OggS" 0 "" LAST_OFFSET
    endif
endfunction
It's quite raw and lame but works :)


i have attached the examples of .dats, and a .pak for audio and textures.

any help on this would be very much nice. thank you.
InfinitePhantasm
Posts: 2
Joined: Sat Apr 15, 2017 2:34 am

Re: 100% Orange Juice on Steam - .pak/.dat

Post by InfinitePhantasm »

bump