raiguard / Tapeline

A Factorio mod that adds a simple tape measure to the shortcut bar.
MIT License
8 stars 1 forks source link

Crash when changing "Number of tiles per subgrid" below 4 #6

Closed DerFailer36 closed 4 years ago

DerFailer36 commented 4 years ago

Hey, so i tried to change the number of tiles per subgrind by typing in 3 and pressed enter and the game crashed on me. :/ It also crashes with 0. ;)

Error MainLoop.cpp:1202: Exception at tick 29206134: The mod Tapeline (1.0.3) caused a non-recoverable error. Please report this error to the mod author.

Error while running event Tapeline::on_gui_confirmed (ID 141) Tapeline/scripts/util.lua:84: bad argument #1 of 2 to 'newindex' (string expected, got nil) stack traceback: [C]: in function 'newindex' Tapeline/scripts/util.lua:84: in function 'set_last_valid_value' Tapeline/scripts/gui/draw.lua:65: in function 'handler' Tapeline/lualib/event.lua:86: in function <Tapeline/lualib/event.lua:26> 5463.823 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The mod Tapeline (1.0.3) caused a non-recoverable error. Please report this error to the mod author.

Error while running event Tapeline::on_gui_confirmed (ID 141) Tapeline/scripts/util.lua:84: bad argument #1 of 2 to 'newindex' (string expected, got nil) stack traceback: [C]: in function 'newindex' Tapeline/scripts/util.lua:84: in function 'set_last_valid_value' Tapeline/scripts/gui/draw.lua:65: in function 'handler' Tapeline/lualib/event.lua:86: in function <Tapeline/lualib/event.lua:26>"

raiguard commented 4 years ago

Thanks for the report, I'll look into it when I have time.

raiguard commented 4 years ago

It's been fixed for the next release. Thank you!