What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Flightor.MoveTo 突然出现的问题,寻求帮助。

qq362946

New Member
Joined
Mar 6, 2014
Messages
30
以前一直没有问题,但今天开始Flightor.MoveTo一直不能使用,我发下我以前一直使用的代码,这个代码是移动到指定NPC。

WoWUnit _Unit = ObjectManager.GetObjectsOfType().FirstOrDefault(D => D.Entry == 73717);

Flightor.MoveTo(_Unit.Location,true);

这段代码,一起一点问题都没有,可现在就出现了下面的错误,(下面的错误是我在开发工具复制过来的)。求大家帮忙找下原因。


System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Exception: Failed to generate path ---> System.NullReferenceException: 未将对象引用设置到对象的实例。
在 (Object , Vector3 , Vector3 , QueryFilter , Vector3& , PolygonReference& )
在 Tripper.Navigation.WowNavigator.FindPath(Vector3 start, Vector3 end)
在 Styx.Pathing.MeshNavigator..()
在 System.Threading.Tasks.Task`1.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()
--- 内部异常堆栈跟踪的结尾 ---
在 Styx.Pathing.MeshNavigator.FindPath(WoWPoint start, WoWPoint end)
在 Styx.Pathing.MeshNavigator.CanNavigateFully(WoWPoint from, WoWPoint to)
在 Styx.Pathing.NavigationProvider.(WoWPoint , WoWPoint , Int32 )
在 Styx.Pathing.Navigator.CanNavigateFully(WoWPoint from, WoWPoint to)
在 Styx.Pathing.Flightor.MoveTo(WoWPoint destination, Single minHeight, Boolean checkIndoors)
在 Styx.Pathing.Flightor.MoveTo(WoWPoint destination, Boolean checkIndoors)
在 Driver.Run()
--- 内部异常堆栈跟踪的结尾 ---
在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
在 System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
在 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
在 Honorbuddy.DevToolsWindow.CompileAndRun(String input)
在 Honorbuddy.DevToolsWindow.<>c__DisplayClass39.<ConsoleCompileAndRun>b__38(Object state)
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Exception: Failed to generate path ---> System.NullReferenceException: 未将对象引用设置到对象的实例。
在 (Object , Vector3 , Vector3 , QueryFilter , Vector3& , PolygonReference& )
在 Tripper.Navigation.WowNavigator.FindPath(Vector3 start, Vector3 end)
在 Styx.Pathing.MeshNavigator..()
在 System.Threading.Tasks.Task`1.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()
 
WoWUnit _Unit = ObjectManager.GetObjectsOfType().FirstOrDefault(D => D.Entry == 73717);

Flightor.MoveTo(_Unit.Location,true);

我就是运行了这两条就出错了,我保证_Unit不是NULL的。
 
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Exception: Failed to generate path ---> System.NullReferenceException: 未将对象引用设置到对象的实例。
 
Back
Top