Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Spht on April 26, 2007, 10:44 PM

Title: StarCraft Patch 1.15
Post by: Spht on April 26, 2007, 10:44 PM
If no one reads www.battle.net ...

QuoteWe will be releasing Patch 1.15 for StarCraft within the next few weeks. This patch introduces new functionality to Battle.net that allows players to organize and join custom StarCraft leagues. These leagues support stat-tracking, custom icons, and replay uploading, among other features. Check out the StarCraft LDK page (http://www.battle.net/info/patch.shtml) for more information.

This should be interesting ...
Title: Re: StarCraft Patch 1.15
Post by: l2k-Shadow on April 26, 2007, 11:19 PM
Yeah, I've seen that as well, but I doubt it will be efficient.. Too many noobs will try to run their own leagues and lack of anti-hack system will make players pissed off.
Title: Re: StarCraft Patch 1.15
Post by: Denial on April 26, 2007, 11:56 PM
Spht i've been looking for you on msn but you weren't on was intresting if you wanna run a website that does that sort of thing? I'm pretty well known in the gaming realm of battle.net.
Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 27, 2007, 12:55 AM
Oh wow, That's pretty instresting..
I wonder how much its gunna affect the bot development if at all.
Looks like alot more things are going to be added to bnetdocs =)




Meh like it matters, I can't even get on BNET with BNLS being down n all, someone needs to get Lockdown rolling. =)
Title: Re: StarCraft Patch 1.15
Post by: Denial on April 27, 2007, 01:09 AM
I doubt this patch will effect bots that much maybe a version change maybe hopefully blizzard programmers wont take this time to release a major bot change as well along with this patch
Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 27, 2007, 01:12 AM
well even if so.. I hope skywing updates war3 since he might be updating starcraft. =)

I'm not quite getting the whole channel tag thing, Does everyone see the tag that your registerd to, or just your members? I think they should do somthing like warcraft 3 clan tag in a way, that'd be cool.
Title: Re: StarCraft Patch 1.15
Post by: Denial on April 27, 2007, 02:02 AM
Quote from: MyStiCaL on April 27, 2007, 01:12 AM
well even if so.. I hope skywing updates war3 since he might be updating starcraft. =)

I'm not quite getting the whole channel tag thing, Does everyone see the tag that your registerd to, or just your members? I think they should do somthing like warcraft 3 clan tag in a way, that'd be cool.

From what i read only people in leagues will be able to see the icon tag besides your name.

But knowing battle.net i bet there will be exploits in this we can find.
Title: Re: StarCraft Patch 1.15
Post by: Hell-Lord on April 27, 2007, 03:01 AM
Its good to see them working on the best game ever :)
Now all we need is Starcraft 2 :P

Title: Re: StarCraft Patch 1.15
Post by: l2k-Shadow on April 27, 2007, 09:43 AM
Quote from: Denial on April 27, 2007, 01:09 AM
I doubt this patch will effect bots that much maybe a version change maybe hopefully blizzard programmers wont take this time to release a major bot change as well along with this patch

They can't affect login too much since that would require a patch for w2/d2 and maybe even w3.. so i think they're just gonna add onto or create a new packet.
Title: Re: StarCraft Patch 1.15
Post by: MysT_DooM on April 27, 2007, 10:29 AM
What is meant by replay uploading...isnt that the samething as it is now where you create game and picka  replay to host. Or do they mean that specific league will have a specific area on a site where users can upload replays?
Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 27, 2007, 10:43 AM
they can upload there replys to the site, probley easyier method from like doing it from client though since 99% of people on battle.net barley even know how to get on battle.net lol
Title: Re: StarCraft Patch 1.15
Post by: UserLoser on April 27, 2007, 10:54 AM
I like how they call it "mopaq" instead of MPQ files.  Seems like you just replace patch_rt.mpq or something with the league's MPQ file and it changes some interface stuff

Just a guess
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 27, 2007, 01:10 PM
I'm sorry, but this really sounds like a bad idea. It doesn't look user-friendly; it looks like a giant annoyance and a hassle. It also looks pretty damn exploitable.
Title: Re: StarCraft Patch 1.15
Post by: warz on April 27, 2007, 03:13 PM
Quote from: RεalityRipplε on April 27, 2007, 01:10 PM
I'm sorry, but this really sounds like a bad idea. It doesn't look user-friendly; it looks like a giant annoyance and a hassle. It also looks pretty damn exploitable.

You're right about the user-friendly aspect - it looks clunky, and like it's thrown together. Can't comment on the 'exploitable' factor, yet, though.
Title: Re: StarCraft Patch 1.15
Post by: brew on April 27, 2007, 08:13 PM
So with this new patch I bet we're gonna get many more new packets added to bnetdocs...
While you're adding stuff (when it gets back up ofcourse), be sure to add the 0x4E... I don't know too much about it, except it's only S > C. I think it's a WCG reply of some kind.

