You changed the if statement incorrectly:
changing
if ((force.name ~= "enemy") and
(force.name ~= "neutral") and
(force.name ~= "_ABANDONED_") and
(force.name ~= "_DESTROYED_") and
to
global.ignoredalienmodulefactions = { "enemy", "neutral", "_ABANDONED_", "_DESTROYED_" }
and you did:
global.ignoredalienmodulefactions[force.name]
but global.ignoredalienmodulefactions["enemy"] is nil
global.ignoredalienmodulefactions[1] would equal "enemy"
If you want to use your way the table needs to be initialize:
global.ignoredalienmodulefactions = { enemy=true, neutral=true, _ABANDONED_=true, _DESTROYED_=true}
then change:
if global.ignoredalienmodulefactions[force.name] == nil then
to
if not global.ignoredalienmodulefactions[force.name] then
The change you made will make for slower processing of modules in Oarc.
You changed the if statement incorrectly: changing
to
global.ignoredalienmodulefactions = { "enemy", "neutral", "_ABANDONED_", "_DESTROYED_" }
and you did: global.ignoredalienmodulefactions[force.name]but global.ignoredalienmodulefactions["enemy"] is nil global.ignoredalienmodulefactions[1] would equal "enemy"
If you want to use your way the table needs to be initialize:
global.ignoredalienmodulefactions = { enemy=true, neutral=true, _ABANDONED_=true, _DESTROYED_=true}
then change: if global.ignoredalienmodulefactions[force.name] == nil thento if not global.ignoredalienmodulefactions[force.name] then
The change you made will make for slower processing of modules in Oarc.