Messages
Each log messages has its own unique code, it starts with a letter which indicates the level:
| Letter | Level | Description |
|---|---|---|
| F | Fatal | |
| C | Critical | Critical messages indicate that action is required. |
| E | Error | |
| W | Warning | |
| N | Notice | |
| I | Info | |
| D | Debug |
And a four digit number which indicates the message, the numeric range is divided into different categories for quickly indentifing the source of the message, see below:
| Numbers | Category |
|---|---|
| 1000 … 1999 | Traintastic core components |
| 2000 … 2999 | Hardware interfacing |
| 3000 … 3999 | Trains and rail vehicles |
| 4000 … 8999 | unused |
| 9000 … 9999 | Lua scripting |
Fatal
TODO
F1001: Opening TCP socket failed (reason)
TODO
F1002: TCP socket address reuse failed (reason)
TODO
F1003: Binding TCP socket failed (reason)
TODO
F1004: TCP socket listen failed (reason)
TODO
F1005: Opening UDP socket failed (reason)
TODO
F1006: UDP socket address reuse failed (reason)
TODO
F1007: Binding udp socket failed (reason)
TODO
F9001: Creating Lua state failed
TODO
F9002: Running script failed (reason)
TODO
F9003: Calling function failed (reason)
TODO
F9999: message
Custom fatal message generated by a Lua script.
Critical
Critical messages indicate that action is required.
C1001: Loading world failed (reason)
TODO
C1002: Creating client failed (reason)
TODO
C1003: Can't write to settings file (reason)
TODO
C1004: Reading world failed (reason) (filename)
TODO
C1005: Saving world failed (reason)
TODO
C1006: Creating world backup failed (reason)
TODO
C1007: Creating world backup directory failed (reason)
TODO
C1008: Creating backup directory failed (reason)
TODO
C1009: Creating settings backup failed (reason)
TODO
C1010: Exporting world failed (reason)
TODO
C1011: Importing world failed (reason)
TODO
C1012: Unknown class 'class id', can't recreate object 'object id'
TODO
C1013: Can't load world saved with newer version, requires at least: Traintastic server version
Cause: The world is saved with a newer version of Traintastic server than currently is running.
Solution: Update Traintastic server (and client) to at least version.
C2001: Address already used at #object
TODO
C2002: DCC++ only supports the DCC protocol
Cause: The selected decoder protocol isn't supported by the DCC++ command station.
Solution: Change the decoder protocol to DCC or Auto.
C2003: DCC++ doesn't support DCC long addresses below 128
Cause: The DCC++ command station considers all addresses below 128 a DCC short address.
Solution: Change the locomotive decoder address.
C2004: Can't get free slot
TODO
C9999: message
Custom critical message generated by a Lua script.
Error
TODO
E1001: Invalid world UUID: uuid
TODO
E1002: World uuid doesn't exist
TODO
E1003: UDP receive error (reason)
TODO
E1004: TCP accept error (reason)
TODO
E1005: Socket shutdown failed (reason)
TODO
E1006: Socket write failed (reason)
TODO
E1007: Socket read failed (reason)
TODO
E1008: Socket acceptor cancel failed (reason)
TODO
E2001: Serial write failed (reason)
TODO
E2002: Serial read failed (reason)
TODO
E2003: Make address failed (reason)
TODO
E2004: Socket open failed (reason)
TODO
E2005: Socket connect failed (reason)
TODO
E2006: Socket bind failed (reason)
TODO
E2007: Socket write failed (reason)
TODO
E2008: Socket read failed (reason)
TODO
E2009: Socket receive failed (reason)
TODO
E2010: Serial port open failed (reason)
TODO
E2011: Socket send failed (reason)
TODO
E2012: Function number already in use
TODO
E2013: Serial port set baudrate failed (reason)
TODO
E2014: Serial port set data bits failed (reason)
TODO
E2015: Serial port set stop bits failed (reason)
TODO
E2016: Serial port set parity failed (reason)
TODO
E2017: Serial port set flow control failed (reason)
TODO
E2018: Timeout, no echo within numberms
TODO
E2019: Timeout, no response within numberms
TODO
E2020: Total number of modules may not exceed number
Cause: The maximum number of S88 modules connected to the HSI-88 may not exceed number, this is a hardware limitation.
Solution: Reduce the number of modules, the sum of left + middle + right must be equal or less than number.
E9001: error (During execution of name event handler)
TODO
E9999: message
Custom error message generated by a Lua script.
Warning
TODO
W1001: Discovery disabled, only allowed on port number
TODO
W1002: Setting name doesnt exist
TODO
W1003: Reading world filename failed (libarchive error code: reason)
TODO
W2001: Received malformed data dropped number bytes
TODO
W2002: Command station doesn't support functions above Fnumber
Cause: The command station or interface can't control these function, e.g. due hardware or protocol limitations.
Solution: Check if command station is setup properly, some command stations have options which specify how to control additional functions. If not, remapping decoder functions or using a different command station is the only solution.
W2003: Command station doesn't support number speed steps, using number
Cause: The command station or interface can't control decoders using number speed steps, e.g. due hardware or protocol limitations.
Solution: The number of speed steps that can be used is determinded by the command station or interface. Changing the decoders speed steps to Auto should usally work.
W2004: Input address address is invalid
The connected Traintastic DIY device does not have an input with address.
W2005: Output address address is invalid
The connected Traintastic DIY device does not have an output with address.
W2006: Command station does not support loco slot slot
Slot slot can't be used with the connected command station, reduce the LocoNet Locomotive slots value.
W2007: Command station does not support the fast clock slot
Fast clock can't be used with the connected command station, disable the LocoNet Fast clock sync enabled setting.
W9999: message
Custom warning message generated by a Lua script.
Notice
TODO
N1001: Received signal: name
TODO
N1002: Created new world
TODO
N1003: Restaring
TODO
N1004: Shutting down
TODO
N1005: Discovery enabled
TODO
N1006: Discovery disabled
TODO
N1007: Listening at address:port
TODO
N1008: Loaded settings
TODO
N1009: Saved settings
TODO
N1010: Edit mode: enabled
TODO
N1011: Edit mode: disabled
TODO
N1012: Communication: enabled
TODO
N1013: Communication: disabled
TODO
N1014: Power: on
TODO
N1015: Power: off
TODO
N1016: Running
TODO
N1017: Stopped
TODO
N1018: Mute: enabled
TODO
N1019: Mute: disabled
TODO
N1020: Smoke: enabled
TODO
N1021: Smoke: disabled
TODO
N1022: Saved world: name
TODO
N1023: Simulation: disabled
TODO
N1024: Simulation: enabled
TODO
N1025: Exported world successfully
TODO
N1026: Imported world successfully
TODO
N2001: Simulation not supported
TODO
N2002: No response from LNCV module id with address address
TODO
N2003: Stopped sending fast clock sync
A fast clock sync message is no longer sent periodically, see W2007.
N9001: Starting script
TODO
N9999: message
Custom notice message generated by a Lua script.
Info
Informational messages
I1001: Traintastic vversion codename
TODO
I1002: Settings file not found, using defaults
TODO
I1003: Client connected
TODO
I1004: Connection lost
TODO
I1005: Building world index
TODO
I1006: boost version
Version information about used boost library, e.g. boost 1.71.0.
I1007: nlohmann::json version
Version information about used nlohmann::json library, e.g. nlohmann::json 3.10.5.
I1008: archive version
Version information about used archive library, e.g. libarchive 3.4.0 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.9.2 libzstd/1.4.4.
I2001: Unknown loco address: address
TODO
I2002: Hardware type: type
TODO
I2003: Firmware version: version
TODO
I2004: HSI-88: info
Information about the connected HSI-88 interface, e.g. Ver. 0.62 / 08.07.02 / HSI-88 / (c) LDT.
I2005: info
Information about the connected Traintastic DIY device.
I9001: Stopped script
TODO
I9002: lua version
Version information about used Lua scripting engine, e.g. Lua 5.3.3 Copyright (C) 1994-2016 Lua.org, PUC-Rio.
I9999: message
Custom info message generated by a Lua script.
Debug
TODO
D2001: TX: data
TODO
D2002: RX: data
TODO
D2003: Unknown xHeader 0xvalue
TODO
D2004: source TX: data
TODO
D2005: source RX: data
TODO
D2006: Unknown message: number
TODO
D2007: Input number = value
TODO
D2008: Output number = value
TODO
D2009: Slot number = address
TODO
D2010: Slot number = Free
TODO
D9999: message
Custom debug message generated by a Lua script.