S > C 0x4E - SID_WCGNOTIFY
(WORD) Unknown
(STRING) Tournament Name
(STRING) Tournament Website

Does anyone know anything more about this packet????

Also about the channel flags....

0x01: Public Channel
0x02: Moderated
0x04: Restricted
0x08: Silent
0x10: System
0x20: Product-Specific
0x1000: Globally Accessible

0x10 should be the flags for Silent channel, and 0x08 for System.
How do I know this?

On asia server....
Quote
[9:08:08 PM]  -- Joined Channel: Brood War USA-1 -- Flags: 0x43 --
[9:08:08 PM] In effort to reduce message spam, we have disabled chat in the default StarCraft channels. Full chat functionality is still available in all other Battle.net channels.

On useast server....
Quote
[9:08:28 PM]  -- Joined Channel: Brood War USA-16 -- Flags: 0x33 --

There is a clear increase of 0x10 flags.
And before you say it's an increase of (0x08 | 0x02), it would have to already have 0x02 flags because it's obviously (something | 0x01 | 0x02), hence the 0x33.
Title: Re: StarCraft Patch 1.15
Post by: rabbit on April 27, 2007, 08:23 PM
It could be 0x01 | 0x04 | 0x08 | 0x20 you know.
Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 27, 2007, 08:37 PM
Oh wow they disabled chat in brood war usa channels?
Title: Re: StarCraft Patch 1.15
Post by: Hdx on April 27, 2007, 08:44 PM
ohy, mental fart
~Hdx
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 27, 2007, 08:49 PM
Use force join to join the Warez channel. That channel's silent.
Title: Re: StarCraft Patch 1.15
Post by: brew on April 28, 2007, 09:46 AM
warez has flags 0x13.
blizzard tech support has 0x11. (@ uswest it has 0x03)
just for comparison, open tech support has 0x01.
need I say more? Jeez. 0x10 is OBVIOUSLY the silent flag. Whoever made the original channel flags specifications obviously screwed up
Title: Re: StarCraft Patch 1.15
Post by: brew on April 28, 2007, 09:50 AM
Quote from: rabbit on April 27, 2007, 08:23 PM
It could be 0x01 | 0x04 | 0x08 | 0x20 you know.
I know, my point is that 0x01 | 0x04 | 0x08 | 0x20 = 0x33, but if the new flag(s) were 0x08 and 0x02 it would just 0x35, wouldn't it? :p So it must have had flags | 0x10 (which is silent.)
Title: Re: StarCraft Patch 1.15
Post by: Spht on April 28, 2007, 10:02 AM
Quote from: RεalityRipplε on April 27, 2007, 08:49 PM
Use force join to join the Warez channel. That channel's silent.

And force talk to speak there.  And force speed to get out of there if someone catches you.  And force grip so no one knows you were ever there
Title: Re: StarCraft Patch 1.15
Post by: rabbit on April 28, 2007, 10:03 AM
And Jedi Mind Trick to make Blizzard give you an @Blizzard account.   ...............Wait....
Title: Re: StarCraft Patch 1.15
Post by: Sorc.Polgara on April 28, 2007, 10:05 AM
ROFL.  The last two posts just made my day.  Thanks.
Title: Re: StarCraft Patch 1.15
Post by: Spht on April 28, 2007, 10:07 AM
Quote from: brew on April 28, 2007, 09:46 AM
warez has flags 0x13.
blizzard tech support has 0x11. (@ uswest it has 0x03)
just for comparison, open tech support has 0x01.
need I say more? Jeez. 0x10 is OBVIOUSLY the silent flag. Whoever made the original channel flags specifications obviously screwed up

I'm 100% sure 0x10 does not flag a channel as silent.
Title: Re: StarCraft Patch 1.15
Post by: brew on April 28, 2007, 10:18 AM
Quote from: Spht on April 28, 2007, 10:07 AM
Quote from: brew on April 28, 2007, 09:46 AM
warez has flags 0x13.
blizzard tech support has 0x11. (@ uswest it has 0x03)
just for comparison, open tech support has 0x01.
need I say more? Jeez. 0x10 is OBVIOUSLY the silent flag. Whoever made the original channel flags specifications obviously screwed up

