Changing a kuid's permissions

Lataxe

Member
I have some routes in which "Missing Spline,<kuid:523:1124>" appears, because the spline kuid that's missing can't be found in my Trainz database or on the DLS. The config file of "Missing Spline,<kuid:523:1124>" shows "permit-listing = 0" which prevents it from showing in Surveyor, which would allow me to perform a "replace asset" to substitute a spline I do have for the spline that's missing.

In the past I've been able to alter the config files of various unlistable built-in assets (such as speedtree groups) to read "permit-listing = 1" which then allows me to view & replace such assets in Surveyor with the replace tool. However, I can't get "Missing Spline,<kuid:523:1124>" to commit once I've made the permit-listing change to the config file. A message box tells me that I'm not authorised to make changes to that kuid.

I also attempted to replace "Missing Spline,<kuid:523:1124>" in the config file of the route containing it, substituting the kuid of a track I do have for the dotted lines of "Missing Spline,<kuid:523:1124>" via both "Edit in Explorer" and "Edit in Content Creator Plus". For reasons I don't understand, this fails to replace the missing spline with that I've nominated, when I load that route for editing, despite the fact that "Missing Spline,<kuid:523:1124>" can no longer be found in the route's config file whilst my replacement track kuid can be found.

Is there a way to obtain authorisation to make edited changes to built-in kuids, such as changing "permit-listing", perhaps by using Windows security management to change permissions of the Trainz files & folders involved? If so, which files & folders? Has something changed in TS12 to prevent me from changing built-in kuids, as I've done with Speedtree Groups in the past?

I'm trying to do this in TS12 Content Manager V3.7 (the most up-to-date version of TS12). I have Trainz set to "run as administrator".

Lataxe
 
This is how I overcame the problem.
Open the file for Edit in Explorer.
Copy the contents of the config file and open a notepad file on the desktop. Copy the config contents to this new file.
Change the permission and change the kuid to <kuid2:523:1124:1> and save the file as "config.txt".
Create a folder and name it kuid2:523:1124:1, and place the new config into it.
Import the folder into CM and it will obsolete the old one.
Will work with any builtin.
Cheers,
Mike
 
This is how I overcame the problem.
Open the file for Edit in Explorer.
Copy the contents of the config file and open a notepad file on the desktop. Copy the config contents to this new file.
Change the permission and change the kuid to <kuid2:523:1124:1> and save the file as "config.txt".
Create a folder and name it kuid2:523:1124:1, and place the new config into it.
Import the folder into CM and it will obsolete the old one.
Will work with any builtin.
Cheers,
Mike

Mike,

Thanks for that info - the missing spline is now available in Surveyor for replacement. I used it to replace some missing track in "Midshire Mainline V3" as a test and it works perfectly.

I had read & tried a similar fix I saw elsewhere on the forums but it gave me the same error message (not authorised to commit the change). The difference with your procedure seems to be the essential change to make the edited "missing spline" a "kuid2" (as well as a version ":1") rather than just a "kuid".

Incidentally, there are some additional bits of info that might be added to your procedure:


  • Windows won't allow a folder to be saved with ":" in the name, so I substituted "-", which Windows does allow in a folder-name. I don't think it matters what the folder is called as long as one knows where it is and that it contains a "config.txt" with the changes in it. Is that correct?


  • When a notepad-loaded version of the config file contains the changes listed in your procedure it also retains the foreign language names for the asset. Notepad gives a warning that any non-ASCII characters will not be retained if & when the notrepad file is saved. For English speakers, removing the list of foreign language names doesn't affect the fundamental operation of the config file, though.


  • When the config file is imported via "Import Content" the resultant asset "kuid2:523:1124:1" has only the config file in it. It's also necessary to copy across, from the original kuid, the other items in the asset: missing.texture.txt; missing.tga; missing-missing.texture.txt; track_lod0.im

Thanks once more for your help.

Lataxe
 
Back
Top