There seems to be a small bug that occurs when I change mod settings.
control.lua line 106
I can trigger it by doing this
- In an existing game go to settings, mod settings
- on map tab, change LTN settings (in particular I change the "wait for circuit condition" cbox - NB LTN setting change not sandboxed lua )
- save / wait / do again. It did not seem to happen every time. But it did appear to prevent the setting from being updated, and very often would crash
Its this line assert( self[player_id][sett_name_adapt] ~= nil )
. If I change that to an if
condition around the table update then everything works fine. I'm not sure what you are guarding against here though, I've not done any modding myself yet.
Hope this helps.