Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Gangz on January 07, 2004, 04:36 PM

Title: War3 verbyte chanegd again?
Post by: Gangz on January 07, 2004, 04:36 PM
Im not sure but last night i logged my bot on war3 and it worked correct. When I got home today i reconnected and got a game version unrecognized. Did something happen i have yet to know about?

       Case "3RAW", "PX3W"
           GetVerByte = "0D"
Title: Re:War3 verbyte chanegd again?
Post by: Kp on January 07, 2004, 06:05 PM
Quote from: Gangz on January 07, 2004, 04:36 PM
Im not sure but last night i logged my bot on war3 and it worked correct. When I got home today i reconnected and got a game version unrecognized. Did something happen i have yet to know about?

       Case "3RAW", "PX3W"
           GetVerByte = "0D"

Yes.  You coded your client in an inferior manner.  You should instead request the latest version byte from BNLS, which was updated for the patch several hours ago.
Title: Re:War3 verbyte chanegd again?
Post by: effect on January 07, 2004, 06:20 PM
or you could just find out the new version byte by yourself...
Title: Re:War3 verbyte chanegd again?
Post by: UserLoser. on January 07, 2004, 06:28 PM
Usually when there's a new patch, the version byte increments by one, so take a guess at it or keep trying until it works
Title: Re:War3 verbyte chanegd again?
Post by: Spht on January 07, 2004, 06:35 PM
Safer/quicker to just ask BNLS so you don't have to keep making guesses.
Title: Re:War3 verbyte chanegd again?
Post by: Mesiah / haiseM on January 09, 2004, 12:46 PM
Just as safe, and even quicker if you just program your bot to do it for you.
Title: Re:War3 verbyte chanegd again?
Post by: l)ragon on January 12, 2004, 04:34 AM
Quote from: MesiaH on January 09, 2004, 12:46 PM
Just as safe, and even quicker if you just program your bot to do it for you.

Good call.
Perhaps pulling the version byte from the game itself.
self updateing bot anyone?
Title: Re:War3 verbyte chanegd again?
Post by: Skywing on January 12, 2004, 06:53 AM
Quote from: dRAgoN on January 12, 2004, 04:34 AM
Quote from: MesiaH on January 09, 2004, 12:46 PM
Just as safe, and even quicker if you just program your bot to do it for you.

Good call.
Perhaps pulling the version byte from the game itself.
self updateing bot anyone?
There is no easy way to do this automatically.  BC runs the patch and then starts trying new version codes starting with the current version code, and remembers whichever one succeeds first.
Title: Re:War3 verbyte chanegd again?
Post by: UserLoser. on January 12, 2004, 03:28 PM
Quote from: Skywing on January 12, 2004, 06:53 AM
Quote from: dRAgoN on January 12, 2004, 04:34 AM
Quote from: MesiaH on January 09, 2004, 12:46 PM
Just as safe, and even quicker if you just program your bot to do it for you.

Good call.
Perhaps pulling the version byte from the game itself.
self updateing bot anyone?
There is no easy way to do this automatically.  BC runs the patch and then starts trying new version codes starting with the current version code, and remembers whichever one succeeds first.


What do you mean by runs the patch?  BC extracts the MPQ, or uses Bnupdate somehow?
Title: Re:War3 verbyte chanegd again?
Post by: Skywing on January 13, 2004, 07:12 AM
Quote from: UserLoser. on January 12, 2004, 03:28 PM
Quote from: Skywing on January 12, 2004, 06:53 AM
Quote from: dRAgoN on January 12, 2004, 04:34 AM
Quote from: MesiaH on January 09, 2004, 12:46 PM
Just as safe, and even quicker if you just program your bot to do it for you.

Good call.
Perhaps pulling the version byte from the game itself.
self updateing bot anyone?
There is no easy way to do this automatically.  BC runs the patch and then starts trying new version codes starting with the current version code, and remembers whichever one succeeds first.


What do you mean by runs the patch?  BC extracts the MPQ, or uses Bnupdate somehow?
No.  BC has my implementation of the patching algorithm Blizzard uses.
Title: Re:War3 verbyte chanegd again?
Post by: Mesiah / haiseM on January 13, 2004, 02:32 PM
Now that, is a good call. :P