• Visit Rebornbuddy
  • [Plugin] TakeAnotherBreak

    Discussion in 'Plugins' started by Karls, May 9, 2014.

    1. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
      Take Another Break
      Based on TakeABreak by Ghaleon
      (v1.0.2 released on 12th May 2014)​

      Compatibility
      • TakeAnotherBreak has been tested with DemonBuddy .403 and .408 but should work with any recent version.
      • It's pretty straight forward code that only uses basic DemonBuddy API calls so it should play nice with any version of any other plugin

      Known Issues
      • Entering a higher value in the "min" field than in the "max" one can crash DemonBuddy, so make sure to edit them in the correct order for now
      • I was lazy and didn't yet implement decent settings for stopping the bot rather than taking a break, for now you can do this by entering 999 minutes as value for minimum & maximum break time

      Reporting Issues
      Please include these informations when reporting an issue, it might help locate the problem faster:
      • The version of DemonBuddy you're using
      • The versions of other plugins you're using (just incase)
      • The profile you were running when the problem happened

      Features
      TakeAnotherBreak is designed to allow you to take random breaks at random intervals or stop the bot after a certain amount of time/games/deaths.
      • In-Town breaks: will trigger when you enter town after a certain amount of time has elapsed since last break (or since starting the bot)
      • Between-Games Breaks: will trigger when entering the main menu after a certain amount of games
      • Death Breaks: Will trigger after a certain amount of deaths (not implemented yet)
      When a break happen, plugin will pause the bot for random amount of time (between the minimum and maximum amount of time you set for that break type). Stopping the bot while it's paused will cancel the break so you can restart another profile (or the same) without havint to wait it out.

      Installation
      1. Download the attached zip (bottom of post).
      2. Extract to your Demonbuddy directory (eg "C:/Demonbuddy/Plugins/")
      3. The TakeAnotherBreak files should now be in their own folder in your plugins folder (eg "C:/Demonbuddy/Plugins/TakeAnotherBreak/TakeAnotherBreak.cs")
      4. Start Demonbuddy, select the plugins tab, and click the check mark next to TakeAnotherBreak to enable.
      5. You can click the "Config" button after selecting the plugin in the plugin list to adjust its behaviour.
      6. TakeAnotherBreak will start working once you start Demonbuddy.

      Credits
      TakeAnotherBreak is a rewrite of the TakeABreak plugin written by Ghaleon. I rewrote some parts and added some extra features, but more than half the code (and parts of this post!) is coming straight from the original plugin (mostly all the UI/settings stuff that I hate writing), so thanks Ghaleon!

      Changelog
      Code:
      [COLOR="#800000"][B][SIZE=3]version 1.0.2[/SIZE][/B][/COLOR]
      [LIST]
      [*] Plugin will now correctly resume botting after the break ends
      [/LIST]
      [COLOR="#800000"][B][SIZE=3]version 1.0.1[/SIZE][/B][/COLOR]
      [LIST]
      [*] Fixed a bug with break duration
      [*] Changed "paused until" date/time format to be more helpful to detect other potential bugs
      [/LIST]
      [COLOR="#800000"][B][SIZE=3]version 1.0[/SIZE][/B][/COLOR]
      [LIST]
      [*] Initial release
      [/LIST]
      
      Downloads
       

      Attached Files:

      Last edited: May 15, 2014
    2. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
      - Reserved -

      I didn't test it as much as I wanted, but taking a bit of a break so decided to release it now rather than in a week or later. But I'm confident enough that it should work as expected.
       
    3. crocodilul

      crocodilul New Member

      Joined:
      Oct 6, 2012
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      nice. gonna test it right now.
       
    4. theomir

      theomir New Member

      Joined:
      Aug 8, 2012
      Messages:
      14
      Likes Received:
      1
      Trophy Points:
      3
      Thank you! I gonna test!
       
    5. Janet

      Janet New Member

      Joined:
      May 9, 2014
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0
      every step worked as intended until trying to get the demonbuddy to start again. it stops the bot but can't start it up again, status stays at : Paused by TakeAnotherBreak until x:xx:xx PM , running Chest farming profile
       
    6. SIL3N7

      SIL3N7 Active Member

      Joined:
      Jun 12, 2012
      Messages:
      1,119
      Likes Received:
      11
      Trophy Points:
      38
      +1 Mad props

      Thaks for doing this
       
    7. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
      Were you using town or menu breaks? Did the plugin post the "Resuming play" message before failing to restart? Or did it trigger any exceptions in demonbuddy?
       
    8. Janet

      Janet New Member

      Joined:
      May 9, 2014
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0

      Was using the menu break, and no the Resuming play message never showed up. I think the problem is the actual date and time. status stays at : Paused by TakeAnotherBreak until x:xx:xx PM, the x:xx:xx time didn't match or was no where near my time, therefore it probably didn't want to start until the actually time showing on demonbuddy.
       
    9. crocodilul

      crocodilul New Member

      Joined:
      Oct 6, 2012
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      tested this and doesn't starts the bot again. and i guess cause the watch that plugin uses is somehow.. wrong?

      check this:
      20:24:11.976 INFO TakeAnotherBreak [TakeAnotherBreak] In menu, it's time to take a break!
      20:24:11.976 INFO TakeAnotherBreak [TakeAnotherBreak] Taking a break for 4 minutes...
      20:24:11.977 INFO TakeAnotherBreak [TakeAnotherBreak] We will resume play at: [19:36:11]

      so at 20:24 he wants to take a break for 4 minutes... until 19:36 :d
       
    10. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
      I'll take a look at this
       
    11. Janet

      Janet New Member

      Joined:
      May 9, 2014
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0

      Appreciate the time and effort you have put in it so far. Definitely useful once fixed.
       
    12. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
    13. crocodilul

      crocodilul New Member

      Joined:
      Oct 6, 2012
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      tnx!gonna test it right now with fast breaks to see what's happening.
       
    14. Janet

      Janet New Member

      Joined:
      May 9, 2014
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0
      the time problem has been fixed, but the plugin still refuses to resume the game.
       
    15. crocodilul

      crocodilul New Member

      Joined:
      Oct 6, 2012
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      time is ok now, but it won't start the bot back. don't know if it has something to do with wich trinity i use etc...

      anyway, looking at how the plugin is working i wonder: if he stops the bot he will stop himself too, how can he see when is due to start again? i guess you need something like a pause, not a stop.
       
    16. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
      I'll have to do more testing on my side then, I was pretty sure the "start" part had worked everytime on my side. At least it can still be used to stop overnight runs after X runs/hours until I get it sorted.

      And at first I was using the PauseFor call rather than Stop/Start, but it has the downside of pausing the bot for that duration no matter what (the only way to have DB be able to do anything was to close/restart it)
       
    17. Nazair

      Nazair New Member

      Joined:
      Jan 5, 2013
      Messages:
      754
      Likes Received:
      0
      Trophy Points:
      0
      Exactly as posted in known issues...
       
    18. Nazair

      Nazair New Member

      Joined:
      Jan 5, 2013
      Messages:
      754
      Likes Received:
      0
      Trophy Points:
      0
      So ungrateful whiners like you could complain...
       
    19. Karls

      Karls New Member Buddy Store Developer

      Joined:
      Apr 11, 2014
      Messages:
      324
      Likes Received:
      2
      Trophy Points:
      0
      Last edited: May 12, 2014
    20. Janet

      Janet New Member

      Joined:
      May 9, 2014
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0

    Share This Page