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

[Plugin] AntiIdle

Plugin doenst close Client after Arelog stop client because of a pause. :(
 
what does this mean?
im getting this quite often

DB: 160
Plugins, profile: AGB, Antiidle

[17:10:18.058 N] [AntiIdle v0.6.1] OnPulse: System.NullReferenceException: Object reference not set to an instance of an object.
at AntiIdle.AntiIdle.OnPulse() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 220
 
Last edited:
also, i have the problem when Diablo crashed, the Diablo windows is closed but the DB was not.
ARelog reopen the Diablo windows and then doing nothing, I assume it stopped because the DB bot is still there and it could not open another one

Code:
[17:30:34.140 N] Creating new game, Params: <Act:A1 Difficulty:Inferno Quest:72095 QuestStep:51 ResumeFromSave:True IsPrivate:True>
[17:30:58.722 N] [AntiIdle v0.6.1] We are idle
[17:30:58.722 N] [AntiIdle v0.6.1] Stop bot
[17:30:58.722 N] Stopping the bot.
[17:30:58.722 N] [AntiIdle v0.6.1] Bot Stop Detected
[17:30:58.759 N] Bot Thread Ended. Was this requested?
[17:30:59.734 N] [AntiIdle v0.6.1] ZetaDia.Me.IsValid
[17:30:59.734 N] [AntiIdle v0.6.1] Portal to town
[17:31:09.734 N] [AntiIdle v0.6.1] Restarter: System.Exception: Process must have frozen or gotten out of sync: InjectionFinishedEvent was never fired
   at ..(String debugMessage)
   at Zeta.Internals.Actors.DiaActivePlayer.UsePower(SNOPower power, Vector3 clickPos, Int32 worldDynamicId, Int32 targetACDGuid)
   at Zeta.Internals.Actors.DiaActivePlayer.UseTownPortal()
   at AntiIdle.AntiIdle.RestartGame() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 615
[17:31:09.734 N] [AntiIdle v0.6.1] Something went wrong try again
[17:31:09.734 N] [AntiIdle v0.6.1] Reloading profile and starting bot
[17:31:10.037 N] Loaded profile Carguy's Ultimate Sarkoth v1.3c - 12ms
[17:31:12.335 N] Loaded profile Carguy's Ultimate Sarkoth v1.3c - 12ms
[17:31:12.337 N] [AntiIdle v0.6.1] Restarter: System.AccessViolationException: Could not read bytes from 348C80B0 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.ACD.()
   at Zeta.Internals.Actors.ACDItem.get_InventorySlot()
   at Zeta.Internals.Actors.DiaActivePlayer.InventoryManager.(ACDItem i)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Zeta.Internals.Actors.DiaActivePlayer.InventoryManager.get_Coinage()
   at AGB.Modules.FrontalLobe.HandleBotStart(IBot bot)
   at Zeta.CommonBot.BotEvent.Invoke(IBot bot)
   at Zeta.CommonBot.BotMain.Start()
   at AntiIdle.AntiIdle.RestartGame() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 677
[17:31:12.337 N] [AntiIdle v0.6.1] Something went wrong try again
[17:31:12.337 N] [AntiIdle v0.6.1] To many DB restart attempts
[17:31:12.337 N] [AntiIdle v0.6.1] Close DB
[17:31:12.385 N] [AntiIdle v0.6.1] System.ArgumentException: Process with an Id of 1828 is not running.
   at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
   at System.Diagnostics.Process.GetProcessById(Int32 processId)
   at AntiIdle.AntiIdle.ShutdownDB(Boolean forceD3) in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 701
[17:31:12.886 N] [AntiIdle v0.6.1] To many AntiIdle actions done
[17:31:12.886 N] [AntiIdle v0.6.1] Close DB
[17:31:12.887 N] [AntiIdle v0.6.1] System.ArgumentException: Process with an Id of 1828 is not running.
   at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
   at System.Diagnostics.Process.GetProcessById(Int32 processId)
   at AntiIdle.AntiIdle.ShutdownDB(Boolean forceD3) in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 701
[17:31:12.887 N] [AntiIdle v0.6.1] Thread closed
 
what does this mean?
im getting this quite often

DB: 160
Plugins, profile: AGB, Antiidle

[17:10:18.058 N] [AntiIdle v0.6.1] OnPulse: System.NullReferenceException: Object reference not set to an instance of an object.
at AntiIdle.AntiIdle.OnPulse() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 220


I get this problem as well!
 
what does this mean?
im getting this quite often

DB: 160
Plugins, profile: AGB, Antiidle

[17:10:18.058 N] [AntiIdle v0.6.1] OnPulse: System.NullReferenceException: Object reference not set to an instance of an object.
at AntiIdle.AntiIdle.OnPulse() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 220

This is not a really big issue.. it happens when we are checking our AnimationState I do check if CommonData is valid but somehow the AnimationState is not set giving the NullReferenceException error.. This does not stop AntiIdle from doing its job

but I added a check for this to check if animationstate is valid or not
 
Last edited:
Can you tell me more details? how does ARelog pause DB ? ?

I set a schedule plan for each DB Toon, After Schedule 1 are finished i set Idle for ~ 30minutes. DB logs out of D3 but let the Client open and flashing windows every time. AntiIdel doenst recognize that and doenst close client. The problem is, that ARelog cant restart D3 because the client is open
 
also, i have the problem when Diablo crashed, the Diablo windows is closed but the DB was not.
ARelog reopen the Diablo windows and then doing nothing, I assume it stopped because the DB bot is still there and it could not open another one

Code:
[17:30:34.140 N] Creating new game, Params: <Act:A1 Difficulty:Inferno Quest:72095 QuestStep:51 ResumeFromSave:True IsPrivate:True>
[17:30:58.722 N] [AntiIdle v0.6.1] We are idle
[17:30:58.722 N] [AntiIdle v0.6.1] Stop bot
[17:30:58.722 N] Stopping the bot.
[17:30:58.722 N] [AntiIdle v0.6.1] Bot Stop Detected
[17:30:58.759 N] Bot Thread Ended. Was this requested?
[17:30:59.734 N] [AntiIdle v0.6.1] ZetaDia.Me.IsValid
[17:30:59.734 N] [AntiIdle v0.6.1] Portal to town
[17:31:09.734 N] [AntiIdle v0.6.1] Restarter: System.Exception: Process must have frozen or gotten out of sync: InjectionFinishedEvent was never fired
   at ..(String debugMessage)
   at Zeta.Internals.Actors.DiaActivePlayer.UsePower(SNOPower power, Vector3 clickPos, Int32 worldDynamicId, Int32 targetACDGuid)
   at Zeta.Internals.Actors.DiaActivePlayer.UseTownPortal()
   at AntiIdle.AntiIdle.RestartGame() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 615
[17:31:09.734 N] [AntiIdle v0.6.1] Something went wrong try again
[17:31:09.734 N] [AntiIdle v0.6.1] Reloading profile and starting bot
[17:31:10.037 N] Loaded profile Carguy's Ultimate Sarkoth v1.3c - 12ms
[17:31:12.335 N] Loaded profile Carguy's Ultimate Sarkoth v1.3c - 12ms
[17:31:12.337 N] [AntiIdle v0.6.1] Restarter: System.AccessViolationException: Could not read bytes from 348C80B0 [299]!
   at Zeta.MemoryManagement.ExternalProcessReader.(IntPtr address, Int32 count, Boolean isRelative)
   at Zeta.MemoryManagement.ExternalProcessReader.[T](IntPtr address, Boolean isRelative)
   at Zeta.Internals.Actors.ACD.()
   at Zeta.Internals.Actors.ACDItem.get_InventorySlot()
   at Zeta.Internals.Actors.DiaActivePlayer.InventoryManager.(ACDItem i)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Zeta.Internals.Actors.DiaActivePlayer.InventoryManager.get_Coinage()
   at AGB.Modules.FrontalLobe.HandleBotStart(IBot bot)
   at Zeta.CommonBot.BotEvent.Invoke(IBot bot)
   at Zeta.CommonBot.BotMain.Start()
   at AntiIdle.AntiIdle.RestartGame() in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 677
[17:31:12.337 N] [AntiIdle v0.6.1] Something went wrong try again
[17:31:12.337 N] [AntiIdle v0.6.1] To many DB restart attempts
[17:31:12.337 N] [AntiIdle v0.6.1] Close DB
[17:31:12.385 N] [AntiIdle v0.6.1] System.ArgumentException: Process with an Id of 1828 is not running.
   at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
   at System.Diagnostics.Process.GetProcessById(Int32 processId)
   at AntiIdle.AntiIdle.ShutdownDB(Boolean forceD3) in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 701
[17:31:12.886 N] [AntiIdle v0.6.1] To many AntiIdle actions done
[17:31:12.886 N] [AntiIdle v0.6.1] Close DB
[17:31:12.887 N] [AntiIdle v0.6.1] System.ArgumentException: Process with an Id of 1828 is not running.
   at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
   at System.Diagnostics.Process.GetProcessById(Int32 processId)
   at AntiIdle.AntiIdle.ShutdownDB(Boolean forceD3) in c:\Users\Marcus\Desktop\Demonbuddy 1.0.648.160\Plugins\AntiIdle\AntiIdle.cs:line 701
[17:31:12.887 N] [AntiIdle v0.6.1] Thread closed


I added some more checks to detect if D3 crashed or is frozen now and testing it now. But it does not look that AntiIlde is the problem of DB not closing properly in this case ... because it tells me that my thread closed properly
[17:31:12.887 N] [AntiIdle v0.6.1] Thread closed
 
I set a schedule plan for each DB Toon, After Schedule 1 are finished i set Idle for ~ 30minutes. DB logs out of D3 but let the Client open and flashing windows every time. AntiIdel doenst recognize that and doenst close client. The problem is, that ARelog cant restart D3 because the client is open

Ok what are you using to schedule? the 30 mins break ?
 
I added some more checks to detect if D3 crashed or is frozen now and testing it now. But it does not look that AntiIlde is the problem of DB not closing properly in this case ... because it tells me that my thread closed properly
[17:31:12.887 N] [AntiIdle v0.6.1] Thread closed

I have to correct myself here it indeed did exit our thread but our cleanup code was never called because of the exception that was called while closing D3 so leaving DB running indeed this is fixed in my test version now wait for next update and it will be fixed .. thanks for the report :)
 
