Automatic Train Painter


Automatically colors locomotives and wagons based on their contents.

Tweaks
a month ago
0.17 - 2.0
98.3K
Trains

g [Fixed] Crash on empty train leaving station

5 years ago
(updated 5 years ago)

Received the following crash on a test map just creating a loop with two stations and a train with two cargo wagons (which had just been placed and were thus empty). The second the train left the first station, the mod crashed. My settings were: paint cargo wagons and fluid wagons NOT checked, and Paint locomotives and unpaint empty trains checked. I do not have LTN installed as a mod, in case that helps track down the issue.

The mod Automatic Train Painter caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Automatic_Train_Painter::on_train_changed_state (ID 23)
Automatic_Train_Painter/mod_support/exemptions.lua:34: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
Automatic_Train_Painter/mod_support/exemptions.lua:34: in function 'check_LTN'
Automatic_Train_Painter/mod_support/exemptions.lua:11: in function 'exemption_check'
Automatic_Train_Painter/control.lua:16: in function <Automatic_Train_Painter/control.lua:11>

5 years ago

Please verify the mod is up to date. This bug was addressed in version 0.2.5. Thanks for the report!

5 years ago

I must have had an outdated version of the mod. Not reproing for me on the latest. Thanks!

New response