I've finally got to testing your saved game, and the game crashed at the same place as in your error message. However, I've got a slightly different error message. Instead of
Wrong argument! nil is not a valid sensor name or nil!
I've got
Wrong argument! false is not a valid sensor name or nil!
The different values (nil
vs. false
) are baffling – did you perhaps make a mistake while writing the error message (assuming you didn't copy'n'paste it)? Anyway, I've fixed my crash by changing line 373 of file scripts/gui_stuff/gui_vehicles.lua from
sensor_gui_for_vehicle = s_prefs and (s_prefs.id == id) and s_name
to
sensor_gui_for_vehicle = s_prefs and (s_prefs.id == id) and s_name or nil
Does that work for you as well?