Thank you for your code snippets on the chat manager portion of my fledgling project. I think, THINK, they are implemented properly now and are doing what they are supposed to, but, due to the nature of this plugin, it takes a loooong time to test each change I make.
That being said, I am running into another issue.
I have added a couple of lines to teleport the bot to Revenants Toll, which works properly, but I cannot get it to actually run to the Summoning Bell.
I've tried to look up how to declare and utilize the Vector3 data for Navigator.MoveTo, but I seem to be missing something crucial, as when I run the bot, I get:
[HIDE]
Code:
[14:04:07.914 D] Exception while pulsing plugin Slavebot9001: Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.InvalidOperationException: NavigationProvider cannot be null! at ff14bot.Navigation.Navigator.MoveTo(Vector3 location, String destination)
at Slavebot9001.Slavebot9001.<MainLoop>d__2.MoveNext() in c:\Users\Omni\Desktop\RB\Plugins\Slavebot9001\Slavebot9001.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Buddy.Coroutines.Coroutine.<>c__DisplayClass1.<<ReturnsNullWrapper>b__0>d__3.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.CheckPostConditions(Boolean shouldBeCanceled)
at Buddy.Coroutines.Coroutine.Resume(Boolean forStop)
at Buddy.Coroutines.Coroutine.Resume()
at Slavebot9001.Slavebot9001.OnPulse() in c:\Users\Omni\Desktop\RB\Plugins\Slavebot9001\Slavebot9001.cs:line 69
at ff14bot.Managers.PluginManager.PulsePlugin(IBotPlugin plugin)
[14:04:07.929 N] [Ultima] Loading: Ninja
[14:04:07.947 D] Exception while pulsing plugin Slavebot9001: Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.InvalidOperationException: NavigationProvider cannot be null!
at ff14bot.Navigation.Navigator.MoveTo(Vector3 location, String destination)
at Slavebot9001.Slavebot9001.<MainLoop>d__2.MoveNext() in c:\Users\Omni\Desktop\RB\Plugins\Slavebot9001\Slavebot9001.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Buddy.Coroutines.Coroutine.<>c__DisplayClass1.<<ReturnsNullWrapper>b__0>d__3.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.CheckPostConditions(Boolean shouldBeCanceled)
at Buddy.Coroutines.Coroutine.Resume(Boolean forStop)
at Buddy.Coroutines.Coroutine.Resume()
at Slavebot9001.Slavebot9001.OnPulse() in c:\Users\Omni\Desktop\RB\Plugins\Slavebot9001\Slavebot9001.cs:line 69
at ff14bot.Managers.PluginManager.PulsePlugin(IBotPlugin plugin)
[14:04:09.705 N] Stopping the bot. Reason:Pushed the stop button.
[14:04:09.705 D] CurrentBot.Stop()
[14:04:09.705 D] Exception while pulsing plugin Slavebot9001: Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.InvalidOperationException: NavigationProvider cannot be null!
at ff14bot.Navigation.Navigator.MoveTo(Vector3 location, String destination)
at Slavebot9001.Slavebot9001.<MainLoop>d__2.MoveNext() in c:\Users\Omni\Desktop\RB\Plugins\Slavebot9001\Slavebot9001.cs:line 87
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Buddy.Coroutines.Coroutine.<>c__DisplayClass1.<<ReturnsNullWrapper>b__0>d__3.MoveNext()
--- End of inner exception stack trace ---
at Buddy.Coroutines.Coroutine.CheckPostConditions(Boolean shouldBeCanceled)
at Buddy.Coroutines.Coroutine.Resume(Boolean forStop)
at Buddy.Coroutines.Coroutine.Resume()
at Slavebot9001.Slavebot9001.OnPulse() in c:\Users\Omni\Desktop\RB\Plugins\Slavebot9001\Slavebot9001.cs:line 69
at ff14bot.Managers.PluginManager.PulsePlugin(IBotPlugin plugin)
[/HIDE]
I have tried to declare them as Float values, Integers, and as a String, but, no dice yet.
I have also attached the next iteration of code, unfortunately, this one is another working copy, not ready for release for the problem stated above, as well as in the other thread.
Any insight you have to offer would be greatly appreciated, thank you!
newb
EDIT: Solved. I simply put everything regarding the moving into my OnPulse() and set up a couple of if statements to make sure they only get called on when necessary.