Path:GetEstimatedPath() changed?
Posted: 07 Feb 2012, 01:20
This is part of Spacebug queen move script, that was correct with Spring 83.0, but it is not not correct with 85.0.

Again the same for quote :) :
Now infolog says:
Here is the wiki of luaPathfinding http://springrts.com/wiki/Lua_PathFinder but it does not helped me much. Do you know, if the wiki page is actual or how was Pathing changed?

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): ?