Page 1 of 1

error in metaltogeo

Posted: 24 Nov 2010, 08:36
by knorke
gtg so no time to further check atm but i made a map that makes KPs Lua fail:
[ 0] Lua LoadCode pcall error = 2, LuaRules/main.lua, error = 2, LuaGadgets/gadgets.lua, [string "LuaRules/Gadgets/metaltogeo.lua"]:19: attempt to index field 'geovent' (a nil value)
I think it might be because there is no metalmap and no Geos on the map.

Re: error in metaltogeo

Posted: 24 Nov 2010, 10:36
by zwzsg
I knew there was a bug that on geoless metal map, the MetalToGeo.lua gadget, when left on default "Auto", might spawn so many datavents the computer freeze.

But that bug you just list, it's new to me.

Line 19 is: local geovent = FeatureDefNames.geovent.id

So it's like there is no geovent feature in FeatureDef. Well, I assumed the geovent feature was hardcoded into the engine, always present. Worst, I wouldn't even know how to define a geovent feature myself.

What version of Spring are you using? What version of mapconv?

Re: error in metaltogeo

Posted: 24 Nov 2010, 17:03
by knorke
used Latest stable version is: 0.82.6.1
mapconv: no idea, I used the "export spring map" function of springmapeditor:
http://springrts.com/phpbb/viewtopic.php?f=56&t=16341

finally no more endless recompiling the map to figure out maxheight and all that