Page 1 of 1
How to detect Disconnect?
Posted: Mon Jan 24, 2011 9:33 am
by RebornX
Hi,
I've a problem. My internet connection is unstable, so nearly every hour the game lose the connection and logged out into login screen.
So i must retype my nickname and password manualy, even with the autologin addon
http://www.solarstrike.net/phpBB3/viewt ... =21&t=1245
How can i configure the bot, to detect disconnects and automatically login after DC?
____
sry for my bad english...
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 9:46 am
by lisa
I think the main issue would be detecting when you get your connection back, it can detect when it is disconnected easy enough but to detect when your internet is running again would involve more work. I don't think constantly trying to make RoM log into your account over and over for 10 minutes would be a good way to deal with the issue.
I'm thinking you would need to set up for yourself an ip ping, that would check your internet connection. This is something that would be specific for yourself, I don't know if other people are having any issues like this.
Basically you would need to adjust the bot for your own purpose. Any time the bot is updated you would also need to update the files you have changed/added to make this work for you.
Might be easier to fix the reason you get disconnected in the first place??
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 9:57 am
by RebornX
No, i can't solve the disconnected problem. And even if i could, sometimes rom kicked me also with connection.
After a Disconnect my connection comes back after 5-10 seconds. So it is no problem to logging in after 20 seconds.
lisa you said that it can detect when it is disconnected easy enough. What should i write into my bot script to detect it? And how can i automatically logging in after that?
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 3:19 pm
by swietlowka
to auto relog u could use f/e addon (autologin)
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 3:57 pm
by RebornX
where can i find the "f/e addon" ? google don't show me good results...
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 4:09 pm
by swietlowka
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 4:28 pm
by RebornX
xD okay thx. Now i only need to know, how to detect disconnects.
Re: How to detect Disconnect?
Posted: Mon Jan 24, 2011 7:32 pm
by lisa
Does the MM window show any error messages when you lose connection? Error messages are yellow.
Re: How to detect Disconnect?
Posted: Tue Jan 25, 2011 8:21 am
by RebornX
Yes, but at first the MM runs as usual, exept that it show the message that the character is stuck somewhere. He try to get the character free, but he writes the move keys ("wasd") in the login password box. He tries it 6-10 times, and after that he show the message "...MicroMacro/scripts/rom/classes/pawn.lua:334: Error reading memory in CPawn:update()"
I hope you understand me xD
Re: How to detect Disconnect?
Posted: Tue Jan 25, 2011 10:20 am
by lisa
That can actually work in our favour and yes I do understand what you mean =)
I'm working on a couple of ideas that might work for your situation, it would only really work for 1 bot running, not sure I could make it work for multibotting.
Re: How to detect Disconnect?
Posted: Tue Jan 25, 2011 12:10 pm
by RebornX
yeeah nice

I think one working bot is better, than 3 no working bots

Re: How to detect Disconnect?
Posted: Tue Jan 25, 2011 8:00 pm
by lisa
do you know the time it usually disconnects? or does it vary quite a lot.
So every 15 mins? 20 mins? 60 mins?
Re: How to detect Disconnect?
Posted: Wed Jan 26, 2011 4:03 am
by RebornX
No sry, it vary quite a lot.