Autobuild

by therax

Autobuild allows your character to automatically build, deconstruct, and upgrade nearby ghosts. A more efficient alternative to mods like Bluebuild.

Utilities
4 months ago
0.17 - 1.1
18.0K

b (fixed) Crash

1 year, 3 months ago
(updated 1 year, 3 months ago)

My game crashs when I try to disable the LTN using my shortcut (CTRL + SHIFT + T) to enable/disable LTN.
LTN works fine if I uninstall this mod (autobuild)!
This shortcut is only assigned to LTN! WHithout LTN, this shortcut don't do anything!


173.855 Error MainLoop.cpp:1288: Exception at tick 191658937: The mod LTN - Logistic Train Network (1.18.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event LogisticTrainNetwork::ltn-toggle-dispatcher (ID 310)
The mod Autobuild (0.5.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autobuild::on_runtime_mod_setting_changed (ID 61)
Expected LuaPlayer, index, or name.
stack traceback:
[C]: in function 'get_player_settings'
autobuild/control.lua:16: in function 'get_player_state'
autobuild/control.lua:592: in function <autobuild/control.lua:591>
stack traceback:
[C]: in function 'newindex'
__LogisticTrainNetwork
/script/hotkey-events.lua:13: in function <LogisticTrainNetwork/script/hotkey-events.lua:8>


Thanks

1 year, 3 months ago

Yeah, seems that the eventhandler on_runtime_mod_setting_changed is called with event.player_index = nil
Don't know why, but it's probably safest to fix that case, because according to API documentation it can happen.
Will see to a push a fix soon.

1 year, 3 months ago

Hopefully, this is fixed now.

New response