Tracks "MODEL_REPLACEMENT_" how-to

Strangely I can`t find any info on how to use this additional config option. I need to replace object in a track with undefined "PITS" so the doubled number of cars don`t pile up. I prepared the new pits as small separate ".kn5" file
pits.jpg

and placed it alongside a corresponding "track_name.ini"
"[MODEL_REPLACEMENT_0]
FILE=evo_triangle.kn5
INSERT=pits_32.kn5
INSERT_AFTER="
in "..\AssettoCorsa\extension\config\tracks\loaded\".
What I got was one line in "custom_shaders_patch.log":
"2019-10-04T00:27:54:881 [01664] | DEBUG | Processing messages, dt=0.128
2019-10-04T00:27:54:881 [01664] | DEBUG | Message: 512
2019-10-04T00:27:54:881 [01664] | DEBUG | Messages processed
2019-10-04T00:27:54:882 [01664] | INFO | File to insert: 'E:\AC1andALL\AssettoCorsa\extension\config\tracks\loaded\pits_32.kn5'
2019-10-04T00:27:54:897 [01664] | DEBUG | Processing messages, dt=0.017
2019-10-04T00:27:54:897 [01664] | DEBUG | Message: 512
2019-10-04T00:27:54:897 [01664] | DEBUG | Messages processed"

No "ERROR" and no desired effect in the game... What to do?
PS- This is needed for the correction to reach many people who can`t manage to edit the track in 3d. I am not the author and cannot release an update of the track for ethical reasons only.
 
Last edited:
Got results! But not thru the above option so the question is still valid.

Track accepted replacement thru additional
[MODEL_4]
FILE=pits_32.kn5
POSITION=0,0,0
ROTATION=0,0,0
in "models_***.ini"
 
Last edited:
pit- and road-meshes or curbs are special, they cannot be inserted by the patch, they are like "read-only" - all the ones with a number in front
in log file (not log.txt but "custom_shaders_patch.log") they are called "protected"
for that you have to use the layout method like in your second post
 
Last edited:
I am not the author and cannot release an update of the track for ethical reasons only.

So why are you publicising yourself screwing with other people's hard work? To get 'likes'?

If you want something changed on a mod track, do the right thing, and contact the original creator.

Or better still, make your own track ;)
 
It is locked in shader Patch to replace, remove or add physics Underground.

Because if this would Work everyone could cheat by repacing every physic Underground with "Road"
 
I haven`t read anything from Ilja aka "x4fab" to that respect. The limitation most probably is to avoid filling up the config folder with all sorts of wrongly named models which at some point will get overwritten and the wrong objects will end up in some different track causing cars falling into the abbyss.
Replacing or extending the mesh by inserting separate model is otherwise working and is not a cheat. It`s more like an afterthought because of a guys who were too busy putting together the track in RTB and didn`t make the pits.
 
Last edited:
when i put a mesh named 1ROAD_test into the "ks_nordschleife__lights.kn5" i made it is omitted, not loaded. no fake news ;)

the log file "Documents\Assetto Corsa\logs\custom_shaders_patch.log" says:
| INFO | Inserting extra node: 1ROAD_test, is mesh: 0
| INFO | Removing protected node: 1ROAD_test

"hierarchy is the one seen on the left in ksEditor" - yes
 
Last edited:

Latest News

How long have you been simracing

  • < 1 year

    Votes: 291 15.3%
  • < 2 years

    Votes: 200 10.5%
  • < 3 years

    Votes: 197 10.4%
  • < 4 years

    Votes: 143 7.5%
  • < 5 years

    Votes: 252 13.3%
  • < 10 years

    Votes: 226 11.9%
  • < 15 years

    Votes: 141 7.4%
  • < 20 years

    Votes: 116 6.1%
  • < 25 years

    Votes: 87 4.6%
  • Ok, I am a dinosaur

    Votes: 248 13.0%
Back
Top