Page 1 of 1

South Park Rally PC texture files

Posted: Tue Jun 14, 2016 3:56 pm
by rubinho146
Hello,


I'm trying to figure out for years how can I open the textures files for South Park Rally.

They are all in .vram file format and they are with the company of .rbh files which I think they are for 3D models or also for sound format.

Any help for this thread will be appreciated, thanks!


Here is the files:
Image

Re: South Park Rally PC texture files

Posted: Sat Jun 18, 2016 7:41 pm
by Acewell
In the words of aluigi
No sample, no party
:D

Re: South Park Rally PC texture files

Posted: Sun Jun 19, 2016 4:26 am
by rubinho146
AceWell wrote:In the words of aluigi
No sample, no party
:D

You're saying that I need to send a file?

Here I send one of them!

Re: South Park Rally PC texture files

Posted: Sun Jun 19, 2016 5:17 am
by Acewell
Sorry man i have no clue what kind of image this is, it kind of looks like an archive of some sort. :(
4 bytes - BODY
4 bytes - data length
data
next sub header


since this is a PC game have you tried ripping the textures with Ninjaripper or something? :gulp:

Re: South Park Rally PC texture files

Posted: Tue Jun 21, 2016 10:36 pm
by rubinho146
Yes I tried, even with 3D Ripper DX too!!


But doesn't work on this game.

Re: South Park Rally PC texture files

Posted: Wed Jun 22, 2016 7:27 am
by herbert3000
The .vram file contains multiple 256-color bitmaps.
With this information it should be possible to extract all the images:

char[4] | "PIFF"
uint32 | file size
char[4] | "VVTP"

while (!EOF) {

char[4] | "BODY"
uint32 | chunk_size
uint32 | header_size
uint32 | image id
uint16 | bitmap_width
uint16 | bitmap_height
uint16 | flags (see below)
uint16 | color_depth (4, 8, 16, 24, 32)
byte[0x10] | bit_fields (ARGB, 4 bytes each)
uint32 | image_data_offset (= size of header + color table)
uint32 | unknown (0 or 0x40)
uint32 | number of mipmaps
byte[0x14] | unknown data (usually all 0)
byte[2^color_depth * 4] | color table, 4 bytes per pixel = [blue, green, red, alpha] (if color_depth <= 8)
byte[width * height * color_depth / 8] | bitmap (top to bottom order)

// mipmaps (if number of mipmaps > 0)

}

/*
* flags:
* bit 1 (1) hasNoColortable (16,24,32)
* bit 2 (2) hasTransparency (16,32)
* bit 3 (4) hasColorDepth4
* bit 4 (8) hasColorDepth8
* bit 5 (16) hasNoTransparency (16,32)
* bit 8 (128) hasMipmaps
*/

Edit: File format updated

Re: South Park Rally PC texture files

Posted: Sat Jun 25, 2016 7:04 pm
by rubinho146
What do I do to really extract the images so I can edit them?

Re: South Park Rally PC texture files

Posted: Sat Jun 25, 2016 11:23 pm
by herbert3000
Ok, here's a tool that extracts the images.
Do you also need to repack the edited images?

Download and extract this zip archive:
VramExtractor1.0.zip
copy both files to the location of your .vram files
Run 'Extract VRAM.bat' and enter the .vram filename

Requires a Java Runtime Environment (http://www.java.com).

Re: South Park Rally PC texture files

Posted: Sun Jun 26, 2016 1:53 pm
by rubinho146
Yes, I want to repack back the edited files.


Thank you so much for this!!



Edit: But there's also another problem, the extractor doesn't work with all the other vram files because maybe the files doesn't have "bitmap" as a name. Here I let the art folder for you. Here's the link https://drive.google.com/open?id=0By_Xs ... m1FdWpGcGs

Re: South Park Rally PC texture files

Posted: Mon Jun 27, 2016 7:38 am
by herbert3000
Ok, the first sample file only had indexed color bitmaps (color depth 4 or 8). But there are also vram files with a color depth of 16, 24 or 32 bits/pixel. The updated extractor supports these files.
VramExtractor1.1.zip
The number in curved brackets in the filename is the color dpeth - e.g. "Bitmap_1 (8).bmp"

Note that inferior image viewers/editor (like Windows Photo Viewer or Microsoft Paint) can't display transparent bitmaps (= bitmaps with a color depth of 16 or 32). GIMP for instance can display those files correctly.

I'll start to create the repacker soon.


By the way, you can also extract all .vram files by entering this as the filename:

Code: Select all

*.vram

Re: South Park Rally PC texture files

Posted: Mon Jun 27, 2016 9:37 am
by rubinho146
It really works!!!

Thank you so much.


I'll be waiting for the vram packer so then I can test the edits in-game.


So many thanks!!

Re: South Park Rally PC texture files

Posted: Tue Jun 28, 2016 2:37 am
by herbert3000
Please check if the bitmaps of the repacked vram files are displayed correctly in the game. The repacked files don't match the original files 100%, for example I skipped the mipmaps.
VramTools1.2.zip
Usage: Just run the BAT file and enter the name of the VRAM file to extract it or enter the name of an extracted folder to repack it.

Re: South Park Rally PC texture files

Posted: Tue Jun 28, 2016 3:38 pm
by rubinho146
I gotta say it, pal..


It really works!!! You did it 100% perfect, there's one or such where I have to convert 24 bit bmp formats to 8 bit but that's no problem for me because I've been testing everything one by one and see the problems in each character.

I'll might create a gui for this code so it can be easier to use it and the special thanks goes to you!!



Just one more thing, you that know a lot about encrypted extensions and files it would be possible for you to figure about the rbh extension?

It might be an archive I think but in one folder I think it contains the 3D model and in the other folder contains audio files:


viewtopic.php?f=17&t=14571

viewtopic.php?f=16&t=14579



The rbh with the audio files can be possible to open in audacity as a raw file and then change the hz and such but I would like to edit as well I did with the .vram.


And the rbh with model files I would like to know what format of the 3D model and changes somethings if possible.

Re: South Park Rally PC texture files

Posted: Fri Jul 01, 2016 1:23 pm
by QOTSANINSOADKORN
What About Stick Of Truth and it's Sequel...
After all this luck above...
I Expected some simple mods for SoT months after it's launch...
is it unusually complicated?
the PS3 Files i remember looking at when i first got them... 3 days before the official launch... it at least had all the uncut scenes... a movie extracter would be nice for eg...

Re: South Park Rally PC texture files

Posted: Sat Jul 09, 2016 5:40 pm
by herbert3000
The file formats of South Park Rally and The Stick of Truth have nothing in common, they games were developed by different game studios.

Btw, here's the latest version of the Vram utility:
viewtopic.php?f=32&t=14623