It was working fine yesterday after I made a modification to change add_ruin_set() to be add_ruin_sets(), but once I added a few more small mods (just a few vehicles), this error happened on loading the world I made yesterday:
Error while running event OldAbandonedSettlements::on_configuration_changed
Error when running interface function AbandonedRuins.exclude_surface: __AbandonedRuins_updated_fork__/control.lua:278: attempt to index global 'data' (a nil value)
stack traceback:
__AbandonedRuins_updated_fork__/control.lua:278: in function <__AbandonedRuins_updated_fork__/control.lua:274>
stack traceback:
[C]: in function 'call'
__OldAbandonedSettlements__/control.lua:258: in function <__OldAbandonedSettlements__/control.lua:257>
So something in this mod broke with the 1.4.0 core update, and its specifically to do with exclude_surface under the add_excluded_surfaces() function. I imagine if I remove Vulcanus from the list, it'll error on Gleba, remove that and it'll error on Fulgora, and likewise on Aquilo. So something about how the core mod handles surface exclusion changed which breaks this mod, beyond the deprecation of the add_ruin_set() function which breaks it more immediately. Its also strange that this mod is breaking when this ruin set isn't even active, I swapped to Default just so I could create the world.