.rpk Game Archive, found in Monopoly Streets [Wii]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Cat32
Posts: 4
Joined: Thu Sep 10, 2015 5:13 pm

.rpk Game Archive, found in Monopoly Streets [Wii]

Post by Cat32 »

Hello,

I want to extract a .rpk file that I found inside the Wii game Monopoly Streets / Monopoly Collection, but I can not find any information or any tools about it.
I am going to try to create a script for it myself but as I have no experience with this language I would really apprieciate any help.

I found these files inside a .big archive that I was able to extract. One of the .rpk files from the game is included in this post. This .rpk is supposed to contain a map/board from the game, with all data that comes along with it. I packed it in a .zip file to get it uploaded here.
Found in [SMPP69]\DATA\files\Streets\data.big\chapters\monopolyfuture\zones\


Thanks in advance,
Cat32
Cat32
Posts: 4
Joined: Thu Sep 10, 2015 5:13 pm

Re: .rpk Game Archive, found in Monopoly Streets [Wii]

Post by Cat32 »

I'm uploading a few more files for comparision.
These three files are the three smallest .rpk archives from the data.big archive. They can give a lot of information about the .rpk file structure in hex style. If there are a few from you who decided to take a look (thank you), then it may be good idea to have a look at these files as well. These and the zone_world1.rpk have a lot of hex in common.

Thanks for the help, I've seen a few downloads already. Really apprieciate it.
Cat32
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .rpk Game Archive, found in Monopoly Streets [Wii]

Post by aluigi »

The whole file is just a compressed EA file, but it's compressed a bit differently.
It's like a new version of RefPack although the original algorithm is almost compatible because I can extract a valid file in english.rpk (not the original, but quite close)... I don't know.
If you want to experiment with english.rpk try this:

Code: Select all

comtype CT_Refpack
endian big
get ZSIZE asize

get TYPE1 byte
get TYPE2 byte
get SIZE long
savepos OFFSET
math OFFSET = 0
math ZSIZE - OFFSET
math SIZE + 0xffffff
clog "dump.dat" OFFSET ZSIZE SIZE

And yes, I have already tried another implementation of RefPack, read the size field as 32bit and started the raw decompression from offset 6 or 0x1b but the result is EVER wrong.
Cat32
Posts: 4
Joined: Thu Sep 10, 2015 5:13 pm

Re: .rpk Game Archive, found in Monopoly Streets [Wii]

Post by Cat32 »

Ive tried that exact script but I get no output at all on english.rpk.
Cat32
Posts: 4
Joined: Thu Sep 10, 2015 5:13 pm

Re: .rpk Game Archive, found in Monopoly Streets [Wii]

Post by Cat32 »

Tried again and did get about this time, though I'm not sure what to do with the dump.dat file that comes out.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .rpk Game Archive, found in Monopoly Streets [Wii]

Post by aluigi »

It will be available in the next quickbms :D
*edit* It's just refpack.c without the "length = 4;" limit in append().