.RPK files from Trivial

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
jorge111
Posts: 1
Joined: Wed Mar 22, 2017 5:55 pm

.RPK files from Trivial

Post by jorge111 »

Hi, I've tried the current Examina RPK extract alg. (http://zenhax.com/viewtopic.php?f=9&t=2128) but it does not work with these files (I attach 2 examples).

Can someone help me? maybe I'm doing it wrong.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .RPK files from Trivial

Post by aluigi »

It's the usual compression used for the Electronic Arts games and is supported in quickbms in many "flavors": dk2, refpack, xrefpack and xrefpack0

Code: Select all

endian big
comtype XREFPACK0
get SIGN1 byte
get SIGN2 byte
get SIZE long
get ZSIZE asize
savepos OFFSET
math ZSIZE - OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE