Valhalla Legends Forums Archive | Battle.net Bot Development | BNCS Map Checksums (and other)

AuthorMessageTime
R.a.B.B.i.T
Any ideas on how this is calculated?  Is it a SHA hash (like logins)?  I've not spent too much time trying to do gamebots, but I've been interested in making a bot so you can chat in-game for a while now.  Just wondering if anyone knew, if not I'll just try my best at figuring it out.

Also, for the 4th part, what if it's an unapproved map, I assume it's just "blnk" (blank)?
February 7, 2005, 11:57 PM
Myndfyr
Offhand, can you post a map statstring?  I'm at work.  Although, I would observe that it should be easy to tell if it's SHA or otherwise.  SHA is 128-bit, IIRC.  If it's a 32-bit value, more likely it's a 32-bit CRC.
February 8, 2005, 12:27 AM
UserLoser.
Yes, which one are you taking about?  Game statstring or message 0x3C?  I'm assuming the game statstring one. I'm not sure where it comes from (never cared), but it definately does not come from any SHA hash, and I don't think there's any CRC code anywhere...  I could be wrong on that last part, though
February 8, 2005, 12:37 AM
R.a.B.B.i.T
I'm talking about piece 7 in the Game Statstring for STAR/SEXP games.  I'll get a log of the game statstring.


[edit]
This is it, I didn't see any others with a game statstring in it.  It's 0x09, maybe that should be posted in the game statstring page somewhere?

[color=green][tt]0000  FF 09 6C 00 01 00 00 00 0F 00 02 00 09 04 00 00    ..l.............
0010  02 00 17 E0 44 46 8E FE 00 00 00 00 00 00 00 00    ....DF..........
0020  04 00 00 00 10 00 00 00 32 76 32 20 4C 54 20 4E    ........2v2 LT N
0030  65 77 62 73 00 00 2C 34 34 2C 31 34 2C 36 2C 32    ewbs..,44,14,6,2
0040  2C 66 2C 2C 32 2C 32 31 30 35 36 64 62 61 2C 34    ,f,,2,21056dba,4
0050  2C 2C 50 68 6F 65 6E 69 2E 58 0D 54 68 65 20 4C    ,,Phoeni.X.The L
0060  6F 73 74 20 54 65 6D 70 6C 65 0D 00                ost Temple..[/tt][/color]
February 8, 2005, 2:23 AM
warz
Similar to 0x1C?

0x1C:
[code]
1on1, fastest
0x0000  FF 1C 5A 00 00 00 00 00 00 00                    ÿ.Z.......
0x0010  00 00 04 00 01 00 1F 00 00 00 00 00 00 00 31 6F  ..............1o
0x0020  6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C  n1 challenger..,
0x0030  33 34 2C 31 32 2C 36 2C 31 2C 34 2C 31 2C 65 62  34,12,6,1,4,1,eb
0x0040  65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69  e6d08d,,,Moonshi
0x0050  6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00  ne-.Challenger..

1on1, faster
0x0000  FF 1C 5A 00 00 00 00 00 00 00                    ÿ.Z.......
0x0010  00 00 04 00 01 00 1F 00 00 00 00 00 00 00 31 6F  ..............1o
0x0020  6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C  n1 challenger..,
0x0030  33 34 2C 31 32 2C 35 2C 31 2C 34 2C 31 2C 65 62  34,12,5,1,4,1,eb
0x0040  65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69  e6d08d,,,Moonshi
0x0050  6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00  ne-.Challenger..

Meelee, fastest
0x0000  FF 1C 5A 00 00 00 00 00 00 00                    ÿ.Z.......
0x0010  00 00 02 00 01 00 1F 00-00 00 00 00 00 00 31 6F  ..............1o
0x0020  6E 31 20 63 68 61 6C 6C-65 6E 67 65 72 00 00 2C  n1 challenger..,
0x0030  33 34 2C 31 32 2C 36 2C-31 2C 32 2C 31 2C 65 62  34,12,6,1,2,1,eb
0x0040  65 36 64 30 38 64 2C 2C-2C 4D 6F 6F 6E 73 68 69  e6d08d,,,Moonshi
0x0050  6E 65 2D 0D 43 68 61 6C-6C 65 6E 67 65 72 0D 00  ne-.Challenger..

