Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Ridge Racer Unbounded Compressed files.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Ridge Racer Unbounded Compressed files.

Post by OrangeC »

Seems the new ridge racer game uses an ultra compression technique that when you remove the 360 padding the actual game size is 1gb. They must of used some sort of compression scheme because i cannot even recognize anything in the bigfiles.

sample
* snip *
marlborox
ultra-n00b
Posts: 8
Joined: Sat Apr 09, 2011 3:03 am
Has thanked: 1 time
Been thanked: 1 time

Re: Ridge Racer Unbounded Compressed files.

Post by marlborox »

could be zlib compression as offzip (http://aluigi.altervista.org/mytoolz/offzip.zip) seemed to find something
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Ridge Racer Unbounded Compressed files.

Post by OrangeC »

Doiesn't look like zlib.

I gues we will have to wait for the pc/ps3 version to find out if its the same compression. Man why does namco do that?
RVR72GV
n00b
Posts: 12
Joined: Tue Nov 08, 2011 10:16 am
Has thanked: 1 time

Re: Ridge Racer Unbounded Compressed files.

Post by RVR72GV »

Could be zlib compression since the track editor crashes with zlib error (incorrect header check) in the PC version.
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 496 times

Re: Ridge Racer Unbounded Compressed files.

Post by Gh0stBlade »

PC Version is using Zlib. Is the window bits value different?
Click the thanks button if I helped!
Gruselgurke
advanced
Posts: 72
Joined: Fri Mar 30, 2012 6:15 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Ridge Racer Unbounded Compressed files.

Post by Gruselgurke »

I tried to open it using zlib but had no success. Could you extract it C00L12345?
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Ridge Racer Unbounded Compressed files.

Post by Ekey »

Algo 006CEE40

Code: Select all

sub_6CEE40	proc near

arg_0		= dword	ptr  8
arg_4		= dword	ptr  0Ch
anonymous_0	= dword	ptr  10h

		push	ebp
		mov	ebp, esp
		mov	ecx, [ebp+arg_0]
		push	esi
		mov	esi, [ebp+anonymous_0]
		dec	esi
		xor	eax, eax
		push	edi
		test	esi, esi
		jle	short sz_End
		push	ebx

sz_Loop:
		mov	edx, [ecx+eax*4+4]
		mov	edi, edx
		mov	ebx, edx
		shr	edi, 5
		shl	ebx, 4
		xor	edi, ebx
		mov	ebx, [ebp+arg_4]
		add	edi, edx
		mov	edx, eax
		xor	edx, 0FFFFFFFEh
		and	edx, 3
		mov	edx, [ebx+edx*4]
		sub	edx, 61C88647h
		xor	edi, edx
		sub	[ecx+eax*4], edi
		inc	eax
		cmp	eax, esi
		jl	short sz_Loop
		pop	ebx

sz_End:
		mov	eax, [ecx]
		mov	edx, eax
		mov	edi, eax
		shr	edx, 5
		shl	edi, 4
		xor	edx, edi
		mov	edi, [ebp+arg_4]
		add	edx, eax
		mov	eax, esi
		xor	eax, 0FFFFFFFEh
		and	eax, 3
		mov	eax, [edi+eax*4]
		sub	eax, 61C88647h
		xor	edx, eax
		sub	[ecx+esi*4], edx
		pop	edi
		pop	esi
		pop	ebp
		retn
sub_6CEE40	endp
PseudoCode

Code: Select all

int __cdecl sub_6CEE40(int a1, int a2, int a3)
{
  int v3; // esi@1
  int i; // eax@1
  int result; // eax@3

  v3 = a3 - 1;
  for ( i = 0; i < v3; ++i )
    *(_DWORD *)(a1 + 4 * i) -= (*(_DWORD *)(a2 + 4 * (((unsigned __int8)i ^ 0xFE) & 3)) - 1640531527) ^ (*(_DWORD *)(a1 + 4 * i + 4) + (16 * *(_DWORD *)(a1 + 4 * i + 4) ^ (*(_DWORD *)(a1 + 4 * i + 4) >> 5)));
  result = *(_DWORD *)(a2 + 4 * (((unsigned __int8)v3 ^ 0xFE) & 3)) - 1640531527;
  *(_DWORD *)(a1 + 4 * v3) -= result ^ (*(_DWORD *)a1 + (16 * *(_DWORD *)a1 ^ (*(_DWORD *)a1 >> 5)));
  return result;
}
Example on 01___unbounded___ archive

Loaded Header

after 006CEE40 Header

BFS1 - seems archives used in FlatOut 2 ? :)

Anyway binaries and example archives here
Gruselgurke
advanced
Posts: 72
Joined: Fri Mar 30, 2012 6:15 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Ridge Racer Unbounded Compressed files.

