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

[Request] DB Stop - Starter

junxi

New Member
Joined
Jul 24, 2012
Messages
12
Reaction score
0
A plugin that, 30 sec or so after db launches or after the plugin gets loaded it would simply Stops db as if you were to click on the stop button on the interface and then press the start button again a couple of seconds later, so that some plugins like gilesstashreplacer gets enabled when using a relogger like Arelog.

If someone could make this or help me figure out how to do this i would be very thankful!
 
A plugin that, 30 sec or so after db launches or after the plugin gets loaded it would simply Stops db as if you were to click on the stop button on the interface and then press the start button again a couple of seconds later, so that some plugins like gilesstashreplacer gets enabled when using a relogger like Arelog.

If someone could make this or help me figure out how to do this i would be very thankful!

Why would this be needed ? why wouldnt the stashreplacer be enabled with out this ?
 
This plugin is needed more than any other plugin right now if your using alot of plugins that use external data files.

SHORT CONCEPT: There is a.) not enough time allotted to loading the plugins before entering the game b.) No check to confirm all plugins loaded correctly c.) DemonBuddy has no delay options builtin for plugin loading d.) THIS BREAKS PLUGINS lol

What happens is if demon buddy is loaded with -autostart ( Which every relogger uses atm) it basically breaks giles plugins which is the only way you can actually Champion farm 100% afk.
There is not enough time allotted to loading the plugins before entering the game.

A plugin like this would provide demonbuddy the necessary delay required to load in all the plugins correctly; therefore allowing Giles plugins to work correctly instead of salvaging millions of gold worth of items potentially along with the other problems that this cause avoids like picking up white items which waste your bots time traveling back to time over and over again.

Essentially with out this plugin Champion Farming is BROKEN (Broken to the point where you make no money at all). I hope I explain it enough for those of you who gold farm and do not mf farm 100% Afk.

Considering currently GilesStashReplacer is the only thing advanced enough to allow for dynamic variances in loot filtering, pickup, salvaging, selling,stashing. An all in one so to speak for us Magic Find champ farmers currently farming act 1. We can not simply rely on demonbuddy's loot filters to do the job we need done. It is not dynamic. There by reducing the probability of keeping items worth 100k gold or more by exponentially high odds of failure! lol
 
Last edited:
Exactly what Sintal1ty said :D
Thanks for explaining so nicely!
 
http://www.thebuddyforum.com/demonb...n-command-line-based-anti-crash-relogger.html
works well with giles plugins as far as i can tell... Testing it now and seems ok

Ryderr some people still report problems it also seems all solutions provided are dirty work arounds.

What I believe really needs to happen is to change how -autostart works within demonbuddy.

The problem seem to occur that demonbuddy is attempting to do too much at one time. It attempts to log in and start the bot and load the plugins all at once.

What it should do is attempt to log in first and then wait to hit "start" on the bot giving the bot time to compile plugins . I believe this would solve all problems with all reloggers.
Instead of making demonbuddy load twice as a dirty workaround. I mean sure its a temporary fix but really eating up session to fix a problem is not an acceptable permanent fix.

Seriously its a problem that is ending up like this: Create plugin to fix bot > Create plugin to restart bot > Create Plugin to fix looting> Create plugin to fix restarting bot and stop breaking plugins > Create plugin to fix restarting bot session max > and so on.... Fix problem at source not at plugin level.
 
Last edited:
A plugin that, 30 sec or so after db launches or after the plugin gets loaded it would simply Stops db as if you were to click on the stop button on the interface and then press the start button again a couple of seconds later, so that some plugins like gilesstashreplacer gets enabled when using a relogger like Arelog.

If someone could make this or help me figure out how to do this i would be very thankful!


As you requested a simple stop and start when bot is started for the first time ... Dont know if this will fix the problem.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Threading;
using System.Diagnostics;

using Zeta;
using Zeta.Common;
using Zeta.Common.Plugins;
using Zeta.CommonBot;


using Demonbuddy;

namespace StopStart
{
    public partial class StopStart : IPlugin
    {
        public string Author { get { return "sinterlkaas"; } }
        public string Description { get { return ""; } }
        public string Name { get { return "stopstart" + Version.ToString(); } }
        public Version Version { get { return new Version(0, 1); } }

        public Window DisplayWindow { get { return null; } }
		
		Thread worker;
        public void OnInitialize()
        {

            Thread worker = new Thread(new ThreadStart(StopStartWorker));
			worker.Start();
        }
		
		void StopStartWorker()
		{
			while (!isClosing)
			{
				if (BotMain.IsRunning)
				{
					Logging.Write("Stop bot");
					BotMain.Stop();
					Logging.Write("wait 5 seconds");
					Thread.Sleep(5000);
					Logging.Write("Start bot");
					BotMain.Start();
					break;
				}
				Thread.Sleep(100);
			}
		}
		bool isClosing
		{
			get {  
				IntPtr h = Process.GetCurrentProcess().MainWindowHandle;
				return (h == IntPtr.Zero || h == null);
			}
		}
        public void OnShutdown()
        {
            
        }

        public void OnEnabled()
        {
            
        }
        public void OnDisabled()
        {
           
        }
        public bool Equals(IPlugin other)
        {
            return (other.Name == Name) && (other.Version == Version);
        }

        public void OnPulse()
        {
           
        }
       
    }
}
 
Thank you for your contribution. I will test this when I get home tonight. Letting others who may wish to use other re-loggers know if it fixes Giles plugin.
 
DBRun does not work properly with Giles, says its loaded but fails to work properly and salvages/sells everything.. ;(
 
As you requested a simple stop and start when bot is started for the first time ... Dont know if this will fix the problem.

Thank you so much! It seems to run flawlessly with ARelog! Now i can do 100% AFK mf runs, yes!
DBRun does not work properly with Giles, says its loaded but fails to work properly and salvages/sells everything.. ;(
This plugin probably works with that too. i would think so atleast.
 
Wanted to bump this thread as im having pluggin issues as well with DB_RUN relogger & Gilesstashreplacer.

Can anyone specify how to run sinterlkaas's posted code? Do i just copy and paste the code into a txt file and save it as a profile ".cs" or as a ."bat" file
 
Last edited:
It is a plugin should be saved as .cs in the plugin folder in its own subfolder
C:/demonbuddy/plugins/startstop/startstop.cs
 
Back
Top