Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ExaM on March 03, 2004, 05:52 PM

Title: Error Invaild Version
Post by: ExaM on March 03, 2004, 05:52 PM
I was messing around with my bot for like three hours, and when I ran it and tried to connect, I got an error message box, saying:
ERROR

Invalid Version

I'm using BNLS and CleanSlateBot.oxc.. please help  :-[
Title: Re:Error Invaild Version
Post by: Kp on March 03, 2004, 08:25 PM
Take out the MsgBox call.  This will prevent you from receiving the error message, thus resolving the problem at hand.
Title: Re:Error Invaild Version
Post by: MyndFyre on March 04, 2004, 04:59 PM
hehe

I got an invalid version error earlier, too.  It wasn't in a message box though.

And I'm using my own bot API that I wrote from scratch in C#.  Not CSB.  =P

I haven't gotten it since, though, so it may just be isolated.
Title: Re:Error Invaild Version
Post by: Kp on March 04, 2004, 05:09 PM
Quote from: Myndfyre on March 04, 2004, 04:59 PMI haven't gotten it since, though, so it may just be isolated.

There's a known race condition in the battle.net versioning procedure that can cause a version check to fail.  If it occurs only once, this is probably what transpired.  The details:

To conserve processor resources, battle.net computes and caches a version check result for a few minutes at a time.  When you connect, it sends you the current control string; you check the files and send the result back.  The race condition lies in that there is no provision for the client's answer to be "valid" if the server changes the control string (and therefore the answer) before the client can respond.  For example, if I tell you to compute n*m and give you an n and m, then I change my mind while you're thinking, I'd consider your answer "wrong" even though you multiplied the numbers I gave you and provided the correct solution to that problem.  This is essentially what occurs with the version check race condition.
Title: Re:Error Invaild Version
Post by: Soul Taker on March 04, 2004, 11:54 PM
I've been getting invalid version errors for about a month now.  80% or so of the times when I attempt to log on a bot that uses BNLS, the first time it fails, and the second time it logs on fine.
Title: Re:Error Invaild Version
Post by: Eric on March 05, 2004, 12:39 AM
I've had it happen a few times while hashing locally.
Title: Re:Error Invaild Version
Post by: CrAz3D on March 05, 2004, 09:19 AM
Quote from: ExaM on March 03, 2004, 05:52 PM
I was messing around with my bot for like three hours, and when I ran it and tried to connect, I got an error message box, saying:
ERROR

Invalid Version

I'm using BNLS and CleanSlateBot.oxc.. please help  :-[
Probably because you're trying to use war3 which doesn't work in CSB?
Title: Re:Error Invaild Version
Post by: SNiFFeR on March 05, 2004, 12:17 PM
Quote from: CrAz3D on March 05, 2004, 09:19 AM
Probably because you're trying to use war3 which doesn't work in CSB?

Uh if you use War3 & CSB, the program usually crashes.
Title: Re:Error Invaild Version
Post by: Stealth on March 06, 2004, 12:45 AM
Quote from: SNiFFeR on March 05, 2004, 12:17 PM
Quote from: CrAz3D on March 05, 2004, 09:19 AM
Probably because you're trying to use war3 which doesn't work in CSB?

Uh if you use War3 & CSB, the program usually crashes.

CSB crashes with runtime error 9.
Title: Re:Error Invaild Version
Post by: CrAz3D on March 06, 2004, 09:03 AM
 ;D ::) I forgot, lol.
Title: Re:Error Invaild Version
Post by: ChR0NiC on March 06, 2004, 01:43 PM
Quote from: ExaM on March 03, 2004, 05:52 PM
I was messing around with my bot for like three hours, and when I ran it and tried to connect, I got an error message box, saying:
ERROR

Invalid Version

I'm using BNLS and CleanSlateBot.oxc.. please help  :-[

Well, a way to find out the problem MIGHT BE (just suggesting), when you get disconnected, make a message box pop up and do something like


MsgBox CleanSlateBot1.Product & " Is What I am Using"


So you can at least figure out what product it is trying to connect with, so you might be able to think more logically about the solution. Again..just a suggestion.
Title: Re:Error Invaild Version
Post by: ExaM on March 09, 2004, 07:47 PM
Sorry I haven't been on in a long time... haven;t had a chance. Anyways I found out the problem incase anyone is interested it was the stupidest mistake. Apparently there's a special order the CSB has to go in... like setting the Username and Password, after I fixed it it work lol
Title: Re:Error Invaild Version
Post by: Eli_1 on March 10, 2004, 03:49 PM
Quote from: ExaM on March 09, 2004, 07:47 PM
Sorry I haven't been on in a long time... haven;t had a chance. Anyways I found out the problem incase anyone is interested it was the stupidest mistake. Apparently there's a special order the CSB has to go in... like setting the Username and Password, after I fixed it it work lol
I'm not totally positive, but the only order I know of is that the .Accept has to be set first?