
Again the same for quote :) :
Code: Select all
(...)
local starty = Spring.GetGroundHeight(startx, startz)
local yloc = Spring.GetGroundHeight(xloc, zloc)
local thePath = Spring.RequestPath(QUEEN_PATH_TYPE, startx, starty, startz, xloc, yloc, zloc)
-- Spring.MarkerAddLine(startx, starty, startz, xloc, yloc, zloc)
--thePath.GetEstimatedPath
--
if (thePath ~= nil) then
local morePath, startIdxOfDetailedPath = thePath.GetEstimatedPath(thePath)
if (morePath ~= nil) then
local curx, curz = startx, startz
local lastMilepost = 0
(...)
Code: Select all
[f=0072999] Error: LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/unit_spacebugs.lua"]:1376: attempt to call field 'GetEstimatedPath' (a nil value)
stack traceback:
[string "LuaRules/Gadgets/unit_spacebugs.lua"]:1376: in function 'PathItUp'
[string "LuaRules/Gadgets/unit_spacebugs.lua"]:1509: in function 'QueenAttackManager'
[string "LuaRules/Gadgets/unit_spacebugs.lua"]:1612: in function 'RunQueenAI'
[string "LuaRules/Gadgets/unit_spacebugs.lua"]:1811: in function 'GameFrame'
[string "LuaRules/gadgets.lua"]:931: in function <[string "LuaRules/gadgets.lua"]:929>
(tail call): ?