Valhalla Legends Forums Archive | Battle.net Bot Development | Bot is VERY unstable.

AuthorMessageTime
BorT
Hey, My bot connects fine..most of the bugs are fixed so far but just recently the bot seems to disconnect from bnet alot on its own. Even if its in a channel where its not being flooded with text or join/rejoins it seems to drop about every 5mins. Any Ideas? Sorry I cant be more specific, but I do not know what code to post(if any) and hopefully you guys have some suggestions to make it more stable.
P.S.: using CSB. ::)

Thanks.
March 23, 2004, 10:16 PM
Null
Debug your bot , output some stuff when your differnt events fire , try and find the exact source of when you get disconnected , then come back and post the relevant code.
March 23, 2004, 10:53 PM
Archangel
[quote author=BorT link=board=17;threadid=5945;start=0#msg51206 date=1080080190]
Hey, My bot connects fine..most of the bugs are fixed so far but just recently the bot seems to disconnect from bnet alot on its own. Even if its in a channel where its not being flooded with text or join/rejoins it seems to drop about every 5mins. Any Ideas? Sorry I cant be more specific, but I do not know what code to post(if any) and hopefully you guys have some suggestions to make it more stable.
P.S.: using CSB. ::)

Thanks.
[/quote]

Are you responding to the Packet 0x25?
March 23, 2004, 11:59 PM
UserLoser.
[quote author=Archangel link=board=17;threadid=5945;start=0#msg51248 date=1080086382]
Are you responding to the Packet 0x25?
[/quote]

I don't use CleanSlateBot, but I'd imagine it automatically does respond to SID_PING
March 24, 2004, 12:02 AM
Gangz
You cant expect to much from CSB if you wrote your own connection using BNLS or hash you could make sure its responding to all packets. it will help insure stabaility a bit
March 24, 2004, 12:06 AM
Null
He wont have to worry about responding to anything with CSB , so thats not the problem , its likely your sending something to battle.net on one of your events , which is causing you to disconnect.
March 24, 2004, 12:13 AM
Archangel
[quote author=UserLoser. link=board=17;threadid=5945;start=0#msg51250 date=1080086554]
[quote author=Archangel link=board=17;threadid=5945;start=0#msg51248 date=1080086382]
Are you responding to the Packet 0x25?
[/quote]

I don't use CleanSlateBot, but I'd imagine it automatically does respond to SID_PING
[/quote]

Sorry, like i havnt used CSB never.
March 24, 2004, 12:37 AM
Myndfyr
[quote author=Archangel link=board=17;threadid=5945;start=0#msg51259 date=1080088628]
Sorry, like i havnt used CSB never.
[/quote]

Then why would you make such a useless post??

BorT:

My bot automatically disconnected if I didn't send SID_NULL (0x00) or any other packet-- I don't ever respond to the SID_PING (0x25) packet except the first time I receive it. I added a timer to send SID_NULL every 60 seconds.

I have a thought though -- why don't you packetlog the bot? It seems to be a prudent course of action.

I would think that CSB would automatically send SID_NULL every so often, but maybe CupHead thought that lamer newbs would automatically make an anti-idle or something....
March 24, 2004, 12:46 AM
Archangel
[quote]
Then why would you make such a useless post??
[/quote]

Like i didnt know how CSB worked?
March 24, 2004, 2:34 AM
GoSuGaMING
CSB (its just an ocx)has like the whole connection written already foryou... you just set a user/ pass and stuff and put a addchat and ur pretty much done... its for people that just start out and dont know that much about bnet
March 24, 2004, 3:07 AM
Zakath
As long as Battle.net thinks you're connected (under "normal" circumstances), it sends you packets every couple minutes to make sure you're still responsive. As long as your client responds properly to SID_NULL and SID_PING, you shouldn't have problems with disconnecting all the time.
March 24, 2004, 3:20 AM
Null
I thought the official clients ignored , SID_NULL?
March 24, 2004, 3:22 AM
Archangel
So i was right?
March 24, 2004, 3:25 AM
Myndfyr
[quote author=NuLL link=board=17;threadid=5945;start=0#msg51319 date=1080098553]
I thought the official clients ignored , SID_NULL?
[/quote]
AFAIK, it is the client's responsibility to send SID_NULL. The packet is empty and as far as anyone can tell, the only purpose it serves is to keep a connection alive.

[quote author=Archangel link=board=17;threadid=5945;start=0#msg51320 date=1080098704]
So i was right?
[/quote]
You said that you didn't know CSB. If you don't know CSB, then yes, you were right.
March 24, 2004, 3:42 AM
DarkMinion
[quote]AFAIK, it is the client's responsibility to send SID_NULL. The packet is empty and as far as anyone can tell, the only purpose it serves is to keep a connection alive.[/quote]

Real blizzard clients stopped responding to SID_NULL a long time ago.
March 24, 2004, 3:43 AM
Stealth
[quote author=DarkMinion link=board=17;threadid=5945;start=0#msg51328 date=1080099827]
[quote]AFAIK, it is the client's responsibility to send SID_NULL. The packet is empty and as far as anyone can tell, the only purpose it serves is to keep a connection alive.[/quote]

Real blizzard clients stopped responding to SID_NULL a long time ago.
[/quote]

All of them?
March 24, 2004, 4:10 AM
Skywing
The Blizzard clients do send SID_NULL, but the timing is not directly related to how often they receive SID_NULL. No action is taken immediately upon receiving SID_NULL.
March 24, 2004, 6:09 PM
DarkMinion
That's what I meant. :P
March 24, 2004, 6:58 PM

Search