Color whole train


Colors all train wagons, not only locomotives, based on the destination train stop. Works with cybersyn.

Tweaks
8 days ago
2.0
561
Trains

b Crash when renaming whole group of stops

20 days ago

I renamed a whole group of train stops - probably around 20 stops with 120 trains having an interrupt for it, and this mod crashes the game when I do that. Here's the error:

The mod Color whole train (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event color_whole_train::on_train_changed_state (ID 26)
color_whole_train/control.lua:116: attempt to index field '?' (a nil value)
stack traceback:
color_whole_train/control.lua:116: in function <color_whole_train/control.lua:104>

19 days ago

Thank you for your report.

I can't seem to reproduce the issue, but from your log I think I know where the issue was and I released a fixed version.

Can you try if this fixes this crash, if you could reproduce it?

Thanks

8 days ago

Fixed for sure in the new version of the mod, the code that failed here was removed completely.

This thread has been locked.