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

BotMain.Stop and BotMain.Start issue - log and tester included

grim2594

New Member
Joined
Jun 13, 2012
Messages
325
Reaction score
5
Alright, you may already know but I recently created an addition to my Profile Restarter plugin that will load a new profile on successful completion of the prior one. It works as intended all except this issue with Demonbuddy. Here it is:

I have included a log file and also a plugin which you can test this for yourself. The issue is that once BotMain.Stop(); and BotMain.Start(); are called, Demonbuddy seems to glitch out and stop working properly. Hitting the Stop/Start button freezes it up completely.

It is 100% repeatable.

Please, let me know if you can confirm this to be looked into or not. It may just be the way I am using it, but I do not believe so. If I am in error, please correct me.

Thank you, for your hard work, Buddyteam. ;)
 

Attachments

Last edited:
just so you know this has worked this way since launch
 
just so you know this has worked this way since launch

Oh? Is there already a thread started about it? I didn't see one.

With all of the recent ban issues, hopefully this will get bumped up in priority; so plugins like mine will be able to help the community from getting banned as much. ;)
 
Oh? Is there already a thread started about it? I didn't see one.

With all of the recent ban issues, hopefully this will get bumped up in priority; so plugins like mine will be able to help the community from getting banned as much. ;)

I don't know of any other thread I know from personally xp as I had an unstucker restarter profile manager in boss hog and this road blocked it. Unstucker also tried this method in that plugin.

Maybe spend some time looking at what is going on instead of rushing blindly ahead for little or no reward ;)
 
mayb you should not try to call the stop start in OnPulse but create a new thread for this

I am using Stop and Start in my AntiIdle and it is working without any problems
 
mayb you should not try to call the stop start in OnPulse but create a new thread for this

I am using Stop and Start in my AntiIdle and it is working without any problems
what, stoping the thread you are in is bad :0
 
Last edited:
what do you mean ?

just a joke but

The bot is a thread that pulses and when you stop the bot I assume that the bot kills that thread and stops all the pulses and except it doesn't kill the thread the thread keeps running it has it's self locked waiting for it's self to stop. That is my 3am answer anyway.


DemonBuddy
--BotThread
-----OnPulse() -- plugin running in BotThread --> Stop() --> Cant restart doesn't exist --> derp
-----BotCode()
--UnawareBotHasStoped()

I wish I had thought of that when I was messing with it two weeks ago but I wasn't really very interested; still not because most of these issues are going to go away in regards to stucks etc; the kind of have to if the bot is every going to solve a maze. a bot that gets hung on weird stuff just can't slve anything ;)
 
yeah it does not pulse anymore when you stop it :) ... but that could indeed be the problem as you describe it now
 
I simply took the .Stop and .Start methods out of my plugin, and it seems to be working okay with a Thread.Sleep delay to wait for the game to fully exit. Hopefully this issue will get fixed at some point, because it would be much better, in my opinion, to use the methods instead of relying on a Thread.Sleep. (I don't like using them.) Also, different peoples computers run at different speeds... so forcing everyone to wait for 5 seconds is kind of a big deal, as it takes away from your over-all GPH.
 
the bot won't stop until all pulses have fired and you waiting for it to stop deadlock

I really prefer not think about threading

starting a thread that did the job stop,change,start would handle it and the thread should just end when done
 
Last edited:
I really prefer not think about threading

Hah, threading does get complicated sometimes... but if done correctly, it can be a wonderful tool. ;) (I haven't seen his work, so I can't comment about that.)
 
Hah, threading does get complicated sometimes... but if done correctly, it can be a wonderful tool. ;) (I haven't seen his work, so I can't comment about that.)

You have a talent for picking the least import line of my comments to remark on but whatever:

Code:
void OnPulse(){
System.Threading.Thread restartBot = null;
restartBot = new Thread(new ThreadStart(worker));
restartBot.Start();
}

void worker()
{
    Bot.Stop();
    ProfileManager.LoadProfile(file);
    Bot.Start();
}

Stop saying there is something wrong with DB there is something wrong with how you code stuff to work.
 
Back
Top