Train Log

by zomis

Keep a record of all train journeys, how much items are going where. Perfect for use with mods like LTN but also works great without other mods.

Content
a month ago
1.1 - 2.0
29.1K
Trains

b [Fixed] Crash

3 years ago

90.246 Error MainLoop.cpp:1285: Exception at tick 21103562: The mod Train Log (1.1.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event train-log::on_gui_click (ID 1)
flib/gui.lua:147: TabAndContent must have tab and content fields
stack traceback:
[C]: in function 'error'
flib/gui.lua:147: in function 'recursive_build'
flib/gui.lua:155: in function 'recursive_build'
flib/gui.lua:171: in function 'build'
train-log/gui/main_gui.lua:65: in function 'open_gui'
train-log/gui/main_gui.lua:103: in function 'open_or_close_gui'
train-log/gui/main_gui.lua:112: in function 'handle_action'
train-log/gui/main_gui.lua:120: in function <train-log/gui/main_gui.lua:116>

3 years ago

Same here. It renders the mod unusable.

3 years ago

Thanks. At first I thought this was a special case, but when trying it I discovered that it was caused by a breaking change in Flib. I have adapted my code to work with newer versions of Flib and have also marked Train Log to require a newer version of Flib.

TL;DR: Fixed :)

3 years ago

Wow .. it works again. Thanks!

3 years ago

Interesting, sorry that the flib update broke your mod! This was an unintentional break. The TabAndContent stuff was already in there before the update and was the intended method of adding tabs. I didn't realize that before this update it wouldn't throw an error if you tried to do it the "classic" way. I'm sorry for the inconvenience!

3 years ago

@raiguard I actually prefer the new way, which I didn't know existed until you accidentally broke it. All good now.

New response