Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: tony on January 14, 2003, 08:31 AM

Title: help with bot
Post by: tony on January 14, 2003, 08:31 AM
Hey when i try to run my bot after about 2 hours i get a error that reads: run-time error 40020. invalid operation at current state. dose anyone know how to fix this? it on a spam but it it says it right when it says connecting to MCP.
Title: Re: help with bot
Post by: Grok on January 14, 2003, 09:08 AM
Maybe this.  Hope it helps, spammer.

WSAEINPROGRESS (10036)

Operation now in progress.

A blocking operation is currently executing. Windows Sockets only allows a single blocking operation to be outstanding per task (or thread), and if any other function call is made (whether or not it references that or any other socket) the function fails with the WSAEINPROGRESS error.

** If not that, then possibly this:

WSA_IO_PENDING (OS dependent)

Overlapped operations will complete later.

The program has initiated an overlapped operation which cannot be completed immediately. A completion indication will be given at a later time when the operation has been completed.

** My guess is the former.
Title: Re: help with bot
Post by: Yoni on January 14, 2003, 09:23 AM
Invalid operation at current state? Sounds like a VB error, you didn't specify what language you use though?

Also, you didn't specify whether you have the source of the said bot or are using a binary.
Title: Re: help with bot
Post by: Mesiah / haiseM on January 14, 2003, 11:16 AM
meh..

if socket.state = 7 then
    do whatever u were origionally doing
end if

Title: Re: help with bot
Post by: Yoni on January 14, 2003, 11:23 AM
7? Eww? What are symbolic constants for? :-/
Title: Re: help with bot
Post by: Grok on January 14, 2003, 11:35 AM
symbolic constants are for symbolically representing constants.

glad to be of help to you, Yoni.
Title: Re: help with bot
Post by: Mesiah / haiseM on January 14, 2003, 11:37 AM
socket states in vb, simplified:

0 = closed
1 = open
2 = listening
3 = pending request
4 = resolving host name
5 = done resolving host name
6 = connecting to remote host
7 = connected to remote host
8 = closing connection to remote host
9 = error
Title: Re: help with bot
Post by: Yoni on January 14, 2003, 11:43 AM
thx Grok ::)
Title: Re: help with bot
Post by: RhiNo on January 14, 2003, 12:25 PM
thanx MesiaH that just helped me quite a bit now
Title: Re: help with bot
Post by: SiMi on January 14, 2003, 01:40 PM
heh , i know gj MesiaH
Title: Re: help with bot
Post by: Mesiah / haiseM on January 14, 2003, 04:24 PM
ok guys, dont forget the </sarcasm>