An easy way to delete item from a route

Rail4Pete

QCR Route builder
This is only a thought, but if we create an invisible object, like a simple period. Couldn't we be able to use the ''replace asset'' tool to delete some object from a layout ?

Rail4Pete
 
For some things, yes, but when I want to get rid of an object altogether I replace it with a funky tower, delete the tower from content manager, then open the route in surveyor and delete missing assets. It would also be possible to replace it with a teeny or invisible object and just leave it in there, the question is why not get rid of it altogether? What you're describing is known in programming as a "kludge", a way to work around something instead of fixing it. Leaving a bunch of unnecessary invisible objects in a route probably wouldn't have much impact on performance, but it's still something loaded into memory and the video RAM and being processed by the CPU and GPU - and from what I've seen this game already has enough unnecessary junk uselessly eating system resources without adding more.

Main problem isn't objects you can replace anyway, the trouble is when you have stuff like speedtrees that have the permissions set to hide them in the list, so they can't be replaced, or special objects like industry tracks and bridges that the replacement tool refuses to process.

http://forums.auran.com/trainz/showthread.php?t=81412

What's really needed is a way to globally delete all of a given asset from a route without all the screwing around. So the answer is yes, it's possible, question is why?
 
What's really needed is a way to globally delete all of a given asset from a route without all the screwing around. So the answer is yes, it's possible, question is why?
Yes, It's a pity this essential feature was not included in 2012. (along with a few others.....................)
Mick Berg.
 
I delete the kuid of the offending item from the Route's config table. Simple, no need to delete assets in surveyor.
 
I delete the kuid of the offending item from the Route's config table. Simple, no need to delete assets in surveyor.

Oh dear, not again. It doesn't work. It never worked. Choose a route, any route. Delete the whole entire kuid list. Everything. The lot. Just leave the empty container. With not one single kuid listed in the table load the route in Surveyor. It works. Everything is present. Nothing is gone. Close the route, open the config and golly jees, the entire kuid table has been written back in.

Why this particular myth gets perpetuated is utterly beyond my understanding. It just plain won't, can't, never did and never will work.

The editable kuid table in the route's config is ONLY about CM and the DLS. Surveyor loads content from the obs and/or gnd files which are (in the normal course of business) un-editable outside the usual game interface...

:'(
 
Last edited:
My experience is that if CM shows missing assets, I simply go into the config table and delete that kuid entry. I have done this over and over again the past 5 years. I also edit the kuid if C M has not recognised a "kuid2" update (happens in TRS2010). Once done , CM does not show the route as having missing assets. This is different to actually deleting assets that are present in Surveyor. So you are right about that Dermmy. However the deletion of missing assets in CM does work. Cheers,
 
Last edited:
However the deletion of missing assets in CM does work. Cheers,

As I said - the Kuid table is about CM and the DLS. All you have done is remove the asset from a list whose sole purpose is to tell CM what to look for, so of course it no longer shows as 'missing'. But you have done NOTHING to the route files, and NOTHING that will stop an asset from appearing in the route. If you go and get that 'deleted' asset and install it it WILL appear in the route.

This thread is about removing an asset from the route and this myth that deleting a kuid entry from the config's kuid table will magically remove the asset from the route (which was the point of your original post) comes up again and again and it is utter ...........

Andy
 
For some things, yes, but when I want to get rid of an object altogether I replace it with a funky tower, delete the tower from content manager, then open the route in surveyor and delete missing assets. It would also be possible to replace it with a teeny or invisible object and just leave it in there, the question is why not get rid of it altogether? What you're describing is known in programming as a "kludge", a way to work around something instead of fixing it. Leaving a bunch of unnecessary invisible objects in a route probably wouldn't have much impact on performance, but it's still something loaded into memory and the video RAM and being processed by the CPU and GPU - and from what I've seen this game already has enough unnecessary junk uselessly eating system resources without adding more.

Main problem isn't objects you can replace anyway, the trouble is when you have stuff like speedtrees that have the permissions set to hide them in the list, so they can't be replaced, or special objects like industry tracks and bridges that the replacement tool refuses to process.

http://forums.auran.com/trainz/showthread.php?t=81412

What's really needed is a way to globally delete all of a given asset from a route without all the screwing around. So the answer is yes, it's possible, question is why?

