Automatic Train Painter


Automatically colors locomotives and wagons based on their contents.

Tweaks
16 days ago
0.17 - 2.0
96.8K
Trains

b [Fixed] Crash on load save

5 years ago

Hi, after update to the latest version game crashed right after loading save with:

Exception at tick 133056005: 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

p.s.: I don't use LTN

5 years ago

Whoops that's my bad. Forgot to put in a condition to ignore the LTN deliveries table if there isn't one at all. Should be fixed now!

5 years ago

Thanks!!!

New response