Tip/Trick: How to increase the amount of debugging information in the Jetlog.txt file

shaneturner12

Tutorial Creator
In TS12, the Jetlog file does not store much information, and earlier versions can be made to store more information from the scripting engine.

This can be done by adding at least two out of the following three entries into trainzoptions.txt, which is in the Trainz installation folder: (Items in bold are required entries, items that are not bold are optional, but will help increase the level of debugging information)

-enablescriptlogging
-enablescriptmessagelogging
-debug

Notes/Warnings

  • Adding any of these entries will slow Trainz down to a certain extent as it will be writing to Jetlog.txt more often.
  • There is a side effect of the -debug entry: the Shift key on the keyboard is remapped to a new function. This function is to speed up game time, but be aware that this can have undesirable effects including derailments.
  • The Jetlog file can become significantly larger when these entries are in effect - if the file is too large for Notepad to open, try ConTEXT from http://www.context-editor.org.
Shane
 
I've just tried adding all three entries to trainzoptions.txt. Alas, TS12 didn't write anything to either of the JetLog files. :(

EDIT: Which proved to be one excellent example of when to run Trainz with admin privileges ;) Dooooh!
 
Last edited:
Back
Top