A not so simple question

eswearingen

New member
Here's one that I hope the only answer isn't no:

Is it possible while in surveyor to export a listing of all track mark, junction and industry names to a .csv or .txt file? I have a spreadsheet that I use to keep track of all of this stuff, and it wouldn't take much to write a script to import a file any time it gets updated. And with dual monitors, I can have (and usually do) have both Trainz and Excel open and viewable at the same time.

Thanks again,

Eric
 
Look at the config file for your route. Copy the string table to the clipboard and paste it into a .txt file. Any tidying up can take place there.
 
LOL... I'm already doing that, but I have to leave Surveyor, go into CM, do all that, and then go back in to Surveyor. I'm pretty lazy by nature and would rather just export them from Surveyor and let Excel do the rest as soon as it sees an updated file.
 
Open cmp select your content and look for the route and session of the map you want. Open both in edit with explorer and then open the config files. Here you will have a complete list of all TM's etc. Just copy all of what you need. Dont think you can import the file unless you can trace the folder its in after trainz changes the name of the folder. You can copy this file to another location if you need to read it.
 
Last edited:
Here's one that I hope the only answer isn't no:

Is it possible while in surveyor to export a listing of all track mark, junction and industry names to a .csv or .txt file? I have a spreadsheet that I use to keep track of all of this stuff, and it wouldn't take much to write a script to import a file any time it gets updated. And with dual monitors, I can have (and usually do) have both Trainz and Excel open and viewable at the same time.

Thanks again,

Eric

Sorrry, Eric - It is not possible to output text or any other types of file while in Surveyor or Driver modes. The only way, other than what is mentioned above, is to write log entries to the Jetlog.txt file and read that file into your spreadsheet program. This can only be done after the Trainz probram has been closed.

A VB filter program needs to be written to select the records of significance and write then to a csv or txt file. For the purposes of listing trackmark names this could be done by using the World.GetTrackMarkList() function.

Cheers - Trevor
 
Back
Top