• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

Problem replacing textures from /extension folder using ext_config.ini

VladK

New Member
Hello experts.
I feel this is a really noob question, but since (edited: I didn't read docs carefully :whistle:) , please bare with me.

I had an impression that one can easily replace a texture (and a shader, this is not simple re-skin) on any material, just simply placing a .dds texture in /extension folder inside a tracks folder and editing ext_config.ini

[SHADER_REPLACEMENT_...]
MATERIALS=grass-int
SHADER=ksMultilayer
RESOURCE_0=txDiffuse
RESOURCE_TEXTURE_0=grass_ext.dds
RESOURCE_1=txMask
RESOURCE_TEXTURE_1=my_new_cool_custom_dirt_map.dds


But this doesn't seam to work.
The workaround I found is to add a texture into a dummy.kn5 file and load it, e.g. using

[MODEL_REPLACEMENT_...]
..
INSERT=dummy.kn5
INSERT_AFTER=objtent01


But this is really cumbersome, as it slow-down the workflow quite a bit, requires me to re-export a kn5 file after each image edit, restarting AC, driving to a specific spot..

Is there a better workflow?

Many thank,
Vlad
 
Last edited:

fughettaboutit

aka leBluem
you could also work with the
"...skins\default\"
folder, just create them in your track folder

Files you placed there will overwrite any existing file from the original kn5 with the same name...
 

VladK

New Member
Thanks a lot!
Wiki on github is super helpful! Much appreciated. In fact I was even looking at it yesterday but didn't notice a different keyword RESOURCE_FILE_XX :oops:
 

Rob Pawn

Active Member
you could also work with the
"...skins\default\"
Hey Guys.
i use this skin method for a track to enable "winter mode".
On Nordschleife Wonderful Winter Mod i saw they use the "...skins\cm_skins\" to enable the dropdown Skin Menu in Content Manager.

1st thing - I wonder why all files get copied into the "...\skins\default" folder as soon you lunch the track with this skin... ??? cause then we have the textures twice and it doubles the size of the skins folder... not nice!

2nd thing and more important for me to know: I wanna set up this map now on a Server and do not know how to use skins there. There is no selection for skins. I saw people running the Nordschleife Wonderful Winter Mod on their server and wonder how they did it. Hopefully not via the ext_config with FILE REPLACEMENT.
Would be a nightmare to replace manually every texture.

Hopefully you guys can help me.
 

fughettaboutit

aka leBluem
...\skins\default\ is where AC is looking for texture replacements.

CM makes it so, that you can have multiple inactive skins available in
...\skins\cm_skins\...

Deploy track without any active skins in skins\default\ !
 

Rob Pawn

Active Member
and is there a way to, lets say, put a skins folder into the layout folder? i tried but had no success.
but thx so far!

:EDIT:

mhm... all good now. finally i know the solution - how it is workin.
I just didn't knew that we can select the skin before we join a server.
I thought i have to enable the skin already in server settings...
 
Last edited:

fughettaboutit

aka leBluem
as the ksTyres shader is already in place, we only need to tell CSP which new textures to use, using _FILE_:
[SHADER_REPLACEMENT_...]
MATERIALS = your_tyre_material_name
RESOURCE_FILE_0 = mydiffuse.dds
RESOURCE_FILE_1 = mynormal.dds
RESOURCE_FILE_2 = mydirty.dds
RESOURCE_FILE_3 = myblur.dds
RESOURCE_FILE_4 = mynormalblur.dds

files must be right beside the config
 

GRLap

Member
as the ksTyres shader is already in place, we only need to tell CSP which new textures to use, using _FILE_:
[SHADER_REPLACEMENT_...]
MATERIALS = your_tyre_material_name
RESOURCE_FILE_0 = mydiffuse.dds
RESOURCE_FILE_1 = mynormal.dds
RESOURCE_FILE_2 = mydirty.dds
RESOURCE_FILE_3 = myblur.dds
RESOURCE_FILE_4 = mynormalblur.dds

files must be right beside the config
i figured it out, thanks mate!
 

GRLap

Member
as the ksTyres shader is already in place, we only need to tell CSP which new textures to use, using _FILE_:
[SHADER_REPLACEMENT_...]
MATERIALS = your_tyre_material_name
RESOURCE_FILE_0 = mydiffuse.dds
RESOURCE_FILE_1 = mynormal.dds
RESOURCE_FILE_2 = mydirty.dds
RESOURCE_FILE_3 = myblur.dds
RESOURCE_FILE_4 = mynormalblur.dds

files must be right beside the config
is there a way to reference all skins, rather than having to enter every skin name?
 

GRLap

Member
put config in car folder, not into skins folder
the "extension" folder is in the car mod's main folder, e.g., same level as ui, sfx, etc. the ext_config file is in "extension" it is not in the skins folder

the [SHADER REPLACEMENT] is working, but only if I type in every skin name
SKINS = 00_guest, 01_cerny, 01_mac, ...

This is a royal pain as there are nearing 50 skins.

I assume there must be a way to reference all/every skin rather than typing out every name?
 

heryy21

Member
Is there a way to make a skin’s shader transparent? I mean there is a car skin wichs front grill is chrome and i made a seperated object for it to overlay which is chrome, and i want in other skins it to be transparent, how can i make it?
 

fughettaboutit

aka leBluem
for use with CustomShaderPatch:

[MESH_ADJUSTMENT_...]
MESHES = add your mesh name
IS_RENDERABLE = 0

if you only want it for one skin, just put
ext_config.ini
only in that skins folder
 
Top