I'm 100% sure 0x10 does not flag a channel as silent.
How are you sure though? and how else could you explain the flag update to public channels on asia?
EDIT** jeez, i just proved myself wrong. 0x03 | x = 0x11, x must obviously be 0x08. This also explains the Void's flags of 0x09 But... if 0x10 is indeed the system channel flag then how does the 0x43 work out?
Title: Re: StarCraft Patch 1.15
Post by: Spht on April 28, 2007, 10:24 AM
Quote from: brew on April 28, 2007, 10:18 AM
Quote from: Spht on April 28, 2007, 10:07 AM
Quote from: brew on April 28, 2007, 09:46 AM
warez has flags 0x13.
blizzard tech support has 0x11. (@ uswest it has 0x03)
just for comparison, open tech support has 0x01.
need I say more? Jeez. 0x10 is OBVIOUSLY the silent flag. Whoever made the original channel flags specifications obviously screwed up

I'm 100% sure 0x10 does not flag a channel as silent.
How are you sure though? and how else could you explain the flag update to public channels on asia?

I had it as an edit, but I'll put it in a new reply:

I just joined the two channels you mentioned in your previous post, and on Asia:

[12:38:13] Joining moderated silent product-specific channel Brood War USA-1.

Which is a combination of 0x1 (public) 0x2 (moderated) 0x8 (silent) 0x20 (product-specific) = 0x2b (and confirmed this is the value sent to me via packet log)

The Brood War channels on USEast are still normal: 0x1 (public) 0x20 (product-specific) = 0x21 (confirmed via packet log)

And for the record, warez is 0x1 (public) 0x4 (restricted) 0x8 (silent) = 0xd (confirmed via packet log)

0x10 (system) did not show up in any of these channels.  So what's the confusion?
Title: Re: StarCraft Patch 1.15
Post by: Spht on April 28, 2007, 10:29 AM
Quote from: Spht on April 28, 2007, 10:24 AM
So what's the confusion?