Very good point.

Yes, It's a pity this essential feature was not included in 2012. (along with a few others.....................)
Mick Berg.

I agree, so lets see if this has been brought to the ''suggestion boxcar thread'' : a ''delete asset from route'' button.

Rail4Pete
 
In older versions, didn't you have to delete the assets .tdk and .bku (I believe) to get that little trick to work? Never did it myself, just curious if forcing a rebuild would do it.

Dave.......
 
Will you all settle. Yes I have read your post, sniper297, and yes you are correct on the point of deletion of existing assets in a route, I apologise(again) for my original statement. However it works for me (No I don't take LSD) if the item is a missing asset and also in the case of editing an asset (kuid2). For this I do not apologise because it has worked the past 5 years. I just did this very same thing now to prove I don't take drugs and lo and behold it works! Now, altogether...re-read what I have written...(we are both right..see, easy - no need for abuse)
 
Last edited:
To make that "trick" work you don't have to delete anything from the KUID table, if the asset called for is not installed you merely need to open the route in surveyor, delete missing assets and save, and it will rewrite the KUID table to remove the missing asset's KUID. Manually deleting a KUID from a route's config.txt KUID table does diddly-squat. To remove a downloaded asset from a route you just have to delete in in content manager so the asset is no longer installed, then open the route in surveyor and delete missing assets and save, all done. If it's a built in asset which can't be deleted it has to be replaced with a downloaded asset that can be deleted first - removing it from the KUID table or disabling the asset so it doesn't show up in the surveyor list does not work.
 
Yes sniper297, if that asset is installed, however if it is a missing dependancy, my experience is that deleting the kuid from the config table works. However as you pointed out, actually going into surveyor and deleting missing assets is a whole lot more efficient. I mainly edit kuid numbers because CM in TRS2010 & 2012, which has been noted in these forums, re. not being able to discern an updated asset. I read here that this is to do with content creators not writing the configs correctly. I am glad that is all cleared up BTW, your watseka layout is grand and thanks.
 
I don't have a watseka layout, and deleting the kuid from the config table will only stop content manager from reporting the missing dependency - until you edit and save the route without using the delete missing assets utility, at which point surveyor will write it back into the KUID table because it's still in the data file for the route.

Look at the thread title;

"An easy way to delete item from a route"

The KUID table has absolutely nothing to do with that, despite all the idiots claiming you can remove assets from a route by deleting the KUID from the KUID table.
 
That's my point, there's no point in deleting it from the config because surveyor does not read the KUID table, it writes the KUID table based on what's in the other data files. If the asset is not installed using the "delete missing assets" will remove it from the data files for the route, then when you save it will rewrite the KUID table and remove it from the list. If you manually delete it from the KUID table beforehand it doesn't do anything useful, if you manually delete it from the KUID table when the asset is actually installed (or built in, which is the main problem) it doesn't accomplish anything either except for giving you a false report of dependencies. Yes you could delete it from the config.txt KUID file before using the delete missing assets, in fact go ahead and delete the entire KUID table if that gives you the feeling you're doing something clever, but you're not really doing anything because surveyor will rewrite the KUID table whatever you do.
 
This is getting beyond a joke. I just deleted a missing dependancy to prove to myself that I wasn't on drugs. It works. I suggest to any other forum users to go ahead nd try it. I am talking about missing deps not assets that are actually in the layout. You can all make up your own minds. Cheers and regards. Last post on this thread. Sorry got you confused with someone else, sniper297.
 
I just deleted a missing dependancy
Again, this is only removing the indication that the asset is missing in Content Manager.

The map itself is still referencing that asset, just the 'kuid-table isn't, and Trainz will be working around trying to locate that asset (this can likely degrade performance in Trainz, since it has to work around a missing dependency).

A missing dependency, or an installed dependency, are still referenced in the map files, and are technically loaded by Trainz. A good test is to try it with a missing spline. The default 'placeholder' spline will appear if the asset is missing. Deleting the kuid-table entry will not cause the placeholder to disappear (note, it's still simply replacing the asset, unless you've saved the layout since!).

The only way to truly delete a missing dependency from a route is the 'delete missing assets' tool. This removes the references from the map itself, not just the kuid-table.
 
Back
Top