Sandboxed LuaCombinator

by IWTDU

Program combinators with lua. Now there is a version with outputs isolated from inputs!

Content
4 years ago
0.17 - 0.18
19
Circuit network

b Bug changing global settings

4 years ago
(updated 4 years ago)

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.

4 years ago

It happen anytime you change map setting and I think player settings as well.

New response