Good luck to you!!! Although I think it is easier to limit each submod with a set of ruins to specific planets.
For example, limit the spawn of ruins from https://mods.factorio.com/mod/AbandonedRuins-base only to Navius and Gleba... To do this, it is enough to write only one script in this submod... Because this submod is, in fact, a template...
The Fulgura can be limited globally if desired. There is a special script for this in control.lua:
local function init()
util.set_enemy_force_cease_fire(util.get_enemy_force(), not settings.global["AbandonedRuins-enemy-not-cease-fire"].value)
spawn_chances()
if storage.spawn_ruins == nil then
storage.spawn_ruins = true
end
storage.ruin_queue = storage.ruin_queue or {}
if not storage.excluded_surfaces then
storage.excluded_surfaces = {
["beltlayer"] = true,
["pipelayer"] = true,
["Factory floor"] = true, -- factorissimo
["ControlRoom"] = true -- mobile factory
}
end
end
script.on_init(init)
script.on_configuration_changed(init)
script.on_event(defines.events.on_runtime_mod_setting_changed, init)
I'll just repeat myself - while the reasons for the failure are unknown, there is every chance of it happening again on any of the planets...