TvB, fastest
0x0000  FF 1C 5A 00 00 00 00 00 00 00                    ÿ.Z.......
0x0010  00 00 0F 00 01 00 1F 00 00 00 00 00 00 00 31 6F  ..............1o
0x0020  6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C  n1 challenger..,
0x0030  33 34 2C 31 32 2C 36 2C 31 2C 66 2C 31 2C 65 62  34,12,6,1,f,1,eb
0x0040  65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69  e6d08d,,,Moonshi
0x0050  6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00  ne-.Challenger..

FFA, fastest
0x0000  FF 1C 5A 00 00 00 00 00 00 00                    ÿ.Z.......
0x0010  00 00 03 00 01 00 1F 00 00 00 00 00 00 00 31 6F  ..............1o
0x0020  6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C  n1 challenger..,
0x0030  33 34 2C 31 32 2C 36 2C 31 2C 33 2C 31 2C 65 62  34,12,6,1,3,1,eb
0x0040  65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69  e6d08d,,,Moonshi
0x0050  6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00  ne-.Challenger..

UMS, fastest
0x0000  FF 1C 5A 00 00 00 00 00 00 00                    ÿ.Z.......
0x0010  00 00 0A 00 01 00 1F 00 00 00 00 00 00 00 31 6F  ..............1o
0x0020  6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C  n1 challenger..,
0x0030  33 34 2C 31 32 2C 36 2C 31 2C 61 2C 31 2C 65 62  34,12,6,1,a,1,eb
0x0040  65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69  e6d08d,,,Moonshi
0x0050  6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00  ne-.Challenger..

FF 1C          Packet ID
5A 00          Packet Length
00 00 00 00    (Status ?)
00 00 00 00    Unknown
04 00          Game type
01 00          Game options (not sure)
1F 00 00 00    Unknown
00 00 00 00    Unknown

NT String "1on1 challenger"          Game name
NT String ""                          Game password (null if public)
String ",34,12,5,1,4,1,ebe6d08d,,,"  Game Options
String "Moonshine-" 0D                Username, terminated with 0D instead of 00
String "Challenger" 0D                Map name, terminated with 0D instead of 00
00                                    End packet




----------------- Game Options ------------------

",34,12,5,1,4,1,ebe6d08d,,,"
  ^^ ^^ ^ ^ ^ ^ ^^^^^^^^
  5  7 1 4 2 3    6


1. Game speed
2. Game type
3. Game penalty
4. Map icon
5. Map size
6. Timestamp of some sort
7. ?
------------------------------------

Game speed goes as follows:
0 = slowest
1 = slower
2 = slow
3 = normal
4 = fast
5 = faster
6 = fastest
none = default (ladder uses this, default=fast)

------------------------------------
Game type goes as follows:
2 = Melee
3 = Free for all
4 = 1 on 1
9 = Ladder
A = Use Map Settings
F = Top vs. Bottom

------------------------------------
Penalty goes as follows:
1 = no penalty on disconnected
2 = loss on disconnect

------------------------------------
Map icons go as follows:
1 = Blue Blizzard Checkmark Icon
2 = Ladder Map Icon
3 = Green GF icon
4 = KBK challenger icon
none = default (no icon)

------------------------------------
Map size goes as follows:

a) You take the number (34).
b) You take the first number (3) and multiply it by 32
c) 3 * 32 = 96

d) You take the second number (4) and multiply it by 32
e) 4 * 32 = 128

f) Your map size is now 96x128

summary:  your number is 34. (3 * 32) x (4 * 32) = 96x128

------------------------------------
[/code]
February 8, 2005, 2:46 AM
dRAgoN
If I remember I also pointed out that somone thought it was the checksum to the map being used, but I found it never changed and asume its something else that is local to the user.

the diagram warz posted is what me and moonshine put together during 1.09 or 08? so it may have changed.
February 8, 2005, 3:57 AM

Search