CCG/Modelling: TrainzOptions File

From TrainzOnline
< CCG(Difference between revisions)
Jump to: navigation, search
(New page: ==TrainzOptions File== The '''trainzoptions.txt''' file specifies a number of settings for Trainz, and for a default installation of it is found in the C:\Program Files\Auran\TS2009 direct...)
 
m (TrainzOptions File)
 
(3 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
:<font color="red">-intro=disable</font>
 
:<font color="red">-intro=disable</font>
  
Don't forget to start the commands with a '''hyphen (-)''' and save the file.
 
  
  
 
+
'''4.''' To determine the coordinates for the viewpoints to be used for a cabin cameralist, five values are required:
'''4.''' To determine the coordinates for the viewpoints to be used for a cabin cameralist, six values are required:
+
:0,0,0,0,0 =left/right, front/back, up/down, yaw, pitch.
:0,0,0,0,0,0 =left/right, front/back, up/down, yaw, pitch.
+
  
 
To determine these variables, add the following line to trainzoptions.txt file.
 
To determine these variables, add the following line to trainzoptions.txt file.
Line 33: Line 31:
 
Pan around the interior in Driver, using arrow keys and mouse. Viewing co-ordinates are displayed at the bottom left of the screen. Make sure you include any negative sign for coordinates where appropriate when entering them in CCP for the config.txt file.
 
Pan around the interior in Driver, using arrow keys and mouse. Viewing co-ordinates are displayed at the bottom left of the screen. Make sure you include any negative sign for coordinates where appropriate when entering them in CCP for the config.txt file.
  
 +
 +
 +
'''5.''' As of TS12, writes to the Jetlog.txt file through Interface.Print() and Interface.Log() calls are disabled. If you are debugging your scripts, you can enable writes to the Jetlog.txt by enabling the following lines to trainzoptions.txt file.
 +
:<font color="red">-enablescriptlogging</font>
 +
:<font color="red">-enablescriptmessagelogging</font>
 +
 +
These will enable writes from Interface.Log() and Interface.Print() respectively.
 +
 +
 +
Don't forget to start the commands with a '''hyphen (-)''' and save the file.
  
  

Latest revision as of 14:07, 13 June 2014

[edit] TrainzOptions File

The trainzoptions.txt file specifies a number of settings for Trainz, and for a default installation of it is found in the C:\Program Files\Auran\TS2009 directory. It is a standard text file and may be edited.

1. As a creator, you may have an asset placed in a map, and you would like to find the creator for that asset.

While the asset name may be shown in the Surveyor menu and then the item located in CMP, it is sometimes useful to have the kuid of the asset displayed in the bottom right corner of the Surveyor screen when you select the asset, (use the get tool in the Surveyor menu for that object type).

By adding the following line to the trainzclassicoptions.txt file, the kuids of a placed and selected object will displayed in Surveyor:

-showkuids


2. When testing a traincar asset or track configuration in Driver, sometimes it is helpful if the locomotive moves a faster speed than normal. This is achieved by adding the following line to the trainzcoptions.txt file.

-debug

In Driver, use the arrow keys or speed dial to set the speed and direction, then hold down the Shift key. The train will move around the track at high speed.


3. When creating, Trainz has to be loaded regularly to test the models. To speed up loading time, you can disable the introduction screens by entering the line in the trainzoptions.txt file:

-intro=disable


4. To determine the coordinates for the viewpoints to be used for a cabin cameralist, five values are required:

0,0,0,0,0 =left/right, front/back, up/down, yaw, pitch.

To determine these variables, add the following line to trainzoptions.txt file.

-freeintcam

Pan around the interior in Driver, using arrow keys and mouse. Viewing co-ordinates are displayed at the bottom left of the screen. Make sure you include any negative sign for coordinates where appropriate when entering them in CCP for the config.txt file.


5. As of TS12, writes to the Jetlog.txt file through Interface.Print() and Interface.Log() calls are disabled. If you are debugging your scripts, you can enable writes to the Jetlog.txt by enabling the following lines to trainzoptions.txt file.

-enablescriptlogging
-enablescriptmessagelogging

These will enable writes from Interface.Log() and Interface.Print() respectively.


Don't forget to start the commands with a hyphen (-) and save the file.


Previous Page . . . . Next Page

[edit] Return to CCG Index

Content Creator's Guide

Personal tools