ARelog - Option "schedule selected"

After 1st run time, DB log out of the toon and windows idle. But on this time, after db logs out, window + db process must be close. so after the idle time, arelog see that db and d3 client are running and doenst restart that.
 
ARelog - Option "schedule selected"

After 1st run time, DB log out of the toon and windows idle. But on this time, after db logs out, window + db process must be close. so after the idle time, arelog see that db and d3 client are running and doenst restart that.

I'm a bit confused now ...
You tell me after ARelog did the frist schedule (2h run) it does not close DB + D3 ?
if so look at DB logs what causes it to not close.. but it is still strange that D3 does not get closed this can not be caused by AntiIdle
 
Last edited:
From what I can reproduce on this is ...
I made it run a 1 profile 2 times and loop this

ARelog closes DB + D3 without any problems then it starts both again causing it have Max session error I think this is because ARelog just kills the process and not calls the mainwindow to close leaving the session open and not being flagged as closed
 
Update to version 0.6.2
* Added: Minimize DB window when AntiIdle gets enabled (this will also happen when DB gets restarted. By default this is disabled edit config file to enable)
* Bug fix: Sometimes DB did not close when D3 gets frozen / crashed while AntiIdle tried to close it and caused a exception
* Bug fix: The OnPulse: NullReferenceException happend when trying to get our animation state and it was invalid
 
Will this plugin cause d3 to close when DB's memory leak causes it to crash? (just over 1.4 gb ram)
 
With DB 169 AntiIdel is broken, detects stuck and DB freeze... :(
 
Back
Top