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

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

Yes i was looking at that to and i tried it as well and seems to be working just fine now thanks ^^
 
no problem ^^ but theres still the problem with the AGB-plugin....is there no solution? i have a second acc using this plugin..but it doesnt work....:(

#update & solution 4 using this with ECM


it toke some time but now i have made a working solution formyself and wanted to share my idea. so the problem is, that the profile is loaded to fast before the agbplugin is loaded.
Nothing easier than that i tought: i just loaded an empty profile (with waittime 99999) on startup and activated a modified version of the "profile restarter" plugin....so what actually happen is...that the plugin will restart my game because my char is doing nothing..in other words: he stucks! only thing that my moded profilerestarter plugin now do is restart the game with the CORRECT PROFILE!!!
You just have to replace "Zeta.CommonBot.ProfileManager.Load(GlobalSettings.Instance.LastProfile);" on the Profilerestarter.cs with "Zeta.CommonBot.ProfileManager.Load(@"C:\Users\Name\Desktop\B2\example.xml");" replace the red part with your profilelocation...another step is, to modify the values at the beginning of the plugin - it has to look like this:

// Optional stuff
public bool
restartIfPlayerDies = false, // Default is true - Diable this if you don't want it
doRandomMoveBeforeRestart = false, // Default is true - Keep this enabled to try to unstuck your character before resetting profile
restartGameIfPRFails = true, // Default is true - This will leave game, if all profile restart attempts are failed
countDeathAsPR = true, // Default is true - This will count a death as a profile restart
tp4Logout = false; // Default is true - This will attempted to teleport before leaving game

// Modifiable values
public int
minMoveDist = 20, // Default 20 - Minimum move character move distance before this plugin triggers - Set this too low, and your character will always apear stuck
maxTimeToidle = 35, // Default 35 - Maximum time for character to idle - Set this too high and time betweens checks may not bring optimal results
maxRandomMoves = 3, // Default 3 - Maximum amount of attempts to unstuck character - Set this too high and your character will wander around aimlessly
prCount4Restart = 1, // Default is 3 - This will determine how many times it will restart your profile before leaving game
tpMaxAttempts = 2; // Default is 2 - This will determine how many attempts we will try to teleport back to town, before just exiting the game

otherwise the plugin will try ti unstuck by moving, but thats not what we want. Now he will restart the game after 1 profilreset!
And thats it! works perfect for me :)
 
Last edited:
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

LOL.... Ooops... MY bad... Thanks for pointing that out. DIdn't have much time to test v1.1 out previously... Will post an update abt it.



Cheers~!
 
no problem ^^ but theres still the problem with the AGB-plugin....is there no solution? i have a second acc using this plugin..but it doesnt work....:(

#update & solution 4 using this with ECM & AGB!


it toke some time but now i have made a working solution formyself and wanted to share my idea. so the problem is, that the profile is loaded to fast before the agbplugin is loaded.
Nothing easier than that i tought: i just loaded an empty profile (with waittime 99999) on startup and activated a modified version of the "profile restarter" plugin....so what actually happen is...that the plugin will restart my game because my char is doing nothing..in other words: he stucks! only thing that my moded profilerestarter plugin now do is restart the game with the CORRECT PROFILE!!!
You just have to replace "Zeta.CommonBot.ProfileManager.Load(GlobalSettings.Instance.LastProfile);" on the Profilerestarter.cs with "Zeta.CommonBot.ProfileManager.Load(@"C:\Users\Name\Desktop\B2\example.xml");" replace the red part with your profilelocation...another step is, to modify the values at the beginning of the plugin - it has to look like this:



otherwise the plugin will try ti unstuck by moving, but thats not what we want. Now he will restart the game after 1 profilreset!
And thats it! works perfect for me :)

Woah! Thanks for that man~! I tired modifying those too... the furthest I got was D3 logged in and game created and my toon gets nothing.... hmm.... will create those files and add them in the download section.

Vesparion and Eutopia~!!!! You can try this...
 
Nice work but too much of a hassle to get it working. Possible to make it simpler to use?
 
Sorry pal, I don't know how to simplify this. Lemme think about it. Meanwhile enjoy the fruits of your labor :)
 
I have tried too but like you said my character stood in the game and did nothing, profile restarter did not load the new profile.
 
Had something interesting happen... D3 got stuck on loading game screen.. Using http://www.thebuddyforum.com/demonbuddy-forum/plugins/58848-plugin-antiidle.html?highlight=antiidle which detected and shutdown both d3 and db. But the batch file didn't restart.. In fact it seemed to be stuck in the checking if tasks are non-responding routine.

Hi there, the batch file will only close when triggered by the task scheduler provided you have configured it to close existing instance. If Db and d3 are manually closed, the batch file will keep running. Hope that answers you question :)

Btw, to the batch file, antiidle's closing of db and d3 is considered by the batch file as a manual shutdown. But no problem, by the next run of the task scheduler, everything will come back again. So the most you will lose is Max 1 hr worth or farming.
 
Last edited:
I have tried too but like you said my character stood in the game and did nothing, profile restarter did not load the new profile.

Ic... I will try to get it to work tonite and will post a package containing the modified files in order to make this work. No computer access at the moment I'm afraid... Will get back to u soon!


Cheers~!
 
I took out the non-responding code as it really isn't needed, and the START. This way the batch file will work correctly with the AntiIdle plugin perfectly.. I don't even need the schedule task , as everything is covered by the batch/plugin.. Thanks for the code :)

