nihilistzsche / LtnManager

A GUI for managing your Logistic Train Network. A mod for Factorio.
https://mods.factorio.com/mod/LtnManager
MIT License
49 stars 13 forks source link

Non-recoverable error (bad argument in 'find' function) #207

Open GaryShem opened 1 year ago

GaryShem commented 1 year ago

Describe the Bug

The mod LTN Manager (0.4.16) caused a non-recoverable error. Please report this error to the mod author.

Error while running event LtnManager::on_tick (ID 0) LtnManager/scripts/gui/trains.lua:96: bad argument #1 of 3 to 'find' (string expected, got nil) stack traceback: [C]: in function 'find' LtnManager/scripts/gui/trains.lua:96: in function 'update' LtnManager/scripts/gui/index.lua:134: in function 'update' LtnManager/scripts/gui/index.lua:97: in function 'dispatch' LtnManager/control.lua:127: in function 'handle_gui_event' LtnManager/control.lua:204: in function <LtnManager/control.lua:197>

When my friend joins the server, opens LTN and clicks search, this happens and the game crashes for both of us

To Reproduce

Steps to reproduce the behavior:

Once both players have joined:

  1. Open LTN Manager as the client
  2. Click on search text field
  3. Type any character
  4. See error. Strangely, the search worked fine for me, but the game crashed when my friend (Whaleinablender) joined and tried it

Save file & Username

My in-game name (host): DrunkLurker My friend's name: Whaleinablender

Save file: https://drive.google.com/file/d/1q-1Qhj9F0A8geXtaF3njX07TiLoe4hVA/view?usp=sharing

Log file

factorio-current.log