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

AuthorMessageTime
raylu
[quote author=LoRd[nK] link=topic=6877.msg60840#msg60840 date=1084999283]
0x10 and 0x0C
[/quote]
o.0

0x10 isn't listed on bnetdocs :(.

0x0C doesn't leave. It just rejoins the chat. You don't actually need to send it, unless you plan to do anything useful.
April 30, 2005, 2:03 AM
Myndfyr
[quote author=raylu link=topic=6877.msg110486#msg110486 date=1114826629]
[quote author=LoRd[nK] link=topic=6877.msg60840#msg60840 date=1084999283]
0x10 and 0x0C
[/quote]
o.0

0x10 isn't listed on bnetdocs :(.

0x0C doesn't leave. It just rejoins the chat. You don't actually need to send it, unless you plan to do anything useful.
[/quote]

It's hard for me to remember what the discussion was nearly a year ago, but I imagine the discussion was why he was having trouble getting back into chat after leaving a game.  I wouldn't tell him to join a channel for fun.

[edit]As a matter of fact, I found the post I was replying to:
[quote author=GoSuGaMING link=topic=6877.msg60904#msg60904 date=1085017642]
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 ^^
[/quote]
Please check last-post dates in the future if you're not going to add anything constructive.
April 30, 2005, 3:37 AM
raylu
Yes...he was responding to that.

I forgot to ask: what is the format for 0x0C?
April 30, 2005, 4:28 AM
Myndfyr
You're new here.  So I'll give you the benefit of the doubt and be nice.

BnetDocs -- SID_JOINCHANNEL C->S (0x0c)

Please refer to the Information for Newcomers thread for a good introduction.
April 30, 2005, 7:36 AM
raylu
Egh @%&$^%&*%$#@%@#5.

Alright, I meant to ask 0x10. I've written a bot to connect to Battle.net and it works fine. 0x10 isn't listed there so I was asking.
April 30, 2005, 3:30 PM
HdxBmx27
0x10
It's listed. And a vary complicated packet! :P
~-~(HDX)~-~
April 30, 2005, 5:36 PM
Archangel
LOL, yes complicated.. :)
April 30, 2005, 7:40 PM
Myndfyr
[quote author=Archangel link=topic=11437.msg110586#msg110586 date=1114890042]
LOL, yes complicated.. :)
[/quote]

I have a sneaking suspicion that Hdx was being sarcastic when he said it was complicated.  :P
April 30, 2005, 10:40 PM
raylu
0x10 is sent to leave the chat, not games. In fact, it's sent when entering games.
April 30, 2005, 11:58 PM
Archangel
You need to send Game Report, and then Enter chat for leaving a game [0x0A]
May 1, 2005, 3:23 AM
Ban
What happens if you _don't_ send 0x10 prior to entering a game?
May 4, 2005, 3:23 PM
HdxBmx27
From my experance, You would end up in both the Game, and still be in chat. This has happened to me a lot when screwing with D1's game proto. But MOST other games will cause b.net to not allow you to fully connect to the game.
IOt's actually pretty funny.
~-~(HDX)~-~
May 4, 2005, 5:50 PM
LoRd
[quote author=raylu link=topic=11437.msg110486#msg110486 date=1114826629]
[quote author=LoRd[nK] link=topic=6877.msg60840#msg60840 date=1084999283]
0x10 and 0x0C
[/quote]
o.0

0x10 isn't listed on bnetdocs :(.

0x0C doesn't leave. It just rejoins the chat. You don't actually need to send it, unless you plan to do anything useful.
[/quote]

The official clients send SID_LEAVECHAT to leave the game, as well as the chatting environment, followed by SID_JOINCHANNEL to bring them back to the channel that they were previously in.  It's best to assume that the user will want the ability to chat after he exits a game.
May 4, 2005, 7:23 PM
LoRd
[quote author=Archangel link=topic=11437.msg110624#msg110624 date=1114917797]
You need to send Game Report, and then Enter chat for leaving a game [0x0A]
[/quote]

You can leave a game without sending a game report.  IIRC, it results in a disconnect.
May 4, 2005, 7:31 PM
LoRd
[quote author=Ban link=topic=11437.msg111038#msg111038 date=1115220180]
What happens if you _don't_ send 0x10 prior to entering a game?
[/quote]

IIRC, you'll be removed from the chatting environment automatically.  If you wanted to do as Hdx said and remain in the chatting environment while still joining a game, just never inform Battle.net that you joined the game and your status will remain the same.
May 4, 2005, 7:32 PM

Search