Color whole train


Colors all train wagons, not only locomotives, when manually changing locomotive colour or based on the destination train stop. Works with cybersyn.

Tweaks
10 months ago
2.0
6.35K
Trains

b Crash when renaming whole group of stops

1 year, 7 months 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>

1 year, 7 months 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

1 year, 6 months ago

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

This thread has been locked.