Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Overdrive nil orgMetal

Open dvr333 opened this issue 12 years ago • 5 comments

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

dvr333 avatar Aug 14 '14 02:08 dvr333

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

GoogleFrog avatar Aug 14 '14 05:08 GoogleFrog

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.

dvr333 avatar Aug 14 '14 06:08 dvr333

Overdrive was changed recently I suppose this is no longer correct?

Orfelius avatar Feb 07 '15 19:02 Orfelius

I'll have to test at some point

dvr333 avatar Feb 07 '15 20:02 dvr333

I don't seem to be able to reproduce this the way I had before, so I'm closing for now.

dvr333 avatar Feb 23 '15 06:02 dvr333