Valhalla Legends Forums Archive | Battle.net Bot Development | Packets for Leaving Games

AuthorMessageTime
GoSuGaMING
what do you need to send to leave a game... like b4 the game even starts?
May 19, 2004, 8:29 PM
LoRd
0x10 and 0x0C
May 19, 2004, 8:41 PM
GoSuGaMING
thnx
May 19, 2004, 9:20 PM
Lenny
Out of curiosity, what product is this for?
May 19, 2004, 9:21 PM
GoSuGaMING
[quote author=Lenny link=board=17;threadid=6877;start=0#msg60844 date=1085001717]
Out of curiosity, what product is this for?
[/quote]

Starcraft / Broodwar

hey lord... i never actually start the game how would i make it leave??? there is no opponent so it cant start so im not sure how i would parse this lil help>?
May 19, 2004, 9:38 PM
Null
Logic says , you would have to start the game to leave it ?
May 20, 2004, 12:05 AM
Myndfyr
[quote author=effect link=board=17;threadid=6877;start=0#msg60866 date=1085011538]
Logic says , you would have to start the game to leave it ?
[/quote]

I presume what he means is that he creates a game (example, click "Create" on the left-hand side of the Battle.net window in Brood War), but doesn't ever "Start" the game. He then leaves the game and then re-enters chat. It appears that he is trying to find the correct sequence of packets to send in a similar scenario, with his bot.

I suggest, Gosugaming, that you find a packet logger, and log the packets from your Brood War client.
May 20, 2004, 12:08 AM
UserLoser.
[quote author=LoRd[nK] link=board=17;threadid=6877;start=0#msg60840 date=1084999283]
0x10 and 0x0C
[/quote]

Those are not related to leaving games.
May 20, 2004, 12:45 AM
Eli_1
I'll go packet log it you poopie heads.
May 20, 2004, 12:53 AM
LoRd
[quote author=UserLoser. link=board=17;threadid=6877;start=0#msg60880 date=1085013944]
[quote author=LoRd[nK] link=board=17;threadid=6877;start=0#msg60840 date=1084999283]
0x10 and 0x0C
[/quote]

Those are not related to leaving games.
[/quote]

It's before the game starts.
May 20, 2004, 12:56 AM
Myndfyr
[quote author=Eli_1 link=board=17;threadid=6877;start=0#msg60882 date=1085014418]
I'll go packetlog it you poopie heads.
[/quote]
Be sure to share the results ^_^
May 20, 2004, 12:58 AM
GoSuGaMING
[quote author=Eli_1 link=board=17;threadid=6877;start=0#msg60882 date=1085014418]
I'll go packetlog it you poopie heads.
[/quote]

i already packetlogged it and figured it out... thnx guys
May 20, 2004, 1:01 AM
Myndfyr
[quote author=GoSuGaMING link=board=17;threadid=6877;start=0#msg60886 date=1085014907]
[quote author=Eli_1 link=board=17;threadid=6877;start=0#msg60882 date=1085014418]
I'll go packetlog it you poopie heads.
[/quote]

i already packetlogged it and figured it out... thnx guys
[/quote]

So how about sharing the results you poopie head?
May 20, 2004, 1:13 AM
Eli_1
*Shares his results!*

This is everything I sent after creating my own game and then leaving. I'm sure it would be different if I joined someone elses game or there were other people there.

[quote]
00 05 5f ef 7c 54 00 40 05 06 d6 41 08 00 45 60 .._.|T.@...A..E`
00 2c df 26 40 00 20 06 32 44 18 1a 26 7d 3f f0 .,.&@. .2D..&}?.
ca 7a 06 6e 17 e0 0a 8e 45 d9 dd b2 6d b3 50 18 .z.n....E...m.P.
f9 a4 b0 03 00 00 ff 02 04 00 ..........

00 05 5f ef 7c 54 00 40 05 06 d6 41 08 00 45 60 .._.|T.@...A..E`
00 38 e0 26 40 00 20 06 31 38 18 1a 26 7d 3f f0 .8.&@. .18..&}?.
ca 7a 06 6e 17 e0 0a 8e 45 dd dd b2 6d b3 50 18 .z.n....E...m.P.
f9 a4 c9 d3 00 00 ff 0a 10 00 41 73 79 6c 75 6d ..........Eli_1
5d 6f 4c 5b 00 00 ......


00 05 5f ef 7c 54 00 40 05 06 d6 41 08 00 45 60 .._.|T.@...A..E`
00 43 e1 26 40 00 20 06 30 2d 18 1a 26 7d 3f f0 .C.&@. .0-..&}?.
ca 7a 06 6e 17 e0 0a 8e 45 ed dd b2 6d b3 50 18 .z.n....E...m.P.
f9 a4 59 47 00 00 ff 0b 08 00 50 58 45 53 ff 0c ..YG......PXES..
13 00 02 00 00 00 6f 50 20 4f 75 54 4c 61 57 7a ......oP aSdAsDa
00 .


00 05 5f ef 7c 54 00 40 05 06 d6 41 08 00 45 60 .._.|T.@...A..E`
00 3c e9 26 40 00 20 06 28 34 18 1a 26 7d 3f f0 .<.&@. .(4..&}?.
ca 7a 06 6e 17 e0 0a 8e 46 08 dd b2 71 87 50 18 .z.n....F...q.P.
fa 44 6d 81 00 00 ff 15 14 00 36 38 58 49 50 58 .Dm.......68XIPX
45 53 bd 0a 00 00 a8 43 a4 40 ES.....C.@

00 05 5f ef 7c 54 00 40 05 06 d6 41 08 00 45 60 .._.|T.@...A..E`
00 3a ec 26 40 00 20 06 25 36 18 1a 26 7d 3f f0 .:.&@. .%6..&}?.
ca 7a 06 6e 17 e0 0a 8e 46 1c dd b2 72 d9 50 18 .z.n....F...r.P.
f9 f0 d5 e9 00 00 ff 21 12 00 36 38 58 49 50 58 .......!..68XIPX
45 53 a2 0a 00 00 00 00 ES......

00 05 5f ef 7c 54 00 40 05 06 d6 41 08 00 45 60 .._.|T.@...A..E`
00 3b ef 26 40 00 20 06 22 35 18 1a 26 7d 3f f0 .;.&@. ."5..&}?.
ca 7a 06 6e 17 e0 0a 8e 46 2e dd b2 72 d9 50 18 .z.n....F...r.P.
f9 f0 c9 7f 00 00 ff 0e 13 00 61 73 64 61 73 64 ..........asdasd
61 73 64 20 64 6f 6e 65 00 asd done.
[/quote]

Wtf is 0x15 and 0x21? :(
(and no I can't check bnetdocs because I got owned by Arta's paranoid auto-ipban for wrong passwords).
May 20, 2004, 1:16 AM
GoSuGaMING
here is my packetlog:

[code]
1 Hide Hide 4 Send
0000 FF 02 04 00 ....

2 Hide Hide 21 Send
0000 FF 0A 15 00 4E 61 4B 65 44 2E 50 61 63 6B 65 74 ....NaKeD.Packet
0010 4C 6F 67 00 00 Log..

3 Hide Hide 8 Send
0000 FF 0B 08 00 50 58 45 53 ....PXES

4 Hide Hide 13 Send
0000 FF 0C 0D 00 02 00 00 00 63 63 78 63 00 ........ccxc.

5 Hide Hide 62 Recv
0000 FF 0A 3E 00 4E 61 4B 65 44 2E 50 61 63 6B 65 74 ..>.NaKeD.Packet
0010 4C 6F 67 00 50 58 45 53 20 30 20 30 20 30 20 30 Log.PXES 0 0 0 0
0020 20 30 20 30 20 30 20 30 20 50 58 45 53 00 4E 61 0 0 0 0 PXES.Na
0030 4B 65 44 2E 50 61 63 6B 65 74 4C 6F 67 00 KeD.PacketLog.

6 Hide Hide 49 Recv
0000 FF 0F 31 00 07 00 00 00 00 00 00 00 2F 00 00 00 ..1........./...
0010 00 00 00 00 0D F0 AD BA 0D F0 AD BA 4E 61 4B 65 ............NaKe
0020 44 2E 50 61 63 6B 65 74 4C 6F 67 00 63 63 78 63 D.PacketLog.ccxc
0030 00 .

7 Hide Hide 70 Recv
0000 FF 0F 46 00 01 00 00 00 00 00 00 00 2F 00 00 00 ..F........./...
0010 00 00 00 00 0D F0 AD BA 0D F0 AD BA 4E 61 4B 65 ............NaKe
0020 44 2E 50 61 63 6B 65 74 4C 6F 67 00 50 58 45 53 D.PacketLog.PXES
0030 20 30 20 30 20 30 20 30 20 30 20 30 20 30 20 30 0 0 0 0 0 0 0 0
0040 20 50 58 45 53 00 PXES.

8 Hide Hide 20 Send
0000 FF 15 14 00 36 38 58 49 50 58 45 53 BA 0A 00 00 ....68XIPXES....
0010 F8 FC AB 40 ...@

9 Hide Hide 67 Recv
0000 FF 15 43 00 B2 0A 00 00 2E 73 6D 6B 00 36 E3 10 ..C......smk.6..
0010 C5 82 C3 01 61 64 30 30 30 61 62 32 2E 73 6D 6B ....ad000ab2.smk
0020 00 68 74 74 70 3A 2F 2F 73 68 6F 70 2E 62 6C 69 .http://shop.bli
0030 7A 7A 61 72 64 2E 63 6F 6D 2F 73 65 63 74 69 6F zzard.com/sectio
0040 6E 32 00 n2.

10 Hide Hide 18 Send
0000 FF 21 12 00 36 38 58 49 50 58 45 53 B2 0A 00 00 .!..68XIPXES....
0010 00 00 ..
[/code]

heres what i used...

[code]
With PBuffer
.SendPacket &H2
.InsertNTString vUser
.InsertBYTE 0
.SendPacket &HA
.InsertDWORD &H1
.InsertNTString MyChan
.SendPacket &HC
End With
[/code]

:)
May 20, 2004, 1:26 AM
Eli_1
For the sake of emulating the game client more closely:
[code]
With PBuffer
.SendPacket &H2

.InsertNTString vUser
.InsertBYTE 0
.SendPacket &HA

.InsertNonNTString MyProduct
.SendPacket &HB

.InsertDWORD &H1
.InsertNTString MyChan
.SendPacket &HC
End With
[/code]


Edit:
[quote]
Wtf is 0x15 and 0x21? :(
(and no I can't check bnetdocs because I got owned by Arta's paranoid auto-ipban for wrong passwords).
[/quote]
C->S 0x15 = Request Current Ad Banner?
C->S 0x21 = Mystery...
May 20, 2004, 1:29 AM
Myndfyr
According to [edit]Open[/edit] BnetDocs, 0x21 is
BNCS_0x21 - SID_DISPLAYAD
May 20, 2004, 1:44 AM
GoSuGaMING
well with the code i have when you do that it takes you to broodwar useast-1 or w/e... i havnt figuerd that one out yet ^^
May 20, 2004, 1:47 AM
Eli_1
It's because your not sending 0x0B like my sexed up code does! Your's is poo!
May 20, 2004, 1:49 AM
LoRd
[quote author=Eli_1 link=board=17;threadid=6877;start=15#msg60906 date=1085017758]
It's because your not sending 0x0B like my sexed up code does! Your's is poo!
[/quote]

Failure to request the channel list apon exiting a game will not affect anything.
May 20, 2004, 1:56 AM
GoSuGaMING
[quote author=LoRd[nK] link=board=17;threadid=6877;start=15#msg60909 date=1085018212]
[quote author=Eli_1 link=board=17;threadid=6877;start=15#msg60906 date=1085017758]
It's because your not sending 0x0B like my sexed up code does! Your's is poo!
[/quote]

Failure to request the channel list apon exiting a game will not affect anything.
[/quote]

so why isnt it joining my home channel?
May 20, 2004, 2:04 AM
Eli_1
Have you tryed any other DWORDS (for 0x0C), like 2? (just a guess)



[Edit]
[quote author=LoRd[nK] link=board=17;threadid=6877;start=15#msg60909 date=1085018212]
[quote author=Eli_1 link=board=17;threadid=6877;start=15#msg60906 date=1085017758]
It's because your not sending 0x0B like my sexed up code does! Your's is poo!
[/quote]

Failure to request the channel list apon exiting a game will not affect anything.
[/quote]
It was more of a joke than anything. :P
May 20, 2004, 2:09 AM
GoSuGaMING
*off-topic*
i thank baddblood & Eurijk! i couldnt have done this with out his awesome help!
May 20, 2004, 2:11 AM
Eli_1
[quote author=GoSuGaMING link=board=17;threadid=6877;start=15#msg60919 date=1085019078]
*off-topic*
i thank baddblood i couldnt have done this with out his awesome help!
[/quote]

Wanna tell us what was wrong?
May 20, 2004, 2:12 AM
GoSuGaMING
[quote author=Eli_1 link=board=17;threadid=6877;start=15#msg60921 date=1085019165]
[quote author=GoSuGaMING link=board=17;threadid=6877;start=15#msg60919 date=1085019078]
*off-topic*
i thank baddblood i couldnt have done this with out his awesome help!
[/quote]

Wanna tell us what was wrong?
[/quote]

no i mean he helped me come up with my origional code for leaving the game i still have not fixed my bug on how to leave joining the home cahnnel :) still working on that
May 20, 2004, 2:14 AM
LordNevar
Obvioulsy wasn't that much of a help than.
May 20, 2004, 2:28 AM
Myndfyr
[quote author=GoSuGaMING link=board=17;threadid=6877;start=15#msg60922 date=1085019264]
[quote author=Eli_1 link=board=17;threadid=6877;start=15#msg60921 date=1085019165]
[quote author=GoSuGaMING link=board=17;threadid=6877;start=15#msg60919 date=1085019078]
*off-topic*
i thank baddblood i couldnt have done this with out his awesome help!
[/quote]

Wanna tell us what was wrong?
[/quote]

no i mean he helped me come up with my origional code for leaving the game i still have not fixed my bug on how to leave joining the home cahnnel :) still working on that
[/quote]

You're sending 0x0c incorrectly, most likely. You're probably sending:

[code]
FF 0C 09 00 01 00 00 00 00
[/code]

whereas you need to be saving your old channel, and use the Standard Join flag (0x00 for the first DWORD within the packet) and appending your channel name.
May 20, 2004, 5:23 AM
GoSuGaMING
[quote author=Myndfyre link=board=17;threadid=6877;start=15#msg60960 date=1085030588][/quote]

Wanna tell us what was wrong?
[quote][/quote]

no i mean he helped me come up with my origional code for leaving the game i still have not fixed my bug on how to leave joining the home cahnnel :) still working on that
[quote][/quote]

You're sending 0x0c incorrectly, most likely. You're probably sending:

[code]
FF 0C 09 00 01 00 00 00 00
[/code]

whereas you need to be saving your old channel, and use the Standard Join flag (0x00 for the first DWORD within the packet) and appending your channel name.
[quote][/quote]


fixed :)
[code]
With PBuffer
.SendPacket &H2
.InsertNTString vUser
.InsertBYTE 0
.SendPacket &HA
.InsertDWORD &H0
.InsertNTString MyChan
.SendPacket &HC
End With
[/code]
May 20, 2004, 4:53 PM

Search