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

[Batch File] DB_Run: Command-line based Anti-Crash and Relogger

mmh, that was my idea at first too...but if it will kill all instances of d3&db, it couldnt work i tought - but with your trick it could work, i will try that when im back home and will post my results ;)

Roger that! Btw, I just uploaded v1.1

Now the script can detect if Demonbuddy.exe or Diablo III.exe is NOT RESPONDING (only not responding) and restart the whole run.
 
Have you tried running DB using the 2nd last line of the batch file from an elevated command prompt to see if it works?

It should read something like this (just an example):
"c:\Users\XXX\Desktop\Demonbuddy 1.60\Demonbuddy.exe" -key 1234567890 -bnetaccount [email protected] -bnetpassword BnetPassword -d3path="C:\Program Files\Diablo III\Diablo III.exe" -profile="c:\Users\XXX\Desktop\Demonbuddy 1.60\Profiles\Example.xml" -routine="Belphegor All-in-One" -autostart -noflash

Try and see if it runs. If it shows the same symptoms, then it is unlikely the batch file is going to work for you.
Still doesnt work im guessing it has maybe something to do with agb? since the plugin seems to dissapear from the list when db starts automatically.
 
Still doesnt work im guessing it has maybe something to do with agb? since the plugin seems to dissapear from the list when db starts automatically.

Hmm... you could try redownloading and installing AGB? Check if there's a new version. Something else you could try is to open up DB normally with D3 and select AGB then close DB and D3 normally. Then try running DB_Run again.


Cheers~!
 
Did anyone solve the issue of the script not loggin into the D3 ? it worked for me yesterday and today with another account it does not log in O_o
 
Did anyone solve the issue of the script not loggin into the D3 ? it worked for me yesterday and today with another account it does not log in O_o

Btw, check the quotes "". They make a difference. Also make sure the command executes in a single line. If all else fails, try running the demonbuddy command on command prompt to see if it's ok.
 
quotes are okay, everything is in one line, when i run just the final line it does not work either d3/db launches but sits on the login screen.
 
The most ubeliveble thing is that it works if i switch it to yesterday's setup with another acc another demonbuddy catalog and another demonbuddy profile. Then it logs in and everything is fine but somehow when i want to use another acc/profile it does not work.
 
The most ubeliveble thing is that it works if i switch it to yesterday's setup with another acc another demonbuddy catalog and another demonbuddy profile. Then it logs in and everything is fine but somehow when i want to use another acc/profile it does not work.

Hmm... You might want to try executing it on a demonbuddy with all plugins disabled and item rules on default. Basically what I mean is to replicate whatever settings you were using yesterday, change only ur login details. Then see if it runs. If it does run, then slowly introduce your desired plugins, rules and plugins one by one to see which one was giving the problem.
 
I've narrowed it down to one cause:

With profile A it works ( zolten kulle leveling )
With profile B it does not ( AGB - Loader )

There's nothing in the zolten kulle profile about login or anything that might make it work so i guess its just the code length AGB is 4-5 lines of code where zolten kulle has ~100

Maybe it loads the profile too fast ? and then it wont log in ?
 
I've narrowed it down to one cause:

With profile A it works ( zolten kulle leveling )
With profile B it does not ( AGB - Loader )

There's nothing in the zolten kulle profile about login or anything that might make it work so i guess its just the code length AGB is 4-5 lines of code where zolten kulle has ~100

Maybe it loads the profile too fast ? and then it wont log in ?

First it was too slow, now it's too fast. You got some speed issues on ur pc bro! Lol! Have u tried what I mentioned earlier about loading the stuff one by one?
 
Yes and it comes to the profile:

I have DB 1.6 with AGB plugin enabled and when it loads AGB profile it doest not work but when it loads Zolten Kulle it works.
 
Icic. I think someone else was having a bit of problem trying to get this to work with AGB. Do you have the error logs?
 
Icic. I think someone else was having a bit of problem trying to get this to work with AGB. Do you have the error logs?
Well its definitely something with AGB that makes it so it doesnt work, cuz i made 2 clean DB 1 with and 1 without AGB, it works without AGB.
 
Yes and it comes to the profile:

