• Welcome to Valhalla Legends Archive.
 

Re:Packets for Leaving Games

Started by raylu, April 29, 2005, 09:03 PM

Previous topic - Next topic

raylu

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.
Pie?

MyndFyre

#1
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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

raylu

Yes...he was responding to that.

I forgot to ask: what is the format for 0x0C?
Pie?

MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

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.
Pie?

Hdx

0x10
It's listed. And a vary complicated packet! :P
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Archangel

I'm not an Addict.

MyndFyre

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
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

raylu

0x10 is sent to leave the chat, not games. In fact, it's sent when entering games.
Pie?

Archangel

You need to send Game Report, and then Enter chat for leaving a game [0x0A]
I'm not an Addict.

Ban

What happens if you _don't_ send 0x10 prior to entering a game?

Hdx

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)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Eric

#12
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.

Eric

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.

Eric

#14
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.