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

[Plugin] AntiIdle

Updated to version 0.5.1
* Changed: Improved the way AntiIdle detects if DB mainwindow gets closed
* Changed: Improved last used profile loader to load the profile associated with current battleTag
 
Again a update ...

I will leave it for now a bit only when people want to have more changes or if there are any serious bugs I will fix this

Read before updating
Before moving this to your plugins folder delete the old files!
Be sure to not have DemonBuddy as your active window AntiIdle will think it is you who stopped / paused the bot
(reason for this: I removed the annoying window because mostly people don't have demonbuddy as there active window and ARelogg starts it in the background)
 
Seems to be crashing DB a lot.
Code:
[01:27:48.476 D] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
   at Zeta.Internals.Actors.DiaUnit.get_Level()
   at Zeta.CommonBot.GameStats.(Object sender, EventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at (Object , Object[] )
   at Zeta.CommonBot.Pulsator.(Delegate delegate, Object[] args) --> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
   at Zeta.Internals.Actors.DiaUnit.get_Level()
   at Zeta.CommonBot.GameStats.(Object sender, EventArgs e)
[01:27:48.476 D] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
   at Belphegor.Belphegor.SetBehaviorPulse(Object sender, EventArgs args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at (Object , Object[] )
   at Zeta.CommonBot.Pulsator.(Delegate delegate, Object[] args) --> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
 
Seems to be crashing DB a lot.
Code:
[01:27:48.476 D] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
   at Zeta.Internals.Actors.DiaUnit.get_Level()
   at Zeta.CommonBot.GameStats.(Object sender, EventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at (Object , Object[] )
   at Zeta.CommonBot.Pulsator.(Delegate delegate, Object[] args) --> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
   at Zeta.Internals.Actors.DiaUnit.get_Level()
   at Zeta.CommonBot.GameStats.(Object sender, EventArgs e)
[01:27:48.476 D] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()
   at Belphegor.Belphegor.SetBehaviorPulse(Object sender, EventArgs args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at (Object , Object[] )
   at Zeta.CommonBot.Pulsator.(Delegate delegate, Object[] args) --> System.AccessViolationException: Could not read bytes from 00000000 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.DiaObject.()
   at Zeta.Internals.Actors.DiaObject.get_ACDGuid()
   at Zeta.Internals.Actors.DiaObject.get_IsACDBased()
   at Zeta.Internals.Actors.DiaObject.GetCommonData[T]()
   at Zeta.Internals.Actors.DiaObject.get_CommonData()

can you be a bit more specific when this actually happens ?
 
Ok I am running it with the same setup now with the links you gave me ...
btw you posted only the error itself isnt there anything else above it that could be important for me ? :)
 
Ok I am running it with the same setup now with the links you gave me ...
btw you posted only the error itself isnt there anything else above it that could be important for me ? :)
Nada above it, it just happened randomly. Seemed to happen when you left the game? I'm not 100% sure though
 
what does your antiidle config file look like because I am running it for a while now and still no such crash as you posted here

Btw.. didnt you notice the plugins save state did not work ? I forgot to initilize the list that holds the plugins ...
 
Last edited:
Code:
; AntiIlde config file
; Loads on every bot start
LastSavedState = true	; Use last save state when DB gets restarted (loads plugins + profile before exit and)
closeDiablo = true		; also close diablo3 when idle
maxIdleTime = 30		; max idle time in seconds
maxNoGame = 30			; max time we are not in game
maxNoLog = 45			; If we do not recieve any log message during X seconds close DB + D3
maxAntiIdle = 2			; max times to try anti idle before closing
gameDetection = true	; enable this if you want DB to detect if diablo closed but DB is still open
useGPH = false			; Use GPH checker
minGPH = 250000			; min GPH we should have
maxLowGphTime = 5		; max time we can have low gph in minutes
humanTimeout = 10		; human verifycation will close in x seconds
useBatchKiller = true	; On DB shutdown write a batch file that will kill the process if it fails to close by it self
RestartResetTime = 300	; Reset restart count after x seconds
 
I found the problem it had to do with the logging monitor I changed something there that caused it to not correctly report last log time causing it to close after 45 seconds

you will find something like this:
[09:31:34.641 D] [AntiIdle v0.6] Last log message > 45
[09:31:34.642 N] [AntiIdle v0.6] Close DB
[09:31:34.647 N] [AntiIdle v0.6] Closing Diablo III:3408
 
I found the problem it had to do with the logging monitor I changed something there that caused it to not correctly report last log time causing it to close after 45 seconds

you will find something like this:
[09:31:34.641 D] [AntiIdle v0.6] Last log message > 45
[09:31:34.642 N] [AntiIdle v0.6] Close DB
[09:31:34.647 N] [AntiIdle v0.6] Closing Diablo III:3408
Good stuff, hope it can be fixed :)
 
yes is easy fix just stupid that I did not test long enough with it :( sorry
 
Update Version 0.6.1

Two really important bug fixes are made in this version!!


  • Bug fix: Last state saver did not work properly
    [*]Bug fix: Lastlog time was never reset causing DB + D3 to close after 45 seconds all the time


Note:
Didnt have time to test to much because I have to go in a minute but I just had to fix this asap because now it was not working properly at all :)
will be back later tonight and check if anything was still causing problems
 
Last edited:
Back
Top