Code: Select all
[f=0000050][f=0000122] Error: LuaRules::RunCallIn: error = 2, Initialize, [Internal Lua error: Call failure] error = 2, LuaRules/gadgets.lua, [string "LuaRules/Gadgets/heightmaptest.lua"]:14: attempt to call field 'AdjustHeightMap' (a nil value)
stack traceback:
[C]: in function 'Include'
[string "LuaRules/draw.lua"]:9: in main chunk
[f=0000122] Error: LuaRules loading failed
Code: Select all
function gadget:GetInfo()
return {
name = "Loony: Heightmap Test",
desc = "Tries to adjust the heightmap.",
author = "zoggop",
date = "January 2015",
license = "whatever",
layer = -3,
enabled = true
}
end
function gadget:Initialize()
Spring.AdjustHeightMap(100, 100, 200, 200, 50)
end