• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Destiny V2] FateBot Automation

    Discussion in 'Archives' started by Wheredidigo, Jun 3, 2015.

    1. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      New Version is up with all current BugFixes/Feature Requests put in...and then some.
       
    2. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      If it was anything but Skype, I'd be there. I've had nothing but issues with that program and it confiscating system resources as it finds ways to generate more revenue from me.
       
    3. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,803
      Likes Received:
      70
      Trophy Points:
      48
      They do have a lot of adverts, but as long as you keep a chat window open, you shouldn't see them. ;)
       
    4. spqr

      spqr New Member

      Joined:
      Mar 30, 2013
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      For some reason its trying to change my job to adventurer?

      [19:42:14.255 D] Reloading AssemblyLoader<ff14bot.Interfaces.ICombatRoutine> - Initializing
      [19:42:21.232 D] [RoutineManager] Routines have been reloaded. Current class-specific list:
      [19:42:21.232 D] Kupo [GladiatorPaladin] v1.0.279.0
      [19:42:21.232 D] Ultima v1.0.0.0
      [19:42:32.021 N] Bot Thread Started.
      [19:42:32.202 N] Connection to 192.99.148.87:31214 established.
      [19:42:32.218 N] Clearing all hooks.
      [19:42:32.218 N] Adding Destiny V2.0.0.2 Hooks
      [19:42:32.218 D] Inserted new hook [TreeStart @0] a947fd8d-9eba-49c5-bab8-f563e7dfebdb
      [19:42:32.218 D] Inserted new hook [TreeStart @1] 05ce0968-1fa6-477b-ab15-c3e48fdae3fb
      [19:42:32.218 D] Inserted new hook [TreeStart @2] 64ef742d-7823-4f60-9017-9d3dcd8b392c
      [19:42:32.228 D] Added new hook [Pull] 5e7d5525-2d79-46d1-b0b7-ae13e9a8ed87
      [19:42:32.228 D] Added new hook [RoutineCombat] 26bb1837-9fda-4e58-8d60-54047a550d0b
      [19:42:32.229 D] Added new hook [HotspotPoi] 8809518b-3892-4e54-84be-3ba8098a01d7
      [19:42:32.229 D] Added new hook [SetDeathPoi] a1d41e93-36b2-4300-ac99-34bd4fe60025
      [19:42:32.229 D] Added new hook [SetCombatPoi] 8db5d360-01a7-4bcb-aaa3-b226ba142635
      [19:42:32.229 D] Added new hook [SetHotspotPoi] 1a4a3097-f925-4ffc-87bc-abb9d265f194
      [19:42:32.229 D] Added new hook [SelectPoiType] 6bf2b4df-b7dd-46ad-9f5e-57212136719e
      [19:42:32.230 D] Added new hook [SetFatePoi] f0126040-440d-4504-a897-f0de5cbd292a
      [19:42:32.230 D] Added new hook [SetRestPoi] 48e4e8d5-3252-4daa-bbfb-8f0baf7cc5f0
      [19:42:32.231 D] Replaced hook [SelectPoiType] 831580d9-aef2-4c79-9457-3beb7c2c9804
      [19:42:32.232 D] Added new hook [FatePoi] fac284b6-6292-4c09-8f6e-52b91843c401
      [19:42:32.232 D] Added new hook [PoiAction] cce5cd9b-c171-4057-aa3c-0ede905533dd
      [19:42:32.232 D] Added new hook [RestPoi] e5143f31-d1d1-4825-bf83-294c45672bad
      [19:42:32.232 D] Added new hook [PoiAction2] 75115ebd-9529-4dc3-8d53-67adea233d78
      [19:42:32.233 D] Added new hook [TreeStart] 8d362096-9602-48f2-aca0-ba2624412174
      [19:42:32.236 N] Adding Destiny V2.0.0.2 Hooks
      [19:42:32.236 D] Inserted new hook [TreeStart @0] a947fd8d-9eba-49c5-bab8-f563e7dfebdb
      [19:42:32.236 D] Inserted new hook [TreeStart @1] 05ce0968-1fa6-477b-ab15-c3e48fdae3fb
      [19:42:32.236 D] Inserted new hook [TreeStart @2] 64ef742d-7823-4f60-9017-9d3dcd8b392c
      [19:42:32.297 N] [Ultima] Loading: Paladin
      [19:42:32.325 N] [Destiny V2.0.0.2] Trying to change job to Adventurer
      [19:42:32.329 D] Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
      at DestinyPlugin.Destiny.<ChangeJob>d__17.MoveNext() in c:\Users\Parliam3nt\Documents\RBuddy\Plugins\Destiny\Destiny.cs:line 233
      --- 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 TreeSharp.ActionRunCoroutine....()
      --- 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 TreeSharp.ActionRunCoroutine.Run(Object context)
      at TreeSharp.Action.RunAction(Object context)
      at TreeSharp.Action.<Execute>d__0.MoveNext()
      at TreeSharp.Composite.Tick(Object context)
      at TreeSharp.Decorator.<Execute>d__0.MoveNext()
      at TreeSharp.Composite.Tick(Object context)
      at TreeSharp.PrioritySelector.<Execute>d__0.MoveNext()
      at TreeSharp.Composite.Tick(Object context)
      at ff14bot.Behavior.HookExecutor.Run(Object context)
      at TreeSharp.Action.RunAction(Object context)
      at TreeSharp.Action.<Execute>d__0.MoveNext()
      at TreeSharp.Composite.Tick(Object context)
      at TreeSharp.PrioritySelector.<Execute>d__0.MoveNext()
      at TreeSharp.Composite.Tick(Object context)
      at ff14bot.TreeRoot.() --> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
      at DestinyPlugin.Destiny.<ChangeJob>d__17.MoveNext() in c:\Users\Parliam3nt\Documents\RBuddy\Plugins\Destiny\Destiny.cs:line 233
      --- 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 TreeSharp.ActionRunCoroutine....()
      [19:42:32.386 N] [Destiny V2.0.0.2] Trying to change job to Adventurer
       

      Attached Files:

      Last edited: Jun 6, 2015
    5. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      I think I've figured out what is going on. I'm testing it more on my end first, but I should have a version out either today or tomorrow with a fix.
       
    6. WoWuser123

      WoWuser123 Member

      Joined:
      Aug 4, 2011
      Messages:
      371
      Likes Received:
      4
      Trophy Points:
      18
      I've had that error as well at some point, I think it was because I hadn't set up any gear sets (or maybe a wrong number).
       
    7. scorpinot

      scorpinot Member

      Joined:
      Oct 1, 2014
      Messages:
      133
      Likes Received:
      1
      Trophy Points:
      18
      My god, it does exist... look forward to testing.
       
    8. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      For some reason, setting the "Max Levels Below" parameter is directly setting that variable to the Fatebot's minimum level field; Any number I set this to is placed directly in the Botbase setting's Min Level field. I know that this code is being used:

      Code:
              private static void SetFateBotSettings()
              {
                  FatebotSettings.Instance.BossEnabled = Settings.Instance.BossEnabled;
                  FatebotSettings.Instance.EscortEnabled = Settings.Instance.EscortEnabled;
                  FatebotSettings.Instance.MonsterSlayingEnabled = Settings.Instance.MonsterSlayingEnabled;
                  FatebotSettings.Instance.LevelCheck = Settings.Instance.LevelCheck;
                  FatebotSettings.Instance.MaxLevel = Settings.Instance.MaxLevel;
                  FatebotSettings.Instance.MinLevel = Core.Me.ClassLevel - Settings.Instance.MinLevel;
                  FatebotSettings.Instance.BossPercentRequired = Settings.Instance.BossPercentRequired;
              }
      which makes me think that the Core.Me.ClassLevel value is empty/null. I'll try to investigate this a bit and find the root cause and suggest a fix. Unfortunately, settings changes are not logged, but even if they were I don't think it could tell me anything more then I already observed at this point.

      Edit: Running the code in the console (replacing the Settings class properties with direct int values) works without issue; not sure why the same code has a hiccup in the plugin. I'll hunt through it and see if the MinLevel field is used anywhere else in the plugin.

      Edit 2: Found it. Looks like this code runs instead when you first set it instead of using Core.Me.ClassLevel:
      Code:
              private void MinLevelUpDown_ValueChanged(object sender, EventArgs e)
              {
                  Settings.Instance.MinLevel = (int)MinLevelUpDown.Value;
                  Settings.Instance.Save();
                  FatebotSettings.Instance.MinLevel = (int)MinLevelUpDown.Value;
                  FatebotSettings.Instance.Save();
              }
      Just need to update it to match the other code :) I would also recomend adding the SetFateBotSettings() function call to the OnBotStart method to avoid an issue caused by the user inputing the settings as one class and then changing to the class to be leveled before starting the bot.

      Here are the files with the changes I suggested:
      View attachment Destiny.cs
      View attachment Gui.cs
       
      Last edited: Jun 7, 2015
    9. Zaylman

      Zaylman New Member

      Joined:
      May 23, 2015
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
      Not porting to next area

      Started this with level 8 MRD set Horizon for 1-9 and aleport for 10-14. The bot is at level 11 and still in horizon. I manually ported to aleport and started the bot and in teleported to horizon
       

      Attached Files:

    10. Zaylman

      Zaylman New Member

      Joined:
      May 23, 2015
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
      I quite the reborn buddy and then started up again and this time it teleported to aleport
       
    11. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      You were being effected by the "[05:47:23.888 N] [Destiny V2.0.0.2] Trying to change job to Adventurer" bug. It was causing the plugin to throw an exception which is why it wasn't teleporting to the correct location. The bug does indeed have to do with settings, so the next time you restarted the bot, the settings would have been correct and the bug goes away.

      I'll have a fix out for the bug sometime later today. I'm trying to get Patrol working in Destiny so hopefully I'll be able to get the fix out with the new feature of Patrol. If I can't get Patrol working by the end of the day, I'll just release a version that contains bugfixes.
       
    12. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      Yeah, that was just a derp moment on my part. Must have been late when I was making those changes. =) Thanks for pointing them out, I'll get them fixed in the next release.
       
    13. Zaylman

      Zaylman New Member

      Joined:
      May 23, 2015
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
      Your awesome!! :)
       
    14. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      A new version has been put up. It now includes the functionality of the Patrol Plugin found here.

      Please note that you will have to re-do your settings when you use this new version. Any further versions should not require you to re-do your settings any longer.

      As always, let me know of any bugs/problems you find and remember to post that full log with them!

      -Wheredidigo
       
    15. botuser2610

      botuser2610 New Member

      Joined:
      Jun 1, 2015
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      1
      it seems like the range of the patrol dunction is very limited. I often find my character just standing around idle.

      In fate bot i have selected "nothing" as action to do when no fates are available. always had it like that when using Patrol.

      Whats the recommended setting to use with Destiny? And is it a range issue with the plugin? maybe set too low?

      also what range of monster lvl will the patrol function attack? in the orignial Patrol plugin there was an option to set the range.
       
    16. throne

      throne Member

      Joined:
      May 1, 2015
      Messages:
      66
      Likes Received:
      0
      Trophy Points:
      6
      I'm assuming you still need the patrol plugin enabled together with Destiny. Using it now without any issues.. yet. Will continue to test it out. Thanks for the update!
       
    17. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      No, you will want to disable and remove any versions of the Patrol plugin you have.

      Also, you will want to leave your FateBot setting to "return to aetheryte" when there's no fates available.

      The way I have implemented it is this:

      FateBot takes you to random fate "123".
      FateBot completes random fate "123".
      FateBot starts to take you back to the aetheryte because no fates are available to do.
      Destiny detects mob "456" while on the way back to the aetheryte.
      Destiny changes the Poi to mob "456".
      FateBot now has a Poi of mob "456".
      FateBot will kill mob "456".
      FateBot starts to take you back to the aetheryte because no fates are available to do.
      Destiny detects mob "789" while on the way back to the aetheryte.
      Destiny changes the Poi to mob "789".

      And the loop continues.

      Destiny will attack any mobs it detects that are within the same level range of the level of Fates you are searching for. It uses the same settings for it.
       
    18. Cloud30000

      Cloud30000 New Member

      Joined:
      May 9, 2015
      Messages:
      298
      Likes Received:
      7
      Trophy Points:
      0
      It seems like the range is based on what you have set in your CR from this code:
      Code:
      while (counter <= 5 && target.Distance(Core.Me.Location) > RoutineManager.Current.PullRange)
      For mine, it is set to 15 and I do not know how to change it; even in the console, the property is read-only. Ultima does not have a setting for it within it's interface.

      Edit: I misread it, the code already has the targets by that point and the portion quoted just causes it to spend between 3 and 15 seconds moving to target before trying to attack again. It looks like this code actually adds the targets to the stack:
      Code:
      return GameObjectManager.GetObjectsOfType<BattleCharacter>()
      though I do not know the range that is being used
       
      Last edited: Jun 7, 2015
    19. Wheredidigo

      Wheredidigo Community Developer

      Joined:
      Dec 15, 2013
      Messages:
      417
      Likes Received:
      8
      Trophy Points:
      18
      I'm also not sure what the range of GameObjectManager.GetObjectsOfType<BattleCharacter>() is. We would have to ask Mastahg that information. In the code above, I use RoutineManager.Current.PullRange just to make sure that I move within range of the mob for the CR to attack it.

      Basically, the gamble I'm making is that at some point between where the fate ends and when FateBot travels back to the aetheryte....you're going to come across at least 1 mob that it can attack. Of course there will be edge cases where it won't, but 99% of the time, this is a pretty safe bet.
       
    20. Unknown Buddy

      Unknown Buddy Member

      Joined:
      May 20, 2015
      Messages:
      603
      Likes Received:
      17
      Trophy Points:
      18
      View attachment 2152 2015-06-07 20.34.txt

      In order to use the patrol function in Destiny, you will need to add a way to blacklist mobs. Currently the bot will get stuck trying to kill Striking Dummies in town (same issue Patrol plugin had til blacklisting).
       

    Share This Page