Post by Gruselgurke »

Yes that should be the archive type from Flatout: viewtopic.php?p=9533#p9533

So were you able to unpack it? Sorry for that noobish question, I really have a very limited knowledge about this stuff :(
I wouldn't know what to do with the stuff you posted :s
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Ridge Racer Unbounded Compressed files.

Post by OrangeC »

I hope someone cracks this!
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Ridge Racer Unbounded Compressed files.

Post by OrangeC »

How can we use that code?
360AMC
advanced
Posts: 55
Joined: Wed Apr 20, 2011 3:26 am
Has thanked: 4 times
Been thanked: 1 time

Re: Ridge Racer Unbounded Compressed files.

Post by 360AMC »

Gonna be great when the PC files get cracked. Want to make it so every street has traffic. :]
User avatar
XpoZed
veteran
Posts: 144
Joined: Sat Oct 24, 2009 5:08 pm
Location: Bulgaria
Has thanked: 2 times
Been thanked: 50 times
Contact:

Re: Ridge Racer Unbounded Compressed files.

Post by XpoZed »

Well i was able to build a 1/2 module for Unpakke for that game.

So far i can successfully unpack "00__ridge_racer__" (full of XML's) and "02____update_____" (where the localization files are). The last "01___unbounded___" archive has something strange in the structure that i didn't figure yet but... stay tuned i guess...? (:

The "BFS1" format is key encrypted (custom encryption as much as i am familiar with cryptography...).
The structure is key encrypted also, with algo similar to the file one, but this time it's executed in 6 rounds.
The file names and file path of every entry is obfuscated a little and... hash table encrypted. :|

Finally, the file entries are simply ZIP-ed.

Those guys really don't want no one to pick with the game res...

Here's the file structure of "02____update_____" (just to prove my words):

Code: Select all

АДДДdata
    ГДДДart
    і   АДДДbase
    і       ГДДДarea
    і       і   ГДДДboroughs
    і       і   і   ГДДДarea
    і       і   і   і   ГДДДhighway
    і       і   і   і   і   АДДДblock
    і       і   і   і   і           collateral1.dpdc
    і       і   і   і   і           driving1.dpdc
    і       і   і   і   і           driving3.dpdc
    і       і   і   і   і           driving4.dpdc
    і       і   і   і   і           driving5.dpdc
    і       і   і   і   і           driving6.dpdc
    і       і   і   і   і           driving7.dpdc
    і       і   і   і   і           driving8.dpdc
    і       і   і   і   і           transition2.dpdc
    і       і   і   і   і           transition3.dpdc
    і       і   і   і   і           transition4.dpdc
    і       і   і   і   і           transition4b.dpdc
    і       і   і   і   і           transition5.dpdc
    і       і   і   і   і           
    і       і   і   і   ГДДДport
    і       і   і   і   і   АДДДblock
    і       і   і   і   і           driving1b.dpdc
    і       і   і   і   і           driving1c.dpdc
    і       і   і   і   і           empty3.dpdc
    і       і   і   і   і           target1.dpdc
    і       і   і   і   і           target2.dpdc
    і       і   і   і   і           target3.dpdc
    і       і   і   і   і           target4.dpdc
    і       і   і   і   і           tmp_car_driving7.dpdc
    і       і   і   і   і           
    і       і   і   і   АДДДwarehouses
    і       і   і   і       АДДДblock
    і       і   і   і               collateral1.dpdc
    і       і   і   і               collateral2.dpdc
    і       і   і   і               driving1b.dpdc
    і       і   і   і               shortcut1.dpdc
    і       і   і   і               shortcut2.dpdc
    і       і   і   і               shortcut3.dpdc
    і       і   і   і               shortcut4.dpdc
    і       і   і   і               shortcut5.dpdc
    і       і   і   і               shortcut6.dpdc
    і       і   і   і               
    і       і   і   АДДДblock
    і       і   і           advanced_objects_block.dpdc
    і       і   і           collateral1.dpdc
    і       і   і           collateral2.dpdc
    і       і   і           empty2.dpdc
    і       і   і           offgrid2.dpdc
    і       і   і           offgrid3.dpdc
    і       і   і           shortcut4.dpdc
    і       і   і           shortcut6.dpdc
    і       і   і           shortcut7.dpdc
    і       і   і           shortcut8.dpdc
    і       і   і           
    і       і   АДДДdowntown
    і       і       ГДДДarea
    і       і       і   ГДДДcommercial
    і       і       і   і   АДДДblock
    і       і       і   і           driving1.dpdc
    і       і       і   і           driving1b.dpdc
    і       і       і   і           driving2.dpdc
    і       і       і   і           driving3.dpdc
    і       і       і   і           driving3b.dpdc
    і       і       і   і           driving3c.dpdc
    і       і       і   і           driving4.dpdc
    і       і       і   і           driving5.dpdc
    і       і       і   і           driving6.dpdc
    і       і       і   і           shortcut1.dpdc
    і       і       і   і           shortcut2.dpdc
    і       і       і   і           shortcut3.dpdc
    і       і       і   і           shortcut4.dpdc
    і       і       і   і           shortcut5.dpdc
    і       і       і   і           
    і       і       і   ГДДДconstruction
    і       і       і   і   АДДДblock
    і       і       і   і           driving1.dpdc
    і       і       і   і           driving1b.dpdc
    і       і       і   і           driving2.dpdc
    і       і       і   і           driving3.dpdc
    і       і       і   і           driving4.dpdc
    і       і       і   і           
    і       і       і   АДДДunderground
    і       і       і       АДДДblock
    і       і       і               driving1.dpdc
    і       і       і               driving1b.dpdc
    і       і       і               driving2.dpdc
    і       і       і               driving2b.dpdc
    і       і       і               driving3.dpdc
    і       і       і               driving4.dpdc
    і       і       і               
    і       і       АДДДblock
    і       і               collateral1b.dpdc
    і       і               driving1.dpdc
    і       і               driving10.dpdc
    і       і               driving11.dpdc
    і       і               driving11b.dpdc
    і       і               driving1b.dpdc
    і       і               driving2.dpdc
    і       і               driving3.dpdc
    і       і               driving4.dpdc
    і       і               driving5.dpdc
    і       і               driving6.dpdc
    і       і               driving7.dpdc
    і       і               driving8.dpdc
    і       і               driving9.dpdc
    і       і               empty1.dpdc
    і       і               offgrid1b.dpdc
    і       і               offgrid1c.dpdc
    і       і               offgrid3.dpdc
    і       і               shortcut1.dpdc
    і       і               shortcut2.dpdc
    і       і               shortcut3.dpdc
    і       і               shortcut4.dpdc
    і       і               shortcut5.dpdc
    і       і               shortcut6.dpdc
    і       і               tmp_car_driving11b.dpdc
    і       і               tmp_car_shortcut2.dpdc
    і       і               
    і       АДДДblock
    і               filler_boroughs1.dpdc
    і               filler_boroughs2.dpdc
    і               filler_downtown1.dpdc
    і               filler_downtown2.dpdc
    і               filler_downtown3.dpdc
    і               filler_port1.dpdc
    і               filler_warehouses1.dpdc
    і               
    ГДДДeditor
    і   АДДДshatterbay
    і       АДДДdistrict13
    і               d13_level2.bin
    і               
    ГДДДgameflow
    і       gameflow.bsm
    і       
    ГДДДlocalization
    і       language0.dat
    і       language100.dat
    і       language3.dat
    і       language5.dat
    і       language8.dat
    і       
    АДДДmenu
        ГДДДhud_as3
        і       hud_base_i16.dds
        і       hud_base_i3.dds
        і       
        ГДДДingame
        і       advancedmodeoptions_i1.dds
        і       ingameoptions_i1.dds
        і       pause_i1.dds
        і       
        ГДДДoverlay
        і       menuoverlay_i29.dds
        і       menuoverlay_i2e.dds
        і       menuoverlay_i5f.dds
        і       profileoverlay_i1.dds
        і       profileoverlay_i13.dds
        і       
        АДДДtextures
            АДДДmain
                АДДДlegal
                        disclaimer0_pc.bmap
                        disclaimer2_pc.bmap
                        disclaimer4_pc.bmap
                        disclaimer7_pc.bmap
(Sorry for the "АДДД" crap, but that how Windows tree.exe dump the table :roll: )
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Ridge Racer Unbounded Compressed files.

Post by OrangeC »

Interesting!

hope to see more progress! :D
Gruselgurke
advanced
Posts: 72
Joined: Fri Mar 30, 2012 6:15 pm
Has thanked: 21 times
Been thanked: 2 times

Re: Ridge Racer Unbounded Compressed files.

Post by Gruselgurke »

Awesome :)
Well I looked into the .exe with Ollydgb and it seems like the game includes a hell lot of source code (according to the filenames). Maybe thats why they don't want that file to openend so easily.
360AMC
advanced
Posts: 55
Joined: Wed Apr 20, 2011 3:26 am
Has thanked: 4 times
Been thanked: 1 time

Re: Ridge Racer Unbounded Compressed files.

Post by 360AMC »

Something tells me this game runs on the same engine as Flatout 2 and Flatout Ultimate Carnage. Most likely a tweaked version of UC's engine.
Post Reply