• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] UnstuckMe!

    Discussion in 'Archives' started by sinterlkaas, Aug 19, 2012.

    Thread Status:
    Not open for further replies.
    1. Subwoofer90

      Subwoofer90 New Member

      Joined:
      Aug 27, 2012
      Messages:
      35
      Likes Received:
      0
      Trophy Points:
      0
      who thread UnstuckMe! work? as soon as it is turned, the boat starts to dull teleport from card to card, mb who knows what it is.
       
    2. ssf8818

      ssf8818 New Member

      Joined:
      Sep 18, 2012
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      v1.7.1 works better than v1.8.x !!!
       
    3. raistling

      raistling New Member

      Joined:
      Sep 29, 2012
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      same here. really missed the golden days with 1.7.1... have to uncheck UnstuckMe! these days and use the simple but not so perfect Gile's unstuck ...
       
    4. zaizaiwang

      zaizaiwang New Member

      Joined:
      Aug 26, 2012
      Messages:
      57
      Likes Received:
      0
      Trophy Points:
      0
      thank you!!!!!!
       
    5. rrrix

      rrrix DEVELOPER Buddy Core Dev

      Joined:
      Jul 11, 2010
      Messages:
      3,449
      Likes Received:
      61
      Trophy Points:
      0
      Hello,

      I upgraded to 1.8.3 and found the new stuff for checking Giles breaks the whole thing if Giles isn't installed. Was basically seeing a never-ending stream of these errors:

      Code:
      [07:04:23.157 D] [UnstuckMe!] System.InvalidOperationException: Sequence contains no elements
         at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
         at UnstuckMe.GilesTrinity.get_isEnabled()
         at UnstuckMe.Unstuck.isBusy()
      
      In order to fix this, changed the Linq statement in UnstuckMe\GilesTrinity.cs:

      PHP:
              public bool isEnabled
              
      {
                  
      get
                  
      {
                      var 
      plugin PluginManager.Plugins.Where(=> p.Plugin.Name.Equals("GilesTrinity")).First();
                      return (
      plugin != null && plugin.Enabled);
                  }
              }
      To FirstOrDefault() which returns null if the sequence is empty.

      First() will throw an exception if there are no elements to return.

      PHP:
              public bool isEnabled
              
      {
                  
      get
                  
      {
                      var 
      plugin PluginManager.Plugins.Where(=> p.Plugin.Name.Equals("GilesTrinity")).FirstOrDefault();
                      return (
      plugin != null && plugin.Enabled);
                  }
              }
      Cheers,

      rrrix
       
    6. sinterlkaas

      sinterlkaas New Member

      Joined:
      Jan 17, 2012
      Messages:
      536
      Likes Received:
      14
      Trophy Points:
      0
      Ah yes ofc I indeed did not test what would happen when there is no giles plugin .. and ppl only report there is some problem but never show logs so hard to debug without logs ;) but thanks for your fix I will add it and upload the fix
       
    7. Javilionaire

      Javilionaire New Member

      Joined:
      Jun 3, 2011
      Messages:
      211
      Likes Received:
      0
      Trophy Points:
      0
      Got this error when I tried to use your plugin for the first time:

      Not sure what I did wrong, I just extracted it to the plugins folder. Does this only work in the beta client or something?
       
    8. sinterlkaas

      sinterlkaas New Member

      Joined:
      Jan 17, 2012
      Messages:
      536
      Likes Received:
      14
      Trophy Points:
      0
      You are using it on Honorbuddy ? and it is made for Demonbuddy
       
    9. Javilionaire

      Javilionaire New Member

      Joined:
      Jun 3, 2011
      Messages:
      211
      Likes Received:
      0
      Trophy Points:
      0
      *lowers head in shame*
       
    10. sinterlkaas

      sinterlkaas New Member

      Joined:
      Jan 17, 2012
      Messages:
      536
      Likes Received:
      14
      Trophy Points:
      0
      :) np
       
    11. Diabloguy69

      Diabloguy69 New Member

      Joined:
      Aug 8, 2012
      Messages:
      422
      Likes Received:
      0
      Trophy Points:
      0
      how is the new version working for you guys>?
       
    12. Rain2Dew

      Rain2Dew New Member

      Joined:
      Jan 21, 2012
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      Thanks for your work! it's userfull.
       
    13. rrrix

      rrrix DEVELOPER Buddy Core Dev

      Joined:
      Jul 11, 2010
      Messages:
      3,449
      Likes Received:
      61
      Trophy Points:
      0
      Hello, It's me again :)

      I had an issue with the isstuck => LeaveGame(3) logic. Basically, the bot would leave the game, but end up somewhere else where it didn't expect - and the Profile wasn't reloaded.

      So, I added this to Plugin.cs, just below "BotMain.PauseWhile(waitFor, 1000);"

      PHP:
                                      string currProfile Zeta.CommonBot.Settings.GlobalSettings.Instance.LastProfile;
                                      
      Logging.Write("Reloading profile {0}"currProfile);
                                      
      ProfileManager.Load(currProfile);
      Now when it leaves a game, it reloads the profile as well.

      Cheers,

      rrrix
       
    14. sinterlkaas

      sinterlkaas New Member

      Joined:
      Jan 17, 2012
      Messages:
      536
      Likes Received:
      14
      Trophy Points:
      0
      There is a reason for not reloading the current profile cause RadsAtom and Pluginmanager should take care of this
       
    15. zippysticks

      zippysticks New Member

      Joined:
      Jun 14, 2012
      Messages:
      452
      Likes Received:
      0
      Trophy Points:
      0
      But not everyone uses RadsAtom or Pluginmanager, you should have it where it doesn't rely on other plugins. The reason being is because what if other plugins that gets relied on is broken? That would make yours broken too. Just a thought =).
       
    16. sonnzy

      sonnzy New Member

      Joined:
      Sep 30, 2012
      Messages:
      71
      Likes Received:
      0
      Trophy Points:
      0
      hello sinterlkaas. thank for you plugins frist.
      it cant works when d3 is frozen(connection problem caused,the monsters and your char just frozen ). can you put checking code for it?
       
      Last edited: Nov 2, 2012
    17. johnny1730

      johnny1730 New Member

      Joined:
      Sep 1, 2012
      Messages:
      443
      Likes Received:
      0
      Trophy Points:
      0
      i had some problems, do you know why db dont creat another game?

      [xx:04:26.561 N] Loaded profile [A3 - Inferno]Champion-Hunting 1.3.6.3 BigRed - Heart of the Damned
      [xxx04:27.573 N] [ErrorClicker] Closing error -1
      [xxx:04:27.597 D] [BotEvents] EventChecker  threw exception Could not read bytes from 00000000 [299]! in check
      [xxx:04:27.597 D] Exception while pulsing plugin UnstuckMe: System.AccessViolationException: Could not read bytes from 00000000 [299]!
      at Zeta.MemoryManagement.ExternalProcessReader.ReadBytes(IntPtr address, Int32 count, Boolean isRelative)
      at Zeta.MemoryManagement.ExternalProcessReader.Read[T](IntPtr address, Boolean isRelative)
      at Zeta.Internals.Actors.DiaObject.()
      at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
      at Zeta.Internals.Actors.DiaObject.get_CommonData()
      at Zeta.Internals.Actors.DiaPlayer.get_IsInConversation()
      at UnstuckMe.UnstuckMe.OnPulse() in c:\Users\xxx\Desktop\xxxs\Plugins\UnstuckMe\Plugin.cs:line 144
      at Zeta.Common.Plugins.PluginManager.PulsePlugin(IPlugin plugin)
       
    18. Disclosure2p

      Disclosure2p New Member

      Joined:
      Nov 8, 2012
      Messages:
      65
      Likes Received:
      0
      Trophy Points:
      0
      I read somewhere that you should disable trinity antistuck if you are going to use this, is that true? or can i just enable it and googog
       
    19. Poplkas

      Poplkas Banned

      Joined:
      Nov 7, 2012
      Messages:
      106
      Likes Received:
      0
      Trophy Points:
      0
      u must disable trinity unstucker.
       
    20. Disclosure2p

      Disclosure2p New Member

      Joined:
      Nov 8, 2012
      Messages:
      65
      Likes Received:
      0
      Trophy Points:
      0
      this work better?
       
    Thread Status:
    Not open for further replies.

    Share This Page