I have DB 1.6 with AGB plugin enabled and when it loads AGB profile it doest not work but when it loads Zolten Kulle it works.


Well its definitely something with AGB that makes it so it doesnt work, cuz i made 2 clean DB 1 with and 1 without AGB, it works without AGB.


Hmm... I've tried it out on my own. It seems that the command line method of executing DB only works for Order bots (which most of the profiles are - the ones that explicitly mark waypoints and skill uses) and does not work for Combat bots (e.g. AGB). I managed to get past the login stage of D3 by making AGB into an order bot, but the plugins will not work correctly as it is mean to work as a combat bot....

So I guess we'll have to wait till the devs put in some way to run Combat bots via command line... Till then... Stick to Order bot profiles if you're going to use this....


Cheers~!
 
Testing it out right now and as first time running seemed to be just fine. So how does this treat the disconnection issues? it picks up if its been idle for the max minutes and just force restarts everything?

Ok figured out the issue but havent resolved it, The first time it checks to see if there is an error it always detects one and ends up restarting

Why could it be doing this?
 
Last edited:
Testing it out right now and as first time running seemed to be just fine. So how does this treat the disconnection issues? it picks up if its been idle for the max minutes and just force restarts everything?

Nope. It does not detect disconnection issues. Right now it will only detect if either DB or D3 is in "not responding" state, then it'll restart everything...

The max minutes and min minutes is actually for defining some sort of artificial "break time".


Cheers~!
 
I believe the problem with AGB is that it is a plugin, not actually a profile. That's why these reloggers, Arelog included, have issues with it.
 
i get the batch to work for me when i start it manualy but i hade to put "Plugins" and "Settings" from DB in the same folder than the script is stored in
d3 and db is loaded, plugins become enabled, route is defined and it starts to bot

