.
Results 1 to 7 of 7

Thread: Thinning Out the Config file.

  1. #1
    Join Date
    May 2014
    Location
    United States of America, Wisconsin
    Posts
    200
    Blog Entries
    9
     

    Default Thinning Out the Config file.

    I am getting ready to upload a small route and took a look at the config file. I discovered a slew of string references that are no longer part of the route. Some are named industries used, then removed. Some are removed triggers and track marks. Others are rolling stock once placed on the route, but removed.

    Can I "cull the herd" and shorten the config file?
    Jeff
    Clairemont Industrial Park

  2. #2
    Join Date
    Nov 2006
    Location
    United States of America, Washington, Seattle
    Posts
    3,377
     

    Default

    I *think* so? Save a backup, though, just in case...

  3. #3
    Join Date
    May 2014
    Location
    United States of America
    Posts
    66
     

    Default

    I'm certainly not an expert on the vagaries of config files, but as an old programmer my suggestion would be to make a backup copy of the config file and then start removing the bits line by line that you think aren't necessary. You could do a full edit and delete all of that you think are the unnecessary bits at once, but just realize that if you do that you might not be able to determine the removal of which particular line of code caused a particular issue. If everything blows up - plug in a copy of the backup and start over. Just make sure you keep a copy of that backup file until at least everything is performing as you expect.

  4. #4
    Join Date
    May 2018
    Location
    Australia, NSW
    Posts
    1,221
     

    Default

    I think - but I may be wrong, but I believe you should select to "Delete Faulty or missing assets" in the route. Otherwise your attempt to edit the config file will be overwritten by the route itself if this isn't done, and should also save you editing the config file. Hopefully someone can confirm or otherwise.

  5. #5
    Join Date
    Nov 2006
    Location
    Australia
    Posts
    5,827
     

    Default

    Jeff --

    I found the same when I merged several layouts.

    I made a backup cdp of the layout, edited the config file to remove all the unneeded entries. It worked. But DO make the backup -- just in case.

  6. #6
    Join Date
    Dec 2011
    Location
    USA Florida Illinois
    Posts
    887
    Blog Entries
    1
     

    Default

    Quote Originally Posted by Alikiwi View Post
    I think - but I may be wrong, but I believe you should select to "Delete Faulty or missing assets" in the route. Otherwise your attempt to edit the config file will be overwritten by the route itself if this isn't done, and should also save you editing the config file. Hopefully someone can confirm or otherwise.
    I tried removing KUID's from the config file manually and it did not go well. Since then, I have used the Remove Missing Assets from the Surveyor menu and that works best in my cases.
    If it's not broke, don't fix it.


  7. #7
    Join Date
    Nov 2006
    Location
    Australia, NSW, Sydney
    Posts
    7,149
    Blog Entries
    3
     

    Default

    My experience and advice is NOT to manually remove any items in the <kuid-table> or <string-table> lists. These lists, from my observations, are rebuilt every-time the route is loaded into Surveyor and Driver. It is constructed from data in the various other map and object files that are saved with the route so the deleted items will be returned to the list. The best advice, as pointed out in several posts above, is to use the Delete Missing Assets function.

    However, as the config.txt file is a pure text file, any overhead created by excessive entries in the lists will be minimal - particularly is the route is several MBs in size. For example, my current route under construction has a config.txt of 370kB out of a total of 171MB.
    Last edited by pware; November 21st, 2020 at 07:37 AM.
    TRS19 Platinum Edition SP2 (RC) 109641

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •