魔法门吧 关注:26,201贴子:410,151
  • 5回复贴,共1

整合版mm7开局,进龙洞提示 ,就卡住动不了

只看楼主收藏回复

整合版mm7开局,进龙洞提示 ,就卡住动不了
Merged 17.03.2020\Scripts\Global\MonsterPathfinding.lua:831: attempt to call global 'GetMonsterTarget' (a nil value)
stack traceback:
... Merged 17.03.2020\Scripts\Global\MonsterPathfinding.lua: in function 'ProcessNextMon'
... Merged 17.03.2020\Scripts\Global\MonsterPathfinding.lua:956: in function <... Merged 17.03.2020\Scripts\Global\MonsterPathfinding.lua:955>
local variables of 'ProcessNextMon':
(*temporary) = nil
(*temporary) = nil
(*temporary) = (table: 0x12899ce0)
(*temporary) = nil
(*temporary) = 1
(*temporary) = 0
(*temporary) = 4
(*temporary) = 1
(*temporary) = 0
(*temporary) = nil
(*temporary) = 0
(*temporary) = true
(*temporary) = true
(*temporary) = 6000
(*temporary) = "attempt to call global 'GetMonsterTarget' (a nil value)"
upvalues of 'ProcessNextMon':
IsOutdoor = false
NextMon = 1
MonsterNeedsProcessing = (function: 0x0f892050)
MonsterWays = (table: 0x128a02b8)
GetDist2 = (function: 0x1010c9a8)
TraceReach = (function: 0x1010cbe8)
TraceSight = (function: 0x1010cbb8)
StuckCheck = (function: 0x0f892008)
AStarQueue = (table: 0x0c735f88)
SetQueueItem = (function: 0x0f891f90)
abs = (function: builtin#37)
AreaOfTarget = (function: 0x1010cb40)


IP属地:湖南1楼2020-05-31 20:37回复
    用文本编辑工具打开Scripts\Global\MonsterPathfinding.lua,定位到831行。
    这一行的代码是:TargetRef, Target = GetMonsterTarget(MonId)
    把这一行改成以下代码:
    local TargetBuf = mem.StaticAlloc(Map.Monsters.limit*4)
    TargetRef, Target = mem.u2[TargetBuf+MonId*4], mem.u2[TargetBuf+MonId*4+2]


    2楼2020-05-31 21:28
    收起回复
      问题解决了,谢谢金星。请问你的召唤mod有更新了吗,能传个上来吗?


      IP属地:湖南来自Android客户端3楼2020-06-01 07:58
      收起回复