Large scale asset swapping.

nicky9499

SSoTW Bot
I recently came up with this idea of swapping out all the ugly built-in trucks at one go so that I don't have to edit each individual config file (in the hundreds). :eek: Picture this:

40ft Boxcar bogey <100073> is an ugly default freight car truck.
100 ton truck <kuid2:173286:4101002:1> is a freight truck that really looks like a freight truck. So this one is cloned.

Cloned asset comes out as <kuid:366297:1019>. I need to make this asset's kuid <100073> but so far I have not found a way to do so.

What I want to ultimately achieve is for the cloned asset to take the place of the original. Someone please advise.

Cheerio,
Nicholas.
 
Intresting theory but only one problem, if the bogie asset was never designed to go under the said item by the content builder, due to the diffrent attachment point height used by each designer you going to end up with bogies every where.

Its going to all end in tears.
 
Last edited:
No, this one wouldn't end in tears. I have manually replaced said trucks on a few tank cars and they fit very nicely. So this particular 100-ton truck would replace the 40ft Boxcar bogey without much problems. Now the problem is making the new truck take the place of the old truck. In other words, if tank car A used 40ft Boxcar bogey and 100-ton truck replaced it perfectly, any other car that uses 40ft Boxcar bogey will also be able to visually accommodate 100-ton truck.

I derived the concept from msts, where the old hornsound for example would just be renamed (xxx - old) and the new one (xxx). This way all trains that alias to that hornsound use the new one with only a single edit.

Cheerio,
Nicholas.
 
Depends on which Trainz version you are using.
The method is different for TRS2004 and earlier compared to TRS2006 and later.
 
As it is a built-in Auran bogie, the kuid is actually -1:100073. Unfortunately, to use the obsolete table in 2006 on, the user ID has to be the same, i.e. -1 in this case. Thus
-1:1019 would work but 366297:1019 will not and CMP will not allow you to change your kuid to another.
 
You can but you have to know how.

In TRS2006 on including TS2009, you find the default bogie you want to change.
Open for Edit.
Delete everything but the config.txt file.
Rename the config.txt to something else for now.
Have the bogie you want Open for Edit also.
Copy all fines from the one you want into the folder for the default.
Open the new config.txt file and the old one you renamed.
Get the KUID # of the old one, Copy/Paste or manually type it into the config.txt file you brought over.
Delete the renamed old config.txt file.
Commit.

Now you should have the new bogie using the old KUID # and it should show on all content that uses that bogie KUID #. This will only happen on your machine, no one else's unless they do the same thing.

If you have problems, find the default item in CM2 and Ctrl-O it to go back to the original.
 
Thanks StorkNest, I couldn't remember how I did it. I posted this solution a fair time ago but I couldn't turn it up in a search. I wonder if the Thought Police sent it to a Memory Hole. If so you had better watch out or it will be Room 101 for you :)
 
Hi Storknest,

the solution you provided worked like a charm. Instead of deleting all the old contents though, I moved them to a folder called 'old' before copying the new parts over and editing the kuid value in the new config file. I owe you a good round of beer. :D This here is sufficient cause for celebration for now:

8b39ee6bdab6434b984ef1f606a186ac


Cheerio,
Nicholas.
 
Back
Top