Overdrive nil orgMetal
It seems that the overdrive gadget will break if too much energy is on the grid. This will likely not happen in real games, but it seems like around +25000e/s or +600m/s or something similarly huge and the gadget breaks with the error:
[f=0011489] Error: LuaRules::RunCallIn: error = 2, GameFrame, [Internal Lua error: Call failure] [string "LuaRules/Gadgets/unit_mex_overdrive.lua"]:380: attempt to perform arithmetic on local 'orgMetal' (a nil value) stack traceback: [string "LuaRules/Gadgets/unit_mex_overdrive.lua"]:380: in function 'AddPylonToGrid' [string "LuaRules/Gadgets/unit_mex_overdrive.lua"]:646: in function 'AddPylonsInQueueToGrid' [string "LuaRules/Gadgets/unit_mex_overdrive.lua"]:904: in function 'GameFrame' [string "LuaRules/gadgets.lua"]:1004: in function <[string "LuaRules/gadgets.lua"]:1002> (tail call): ?
Using Engine version 97.0.1-258, latest Zero-K from Git
That is not related to resourcing. A replay would be good because it is a problem to do with mex creation.
It will be due to one of these: https://github.com/ZeroK-RTS/Zero-K/commit/591623d246bd4b419a8ce1c435f361cc63dbf7c1 https://github.com/ZeroK-RTS/Zero-K/commit/449884091918c1cbf4cc59b4378aa2e53779f568
I've put a demo on Dropbox, which might take a little while to break, and I'm not sure it will as a replay. However, it should demonstrate what I did, anyway.
Overdrive was changed recently I suppose this is no longer correct?
I'll have to test at some point
I don't seem to be able to reproduce this the way I had before, so I'm closing for now.