Author Message

Gastroker

us
Posts: 180

Location: United States
Occupation:
Age:
V$:
#46595   2014-08-26 04:46          
I'm learning a bit about scripting and can't figure out how to solve this rather nooby problem.

SOOO I wanted to try something simple with the original SLRR I4 textures. The engine block, transmission, exhaust pipe etc.. all use "inline4.dds" as a resource. I want to change the turbo exhaust pipe so that it has its own custom texture. I made one and named it "tube.png" and placed it in the texture folder.

Next I go to edit the rdb and set it to /textures/tube.png instead of /textures/inline4.dds. Now the exhaust pipe uses the texture, but so does everything else! I need everything else to use inline.dds and only the exhaust pipe to use tube.png

Here's a short snippet of what I'm dealing with:

</FILE>
<FILE 00000212.res >
typeof 5
superid 0x00000001
typeid 0x00000028
alias turbocharger
isparentcompatible 1.00
</FILE>
<FILE 00000212.rsd >
sourcefile parts\engines\Einvagen_Duhen_Ishima_Focer\meshes\LOD3\turbocharger_air_out_pipe.scx
</FILE>
<FILE 00000213.res >
typeof 5
superid 0x00000001
typeid 0x0000002A
alias turbocharger
isparentcompatible 1.00
</FILE>
<FILE 00000213.rsd >
sourcefile parts\engines\Einvagen_Duhen_Ishima_Focer\meshes\LOD3\turbocharger_exhaust_pipe.scx
</FILE>
<FILE 00000214.res >
typeof 7
superid 0x00040005
typeid 0x00000002
alias Einvagen_Duhen_Ishima_Focer
isparentcompatible 1.00
</FILE>
<FILE 00000214.rsd >
</FILE>
<FILE 00000215.res >
typeof 7
superid 0x00000002
typeid 0x00000117
alias tube.png
isparentcompatible 1.00
</FILE>
<FILE 00000215.rsd >
sourcefile parts\engines\Einvagen_Duhen_Ishima_Focer\textures\tube.png
</FILE>
<FILE 00000216.res >
typeof 7
superid 0x00000002
typeid 0x0000011A
alias inline4_cylinder_head_cover.dds
isparentcompatible 1.00
</FILE>
<FILE 00000216.rsd >
sourcefile parts\engines\Einvagen_Duhen_Ishima_Focer\textures\inline4_cylinder_head_cover.dds
</FILE>

What I'm thinking is I need to add a chunk of code to it so that it can differentiate the textures. But this is where my knowledge tapers off. I tried adding extra code and ended up with the same result. After spending too much time figuring this out I thought I might as well ask on here for some tips.

Any help is appreciated B)

edit: just came across a tutorial on here about adding textures, I will be reading up on that as it looks like it will help a lot