error in metaltogeo

error in metaltogeo

Moderator: Content Developer

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

error in metaltogeo

Post 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.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: error in metaltogeo

Post 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?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: error in metaltogeo

Post 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
Post Reply

Return to “Kernel Panic”