Valhalla Legends Forums Archive | Battle.net Bot Development | Manually locating current starcraft/broodwar version byte

AuthorMessageTime
Okee
I used to be into the bot scene a year or so ago, but never actually found the version bytes myself. I'd always ask somebody or something. Anywho, my simple binary bot now cannot connect using starcraft/broodwar/warcraft 2 bne. I'm sure the connection sequences have not changed. My bot uses the 0x51 connection sequence. It's just the version byte.

I'm interested in finding this myself, so I can reference it in the future if it changes again. My question is, how do I go about finding it? I'm sure I'll have to look at one of the game files (battle.snp?) in a dissassembler or something. Anyone know any details relating to this topic?

Thanks in advance.
January 4, 2005, 9:58 PM
HdxBmx27
Nothing like that should be required. Simply PacketLoggin a successfull login by the acuall client. and then looking at 0x50 as send by the clint. You should be able to get the verByte out of it.
0x50

As it says there, it is the 4th DWORD in the packet.
~-~(HDX)~-~
January 4, 2005, 11:58 PM
Mephisto
http://bnetdocs.valhallalegends.com
The STAR/SEXP version bytes are 201.
January 5, 2005, 12:10 AM
Myndfyr
These will change, though, when a new version is released.  What if I want to determine the version byte independently of having to release a new bot and want to avoid using BNLS?
January 5, 2005, 12:21 AM
Arta
I'd probably do it by trying to brute-force the new value. It nearly always only goes up by 1 anyway. If you tried, say, the next 5 values, I don't think you'd get IP banned, and you'd probably find the correct one.

There's no reliable way to retrieve the new version byte from the game files programatically.
January 5, 2005, 1:26 AM
R.a.B.B.i.T
I've noticed that the Starcraft/Brood War bytes are jumping by 2 (IE: 0xc5 -> 0xc7 -> 0xc9).  Anyone know why that is?
January 5, 2005, 3:05 AM
Maddox
[quote author=R.a.B.B.i.T link=topic=10120.msg94362#msg94362 date=1104894302]
I've noticed that the Starcraft/Brood War bytes are jumping by 2 (IE: 0xc5 -> 0xc7 -> 0xc9).  Anyone know why that is?
[/quote]

1.10b, 1.11b, etc?
January 5, 2005, 6:51 AM
Ringo
[quote author=Okee link=topic=10120.msg94322#msg94322 date=1104875929]
I used to be into the bot scene a year or so ago, but never actually found the version bytes myself. I'd always ask somebody or something. Anywho, my simple binary bot now cannot connect using starcraft/broodwar/warcraft 2 bne. I'm sure the connection sequences have not changed. My bot uses the 0x51 connection sequence. It's just the version byte.

I'm interested in finding this myself, so I can reference it in the future if it changes again. My question is, how do I go about finding it? I'm sure I'll have to look at one of the game files (battle.snp?) in a dissassembler or something. Anyone know any details relating to this topic?

Thanks in advance.
[/quote]

Every programer should have a packet logger of some kind to log the needed data to write there bot.
I persionaly use this:
http://dlh.net/getfile.php?77:/gamehacking/packeteditors/WPEXP.zip
Its very simple to use, and this is how to go about getting the new version bytes:
Once a new patch comes out, log onto the client and download the new patch, then replace your hash files with the new ones. Once u have done this, target the program you wish to packet log (Starcraft or somthing) then press play.  Now tab into the program you are running a packet log on and do what u want to log, IE: Logon. Then press stop and al the logged packets sent/receved from the program will be shown.
Here is a example of what/where to get the new version bytes:
On logon for older clients like warcraft 2, then this is the packet to look out for on the logon:
[code]
Send:
0000  FF 06 14 00 36 38 58 49 4E 42 32 57 4F 00 00 00    ....68XINB2WO...
0010  00 00 00 00                                        ....
[/code]
The versionbyte is always the DWord after the client ID, so in this case, war2 version byte was 0x4F

And for newer games such as sc/bw/d2 this is the packet to look out for:
[code]
Send:
01 FF 50 3A 00 00 00 00 00 36 38 58 49 50 58 45    ..P:.....68XIPXE
53 C9 00 00 00 00 00 00 00 00 00 00 00 3C 00 00    S............<..
00 09 04 00 00 09 04 81 7C 55 53 41 00 55 6E 69    ........|USA.Uni
74 65 64 20 53 74 61 74 65 73 00                   ted States.
[/code]
And again the version byte is the DWord right after the Client ID, in this case it was 0xC9

also the version byte is sent to bnet from the client in the 0x22 joingame packet.
as long as u have the client to download the new patch and logon it, then u can always obtain the new version byte first hand.

Hope this helps!

Ringo.
January 5, 2005, 3:28 PM
R.a.B.B.i.T
[quote author=Maddox link=topic=10120.msg94374#msg94374 date=1104907870]
[quote author=R.a.B.B.i.T link=topic=10120.msg94362#msg94362 date=1104894302]
I've noticed that the Starcraft/Brood War bytes are jumping by 2 (IE: 0xc5 -> 0xc7 -> 0xc9).  Anyone know why that is?
[/quote]

1.10b, 1.11b, etc?
[/quote]Thanks, I completely forgot about patch revisions.
January 5, 2005, 11:58 PM

Search