Home > Tutorials > Setting up scripting syntax for Trainz Scipt

Setting up scripting syntax for Trainz Script

The information contained on this page is the method used by myself and is not considered to be either a standard or a recommended protocol for laying out trainz script but in my opinion it makes navigation and identification much easier.

Protocols

The following items are used for highlighting the syntax that I use when creating scripts. I always prefix variables with a three digit lower case value. For exampe a string will always have a prefix of str. That way I can always tell at a glance what a variable is. In the case of an array or a public variable I add a further prefix of either an a or p respecitvely. This is useful to quickly identify an array or a public string.

Another protocol that I follow is to always have the opening curly bracket (or braces or Nances) on the same line as the statement. For example'

if (intX == intY) {

I follow this protocol for functions and classes as well. If you use the syntax highlighting text listed below then this protocol must be followed in order to allow UltraEdit to identify the functions in the script.

I also follow another protocol in regards to classes and custom functions. With classes I prefix a lower case cls to the class name and with function I prefix cfn to the function name. This has two effects, one it allows the highlighter to find the function easier and two it keeps all my custom functions together in the function list. \

Finally the last protocol that I follow and from what I have seen most other sciptors use as well and that is to indent each new statement with two additional spaces to its predessor as follows;

class es44ac isclass Locomotive {
  string cfnAlerts(string strVariable, MapObject mpoObject) {
    if (strVariable == "Visual") {
     }
   }
};

This allows the start and end of statments and functions to be followed through and allows easier identification of missing curly brackets.

 

The following is a complete list of variable prefixes that I use. Do not add this section to your UltraEdit highlighters.

** acc //Acceleration
** ast //Asset
** bgy //Bogey
** bln //boolean
** brs //Browser
** cbd //CabinData
** ccl //CabinControl
** crs //Crossing
** dct //DriverCharacter
** dcd //DriverCommand
** dcs //DriverCommands
** flt //float
** gmo //GameObject
** gso //GSObject
** gts //GSTrackSearch
** tkd //KUID
** idc //
** iiq //IndustryProductInfoQueues
** ind //Industry
** int //Integer
** ipc //IndustryProductInfoComplete
** ipt //IndustryProductInfoTracks
** ipp //IndustryProductInfoProcess
** ipq //IPICQueue
** ips //IPICProcess
** jct //Junction
** lcd //LocoData
** lcv //Locomotive
** lda //LinkedData
** lib //Library
** lrp //LoadingReport
** llt //
** mpo //MapObject
** mnu //Menu
** msg //Message
** ola //OAChat
** pdf //ProductFilter
** pdq //ProductQueue
** req //Requirement
** rsr //ResourceRequirement
** scb //ScenarioBehavior
** sig //Signal
** stb //StringTable
** str //string
** swt //SceneryWithTrack
** tsd //Trackside
** tmk //TrackMark
** trk //Track
** trn //Train
** tsp //Soup
** ttx //TrainzText
** veh //Vehicle

 

 

Following is the Trainz Script and Trainz Config highlighters. Make sure you add these to the end of the Wordfile. This file can be accessed via the "Advanced", "Configuration" menu and then select "Editor Display" and then "Syntax Highlighting"

If you already have L10 and L11 languages added to the wordfile then you will need to index the L10 and L11.

 

/L10"TrainzScript" Line Comment = // Block Comment On = /* Block Comment Off = */ String Chars = "' File Extensions = GS
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .?
/Function String 1 = "public ** {"
/Function String 2 = "void ** {"
/Function String 3 = "string ** {"
/Function String 4 = "class ** {"
/Function String 5 = "float ** {"
/Function String 6 = "bool ** {"
/Indent Strings = "{"
/Unindent Strings = "}"
/C1"TrainzScript_Keywords"
and
break bool
case cast char continue copy class
default define
else
false final float for
game goto
if include inherited int isclass
me
native new null
object on or
public
return
size static string switch
true thread
wait while
void
/C2"TrainzScript_Classes_and_Declarations"
Asset Acceleration
Browser BrowserInterface Buildable Bogey BaseIndustry
Cabin CabinControl CabinData Command Constructors CustomCommand Crossing
DefaultLocomotiveCabin DriverCharacter DriverCommand DriverCommands DriverScheduleCommand
GameObject GenericIndustry GSObject GSTrackSearch
HTMLWindow
Industry IndustryProcessInfo IndustryProductInfo IndustryTrainController Interface InterfaceAlert InterfaceObjective IndustryProductInfoProcess IPICQueue
IndustryProductInfoQueues IndustryProductInfoComplete IndustryProductInfoTracks IPICProcess
industryProductInfoCollection
Junction
KUID
Library LoadingReport Locomotive LocoData LinkedList LinkedData
MapObject Math Menu MeshObject Message ModuleScript
Navigate
OAChat
PassengerStation Permit ProductFilter ProductQueue PropertyObject
Requirement ResourceRequirement Router
Scenario ScenarioBehavior ScenarioStringTable ScenarioSupport Schedule ShuntTrack Signal SignalBehaviour Soup StationBehaviour Str StringTable
SceneryWithTrack
TimeTable TimetableState Track TrackMark Trackside Train TrainUtil Trainz Trigger TurnTable TrainzText
Vehicle
World World1
** cfn //Custom Function
** cls //Class
/C3"TrainzScript_Functions"
Abs AddAssetToIndustryProductInfo AddCommandMenuItem AddDriverCharacter AddDriverCommand AddDriverScheduleCommand AddHandler AddItem AddProduct
AddProductCategory AddSoup AddSubmenu AddTrain AddVehicle AddVehicleLock AddVelocity AdjustScore Alert AllowManualControl AlreadyThereStr Announce
AppendDriverDestinations AppendFilter AppendProductList AreInTrain Add AccessProductInfo AddProcessToProduct AddProductTrack AddQueueToProduct
BaseIndustryMain BeginExecute BeginLoad BeginUnload BeginTrackSearch
CancelBuild CanLoadProductFromQueue CanMoveToNextStop CanMoveToPrevStop CanUnloadProductToQueue Clear ClearParams ClearProcess ClearTrainCommand
ClearTrainTimetable Colour_Blue Colour_Cyan Colour_Green Colour_Red Colour_White Colour_Yellow CompleteJunctions Copy CopyFilter CountItems
CountProductMatching CountTags CountVehicles CountVehiclesNotAdded CoupleVehicle CreateBehavior CreateBrowser CreateLoadingReport CreateProduct
CreateScheduleCommand CreateTrain CreateTrainFromSoup CreateUnloadingReport Custom ConvertUnitsToValue ConvertValueToUnits CheckBox CompareStrLists
DecTrainBusy DeleteTrain DeleteVehicle Derail DestroyAllProducts DestroyProductMatching DoCoupleUp DoDecouple DoesAcceptProduct DoesAcceptProductCategory
DoesMatch DoInstructions DriveForever DriverBeginIssueSchedule DriverCoupleVehicle DriverCustomCommand DriverDriveForever DriverIssueSchedule
DriverSetAllowCoupling DriverTakeJunction DriverThroughTrackMark DriverTurnAround DriverVisitScenery DriverVisitTrack DriverVisitTrackMark
DriveThroughTrackMark DoesUseInputForSurveyor DoesUseOutputForSurveyor DoesAnythingForSurveyor DoesProductHaveProcess DoesProductHaveTrack
data
EnablePhysics EnableUserCancelBuild EnableUserStartBuild EndExecute EndLoad EndScenario EndUnload Exception Execute EndFontColor EndRow EndCell EndIndent
EndBorder EndTable EndLink
Fabs FadeScreen FindAsset FindDriverCommand FindTriggerContainingNode FireAddCoal Fmax Fmin FindIPICQueue FindIPICProcess
GenericIndustryMain Get GetActiveDriver GetAdvisoryLimit GetAllowsUserControl GetAmount GetAsset GetAssetList GetAssetTitleHTMLCode GetAsSoup GetAttachedTrack
GetAutopilotMode GetAutopilotStopJunction GetAutopilotStopTrain GetAuxReservoirPressure GetBehaviors GetBrakeCylinderPressure GetBrakePipePressure
GetBuildingProgress GetBuildingState GetCabinData GetCompleteIndustryViewDetailsHTMLCode GetConfigSoup GetControls GetCouplingDirection GetCurrentModule
GetDCCThrottle GetDescriptionHTML GetDirection GetDirectionRelativeToTrain GetBogeyList GetQueueName GetTrackIndex GetProductQueue GetTrackName
GetDirectionToTrain GetDisplayHeight GetDisplayWidth GetDriverCharacter GetDriverCharacterList GetDriverCommand GetDriverCommandList GetDriverCommands GetDst
GetDstIndustry GetDstQueue GetDstVehicle GetElementProperty GetEngineParam GetEngineSetting GetEngineType GetFacingRelativeToTrain GetFrontmostLocomotive
GetFXAttachment GetGameObject GetGameTime GetHeadlightState GetHTMLString GetIcon GetId GetIndexedTagName GetIndexForNamedTag GetIndustryList
GetInputOutputPropertyHTMLCode GetJunctionList GetKUID GetLanguage GetLastVisitedBuildable GetLastVisitedIndustry GetLength GetLibrary GetLoadTime
GetLocalisedName GetLocation GetLogString GetManualControl GetMass GetMaximum GetMeshAnimationFrameCount GetMetricMode GetMinimum GetMyTrain GetName
GetNamedControl GetNamedSoup GetNamedTag GetNamedTagAsBool GetNamedTagAsFloat GetNamedTagAsInt GetNamedTagAsKUID GetObject GetPantographState GetParentObject
GetPercentHTMLCode GetPhysicsModel GetPressureParam GetProcessDuration GetProcessEnabled GetProcessInput GetProcessIOAmount GetProcessIOProduct
GetProcessIOQueue GetProcessNameList GetProcessOutput GetProcessStarted GetProductCategories GetProductCategory GetProductFilter GetProductList
GetProductRestriction GetProducts GetProperties GetPropertyDescription GetPropertyElementList GetPropertyHandler GetPropertyName GetPropertyType
GetPropertyValue GetQueue GetQueueCount GetQueues GetQueueSize GetQueueSpace GetRelationToTrack GetRequirements GetResource GetRunningNumber GetScheduleObject
GetScheduleState GetScheduleStateString GetScore GetSeconds GetSignalList GetSignalLit GetSignalState GetSignalStateEx GetSpeedLimit GetSrcIndustry
GetSrcVehicle GetState GetStateFlags GetStopPosition GetString GetString0 GetString1 GetString2 GetString3 GetString4 GetString5 GetString6 GetString7
GetString8 GetString9 GetString10 GetStringTable GetTooltip GetTrack GetTrackGradient GetTrackmarkDirection GetTrackMarkList GetTrackPriorityNumber GetTrain
GetTrainBrakes GetTrainCommand GetTrainDisplayName GetTrainList GetTrainPriorityNumber GetTrainTimetable GetTrainzAsset GetTrainzStrings GetTriggerList
GetTriggerTrack GetUnloadTime GetUpTo GetValue GetVehicleList GetVehicles GetVelocity GetWeatherChangeability GetWeatherType GetWindowLeft
GetLocalUserProfileName GetDistance GetFacingRelativeToSearchDirection GetMapObject GetChildBehaviors GetProductIndexFromAsset GetFloatAsTimeString
GetTimeStringAsFloat GetCleanTimeString GetCleanFloatString GetSecondsFromFloat GetMinutesFromFloat GetHoursFromFloat GetAfter GetReadableTime
GetHumanReadableNameFromTrackName GetUiIsExpanded GetIPICQueue GetProductIndex GetProduct GetProcessName GetProcessIndex GetIPICQueueByIndex GetInputQueue
GetOutputQueue GetVehicleKUID GetPerVehicleAmount GetDisplayType GetIPICProcess GetVisibleInSurveyor GetVisibleInViewDetails GetOutputAmount
GetIndexByIPICQueue GetInitialAmount GetWaybillRemain GetWaybillIssuePercent GetQueueIndex GetInputIPIQ GetQueueWaybillIssuePercent GetQueueWaybillRemain
GetIPICProduct GetRelatedProducts GetEnabled GetIPIQ GetProcessIndexFromName GetVehicleTypeFlags GetMessageWindowVisible GetWindowHeight GetWindowWidth
HandleTrain HandleTrainLoadCommand HandleTrainUnloadCommand HasMesh HasReachedJunctionInnerRadius HasTrack HasTrainTimetable HelpButton HasPrefix HasSufix
HideAllQueueItems HideAllProcessItemsOut HideAllProcessItemsIn HighlightButtonBarElement
IncTrainBusy Info Init InnerReEnter InnerReEnterTrain IntersectFilter IsActive IsAlreadyAdded IsComplete IsControllingTrain IsControllingVehicle
IsForSameObjectAs IsGranted IsInTrain IsInTrigger IsInTunnel IsLocked IsLockedVehicle IsMoving IsOnBridge IsPartTrainInTrigger IsPaused IsReleased
IsRunningCommand IsScheduleRunning IsStillInJunction IsStopped IssueNextCommand IsTrainBusy IsTrainCommand IsTrainInTrigger IsTrainInTriggers IsTrainLocked
IsVisible
ipicCollection index
Left LibraryCall LightSignal LinkPropertyValue Load LoadHTMLFile LoadHTMLString LoadMap LoadProduct LockJunction Log LogResult LookupKUIDTable
ManageBrowser Mid Monitor MoveToNextStop MoveToPrevStop MoveToStop
MakeBold MakeItalic MakeFontSizeTiny MakeFontSizeSmall MakeFontSizeMedium MakeFontSizeLarge MakeFontColor MakeFontColorBlack MakeFontColorWhite
MakeCell MakeSpacerCell MakeRow MakeTable MakeLink MakeImage
mode
NavigateToIndustry NavigateToTrackside NavigateToVehicle NewBrowser NewDriverCommands NewMenu NewProductFilter NewSoup NotifyProcessFinished
NotifyProcessStarted NotifyUser
Objective OnAnnounce OnAnnouncement OnJunction OnTrigger
Pause PerformInnerEnterMoving PerformInnerEnterStop PerformMovingLoad PerformProcessCancelled PerformProcessFinished PerformProcessInput PerformProcessOutput
PerformProcessStarted PerformStopped PerformStoppedLoad PerformStoppedNoTrigger Play2DSound PlaySound PopScheduleState PostMessage Print
PropertyBrowserRefresh PushScheduleState PlaySoundScriptEvent PadZerosOnFront
processes
Quote
queues
RadioButton Rand RandBool ReEnter ReissueLastCommand Release RemoveAllUnlockedVehicles RemoveDriverCharacter RemoveDriverCommand RemoveProduct
RemoveProductCategory RemoveVehicle RemoveVehicleLock Reposition RequestPermit RequestPermitForTrain RequestTrackPermit ReSendStoppedMessages Reset
ResetResults ResetTimetable Reverse ReverseTrain Right RunSchedule RunTurnTable RemoveQueue RemoveQueueFromProduct
Save SelectCabinDCC SendMessage SetAdhesion SetAdvisoryLimit SetAlert SetAutopilotMode SetAutopilotTarget SetAutopilotTargetMinimumSpeed SetBail
SetBrakePipeEfficiency SetBrokenBrakes SetBrokenReverser SetBrokenThrottle SetBuildingPaused SetBuildingProgress SetBuildingState SetCabinData SetCamera
SetCameraAngle SetCameraFlags SetCameraMode SetCloseEnabled SetComplete SetCompressorEfficiency SetCouplingMask SetDCCMode SetDCCThrottle SetDecouplingMask
SetDefaults SetDerailLevel SetDirection SetDriverCharacter SetDriverCommands SetDynamicBrakeMode SetElementProperty SetEngineSetting SetFloatingLimit
SetFXAnimationState SetFXAttachment SetFXCoronaTexture SetFXNameText SetFXTextureReplacement SetGameTime SetGameTimeRate SetHandBrake SetHasDriver
SetHeadlightState SetLocalisedName SetLocation SetLocked SetManualThrottle SetMeshAnimationFrame SetMeshAnimationSpeed SetMeshAnimationState SetMetricMode
SetNamedSoup SetNamedTag SetNamedValue SetObjective SetObjectiveIcon SetOverlayColor SetPantographState SetParam SetPhysicsMode SetPitchBasedOnSpeed
SetPitchBasedOnTrack SetProcessDuration SetProcessEnabled SetProcessInput SetProcessOutput SetProductDisabled SetProductFilter SetProductRestriction
SetProperties SetPropertyHandler SetPropertyValue SetQueueInitialCount SetResults SetReverser SetRollBasedOnTrack SetRunningNumber SetSaveAllowed SetScore
SetSignal SetSignalState SetSignalStateEx SetSpeedLimit SetStateFlags SetTargetObserver SetText SetTooltip SetTrackPriorityNumber SetTrainBrakes
SetTrainCommand SetTrainPriorityNumber SetTrainSpeed SetTrainTimetable SetTrainzText SetUserLimits SetValue SetVehicleSpeed SetVelocity SetVisible SetWeather
SetWindowRect SetWindowStyle SetWindowVisible ShouldIgnoreVehicle ShowInConsistMenu ShowObjective ShowOnScreenHelp SetWindowHeight SetWindowWidth Sleep Sniff
SoundHorn Sqrt StartBuild StartMeshAnimationLoop Station StopAtScenery StopAtTrackMark StopAtTrigger StopMeshAnimation StopSchedule StopTrain SwitchForTrain
SetCrossingAutomatic SetCrossingState SetCabLightIntensity StopSoundScriptEvent SetMeshVisible SearchNext StrSubst Sort SetSize SetWaybillRemain
SetWaybillIssuePercent SetInitialAmount StartFontColor StartFontColorBlack StartFontColorWhite StartRow StartCell StringToUnits StartIndent StartBorder
StartTable StartLink SetUiIsExpanded SetInputQueue SetInputAmount SetOutputQueue SetOutputAmount SetVehicleKUID SetPerVehicleAmount SetDisplayType SetProduct
SetDuration SetEnabled SetQueueWaybillRemain SetQueueWaybillIssuePercent SetIPICQueue SetVisibleInSurveyor SetVisibleInViewDetails SetQueueSize
SetWindowPosition SetMessageWindowVisible ShowDriverButtonMenu
TakeJunction TakeTrackPermit TestTrackPermit ThreadEndPipeAnimation ThreadPerformMovingLoad ThreadPerformStoppedLoad ToFloat ToInt Tokens ToLower ToUpper
TrackSearch TrainBadCouple TrainCollided TrainDerailed TrainOverAdvisorySpeed TrainOverSpeed TrainSpeedingFine TransferProductFrom
TriggerSupportsMassMovingLoad TriggerSupportsMassStoppedLoad TriggerSupportsMovingLoad TriggerSupportsStoppedLoad TrimLeft TrimRight Turnaround
text tracks
UnAnnounce Uncouple UnloadProduct UnpackFloat UnpackInt UnpackString Update UpdateScheduleWindow UserPressKey UserSetCamera UserSetCameraMode UserSetControl
UnitsToString
uiIsExpanded userDescription userDescription
ViewDetails
WaitUntilHas WasComplete WasGranted WasRunScheduleSuccessful WarnObsolete
/C4"TrainzScript_Set_Variables"
ACTION_LOADING ACTION_NOTHING ACTION_UNLOADING
CAMERA_EXTERNAL CAMERA_INTERNAL CAMERA_LOCKED CAMERA_NORMAL CAMERA_ROAMING CAMERA_SWITCH_TRAINS CAMERA_SWITCH_VEHICLES CAMERA_SWITCH_VIEWS CAMERA_TRACKING
CMD_ANNOUNCE CMD_COMPLETE_JUNCTIONS CMD_COUPLE_VEHICLE CMD_CUSTOM CMD_DELETE_TRAIN CMD_DRIVE_FOREVER CMD_ON_ANNOUNCEMENT CMD_ON_TRIGGER CMD_POST_MESSAGE
CMD_RESET_TIMETABLE CMD_REVERSE_TRAIN CMD_SET_SIGNAL CMD_STOP_AT_SCENERY CMD_STOP_AT_TRIGGER CMD_STOP_TRAIN CMD_TAKE_JUNCTION CMD_TAKE_TRACK_PERMIT
COMPLETE CONTROL_AUTOMANUAL CONTROL_AUTOPILOT CONTROL_MANUAL CONTROL_SCRIPT COUPLE_BACK COUPLE_BOTH COUPLE_FRONT COUPLE_NONE
DIRECTION_BACKWARD DIRECTION_FORWARD DIRECTION_LEFT DIRECTION_NONE DIRECTION_RIGHT DOES_COMPLETE DRIVER_MODULE DYNAMIC_BRAKE_BRAKE DYNAMIC_BRAKE_NEUTRAL
DYNAMIC_BRAKE_TRACTION DISPLAY_TYPE_MASS DISPLAY_TYPE_VOLUME DISPLAY_TYPE_COUNT
ENGINE_NONE ENGINE_STANDARD ENGINE_STEAM EX_ADVANCE_CAUTION EX_ADVANCE_CAUTION_LEFT EX_ADVANCE_CAUTION_RIGHT EX_CAUTION EX_CAUTION_LEFT EX_CAUTION_RIGHT
EX_MEDIUM EX_PROCEED EX_PROCEED_LEFT EX_PROCEED_RIGHT EX_SLOW EX_STOP EX_STOP_THEN_CONTINUE
GREEN
JUNCTION_ENTER JUNCTION_INNERENTER JUNCTION_INNERLEAVE JUNCTION_LEAVE JUNCTION_STOPPED
KPH_TO_MPS
LEFT_SIDE LOAD_COMMAND
MESSAGE_BROADCAST MPH_TO_KPH MPH_TO_MPS
NO_MODULE NONE NOT_STUCK
PAUSED PHYSICS_DCC PHYSICS_SIMULATION
RED RESULT_BACKWARD RESULT_FORWARD RESULT_INSIDE RESULT_NONE RIGHT_SIDE
SS_DRIVING SS_JUNCTION SS_JUNCTION_TRACK SS_NONE SS_STOP SS_TRACK SS_TURNAROUND SS_VEHICLE STATE_BUILDING STATE_COMPLETE STATE_GRANTED STATE_POTENTIAL
STATE_RELEASED STATE_REQUESTING STUCK_DELAYED STUCK_FULLY STYLE_DEFAULT STYLE_NO_FRAME STYLE_TOOLTIP SURVEYOR_MODULE
TIME_DAY TIME_HOUR TIME_MINUTE TIME_RATE_1200X TIME_RATE_120X TIME_RATE_1440X TIME_RATE_16X TIME_RATE_1X TIME_RATE_240X TIME_RATE_2X TIME_RATE_32X
TIME_RATE_360X TIME_RATE_480X TIME_RATE_4X TIME_RATE_60X TIME_RATE_720X TIME_RATE_8X TIME_RATE_960X TIME_SECOND TOP_SIDE TRACTION_FORWARD TRACTION_NEUTRAL
TRACTION_REVERSE TRAIN_BRAKE_APPLICATION TRAIN_BRAKE_EMERGENCY TRAIN_BRAKE_HANDLE_OFF TRAIN_BRAKE_INITIAL TRAIN_BRAKE_LAP TRAIN_BRAKE_RELEASE TRAIN_IS_STUCK
TRAIN_NOT_STUCK TRIGGER_ENTER TRIGGER_LEAVE TRIGGER_STOPPED TYPE_TENDER TYPE_HAS_INTERIOR TYPE_LOCOMOTIVE
UNLOAD_COMMAND
WAS_COMPLETE WEATHER_CHANGEABILITY_EXTREME WEATHER_CHANGEABILITY_NONE WEATHER_CHANGEABILITY_PERIODIC WEATHER_TYPE_CLEAR WEATHER_TYPE_CLOUDY
WEATHER_TYPE_DRIZZLE WEATHER_TYPE_HEAVY_SNOW WEATHER_TYPE_LIGHT_SNOW WEATHER_TYPE_MEDIUM_SNOW WEATHER_TYPE_RAIN WEATHER_TYPE_STORMY
YELLOW
/C5"TrainzScript_Values"
allowCoupling amount
blowdown_lever_val
cause colour command commands couplingMask ctrl_name ctrl_value custom
dccMode decouplingMask defaultSignalBehaviour defaultStationBehaviour delay desiredAmount done dst dstQueue dynamic_brake_lever
equaliser_needle extension
facing fire_plates_val fireboxDoorOpen flow_needle
handbrake horn_rope
icon industryProductList info isInput itc
left_sliding_window_val left_window_val light_switch limitCouplingTo load lockControlsOnRed loco loco_brake_lever log
m_asset main main_reservoir_needle major minor mwstopped
name no3_pipe_needle notifyDriver number
obj objective observers overrun
pantograph_lever pipeName processName
queue
regulator_lever_val releasePermitsWhenComplete resource reverse reverser_lever right_sliding_window_val right_window_val runningNumber runred
sanding_lever_val score seat0_val seat1_val showInConsistMenu showInViewDetails sideFlags src srcQueue state stateName stopped
throttle_lever time timeTableInfo train_brake_lever train_lapbrake_lever trigger
usePipeAnimation useGenericViewDetails
value vehicle version
warning wav wheelslip_light whistle_lever_val
/C6"TrainzScript_Special_Words"
** abgy //Array Bogey
** acc //Acceleration
** aflt //Array Float
** agso //Array GSObject
** apdq //Array Product
** ast //Asset
** aveh //Array Vehicle
** bgy //Bogey
** bln //bool
** brs //Browser
** cbd //CabinData
** ccl //CabinControl
** crs //Crossing
** dct //DriverCharacter
** dcd //DriverCommand
** dcs //DriverCommands
** flt //float
** gmo //GameObject
** gso //GSObject
** gts //GSTrackSearch
** tkd //KUID
** idc //
** iiq //IndustryProductInfoQueues
** ind //Industry
** int //Integer
** ipc //IndustryProductInfoComplete
** ipt //IndustryProductInfoTracks
** ipp //IndustryProductInfoProcess
** ipq //IPICQueue
** ips //IPICProcess
** jct //Junction
** lcd //LocoData
** lcv //Locomotive
** lda //LinkedData
** lib //Library
** lrp //LoadingReport
** llt //
** mpo //MapObject
** mnu //Menu
** msg //Message
** ola //OAChat
** pbln //Public Boolean
** pdf //ProductFilter
** pint //Public Integer
** pdq //ProductQueue
** pflt //Public Float
** pstr //Public String
** req //Requirement
** rsr //ResourceRequirement
** scb //ScenarioBehavior
** sig //Signal
** stb //StringTable
** str //string
** swt //SceneryWithTrack
** tsd //Trackside
** tmk //TrackMark
** trk //Track
** trn //Train
** tsp //Soup
** ttx //TrainzText
** veh //Vehicle
/C7"TrainzScript_Operators"
+
-
=
// /
%
&
>>
<
^
!
|
(
)

/C8"TrainzScript_Curly_Brackets"
{
}

 

/L11"TrainzConfig" Line Comment = ; String Chars = " File Names = CONFIG.TXT CONFIGTRS2004.TXT
/Delimiters = ~!@%^&*()+=|{}[]:;'<> , ?
/Function String 1 = "** {"
/Indent Strings = "{"
/Unindent Strings = "}"
/C1"TrainzConfig_Keywords"
allowed-products amount anim animated-mesh animation-loop-fltSpeed asset-filename att att-parent auto-create attachment-points
camera0 camera1 camera2 camera3 camera4 camera5 camera6 conflicts-with-queues
default default-mesh default-night directional duration
effects
fontcolor fontsize frequency
im initial-count inputs
kin kind kuid kuid2
lm looped
mesh mode mass
name
night-mesh-base
object-size outputs
pm product-kuid
shadow size fltSpeed start-enabled
texture-kuid time turntable
vertices
/C2"TrainzConfig_Types"
1800s 1810s 1820s 1830s 1840s 1850s 1860s 1870s 1880s 1890s 1900s 1910s 1920s 1930s 1940s 1950s 1960s 1970s 1980s 1990s 2000s 2010s
AA AC ACTIVITY AD AE AF AG AH AI AL AM AN ANIM AO AQ AR AS AT AU AW AZ
BA BB BC BD BE BEHAVIOR BF BG BH BI BIN BJ BM BN BO BOGEY BPF BPN BR BRIDGE BS BT BU BV BW BY BZ
category-class category-era-0 category-era-1 category-era-2 category-era-3 category-era-4 category-era-5 category-era-6 category-era-7 category-era-8 category-era-9 category-era-10
category-era-11 category-era category-era-12 category-era-13 category-era-14 category-era-15 category-era-16 category-era-17 category-era-18 category-era-19 category-era-20 category-era-21
category-region category-region-0 category-region-1 category-region-2 category-region-3 category-region-4 category-region-5 category-region-6 category-region-7 category-region-8
category-region-9 category-region-10
category-keyword class
CA CB CC CF CG CH CI CK CL
description description-de description-es description-fr description-it
DA DE DJ DK DM DO DP DRIVERCHARACTER DX DZ
EC EE EG EH ENGINE ENGINESOUND ENVIRONMENT ES ET EW
FC FF FI FIXEDTRACK FJ FK FM FO FO FR FS FT
GA GB GD GE GF GH GI GL GM GN GP GQ GR GROUNDTEXTURE GS GT GU GW GY
HK HM HM HN HORNSOUND HR HT HTML-ASSET HU
icon0 icon1 icon2 icon3 icon-texture instance-type
IB IC ID IE IL IM IN INDUSTRY INTERIOR IO IP IQ IR IS IT
JC JI JM JO JP
KE KG KH KI KIN KIND KM KN KP KR KUID KUID2 KW KY KZ
LA LB LC LI LK LM LR LS LT LU LV LY
MA MAP MB MC MD ME MESH MF MG MH MI ML MM MN MO MOCROSSING MOJUNCTION MOSIGNAL MOSPEEDBOARD MOTURNTABLE MP MR MS MT MU MV MW MX MY MZ
NA NC NE NF NG NI NL NO NP NR NT NU NZ
OA OH OHD OM
preview-mesh-kuid
PA PANTOGRAPH PB PC PD PE PF PG PH PK PL PM PN PO PP PR PRODUCT PRODUCT-CATEGORY PROFILE PS PT PU PV PW PX PY
QA
running-numbers rn-0 rn-1 rn-2 rn-3
RA RC RD RE RH RO ROAD RP RS RU RW
script smoke0 smoke1 smoke2 smoke3 smoke4 smoke5 smoke6 smoke7 smoke8 smoke9 smoke10 smoke11 smoke12 smoke13 smoke14 smoke15 smoke16 smoke17 smoke18
smoke19 smoke20 smoke21 smoke22 smoke23 smoke24 smoke25 smoke26 surveyor-only
SA SB SC SCENERY SD SE SF SG SH SI SJ SK SL SM SN SO SP SR SS ST SU SV SY SZ
trainz-build
TB TC TD TEXTURE TEXTURE-GROUP TF TG TH TJ TK TL TM TN TO TR TRACK TRAINCAR TT TV TW TZ
username username-de username-es username-fr username-it
UA UG UK UM US UY UZ
VA VC VE VG VI VL VN VS VU
visible-on-minimap
WA WATER2 WF WS WX
XA XAA XAB XB XBD XBG XBI XF XFA XFC XFD XFH XFM XG XGB XGC XGE XGR XGS XGT XH XHB XHC XHE XHR XHS XHT XI XIB XIT XL XLA XLC XLH XR XRI XRM XS XSN XSU XT XTA XTM XTS XV XVG XVP
YD YE YH YM YP YR YS YU
ZA ZB ZE ZH ZI ZM ZP ZR ZS ZW
#
{
}

/C3"TrainzConfig_Attachments"
accel ambient ampmeter_needle angles animated-lever animdist attached-track attached-trigger author auxreservoirvent auxreservoir_no3 auxreservoir_trainbrakepipe autobrakecylindervent
auxreservoir_autobrakecylinder auxreservoir autobrakecylinder auxreservoir_start autobrakecylinder_start axle-count air-drag-coefficient adhesion allows-mixing
bendy bogey bogey-1 bogey-1-r bogey-2 bogey-2-r bogey-3 bogey-3-r bogey-4 bogey-4-r bogey-5 bogey-5-r bogey-6 bogey-6-r bogey-r bploco_equalizer bplocomain_needle bptrainbrakecylinder_needle
bptrainbrakepipe_needle bridgetrack brakepipe brakeinitial brakefull brakeratio
cameradefault cameralist carrate casts_shadows chunky_info chunky_mesh coal collision-parent collision-proxy color company contact-email contact-website compressor
dayloop daysingle dighole direct-drive distance ditch_color dynamicbrake_lever
endlength engine enginesound enginespec enginespecs epreservoirpipe equaliser_mainreservoir equaliservent equaliserventhandleoff equaliserventemergency epreservoirpipe_autobrakecylinder
epreservoirpipe equaliser epreservoirpipe_start equaliser_start adhesion
enabled
file fire firebox fireglow flow_needle fonts fonts-path frame-rate function fuel
grounded
height height-range horn hornsound highfltSpeedexhauster_vacuumbrakepipe highfltSpeedexhauster highspeedexhauster_vacuumbrakepipe highspeedexhauster
image independantbrake_lever initiator interior isroad istrack independantbrakecylinder indbrakefull independantbrakecylinder_start inherit-velocity
keyframes
lever license lifetime light light_color light_switch limits loop loopdelay
maxsize maxfltSpeed maxfltSpeedmph maxfltSpeedkph minsize mode0 mode1 morning mousefltSpeed mainreservoir_ep mainreservoir mainreservoir_start maxvoltage max-accel
max-decel moving-friction-coefficient maxspeed mousespeed
needle night nightmode nostartdelay notches notchheight no3pipe no4pipe no3pipevent no3pipe_mainreservoir no3pipe_autobrakecylinder no3pipe_start no4pipe_start
onlight opacity organisation origin
pantograph pantograph_lever permit-commit permit-edit permit-listing period processes pullrope product-texture particle
radius rate region repeat-delay reversed reverser_lever rollstep rotate rotate-yz-range rotstep resistance
smoke_fastlife smoke_fastfltSpeed smoke_height smoke_random smoke_shade smoke_slowlife snapgrid snapmode sound soundscript fltSpeed fltSpeedlimit fltSpeedo_needle start switch0 surface-area scale
supports-null-driver-character smoke_fastspeed
terminator test-collisions texture throttle_lever toggle trackoffsets trackside trainbrake_lever trainbrakelap_lever trigger tunnel type
trainbrakepipe trainbrakepipe_reservoir trainbrakepipevent trainbrakepipe_start track two-part throttle-notches
uncached-alphas useadjoiningtracktype
value-range velocity vacuumbrakepipe vacuumbrakepipereleasevent vacuumbrakepipevent vacuumbrakereservoir_vacuumbrakepipe vacuumbrakecylinder_vacuumbrakepipe vacuumbrakereservoir
vacuumbrakecylinder vacuumbrakepipe_start vacuumbrakereservoir_start vacuumbrakecylinder_start
width wheelslip_light windows
/C4"TrainzConfig_Kinds"
activity animation attachment
bridge-bridge bridge-tunnel bridge-double track
corona
drivercommand
environment
fixedtrack
groundtexture
industry
library
map mocrossing mojunction mosignal mofltSpeedboard moturntable
name
product product-category profile
scenery
texture texture-group texture-replacement traincar track-rails track-road
water2
/C5"TrainzConfig_Custom_Words"
alerter_HTML accel-negative accel-tens accel-digits all_axle_sand all_axle_sand_light alerter_setting alerter_reset alerter_name alerter_desc alerter_setting_0 alerter_setting_1
assistant
brake-pipe-hundreds brake-pipe-tens brake-pipe-digits brake-pipe-tens-2 brake-pipe-digits-2 bell bell_light body bc-hundreds bc-tens bc-digits bc-tens-2 bc-digits-2 break_downs_name
break_downs_name_desc break_down_setting_0 break_down_setting_1 break_downs break_down_frequency_name break_down_frequency_desc break_down_frequency
coupler-release-front coupler-release-rear couplers cab
digital_fltSpeedo1 digital_reverser digital_notches digital_equalizing digital_brake_pipe digital_rear digital_te_slider dyn_brake_light diesel digital-numbers
digital_flow digital_main digital_bc digital_length digital_rn digital_rnsm digital_fuel digital_te digital_accel ditch_light_flasher dynamic_brake_selector
diesel_fuel_loading0 diesel_fuel_loading1 diesel_fuel_loading2 diesel_fuel_loading3 diesel_fuel_loading4 diesel_fuel_loading5 diesel_fuel_loading6 diesel_fuel_loading7 diesel_fuel_loading8
diesel_fuel_loading9 diesel_fuel_loading10 diesel_fuel_loading11 diesel_fuel_loading12 diesel_fuel_loading13 diesel_fuel_loading14 diesel_fuel_loading15 diesel_fuel_loading16
diesel_fuel_loading17 diesel_fuel_loading18 diesel_fuel_loading19 diesel_fuel_loading20 diesel_fuel_loading21 diesel_fuel_loading22 diesel_fuel_loading23 diesel_fuel_loading24
diesel_fuel_loading25 diesel_fuel_loading26 diesel_fuel_loading27 diesel_fuel_loading28 diesel_fuel_loading29 diesel_fuel_loading30 diesel_fuel_loading31 diesel_fuel_loading32
diesel_fuel_loading33 diesel_fuel_loading34 diesel_fuel_loading35 diesel_fuel_loading36 diesel_fuel_loading37 diesel_fuel_loading38 diesel_fuel_loading39 diesel_fuel_loading40
diesel_fuel_loading41 diesel_unloading0 diesel_unloading1 diesel_unloading2 diesel_unloading3 diesel_in ditch ditch_lights_name ditch_lights_name_desc ditch_light_setting_0
ditch_light_setting_1 ditch_light_setting_2 ditch_lights_distance_name ditch_lights_distance_name_desc ditch_lights ditch_lights_distance ditch-front-left ditch-front-right ditch-rear-left
ditch-rear-right
equalizing-hundreds equalizing-tens equalizing-digits equalizing-tens-2 equalizing-digits-2 eot_move_light efco_stop_switch emergency_brake_lever
fan1 fan2 fan3 front-truck front-coupler fuel-cap-left fuel-cap-right fuel_light front_door front_door-collision-box fridge_door fuel-crane fuel_level_gallons_name fuel_level_litres_name
fuel_level_gallons_desc
flow-hundreds flow-tens flow-digits flow-tens-2 flow-digits-2 fuel-thousands fuel-hundreds fuel-tens fuel-digits fan_switch fan front-left front-right
gatekeeper
headlight_control hoses-coupled hoses-uncoupled hoses-coupled-front hoses-uncoupled-front hoses-front hoses-rear horn_light hud-library
icon isolation_switch interior_door interior_door-collision-box industry-icon
Locomotive_Diesel_Fuel_Queue Locomotive_Sand_Queue
length-thousands length-hundreds length-tens length-digits lead_axle_sand lead_axle_sand_light light_switch_front light_switch_rear locodieselfuel locosand loadlocomotivedieselfuel0
loadlocomotivedieselfuel1 locomotive_diesel_fuel_queue locomotive_sand_queue loco_diesel_out loco_sand_out loco_fuel_production loco_sand_production loadLocoFuelTrack1 loadLocoFuelTrack2
load_crane load-pipe loco-diesel-fuel low_fuel_notification_name low_fuel_notification_name_desc low_fuel_notification_0 low_fuel_notification_1 low_fuel_notification_2 low_fuel_notification
left_sliding_window left_sliding_window-collision-box
main-hundreds main-tens main-digits main-tens-2 main-digits-2 mirror_left mirror_right markers
mu-hoses-front-right mu-hoses-front-left mu-hoses-rear-right mu-hoses-rear-left mu-hoses-coupled-right mu-hoses-coupled-left mu-hoses-uncoupled-right mu-hoses-uncoupled-left
mu-hoses-uncoupled-right-rear mu-hoses-uncoupled-left-rear
max-fuel-gallons-86105 max-fuel-litres-86105 max-sand-cu-ft-86105 max-sand-litres-86105
names numbers3
odometer_display_name odometer_display_desc odometer_display_0 odometer_display_1 odometer_display_2 odometer_display_3 odometer_units_name odometer_units_name_desc odometer_units_setting_0
odometer_units_setting_1 odometer_units_setting_2 odometer_units_setting_3 odometer_units_setting_4 odometer_units_setting_5 odometer_settings_name odometer_settings_desc odometer_settings_0
odometer_settings_1 odometer_settings_2 odometer_display odometer_units odometer_setting
pipe-attachment-left pipe-attachment-right preview
refueling_status_name refueling_rate_desc refueling_status_desc refueling_status_0 refueling_status_1 running_number_name running_number_desc refueling_rate_name refueling_rate_0
refueling_rate_1 refueling_rate_2 refueling_rate_3 refueling_rate_4 refueling_rate_5 refueling_rate_6 refueling_rate_7 refueling_rate_8 refueling_rate running_number refueling_status
rear-truck rear-coupler running-number-ranges-86105 running-number-priority-86105 rear-coupler running-number-ranges-86105 running-number-priority-86105 running-number-range-86105-0
running-number-range-86105-1 running-number-range-86105-2 running-number-range-86105-3 running-number-range-86105-4 running-number-range-86105-5 running-number-range-86105-6
rear_door rear_door-collision-box rear-hundreds rear-tens rear-digits rear-tens-2 rear-digits-2 rn-thousands rn-hundreds rn-tens rn-digits rnsm-thousands rnsm-hundreds rnsm-tens rnsm-digits
refueling-locomotive-icon rear-left rear-right right_sliding_window right_sliding_window-collision-box road_numbers
sand fltSpeedo_needle1 start_switch seat_engineers seat_middle seat_conductors sun_visor_left sun_visor_right standard-pipe sand_in sand_level_name_cu_ft sand_level_cu_ft_desc
sand_level_name_litres sand_level_litres_desc
te-hundreds te-tens te-digits te-tens-2 te-digits-2 throttle_dynamic_brake_lever train_priority train_priority_desc trail_axle_sand truck
unloaddiesel unloadDieselFuel
us-loco-library
window_left_front window_left_rear window_right_front window_right_rear wipers_left_front wipers_right_front wipers_left_rear wipers_right_rear wiper_switch_front_left wiper_switch_front_right
wiper_switch_rear_left wiper_switch_rear_right window_cleaner_switch_left window_cleaner_switch_right weathersheild_left weathersheild_right wipers-left-front wipers-right-front
wipers-left-rear wipers-right-rear wipers-center-front weathering weathering_level_name weathering_level_desc weathering_level_0 weathering_level_1
weathering_level_2 weathering_level_3 weathering_level_4 weathering_level
/C6"TrainzConfig_Containers"
bogeys
dynamic-brake
extensions
flowsize
kuid-table
queues
mesh-table motor
obsolete-table
privileges pressure
thumbnails throttle-power textures
steam-power string-table string-table-de string-table-es string-table-fr string-table-it
volume
/C7"TrainzConfig_Kuid_Seperators"
:
<

>

/C8"TrainzConfig_Operators"
+
-
=
// /
%
&
^
!
|

 
Was this tutorial helpful? Not enough or too much detail? Points not explained properly? Suggest any improvements? Please use the Tutorial Enquiry Form

 

 

Trainz and Trainz Railroad Simulator are trademarks of Auran

Best viewed at 1024 x 768 or higher

Pages best viewed with Cooper and Cooper Black font installed.

Copyright © 2007 P. Campbell. All rights reserved. Revised: February 17, 2008