eronoobos / BABAR-The-Shardifant

Balanced Annihilation & Balanced Annilhation Reloaded configuration for Shard
2 stars 1 forks source link

factory unregistering sometimes results in an error, possibly from not registering #80

Open eronoobos opened 8 years ago

eronoobos commented 8 years ago
[f=0076615] Error: LuaRules::RunCallIn: error = 2, UnitDestroyed, [Internal Lua error: Call failure] [string "luarules/gadgets/ai/BA/factoryregisterbehav..."]:73: table index is nil
stack traceback:
    [string "luarules/gadgets/ai/BA/factoryregisterbehav..."]:73: in function 'Unregister'
    [string "luarules/gadgets/ai/BA/factoryregisterbehav..."]:44: in function 'OwnerDead'
    [string "luarules/gadgets/ai/unit.lua"]:68: in function 'UnitDead'
    [string "luarules/gadgets/ai/unithandler.lua"]:66: in function 'UnitDead'
    [string "luarules/gadgets/ai/ai.lua"]:105: in function 'UnitDead'
    [string "LuaRules/Gadgets/ailoader.lua"]:283: in function 'UnitDestroyed'
    [string "LuaRules/gadgets.lua"]:1264: in function <[string "LuaRules/gadgets.lua"]:1261>
    (tail call): ?

I have a feeling this is for the same reason the AI tends to build duplicate factories whenever I /luarules reload. It could be a ShardSpringLua issue.

pandaro commented 8 years ago

when have you see this? today? or before?

eronoobos commented 8 years ago

I've been seeing it for a long time, I think ever since factorybuilded was added. It seems to only happen in games I have restarted luarules, so I didn't think it was worth mentioning