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>