• Visit Rebornbuddy
  • [Plugin] AutoFollow 1.260.1

    Discussion in 'Plugins' started by xzjv, Jan 13, 2016.

    1. xzjv

      xzjv Community Developer

      Joined:
      Mar 17, 2014
      Messages:
      1,243
      Likes Received:
      46
      Trophy Points:
      48
      What does it do?

      It allows multiple bots to communicate with each other, and play together in a party.

      Why would you do that?

      You get more loot and XP from playing with multiple people in your party. Difficulty (monster health) only increases by +50% per player yet you receive 100% more damage. Which translates to higher level greater rifts, and more experience per rift. There is also a loot bonus for every additional player.

      What's Good about AutoFollow?

      I chose to fork development and redesign many of the internals because these changes will allow a much more intelligence coordination of bots in the longer term.
      • Every bot knows about every other bot.
        Previously, clients only communicated with the server and had no idea what the other followers were up to.
      • Async Event based communication.
        Bots fire events when things happen. All other bots receive these events and can choose to react to them or not depending on their behavior profile. For example, one bot can broadcast that they are in trouble, and another bot receives that message and might decide to run over and help depending on their circumstances.
      • Added Security and More Friends
        The way the bots invite each other to games has been rewritten. Bots are able to join a leader's game using 'Quick Join' (including joining the games of local players who are not on the friends list). If those features are disabled they can use a normal invite from the friends list. Bots will search for the name of the player and only join the correct game. Which means you can have more than 4 people on your friends list!
      Feedback

      Please provide suggestions, bug reports and constructive criticism. So it can be improved.

      Source Control

      You can find the SVN here: unifiedtrinity.AutoFollow - Revision 25: /

      Requirements
      • Multiple DB Licenses
      • Multiple Diablo3 Accounts
      • Latest Trinity
      • Latest Adventurer is recommended.

      Instructions

      Basic Setup

      • Start Multiple D3 clients in windowed mode (add -launch to target of a Diablo3.exe shortcut).
      • Start as many DB instances and login (protip: click the refresh button to update dropdown to valid D3 clients)
      • So now you should be in the hero select screen out of game on all bots with DB connected to each.
      • For all followers load the profile \db\plugins\FollowerCombat.xml
      • For the leader load any normal profile.
      • Click start on DB for the leader and then start all the followers.
      Manual Leader Setup

      • Do the same as basic setup, except for leader bot load the profile \db\plugins\LeaderManual.xml

      Using over the internet and over multiple computers

      AutoFollow is designed primarily to be used by multiple bots on the same computer. It is possible to connect over the internet or multiple computers on a local network, BUT it can be very difficult. Everybody will have a different set of problems to face depending on their network situation and how they're accessing the internet, and so this is outside of the scope here.


      Change History

      Code:
      
      1.260.1
      [*] Fixed issue with teleport to players.
      [*] Fixed issue detecting if bots are in the same game.
      
      1.0.33
      [*] Added setting to force plugin enabled on load.
      [*] Updates for D3 2.5 and to prevent crashes.
      
      1.0.27
      [LIST]
      [*]Updated for Trinity 2.50.185+
      [*]Removed 'Auto' connection mode as it wasnt working properly - manually choose Server or Client for each bot in settings.
      [*]Removed Real-Id options as they were not working properly.
      [*]Bot will attempt to use quick join first if available.
      [/LIST]
      
      1.0.23
      [LIST]
      [*]Added support for real-id friends.
      [*]Added support for inviting friends based on class/level/paragon.
      [*]Added option to always accept invites from anyone.
      [*]Fixed a bug with checking names that have spaces in them.
      [*]Bounty split-farming (multiple bots running bounty profile)
      [*]Fix for autofollow still running while diablo3 is at the login screen.less
      [*]Added delay for leaving game due to leader being in a different game to smooth connection lag/drops.
      [/LIST]
      
      1.0.19
      [LIST]
      [*]Combat is now turned off properly rather than pulsing while trying to catch up to leader.
      [*]Tightened the exceptions to following the leader, bot should fight less while catching up.
      [*]Followers now can tell when the leader is casting a town portal rather than waiting till he arrives in town.
      [*]Followers can now teleport to the leader immediatelyafter urshi spawns to upgrade gems.
      [*]Followers should react a more responsively to needing to catch up with leader.
      [*]Added some logging for movement issues
      [/LIST]
      
      1.0.17
      
      [LIST]
      [*]Leader can now invite players from the recent list or local players list.less
      [*]Leader should now wait for followers to finish vendoring when using any profile
      [*]Bot should no longer wait for ages after followers have finished their town runs.less
      [*]Followers should no longer try to teleport to leader while on a town run.
      [*]Followers should no longer try to follow leader through a hearth portal
      [*]Fix for getting stuck moving after a world change.
      [*]Followers shouldn't leave after rift until leader is ready; except if their bags are full.
      [*]Bots should once again be able to handle events that they have fired.
      [*]Added IsCastingTownPortal to information sent between bots.
      [*]Experiments with accepting a rift as empowered (not currently possible)
      [*]Reduced minimum catch up distance on slider to 10 and set default to 40 (was 80)less
      [*]Fixed rift guardian spawn message occurring in town when rift is closed.
      [*]Added cooldown on starting town runs because leader is doing it to avoid spam.
      [*]Added checks for YAR login on Initialize/Enable
      [*]Added setting to not display any character names in logging.
      [*]PowerLevel profile will now accept invites properly.
      [*]Bots will fight instead of walking to leader when within Catchup Radius if routine wants to fight.
      [*]Temporarily disabled scanning the names of players in party lobby to see if leader is present.
      [*]Fix for accepting any party invite.less
      [*]Fix for exception entering numbers into settings slider text box.
      [*]Settings: Added ability to force a bot as Server or Client
      [*]Settings: Added Slider for 'CatchUp Range' - the distance required for combat on/off cycling.
      [*]Events: Added events for rift guardian being spawned and when killed.
      [*]Follower Powerlevel/Combat: Bots will not teleport to leader when rift guardian has been killed.
      [*]Follower Combat: Bots will no longer take random portals nearby when bored.
      [*]Leader: Will wait for bots to catch up and upgrade gems after killing a rift guardian.
      [*]Movement: Bots will continue moving to leader when outside teleport range and in a greater rift.
      [*]Gem Upgrading: now calling Adventurer's upgrade SubRoutine directly to increase reliability.
      [/LIST]
      
      1.0.10
      
      
      [LIST]
      [*]Tested running on Bounties, Ubers, Key wardens, Greater/Neph rifts and Manual follow.
      [*]Now Supports YAR (should work best with "kickstart" disabled in YAR settings)
      [*]Added LeaderManual.xml profile for having the bots follow you while you play by hand.
      [*]Bots should no longer get separated as much. It effectively goes into a zerg mode when out of range.
      [*]Bots should now follow leader through portal and try their luck with nearby portals if lost.
      [*]Movement has been heavily refactored, now uses a local actor where possible and has faster reactions.
      [*]Added setting for max leader waits for others before starting a profile (will start sooner if everyone is near)
      [*]Improved how the bot waits before starting games and after changing levels to ensure everyone is present.
      [*]Bot should have less memory related exceptions now.
      [*]Improved out of game handling of parties and invites.
      [*]Technical: Removed speed limits on communication, now runs smoothly down to 25ms.
      [*]Technical: Bot now only accesses DB memory in framelock and communication thread reads cached values.
      [*]Technical: Bot now reads names in party lobby out of game to tell if the leader is present.
      [*]Technical: Improved event system, including limits on how fast they can queue up.
      [*]Technical: Changed the way settings are saved to use a new JSON based system.
      [*]Technical: Refactored pretty much everything else + Many other small bug fixes.
      [*][U][B]Note: For best results make sure your profiles have stayInParty="true" on LeaveGame tags.[/B][/U]
      [*][U][B]Note: Completely remove old plugin version before installing.[/B][/U]
      [*][U][B]Note: folder name has changed in plugins directory to 'zAutoFollow'[/B][/U]
      [/LIST]
      
      1.0.8
      [LIST]
      [*]Bots now disengage combat periodically in order to follow much more closely.
      [*]Improved movement to properly get updated position of the leader.
      [*]Added some checking movement so it will stop trying to move when blocked.
      [*]Fixed settings input boxes not working and changed them to sliders.
      [*]Fixed bug where updating port/address wouldn't take effect until restart.
      [*]Fixed problem that was preventing followers from communicating with Leader
      [*]Fixed name scanning regex so that players with a clan can now be invited properly.
      [*]Followers will now start a town run if they notice the leader is doign one.
      [*]Bots will no longer leave the game to avoid unknown players when the setting is off.
      [*]Bots should now teleport instead of using portal markers in normal rifts
      [/LIST]
      
      1.0.6
      [LIST]
      [*]Leader now requests other bots leave the game when he needs them to.
      [*]Followers now move to exit marker in greater rifts when leader isn't found.
      [*]Added settings for Follow Distance and Teleport Distance
      [*]Fixed leader saying he was teleporting to followers when he wasn't going to.
      [*]Leader should now wait for followers to stop vendoring before opening new rift portal.
      [*]Interacting with portals should now fire WorldTransferStart properly
      [*]Fixed bots entering and exiting portals repeatedly
      [*]Added task for talking to orek.
      [*]Added Markers to Data cache
      [*]Added IsWorldEntryPoint, IsWorldExitPoint and Marker to Interactable object
      [*]Added RiftQuest object from Adventurer to more easily work with rift quest step ids.
      [*]Now waits for bots to finish vendoring before starting a rift
      [*]Bots in town will now try to use hearth portals
      [*]Bots will not longer try to teleport to players while in greater rift.
      [*]Bots will no longer try to send invites when party is locked
      [*]Improved handling of followers' gem upgrade request in greater rift.
      [*]Fixed an issue preventing events when a follower is the server.
      [*]Removed some excessive logging.
      [*]Improved MoveTo to constantly update its going to when its target moves.
      [*]Added a setting for leaving games that have unknown players in them.
      [*]Added a setting for distance from leader before attempting to teleport.
      [/LIST]
      
      
      
       

      Attached Files:

      Last edited: Jul 2, 2017
      moda, pimpampum and LuckyZippo like this.
    2. js4991

      js4991 New Member

      Joined:
      Sep 7, 2014
      Messages:
      165
      Likes Received:
      0
      Trophy Points:
      0
      Something massive Plugin released!
       
    3. js4991

      js4991 New Member

      Joined:
      Sep 7, 2014
      Messages:
      165
      Likes Received:
      0
      Trophy Points:
      0
      Does it work with R-YAR?
       
    4. Alucard93

      Alucard93 New Member

      Joined:
      Oct 11, 2015
      Messages:
      19
      Likes Received:
      0
      Trophy Points:
      0
      Can't wait to try this out when the new DB is out! Sent a donation because this is something I've wanted for a long time :)
       
    5. Xenetron

      Xenetron Member

      Joined:
      Mar 5, 2013
      Messages:
      627
      Likes Received:
      4
      Trophy Points:
      18
      Hopefully but YAR is broke atm needs fix
       
    6. SeaNanners

      SeaNanners Member

      Joined:
      Aug 16, 2012
      Messages:
      270
      Likes Received:
      1
      Trophy Points:
      18
      read pm xzjv senpai
       
    7. MooseFlapps

      MooseFlapps Member

      Joined:
      Dec 8, 2015
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Just tried multiboxing with this with 4 accounts, it works ok except sometimes the 1 or 2 follower bots stand still and does nothing for a couple of minutes
       
    8. xor

      xor Member

      Joined:
      Jul 14, 2012
      Messages:
      36
      Likes Received:
      1
      Trophy Points:
      8
      @xzjv Great work on this mate! I use the simplefollow plugin all the time to follow my main around. I've noticed a couple of glitches here and there. What logs do you need me to submit for troubleshooting purposes?

      For example, I get this message - [AutoFollow.Behaviors][<InGameTask>d__8] Leader message was invalid - I have no idea where the logs are though.
       
    9. lawlumad88

      lawlumad88 New Member

      Joined:
      Nov 1, 2015
      Messages:
      275
      Likes Received:
      0
      Trophy Points:
      0
      I use 3 accounts, 1 account would follow properly, the other just keep attack and get stuck 90% of the time. Is there any setting i can change?
       
    10. xzjv

      xzjv Community Developer

      Joined:
      Mar 17, 2014
      Messages:
      1,243
      Likes Received:
      46
      Trophy Points:
      48
      working on an update, here's my list of known issues so far.



      • follower not picking up loot after using adventurer gem upgrade
      • follower starting running adventurer rifts and exploring after gem upgrade
      • followers not leaving game when leader is outside waiting for them
      • follower invite request events being ignored by leader
      • client freeze during loading screen.
      • Entering the open rift... needs a position to move to.
      • leader will start next game before followers have finished vendoring
      • bots aren't taking their return town portal after vendoring
      • bots need to group up for taking shrines
      • trash pack size > 1 bots staying around waiting for stuff to die.
      • followersnot updating the position theyre moving to as the actor moves around.
      • followers attempt to teleport to leader in greater rifts.
      • bots leave the game when they die and need to repair.
       
    11. Grynio

      Grynio New Member

      Joined:
      Aug 19, 2013
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      good job xzjv, thx!

      money sent :)
       
      Last edited: Jan 14, 2016
    12. harvest655

      harvest655 Member

      Joined:
      Apr 26, 2014
      Messages:
      98
      Likes Received:
      0
      Trophy Points:
      16
      Current leader doesn't have QuickJoin enabled!

      what up?_?
       
    13. lawlumad88

      lawlumad88 New Member

      Joined:
      Nov 1, 2015
      Messages:
      275
      Likes Received:
      0
      Trophy Points:
      0
      looking forward for the update
       
    14. xxfearxx

      xxfearxx New Member

      Joined:
      Apr 17, 2013
      Messages:
      176
      Likes Received:
      2
      Trophy Points:
      0
      doesn't seem to work if your friends are added via realid/email whatever. when follower requests invite leader opens social pane but doesnt actually invite refuses to recognize the leader, i tried manually inviting follower and it says that the invite is not from current leader.

      i then deleted the friend and readded with btag and it works fine, is there any work around for this?
       
      Last edited: Jan 15, 2016
    15. xzjv

      xzjv Community Developer

      Joined:
      Mar 17, 2014
      Messages:
      1,243
      Likes Received:
      46
      Trophy Points:
      48
      Ok, thanks for reporting this, will look into it.
       
    16. joebob26

      joebob26 New Member

      Joined:
      Jan 15, 2016
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      Can anyone explain how to set this up? A lot of us are just coming back and have never used simplefollow either. Have multiple db keys and d3 games etc. Do i need to adjust anything in the profile or plugin field? I have one bot running just the adventure mode profile but what do i do with the other bot? I loaded this profile and clicked start but it just doesn't do anything. Willing to donate but instructions to how to get at least two bots running in some form of sync would be sweet. Thanks!
       
    17. Schizoid

      Schizoid Member

      Joined:
      Feb 7, 2012
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      Wouldnt it be better if you updated SimpleFollow, whilst getting this plugin to workable state (if it doesnt take too much time to update)? I'm glad you are trying to make something better but patch week isnt the time to beta test things :(
       
    18. looser7k

      looser7k Member

      Joined:
      May 11, 2014
      Messages:
      77
      Likes Received:
      0
      Trophy Points:
      6
      hi xzjv, am looking forward to the next update. thx in advance! money sent!
       
    19. harvest655

      harvest655 Member

      Joined:
      Apr 26, 2014
      Messages:
      98
      Likes Received:
      0
      Trophy Points:
      16
    20. blubba

      blubba Member

      Joined:
      Feb 4, 2010
      Messages:
      48
      Likes Received:
      0
      Trophy Points:
      6
      Agreed, Autofollower istn even better, the whole team spreads out, every bot does his own thing. In simple follow they grouped together. that means simple follow should do higher grift than autofollower
       

    Share This Page