What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] UnstuckMe!

Status
Not open for further replies.
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.
 
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 => 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 => p.Plugin.Name.Equals("GilesTrinity")).FirstOrDefault();
                return (plugin != null && plugin.Enabled);
            }
        }

Cheers,

rrrix
 
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:

Cheers,

rrrix

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
 
Got this error when I tried to use your plugin for the first time:

Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\BreakStuff.cs(8,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\BreakStuff.cs(9,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\BreakStuff.cs(10,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\BreakStuff.cs(11,12) : error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\GilesTrinity.cs(5,19) : error CS0234: The type or namespace name 'Plugins' does not exist in the namespace 'Zeta.Common' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\MyStuckHandler.cs(6,12) : error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\MyStuckHandler.cs(10,35) : error CS0246: The type or namespace name 'IStuckHandler' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\NextProfile.cs(10,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\NextProfile.cs(11,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\NextProfile.cs(12,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(7,19) : error CS0234: The type or namespace name 'Plugins' does not exist in the namespace 'Zeta.Common' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(8,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(9,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(10,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(11,12) : error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(16,38) : error CS0246: The type or namespace name 'IPlugin' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(17,12) : error CS0234: The type or namespace name 'XmlEngine' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(11,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(12,12) : error CS0234: The type or namespace name 'Internals' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(14,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(15,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(16,12) : error CS0234: The type or namespace name 'CommonBot' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(17,12) : error CS0234: The type or namespace name 'TreeSharp' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(19,12) : error CS0234: The type or namespace name 'Navigation' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\MyStuckHandler.cs(12,16) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(36,32) : error CS0122: 'System.LogLevel' is inaccessible due to its protection level
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(36,28) : error CS0051: Inconsistent accessibility: parameter type 'System.LogLevel' is less accessible than method 'UnstuckMe.UnstuckMe.Log(System.LogLevel, string, params object[])'
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(100,30) : error CS0246: The type or namespace name 'IBot' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Plugin.cs(119,28) : error CS0246: The type or namespace name 'IPlugin' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(18,21) : error CS0234: The type or namespace name 'TreeSharp' does not exist in the namespace 'Zeta' (are you missing an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(47,22) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(50,17) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(52,22) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(63,21) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(65,16) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(357,33) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Unstucker.cs(467,52) : error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(315,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(315,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(319,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(319,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(327,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(327,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(336,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(336,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(343,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(343,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(350,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(350,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(357,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(357,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(365,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(365,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(374,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(374,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(384,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(384,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(392,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(392,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(401,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(401,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(410,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(410,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(418,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(418,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(426,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(426,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(434,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(434,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(441,10) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(441,10) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(290,6) : error CS0246: The type or namespace name 'XmlElement' could not be found (are you missing a using directive or an assembly reference?)
Compiler Error: c:\Program Files (x86)\Honor Buddy\Plugins\UnstuckMe\Settings.cs(290,6) : error CS0246: The type or namespace name 'XmlElementAttribute' could not be found (are you missing a using directive or an assembly reference?)

Not sure what I did wrong, I just extracted it to the plugins folder. Does this only work in the beta client or something?
 
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?

You are using it on Honorbuddy ? and it is made for Demonbuddy
 
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
 
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

There is a reason for not reloading the current profile cause RadsAtom and Pluginmanager should take care of this
 
There is a reason for not reloading the current profile cause RadsAtom and Pluginmanager should take care of this

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 =).
 
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:
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)
 
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
 
Status
Not open for further replies.
Back
Top