when i want to start it trough the schedule manager i get wired errors....
it asks me every time to update my SarkothFarmer because there is an new version (but i already had the new version....)
i installed v36 and whenn the schedule manager starts everything v30 is loaded (it even isn't in the folder....)


Here is the log, red underlined seems very strange to me....
[15:41:05.935 D] Reloading AssemblyLoader<Zeta.CommonBot.ICombat> - Initializing
[15:41:07.320 N] Current bot set to Order Bot
[15:41:07.321 N] Loaded profile Sarkoth dummy profile by Inrego
[15:41:07.379 D] Reloading AssemblyLoader<Zeta.CommonBot.ICombat> - RoutineManager.Reload !THROTTLED!
[15:41:07.379 D] Routines were reloaded. New routine list:
[15:41:07.379 D] Belphegor All-in-One v1.0.648.160
[15:41:07.379 D] Generic v0.0.0.0
[15:41:07.380 N] Chose Belphegor All-in-One as your combat routine.
[15:41:07.385 N] [Belphegor] Building method list
[15:41:07.386 N] [Belphegor] Added 39 methods
[15:41:07.387 N] [Belphegor] InvalidWrapper is a match!
[15:41:07.387 N] [Belphegor] Using InvalidWrapper for Combat (Priority: 0)
[15:41:07.397 N] [Belphegor] InvalidWrapper is a match!
[15:41:07.397 N] [Belphegor] Using InvalidWrapper for Buff (Priority: 0)
[15:41:07.397 N] [Belphegor] Behaviors created
[15:41:07.397 D] Forcing profile reload.
[15:41:07.664 N] Loaded profile Sarkoth dummy profile by Inrego
[15:41:07.664 D] Starting bot Order Bot
[15:41:07.677 D] Added new hook [OutOfGame] 5f3f0b32-401d-4d95-b9ad-ae1a3bf187e9
[15:41:07.678 D] Added new hook [Death] 4d986324-1462-4e82-ba40-ed43d0ad8df2
[15:41:07.679 D] Added new hook [RoutineBuffs] a0a47fe9-9f64-4848-9f80-e070f720bed7
[15:41:07.679 D] Added new hook [RoutineCombat] 6698c850-fdde-49b0-9417-07a1d95eb44b
[15:41:07.679 D] Added new hook [Combat] 89775caf-900b-4e63-a55e-ce6142028f5c
[15:41:07.689 D] Added new hook [VendorRun] fca4504e-f2d5-467a-b6a2-acc5078521ef
[15:41:07.696 D] Added new hook [Loot] 3e999548-41a5-4f2f-8a96-26cce958ba18
[15:41:07.697 D] Replaced hook [BotBehavior] 538f128b-8b08-40a3-a3fa-d0d25999ee23
[15:41:07.698 D] Spooling up bot thread.
[15:41:07.699 D] Bot thread started.
[15:41:07.953 N] Logging into game
[15:41:17.141 D] Reloading AssemblyLoader<Zeta.Common.Plugins.IPlugin> - Initializing
[15:41:26.719 N] [SarkothFarmer] Checking for new version
[15:41:26.723 D] There are 1 plugins.
[15:41:26.830 N] Creating new game, Params: <Act:A1 Difficulty:Inferno Quest:72095 QuestStep:51 ResumeFromSave:True IsPrivate:True>
[15:41:31.730 D] Joined a game!
[15:41:31.737 N] Game joined, Reloading profile.
[15:41:32.020 N] Loaded profile Sarkoth dummy profile by Inrego
[15:41:32.035 D] Starting gold: 17383749
[15:41:32.038 D] Starting experience: 1200
[15:41:32.041 N] [Belphegor] BarbarianCombat is a match!
[15:41:32.041 N] [Belphegor] Using BarbarianCombat for Combat (Priority: 0)
[15:41:32.046 N] [Belphegor] BarbarianBuffs is a match!
[15:41:32.046 N] [Belphegor] Using BarbarianBuffs for Buff (Priority: 0)
[15:41:32.046 N] [Belphegor] Behaviors created
[15:41:32.061 N] ###################### REPORT ######################
[15:41:32.063 N] Gold: 17383749
[15:41:32.065 N] Blues: 0
[15:41:32.066 N] Yellows: 0
[15:41:32.069 N] Legendaries: 0
[15:41:32.071 N] Set items: 0
[15:41:32.071 N] ####################################################
[15:41:32.112 V] Using power Barbarian_WarCry clickPos:<0, 0, 0> worldDynamicId:1999503360 targetACDGuid:-1
[15:41:32.116 V] Using power: Barbarian_WarCry
[15:41:32.478 D] Replaced hook [ProfileOrderBehavior_Hook] 2f1866f7-f251-4b56-85e7-020de37cf371
[15:41:33.106 D] Replaced hook [ProfileOrderBehavior_Hook] 9cfa794f-29c0-4755-a9d5-ad1b12fc8d8b
[15:41:55.975 N] [SarkothFarmer] Downloading update.
[15:41:56.460 V] [SarkothFarmer] Downloading Barbarian.cs
[15:41:56.733 V] [SarkothFarmer] Downloading Common.cs
[15:41:56.995 V] [SarkothFarmer] Downloading DemonHunter.cs
[15:41:57.224 V] [SarkothFarmer] Downloading Monk.cs
[15:41:57.459 V] [SarkothFarmer] Downloading WitchDoctor.cs
[15:41:57.746 V] [SarkothFarmer] Downloading Wizard.cs
[15:41:58.231 V] [SarkothFarmer] Downloading Composites.cs
[15:41:58.520 V] [SarkothFarmer] Downloading Logger.cs
[15:41:58.752 V] [SarkothFarmer] Downloading Objects.cs
[15:41:59.013 V] [SarkothFarmer] Downloading StateManager.cs
[15:41:59.257 V] [SarkothFarmer] Downloading Stats.cs
[15:41:59.487 V] [SarkothFarmer] Downloading Updater.cs
[15:41:59.722 V] [SarkothFarmer] Downloading SarkothFarmer.cs
[15:42:00.221 V] [SarkothFarmer] Downloading SettingsWindow.Designer.cs
[15:42:00.506 V] [SarkothFarmer] Downloading SettingsWindow.cs
[15:42:00.770 V] [SarkothFarmer] Downloading SettingsWindow.resx
[15:42:01.032 V] [SarkothFarmer] Downloading SettingsWrapper.cs
[15:42:01.351 N] [SarkothFarmer] Download complete.
[15:42:01.354 N] [SarkothFarmer] System.IO.DirectoryNotFoundException: A part of the path "C:\Windows\system32\Settings\My Bnet account name\SarkothFarmer.xml" was not found.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFrom*****, Boolean useLongPath)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
bei System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
bei System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
bei SarkothFarmer.Settings.SettingsWrapper.SaveSettings() in c:\Users\Administrator\Desktop\sakarothfarmerr30\Plugins\SarkothFarmer\Settings\SettingsWrapper.cs:Zeile 129.
bei SarkothFarmer.Helpers.Updater.CheckForUpdate() in c:\Users\Administrator\Desktop\sakarothfarmerr30\Plugins\SarkothFarmer\Helpers\Updater.cs:Zeile 52.
[15:42:32.314 V] Using power Barbarian_WarCry clickPos:<0, 0, 0> worldDynamicId:1999503360 targetACDGuid:-1
[15:42:32.315 V] Using power: Barbarian_WarCry
[15:43:01.710 N] Stopping the bot.
[15:43:01.710 D] CurrentBot.Stop()
[15:43:01.710 D] Navigator.Clear()
[15:43:01.710 D] Navigator.Clear
[15:43:01.712 D] TreeHooks.Instance.ClearAll()
[15:43:01.712 D] OnStop event
[15:43:01.712 D] OnStop Event Invoking
[15:43:01.712 D] QuestOrderManager.OnBotStop(). Resetting caches.
[15:43:01.713 D] Resetting current behavior.
[15:43:01.713 D] QuestOrderManager.OnBotStop(). Resetting caches.
[15:43:01.713 D] Resetting current behavior.
[15:43:01.713 D] QuestOrderManager.OnBotStop(). Resetting caches.
[15:43:01.713 D] Resetting current behavior.
[15:43:01.714 D] Calling OnDone() on current behavior. WhileTag: IsDone: False, Condition: not Me.IsInTown, Conditional: System.Func`1[System.Boolean], Body: System.Collections.Generic.List`1[Zeta.CommonBot.Profile.ProfileBehavior], QuestId: 0, StepId: 0, QuestName: Quest Id: 0, IsDoneCache: False, Behavior: Zeta.TreeSharp.Decorator,
 
