Here's a quick how-to-add-new-textures to RDB/RPK.

Preparation.. -;

Copy all the textures you're going to add to *mod*/textures directory.
resdecode your RPK to RDB.
Open up your loading order TEX and RDB up in notepad(++ recommended)

and search for ".dds" without quotes of course.

you're looking for something like the below -;

<FILE 00000305.res >
typeof 7
superid 0x00000004
typeid 0x0000006D
alias grill.png
isparentcompatible 1.00
</FILE>
<FILE 00000305.rsd >
sourcefile cars\racers\BMW_E92_data\textures\grill.png
</FILE>

Red bits are the ones you need to edit, leave the superid alone and file number too..

typeid -; this is the ID number you will be calling in the RDB for your loading order, but there's a limit of which letters/numbers you can use for it. -;

0-9 A-F is your limit.

so to add a new texture called logobmw3000.png we'll copy the above to make -;

<FILE 00000305.res >
typeof 7
superid 0x00000004
typeid 0x0000006D
alias grill.png
isparentcompatible 1.00
</FILE>
<FILE 00000305.rsd >
sourcefile cars\racers\BMW_E92_data\textures\grill.png
</FILE>


<FILE 00000305.res >
typeof 7
superid 0x00000004
typeid 0x0000006D
alias grill.png
isparentcompatible 1.00
</FILE>
<FILE 00000305.rsd >
sourcefile cars\racers\BMW_E92_data\textures\grill.png
</FILE>

so you have two of the same, starting with <FILE and ending with </FILE>

orange bits are the ones we're editing, you need to make sure the ID is not repeated anywhere else in the RDB Bar the future where you'll do your loading order..

lets change the ID to 0x00000A6A from 0x0000006D

and texture alias and name in the folder from grill.png to logobmw3000.png

make sure it is pointing to the correct source directory for the texture, the above for .e.g points to racers/BMW_E92_data\textures folder.

once the ID is changed, write it down in your ID list to keep track of your ID's in the rpk.

final rpk -;

<FILE 00000305.res >
typeof 7
superid 0x00000004
typeid 0x0000006D
alias grill.png
isparentcompatible 1.00
</FILE>
<FILE 00000305.rsd >
sourcefile cars\racers\BMW_E92_data\textures\grill.png
</FILE>


<FILE 00000305.res >
typeof 7
superid 0x00000004
typeid 0x00000A6A
alias logobmw3000.png
isparentcompatible 1.00
</FILE>
<FILE 00000305.rsd >
sourcefile cars\racers\BMW_E92_data\textures\logobmw3000.png
</FILE>

this is it, the new texture is now added, save and covert the RDB to RPK.

if you need any clarification, help or extra explanations ask here in the comments and I'll expand/update the article.

Thanks

JC
 
1.   Posted by Benny   2015-09-11 17:08    

Jesus is this the way to add center cap logos on to the rims. Thanks


Total : 1, on page: 1