Loading...
  OR  Zero-K Name:    Password:   

Mapinfo: error = 2,

4 posts, 678 views
Post comment
Filter:    Player:  
sort
6 years ago
So i tryed to build a new map made hightmap, difusemap and metalmap, converted them into .smf and .smt files
and put them into /mapname.ssd/maps

Then i tryed to test my new map and put my .ssd folder in Zero-k/maps, i can actually see my map and select it,
but when i try to start a game it instantly crashes with the following text:

Mapinfo: error = 2,
mapconfig/mapinfo/70_extractorradius.lua,[string
"mapconfig/mapinfo/70_extractorradius.lua"]:5: attempt to call
global "tobool" {a nil value}

So you might think, well there has to be a problem in mapinfo.lua and maybe there is no extractor radius?
But i did set it to 32.0 and it still crashes with this text...
idk why it does that and appreciate every help i can get.
+0 / -0
6 years ago
You're missing a definition of "tobool". Try copying the one from the mapinfo.lua in the map blueprint archive?
+1 / -0


6 years ago
Lua doesn't have a tobool function (afaik) and you don't need one. If you absolutely need a tobool, use this.
+1 / -0
6 years ago
Thanks, i didnt notice the tobool part...
i actually used mapinfo.lua from mapdev-stage1 and changed my values,
but... in this mapinfo.lua was no tobool funktion.
But the mapblueprint master folder had a mapinfo.lua with tobool so i could easily fix that problem ^^.

Just saw what garbage i produced lul you cant even call that a map.
+1 / -0