Hi there, the batch file will only close when triggered by the task scheduler provided you have configured it to close existing instance. If Db and d3 are manually closed, the batch file will keep running. Hope that answers you question :)

Btw, to the batch file, antiidle's closing of db and d3 is considered by the batch file as a manual shutdown. But no problem, by the next run of the task scheduler, everything will come back again. So the most you will lose is Max 1 hr worth or farming.
 
Hi peeps,

Just an update: I'm trying to gather and release a new update hopefully by tonight.

Really appreciate all the comments for making this a better experience for everyone. Thanks to all the great suggestions and especially the guys who managed to find great solutions.

Thanks everyone!
 
sounds good ^^ i have done some research yesterday, and it seems there are still some problems with the agb-plugin if loading an empty profile. But it works with ECM. ProfileRestarter alway says that he cant change profile if bot is still running....Bot.Main.Stop wont work cause after this DB will behave totaly bugged. any idea?
 
This Batfile is good work!

But i have a few questions..

I use ISBoxer, Instead of using the Diablo Exe location i created an ISBoxer lnk file that loads.

This bat loaded the ISBoxer no problem, DB loaded up, then Diablo Loaded up using the ISBoxer lnk, But login never worked..

I think its got somthing to do with how DB registers that Diablo has loaded.. So i dont think the .Lnk file will work which is not good for me..

START "DB_Running" "G:\Botting\Demon\Demonbuddy 1.0.648.160\Demonbuddy.exe" -key *************** -bnetaccount **********@gmail.com -bnetpassword ******** -d3path="C:\Users\Dtrick\Desktop\Bot 1.lnk" -profile="G:\Botting\Demon\Demonbuddy 1.0.648.160\Plugins\AGBLoader\AGBLoader.xml" -routine="AGB - Nullcombat" -autostart -noflash
timeout /t 300 /NOBREAK

Do you think there is another way around this?

Possibly Allowing the Diablo to load first, Then some how allow DB to attach? is that even possible? I reckon its not working because the name of the ISBoxer has hotkey names for each client and appends to the taskbar, however in the Taskmanager its still listed as Diablo III.exe so not sure if this is the issue.

Any information would be appreciated.
 
This Batfile is good work!

But i have a few questions..

I use ISBoxer, Instead of using the Diablo Exe location i created an ISBoxer lnk file that loads.

This bat loaded the ISBoxer no problem, DB loaded up, then Diablo Loaded up using the ISBoxer lnk, But login never worked..

I think its got somthing to do with how DB registers that Diablo has loaded.. So i dont think the .Lnk file will work which is not good for me..



Do you think there is another way around this?

Possibly Allowing the Diablo to load first, Then some how allow DB to attach? is that even possible? I reckon its not working because the name of the ISBoxer has hotkey names for each client and appends to the taskbar, however in the Taskmanager its still listed as Diablo III.exe so not sure if this is the issue.

Any information would be appreciated.

Hi there. This appears to be the problem interfacing with the AGB plugin and loading of empty profiles required by combat bot plugins. Working in a fix for this. Check back soon :)
 
omg if this is the only problem and u get this working ill seriously hug you.

-PS: I spoke to Hawker in PM and he stated as i thought it had somthing to do with window titles.

ISBoxer loads their titles with is# hotkey windowname. hes gonna try to get it added with the next patch for DB so IsBoxer users can auto login.
 
Last edited:
Some update: i can now run two D3&DB Clients fully afk at the same time. It works with your modified batch, an empty profile for the start and a modified profilerestarter-plugin. Only works for ECM-profiles...but in my opinion a good ecm-profile has the same efficiency such as AGB.
I attached all files - also my personal profile i use for a dh (credits going to Carguy) wich is working perfekt with this batch. I also boting with a barb, works also fine with ecm-profile. Only thing to do is, to adapt the code-lines in the profilerestarter, where it locates the profile and of course the batch.
 

Attachments

Last edited:
omg if this is the only problem and u get this working ill seriously hug you.

-PS: I spoke to Hawker in PM and he stated as i thought it had somthing to do with window titles.

ISBoxer loads their titles with is# hotkey windowname. hes gonna try to get it added with the next patch for DB so IsBoxer users can auto login.

That's great to hear! I personally don't run isboxer so I can't really comment on this. But from what I hear from you, I'm sure that the next Db release will be great!

I'm still trying to see if there is a workaround for AGB atm... Fixing some parts of the script too...
 
Some update: i can now run two D3&DB Clients fully afk at the same time. It works with your modified batch, an empty profile for the start and a modified profilerestarter-plugin. Only works for ECM-profiles...but in my opinion a good ecm-profile has the same efficiency such as AGB.
I attached all files - also my personal profile i use for a dh (credits going to Carguy) wich is working perfekt with this batch. I also boting with a barb, works also fine with ecm-profile. Only thing to do is, to adapt the code-lines in the profilerestarter, where it locates the profile and of course the batch.

This is the reply I was waiting for lol. Thanks masterjeff! I'm still trying to find a workaround for AGB. At the same time also trying to create an additional instance for the profilerestarter plugin so that we don't need to keep editing the original plugin.


Cheers~!
 
hey teivovo,

no prolbem :)
i have watched some strange behaviour of your batch...i had an internet disconnect and your batch only shut down the two d3 instances but not DB....after that he didnt launch anything new. Any idea?
 
Back
Top