Ridge Racer (Vita) RRN.DAT

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Ridge Racer (Vita) RRN.DAT

Post by bxaimc »

This archive contains the main game itself minus all of the assets such as most of the music, tracks, cars, and movies. It also contains all o the sound effects packed in NUS3Banks which aren't a problem to extract but once you to around 0x101C34A8, it starts to become a bit funky. The NUS3Bank found around this address contains the menu BGM but some of the bytes seem shifted and the file sizes for the AT9 files inside also don't match the data present so I can only assume some compression is involved to further shrink the data. Unfortunately, I'm stumped so any help is much appreciated!

Please see for yourselves:

RRN.DAT
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by aluigi »

That's a container, basically the information about the archived files are stored somewhere else like a small file (usually with the same name and different extension).
Many files there are compressed, that's why you are probably experiencing that problem.
Check if you can find this small index file with the information.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by aluigi »

Upload the file cmFileListDisc.info
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by bxaimc »

Oops. Sorry for the wait.

cmFileListDisc.info

Thanks for looking into it, aluigi.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by aluigi »

Unfortunately the compression algorithm seems unknown so there is nothing to do since all the blocks of the archive are compressed.
bxaimc
Posts: 41
Joined: Thu Nov 16, 2017 7:11 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by bxaimc »

Aww. Thanks for taking a look though.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by aluigi »

Anyway some files are not compressed like the NUS3 files that you mentioned, for example at offset 0xb4800 and 0xb66c0... mah both format and compression are a headache :)
bnnm
Posts: 13
Joined: Mon Nov 06, 2017 8:24 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by bnnm »

Here is a simple decompressor of the nus3bank, may work for other files: https://pastebin.com/Wx5Cpqkw

It's a simplified LZ w/ standard 0-init window, were 'command' is always 16b LE, upper byte=0xFF means copy lower byte+1, otherwise neg_offset=(command>>5)+1, length=(command&0x1f)+3.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ridge Racer (Vita) RRN.DAT

Post by aluigi »

cmFileListDisc.info says that there is another DAT archive having a size of over 1.2 Gb (1325826207), what's the name of this file?

Additionally the compressed data doesn't seem to match the offset in cmFileListDisc.info while NUS3 is correct.