• Welcome to Valhalla Legends Archive.
 

0x63 (Arranged Team Invite)

Started by iNsaNe, October 21, 2007, 06:41 PM

Previous topic - Next topic

iNsaNe

Hey guys, I'm having a bit of trouble with accepting / sending arranged team invites.
(http://forum.valhallalegends.com/index.php?topic=6205.0)

I have made the bot so that it can invite players and accept invites, but every time the bot accepts an invite or the user accepts the bot's invite I get the error from battle.net: "The team game you attempted to join could not be found..." and the inviter gets the firewall message.

I'm sending the port (e0 17, 6112) which I use to connect my bot with. I also use that same port with Warcraft 3.
Any help would be appreciated

brew

Quote from: iNsaNe on October 21, 2007, 06:41 PM
I'm sending the port (e0 17, 6112) which I use to connect my bot with. I also use that same port with Warcraft 3.
This is a completely wild guess, and I've never worked with this packet before, but aren't you supposed to htons() the port ?
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

iNsaNe

I'm not sure, this is the first time I've worked with this packet as well. In the packet logs I've seen e0 17 a bunch so I don't think you have to

Michael

are you sending the packet in UDP? i think it should be sent in UDP not TCP. i could be wrong.

MyndFyre

Quote from: -MichaeL- on October 21, 2007, 06:54 PM
are you sending the packet in UDP? i think it should be sent in UDP not TCP. i could be wrong.

Warcraft 3 uses TCP.
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.

iNsaNe

#5
im noticing something different when im packet logging. When you are in the "Arranged Team Lounge" (lol) the packet headers begin with f7 instead of ff. Am i wrong?

Instead of replying with a normal ff 63 do i reply with an f7 1e? they seem to have the same structure

f7 1e is just like:

(DWORD)     Cookie
(DWORD)     Host random token value?
(BYTE)      0
(WORD)      Host port
(DWORD)     not sure
(STRING)    Host name
(DWORD)     not sure
(DWORD)     not sure
(DWORD)     5
(DWORD)     0
(BYTE)      0


laugh at me if you want, im no researcher.

squiggly

0xF7 begins the WC3 in-game header, just as 0xFF does for BNCS messages

the structure is similar to BNCS,


(BYTE)    0xF7
(BYTE)    Message ID
(WORD)    Message length (including header)
(VOID)    Message Data
- Posso usar um tradutor de lĂ­ngua, devo ser fresco agora!

UserLoser

Do you have a TCP socket setup listening and accepting incoming connections?  If not, that may be why it says "game not found"

Chavo

Quote from: iNsaNe on October 21, 2007, 08:41 PM
f7 1e is just like:

(DWORD)     Cookie
(DWORD)     Host random token value?
(BYTE)      0
(WORD)      Host port
(DWORD)     not sure
(STRING)    Host name
(DWORD)     not sure
(DWORD)     not sure
(DWORD)     5
(DWORD)     0
(BYTE)      0

The last 16 bytes are a sockaddr_in struct that you will need to pass on to any clients (via 0xF706) if you are the game host.