Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: raylu on April 29, 2005, 09:03 PM

Title: Re:Packets for Leaving Games
Post by: raylu on April 29, 2005, 09:03 PM
Quote from: LoRd[nK] on May 19, 2004, 03:41 PM
0x10 and 0x0C
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.
Title: Re:Packets for Leaving Games
Post by: MyndFyre on April 29, 2005, 10:37 PM
Quote from: raylu on April 29, 2005, 09:03 PM
Quote from: LoRd[nK] on May 19, 2004, 03:41 PM
0x10 and 0x0C
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.

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 from: GoSuGaMING on May 19, 2004, 08:47 PM
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 ^^
Please check last-post dates in the future if you're not going to add anything constructive.
Title: Re: Packets for Leaving Games
Post by: raylu on April 29, 2005, 11:28 PM
Yes...he was responding to that.

I forgot to ask: what is the format for 0x0C?
Title: Re: Packets for Leaving Games
Post by: MyndFyre on April 30, 2005, 02:36 AM
You're new here.  So I'll give you the benefit of the doubt and be nice.

BnetDocs -- SID_JOINCHANNEL C->S (0x0c) (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=34)

Please refer to the Information for Newcomers (http://forum.valhallalegends.com/phpbbs/index.php?topic=9278.0) thread for a good introduction.
Title: Re: Packets for Leaving Games
Post by: raylu on April 30, 2005, 10:30 AM
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.
Title: Re: Packets for Leaving Games
Post by: Hdx on April 30, 2005, 12:36 PM
0x10 (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=45)
It's listed. And a vary complicated packet! :P
~-~(HDX)~-~
Title: Re: Packets for Leaving Games
Post by: Archangel on April 30, 2005, 02:40 PM
LOL, yes complicated.. :)
Title: Re: Packets for Leaving Games
Post by: MyndFyre on April 30, 2005, 05:40 PM
Quote from: Archangel on April 30, 2005, 02:40 PM
LOL, yes complicated.. :)

I have a sneaking suspicion that Hdx was being sarcastic when he said it was complicated.  :P
Title: Re: Re:Packets for Leaving Games
Post by: raylu on April 30, 2005, 06:58 PM
0x10 is sent to leave the chat, not games. In fact, it's sent when entering games.
Title: Re:Packets for Leaving Games
Post by: Archangel on April 30, 2005, 10:23 PM
You need to send Game Report, and then Enter chat for leaving a game [0x0A]
Title: Re: Re:Packets for Leaving Games
Post by: Ban on May 04, 2005, 10:23 AM
What happens if you _don't_ send 0x10 prior to entering a game?
Title: Re:Packets for Leaving Games
Post by: Hdx on May 04, 2005, 12:50 PM
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)~-~
Title: Re:Packets for Leaving Games
Post by: Eric on May 04, 2005, 02:23 PM
Quote from: raylu on April 29, 2005, 09:03 PM
Quote from: LoRd[nK] on May 19, 2004, 03:41 PM
0x10 and 0x0C
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.

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.
Title: Re:Packets for Leaving Games
Post by: Eric on May 04, 2005, 02:31 PM
Quote from: Archangel on April 30, 2005, 10:23 PM
You need to send Game Report, and then Enter chat for leaving a game [0x0A]

You can leave a game without sending a game report.  IIRC, it results in a disconnect.
Title: Re: Re:Packets for Leaving Games
Post by: Eric on May 04, 2005, 02:32 PM
Quote from: Ban on May 04, 2005, 10:23 AM
What happens if you _don't_ send 0x10 prior to entering a game?

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.