It starts my demon buddy and d3 then i get the waiting for x seconds, press CTRL+C to quit...
After the time expires which starts at a lil over 3minutes it does the reset of everything.

Did i do something wrong when i set it up?
 
Hmm... im not too sure with this... but what I could suggest is to have two sets of everything running via vmplayer or vmware....

Or if you are running let's say 2 DB cum D3 instances on one pc, you could differentiate both of them by changing file names and having different run paths eg: Diablo IIIA.exe and Diablo IIIB.exe, DemonbuddyA.exe and DemonbuddyB.exe and so forth. Make sure that you have two separate batch files controlling the different instances and amend the paths in them correctly. Fire up both batch files and see if they will work concurrently. If they do, run the batch files again and see if they close correctly. If that works too, then all you need to do is to create two separate tasks in the task scheduler to fire them up at different times.

Lemme know if it works for you! I'm quite interested to know too... But I'm currently only running 1 instance of D3 :P

Okay, tried that, it wont work that way, because DB will not detect the diablo.exe and wont start :D
Now i will try to double the process in your batch.....cause with your new version it wont be that bad if he restarts both d3&DB exes, even though one is runnig fine...ill report later ;)

#update: BUT at least it runs fine with 1 d3&db exe - but the new version with the "NOT RESPONDING"-feature doesnt work for me....my d3&bot worked smoothly..and then suddenly he restartet it after a random countdown..:(

#update2 i think i know why it isnt working...u coded in your batch "IF NOT ERRORLEVEL==1 GOTO :DETECTED"....should it not be "IF ERRORLEVEL==1 GOTO :DETECTED" ?? i will try that and report

#update3 ha! i knew it! Its because of "IF NOT ERRORLEVEL==1 GOTO :DETECTED". It must be "IF ERRORLEVEL==1 GOTO :DETECTED"! Anyway...thanks for your great batch..its works fine now - cant live without it anymore :D
 
Last edited:
Back
Top