I see now.  In your post, you said the asia channel had flags 0x44 and east had 0x33.  44 = 0x2b, 33 = 0x21.  See what you did wrong?
Title: Re: StarCraft Patch 1.15
Post by: brew on April 28, 2007, 10:30 AM
Omg, thanks spht! It turns out it was a problem with my code. (i didn't hex() the flags on accident) And it didnt help that I was trying to figure out the flags in decimal.. jeez

So what about that packet??? anyone know anything about it??
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 28, 2007, 02:54 PM
About 4E? Maybe if you gave some info about how you found it?
Title: Re: StarCraft Patch 1.15
Post by: brew on April 28, 2007, 03:28 PM
Quote from: RεalityRipplε on April 28, 2007, 02:54 PM
About 4E? Maybe if you gave some info about how you found it?
I went on an account with the WCG tag a while ago, and I received an *unknown* packet with the id of 0x4E. I packetlogged it, and got that it was followed by two null bytes, apparently a website, and what wcg tournament i'm in. Lost the account a while ago though...
Title: Re: StarCraft Patch 1.15
Post by: UserLoser on April 28, 2007, 04:18 PM
Quote from: brew on April 28, 2007, 03:28 PM
Quote from: RεalityRipplε on April 28, 2007, 02:54 PM
About 4E? Maybe if you gave some info about how you found it?
I went on an account with the WCG tag a while ago, and I received an *unknown* packet with the id of 0x4E. I packetlogged it, and got that it was followed by two null bytes, apparently a website, and what wcg tournament i'm in. Lost the account a while ago though...

Sounds about right
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 28, 2007, 05:13 PM
My guess would be the Unknown word has something to do with the WCG's ID number or something. (You know, the planet name, but as a number)
Title: Re: StarCraft Patch 1.15
Post by: Denial on April 29, 2007, 12:20 PM
I still own several wcg accounts.
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 29, 2007, 12:23 PM
Wanna test it out and get some info?
Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 29, 2007, 02:14 PM
well, i just got a full packet dump of WCG login

i could eaither sort it out, or just post a full dump

what exactly are you lookin for?


00000147  ff 3a 08 00 00 00 00 00                          .:......
0000014F  ff 4e 58 00 01 03 57 6f  72 6c 64 20 43 79 62 65 .NX...Wo rld Cybe
0000015F  72 20 47 61 6d 65 73 20  28 53 61 74 75 72 6e 29 r Games  (Saturn)
0000016F  00 00 68 74 74 70 3a 2f  2f 77 77 77 2e 77 63 67 ..http:/ /www.wcg
0000017F  2e 63 6f 6d 00 57 43 47  00 00 00 00 00 80 07 01 .com.WCG ........
0000018F  00 00 00 00 00 01 01 00  02 02 00 00 00 00 01 05 ........ ........
0000019F  00 00 00 00 32 00 00 00                          ....2...
Title: Re: StarCraft Patch 1.15
Post by: Hdx on April 29, 2007, 02:20 PM
Just post a fill dump.
And/or if you are willing to post the info on a WCG account, so people can test for themselves. I for one would like to.
~Hdx
Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 29, 2007, 02:22 PM
Selected people i may post the account, but my WCG account is Newbie @ useast.
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 29, 2007, 02:46 PM
ok, so from that log we have...
Two BYTEs (or a WORD) of 01 03 or 0x301(769).
An NTString with the name (World Cyber Games (Saturn)).
An NTString with nothing (Or just a null byte).
An NTString with the URL (http://www.wcg.com).
An NTString or a DWORD with the type (WCG).
Possibly an empty DWORD.
Three BYTEs (or a WORD and a BYTE or a BYTE and a WORD) of 80 07 01 (or some combo therein).

But that's not quite right. That says the packet length is 0x58, which is 88, right? I only count 64 bytes in that log.

Edit: Guess you added the rest of the packet in... Looks like a lot of unknowns. A little peek into the game's handling of the packet would be more beneficial than a packet analysis.

Title: Re: StarCraft Patch 1.15
Post by: Mystical on April 29, 2007, 03:49 PM
i dont have time so i just quick uploaded it.. clean it up yourself.

http://www.immortal-legends.com/files/HEX%20DUMP

http://www.immortal-legends.com/files/ASCII%20DUMP

p.s I think i got all the aim log out of it.
Title: Re: StarCraft Patch 1.15
Post by: Ringo on April 29, 2007, 05:12 PM
Just to save you some time, the stat string is used to add a custom game to the game type list along with the settings the game type has, and the 1st string is the name of the game type.
The stat string is fawarded to other clients when they join the game in UDP command 0, packet 0x09.
I was adding this to a custom ladder server I was making back in 1.11/1.12, but never got round to useing it.
Heres some hard-coded research values if they are any help:

'FF 4E 3E 00 01 03 57 6F 72 6C 64 20 43 79 62 65   ÿN>...World Cybe
'72 20 47 61 6D 65 73 20 28 4D 65 72 63 75 72 79   r Games (Mercury
'29 00 00 10 01 01 00 00 00 00 00 01 01 00 02 02   )...............
'00 00 00 00 01 05 00 00 00 00 32 00 00 00         ..........2.....
    Dim tmpSS As String * 27
    Mid(tmpSS, 1, 1) = Chr(&H1)  'GameType
    Mid(tmpSS, 2, 1) = Chr(&H1)  'ladder type (0=bnet, 1=wcg/kbk etc, 2=>who knows? -- relates to 0x1C/0x2C/channel statstrings etc)
    Mid(tmpSS, 3, 2) = MakeWORD(&H1) 'penalty1
    Mid(tmpSS, 5, 2) = MakeWORD(&H0) 'penalty2
    Mid(tmpSS, 7, 2) = MakeWORD(&H0) 'Unknown - 0x00 always
    Mid(tmpSS, 9, 1) = Chr(&H1)  'GameType again?
    Mid(tmpSS, 10, 1) = Chr(&H1)  'ladder type again?
    Mid(tmpSS, 11, 2) = MakeWORD(&H200)  'Is Melee (&H201 = not melee)
    Mid(tmpSS, 13, 2) = MakeWORD(&H2)  'Is Stats Game (&H100 = UMS)
    Mid(tmpSS, 15, 2) = MakeWORD(&H0)  'UnKnown2
    Mid(tmpSS, 17, 1) = Chr(0)  'Number of teams (0 = none) - discludes TVB
    Mid(tmpSS, 18, 1) = Chr(1)  'Unknown3 - 0x01 always?
    Mid(tmpSS, 19, 1) = Chr(5)  'Required Map Icon
    Mid(tmpSS, 20, 2) = MakeWORD(&H0)  'greed/resorces amount
    Mid(tmpSS, 22, 2) = MakeWORD(&H0) 'unknown - 0x00 always
    Mid(tmpSS, 24, 4) = MakeDWORD(&H32) 'Stats game (0x00 = False[UMS])

Also note that the format is differnt in this packet dump, because this was pre-1.13 :P
The format to that is:
(WORD) Flag (1st bit set = add game?, other wise remove?)
(STRING) Game type's name
(STRING) Blank -- most likely used on a set game setting/command (I couldnt find it)
(BYTE[27]) Game Stat String

Nothing really interesting unless your bot can view the game list, or support a game chat enviroment :)
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on April 29, 2007, 06:18 PM
I sort of have the feeling that blank string would be a game password?
Title: Re: StarCraft Patch 1.15
Post by: l)ragon on May 01, 2007, 01:22 PM
Quote from: RεalityRipplε on April 29, 2007, 06:18 PM
I sort of have the feeling that blank string would be a game password?
Or the discription.
Title: Re: StarCraft Patch 1.15
Post by: Barabajagal on May 01, 2007, 02:13 PM
I thought only D2 games had descriptions...