• Visit Rebornbuddy
  • [BotBase] Simple Garrison

    Discussion in 'Botbases' started by AlliesZer0, Mar 12, 2015.

    1. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      Simple Garrison

      NOTE: SimpleGarrions next version will be released for free on the buddy store this prevents me from having to make a SVN.

      About Simple Garrison
      Simple Garrison is currently in beta for HORDE level 2/3 garrisons only, I will add alliance support once I feel the horde side is ready. I will not be taking any feature requests yet until all current features are working 100%. There is currently no GUI for this bot base, it will be in the next few versions. This project started off as a personal toy to play with the new garrison api but it seems to work pretty well so I decided to share it. I don't plan on making this ever do missions or quests, for that please use one of the great paid bot bases on the HB store. I hope you enjoy it.

      This should not be left AFK (YET) and has limited support.

      Small Buildings:
      Alchemy Lab: Collect/Turn In
      Enchanters Study: Collect/Turn In
      Engineering Works: Collect/Turn In
      Scribe Quarters: Collect/Turn In
      Tailoring Emporium: Collect/Turn In
      Gem Boutique: Collect/Turn In
      The Forge: Collect/Turn In
      Salvage Yard: Auto Salvage

      Medium Buildings:
      Barn: Collect
      Lumber Mill: Collect
      Trading Post: Collect

      Medium Buildings:
      Mine: Collect/Gather/Turn In
      Farm: Collect/Gather/Turn In

      Large Buildings:
      War Mill: Collect/Turn In

      To Do:
      GUI (Started 40%)
      Dynamic blackspots (Started 20%)
      Relog support (Needs Testing)
      Herb garden (Started 100%)
      Barn work order turn in (Pending)
      Alliance support (Pending)
      Level 2 garrison support (Started 70%)
      Trading post (Pending)
      Garrison cache (Started 95%)

      For Support
      Please post a log along with a detailed description of your issue.

      Known Bugs:
      Stucks on War Mill

      Change Log:
      Version 0.1.3.4
      -Added new hotspots for war mill
      -Fixed movement for salvage yard
      -Fixed a bug in the work order collection
      -Added support for GUI settings

      Version 0.1.2.67
      Added checks for level and faction
      Fixed the bug where BotBase wouldnt restart after being stopped
      The bot now refreshes all data on every start
      Added checks to data population

      Version 0.1.2.48
      Added settings support
      Added settings GUI

      Version 0.1.2.23
      Added lock picking for rogues
      Added lumber mill
      Added trading post (pickup only)
      Added salvage yard support
      Added loot support

      Version 0.1.2.7
      Added support for herb farm
      Added rogue burst of speed
      Tweaked work order turn in system
      Added safe points for war mill level 3, plot 23
      Fixed not stopping when complete

      Version 0.1.1.229
      Added support for 1 level of garrison cache
      Setup structure for HBRelog task skipping
      Added change log to gui
      Setup configurator class as go between for gui and settings
      Reduced movement tolerance for mining nodes

      I will setup a SVN for it soon.

      Current Version: 0.1.3.4
       

      Attached Files:

      Last edited: Apr 7, 2015
    2. Albe

      Albe New Member

      Joined:
      Dec 24, 2012
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      testing now but running in to an issue.

      Exception was thrown in BotBase.Start. Bot cannot start.
      System.ArgumentException: An item with the same key has already been added.
      at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
      at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
      at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
      at Simple_Garrison.Core.Helpers.Garrison.CollectData() in c:\Honorbuddy\Bots\SimpleGarrison\Core\Helpers\Garrison.cs:line 25
      at Simple_Garrison.SimpleGarrison.Start() in c:\Honorbuddy\Bots\SimpleGarrison\SimpleGarrison.cs:line 41
      at Styx.CommonBot.TreeRoot.()

      it completed gathering my herbs but then stopped.

      thanks
       
    3. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      I think I found the bug, I will be uploading uploading a new version tonight after my raid. Let me know if you are still having any issues after this new version.

      Some new features:
      -Rogues will now use burst of speed and pick locks
      -GUI partially setup, settings currently dont save (I wanted to make sure to get a release with the bug fixed ASAP this will be finished in the next version)
      -Tweaked the data collection to hopefully fix Albe's problem
      -Added loot support
      -Added trading post work order pickup
      -Salvage yard turn in support
      -Lumber mill work order collection pickup
       
    4. Bassplayer

      Bassplayer New Member

      Joined:
      Mar 25, 2015
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      Salvage yard is not quite there. My toon keeps getting stuck in the front of the yard, saying "requires Salvage yard". Have to manually move him. Then after he moved, he got stuck in the salvage yard.

      Also, the bot seems to hold onto the character type. If I switch toons, it comes up and says "please respec. Don't know how to deal with Markmenship Hunter Restoration Shaman". I ran the Shaman first. Basically have to log out of honorbuddy to be able to run the second toon (it's on a different account). trying the Bot and Class config didn't help.
       
      Last edited: Mar 28, 2015
    5. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      Unless I missed something you will always have to log out of HB to switch toons, this is a downside HB theres nothing I could do to fix this besides implement custom combat routines for each class that get loaded on demand. I might look into how difficult this would be because it would be nice not to have to close HB every time.

      Ill check out the salvage yard now. Can you tell me which plot it is in there might be a error in the black spots for that plot and building.
       
    6. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      I found the error in the salvage yard. I will be pushing a new version out tonight. Also if my server ever stops hating me I will have the SVN up.

      Edit: New version is posted.

      Version 0.1.3.4
      -Added new hotspots for war mill
      -Fixed movement for salvage yard
      -Fixed a bug in the work order collection
      -Added support for GUI settings
       
      Last edited: Mar 28, 2015
    7. Bassplayer

      Bassplayer New Member

      Joined:
      Mar 25, 2015
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      Thanks for the quick fix, and the explanation about HB needing to logout completely. It's probably something in the Singular routine that is not resetting on a new login
       
    8. chase11

      chase11 Member

      Joined:
      Mar 12, 2014
      Messages:
      99
      Likes Received:
      2
      Trophy Points:
      8
      Does the salvage yard sell all the grey/green/blue items automatically?
       
    9. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      Not yet, it currently does nothing with them. I will be adding vendor and de in the next few versions.

      No problem :) It was using the NPC as a point of reference, so if they were outside it tried outside. I change it to the incinerator in the center of the building.

      Also I think it has to do with the core of HB itself.
       
      Last edited: Mar 28, 2015
    10. Bassplayer

      Bassplayer New Member

      Joined:
      Mar 25, 2015
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      While the toon moving into the salvage area is right, I see the following behavior:

      go to salvage yard, don't open any salvage, go to the mines.

      Snippet from the log is:

      [13:13:55.247 N] [SG] Moving to <19> <SalvageYard>
      [13:13:58.644 N] [SG] Found <2> items to salvage.
      [13:13:58.876 N] [SG] Moving to <59> <Mines>

      Also, is there a reason not to do mines after herbing? It seems like there's some double-backing there, since returning to the garrison to go to professions rides right by the opening of the mine.

      Just wondering.

      Thanks!
       
    11. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      Currently the order just pulled from the API what ever order it returns buildings is the order we do them in. I will make a set order soon it does make more sense. Would you mind posting a full log.
       
    12. Bassplayer

      Bassplayer New Member

      Joined:
      Mar 25, 2015
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      Ah, Ok. that makes sense.

      here's the log.
       

      Attached Files:

    13. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      Thank you, I will check it out tonight when I get home. I can see it found salvage items to use just never used them.
       
    14. Bassplayer

      Bassplayer New Member

      Joined:
      Mar 25, 2015
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      That's interesting. I think the previous version did open salvage. Selling grays should be a default, and leave greens/blues/purples to user config. I'm selling a lot more greens/blues these days as the market for either xmog or disenchant mats has clearly fallen.
       
    15. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      Now that you say that I think I know exactly what it is I made a change in the way the garrison api got processed I bet I forgot to add the salvage yard back in, hurry up clocking out time :p
       
    16. Bassplayer

      Bassplayer New Member

      Joined:
      Mar 25, 2015
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      It actually looks like the salvage code had a check for npc==null then exit. I removed that, but then got bit by the patch upgrade breaking HB, so I don't know if it worked.
       
    17. AlliesZer0

      AlliesZer0 Member Buddy Store Developer

      Joined:
      Mar 25, 2014
      Messages:
      87
      Likes Received:
      5
      Trophy Points:
      8
      I will not be providing support for Simple Garrison here any more check over the next few days for a new version released for free on the buddy store and please use the appropriate support thread.
       

    Share This Page