What have to be done to connect to a Starcraft Game Host?
First step would not be connecting, nor would any of them. Hope this helps
yes.. it helps alot....
(You don't connect in udp)
http://www.google.de/search?q=define%3AUDP
Well, so, the steps of joining a Starcraft Game?
Packet log u joining a game and do a search i remember sombody posting the broken down packet telling u what does what
I already packet logged, but i dont know if im doing something wrong:
Would be: Send 0x09 - Requesting 19 users
Recieve - 0x09 - With the 19 users.
Click a game:
Request 0x09 - Requesting game info by the name.
Recieven - 0x09
Get Host and IP
Then use UDP?
UDP.Connect Host, Port
Well, i suppose thats wrong, because it not works for me..
here is some hope this helps
1on1, fastest
0x0000 FF 1C 5A 00 00 00 00 00 00 00 ÿ.Z.......
0x0010 00 00 04 00 01 00 1F 00 00 00 00 00 00 00 31 6F ..............1o
0x0020 6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C n1 challenger..,
0x0030 33 34 2C 31 32 2C 36 2C 31 2C 34 2C 31 2C 65 62 34,12,6,1,4,1,eb
0x0040 65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69 e6d08d,,,Moonshi
0x0050 6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00 ne-.Challenger..
1on1, faster
0x0000 FF 1C 5A 00 00 00 00 00 00 00 ÿ.Z.......
0x0010 00 00 04 00 01 00 1F 00 00 00 00 00 00 00 31 6F ..............1o
0x0020 6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C n1 challenger..,
0x0030 33 34 2C 31 32 2C 35 2C 31 2C 34 2C 31 2C 65 62 34,12,5,1,4,1,eb
0x0040 65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69 e6d08d,,,Moonshi
0x0050 6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00 ne-.Challenger..
Meelee, fastest
0x0000 FF 1C 5A 00 00 00 00 00 00 00 ÿ.Z.......
0x0010 00 00 02 00 01 00 1F 00-00 00 00 00 00 00 31 6F ..............1o
0x0020 6E 31 20 63 68 61 6C 6C-65 6E 67 65 72 00 00 2C n1 challenger..,
0x0030 33 34 2C 31 32 2C 36 2C-31 2C 32 2C 31 2C 65 62 34,12,6,1,2,1,eb
0x0040 65 36 64 30 38 64 2C 2C-2C 4D 6F 6F 6E 73 68 69 e6d08d,,,Moonshi
0x0050 6E 65 2D 0D 43 68 61 6C-6C 65 6E 67 65 72 0D 00 ne-.Challenger..
TvB, fastest
0x0000 FF 1C 5A 00 00 00 00 00 00 00 ÿ.Z.......
0x0010 00 00 0F 00 01 00 1F 00 00 00 00 00 00 00 31 6F ..............1o
0x0020 6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C n1 challenger..,
0x0030 33 34 2C 31 32 2C 36 2C 31 2C 66 2C 31 2C 65 62 34,12,6,1,f,1,eb
0x0040 65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69 e6d08d,,,Moonshi
0x0050 6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00 ne-.Challenger..
FFA, fastest
0x0000 FF 1C 5A 00 00 00 00 00 00 00 ÿ.Z.......
0x0010 00 00 03 00 01 00 1F 00 00 00 00 00 00 00 31 6F ..............1o
0x0020 6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C n1 challenger..,
0x0030 33 34 2C 31 32 2C 36 2C 31 2C 33 2C 31 2C 65 62 34,12,6,1,3,1,eb
0x0040 65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69 e6d08d,,,Moonshi
0x0050 6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00 ne-.Challenger..
UMS, fastest
0x0000 FF 1C 5A 00 00 00 00 00 00 00 ÿ.Z.......
0x0010 00 00 0A 00 01 00 1F 00 00 00 00 00 00 00 31 6F ..............1o
0x0020 6E 31 20 63 68 61 6C 6C 65 6E 67 65 72 00 00 2C n1 challenger..,
0x0030 33 34 2C 31 32 2C 36 2C 31 2C 61 2C 31 2C 65 62 34,12,6,1,a,1,eb
0x0040 65 36 64 30 38 64 2C 2C 2C 4D 6F 6F 6E 73 68 69 e6d08d,,,Moonshi
0x0050 6E 65 2D 0D 43 68 61 6C 6C 65 6E 67 65 72 0D 00 ne-.Challenger..
FF 1C Packet ID
5A 00 Packet Length
00 00 00 00 (Status ?)
00 00 00 00 Unknown
04 00 Game type
01 00 Game options (not sure)
1F 00 00 00 Unknown
00 00 00 00 Unknown
NT String "1on1 challenger" Game name
NT String "" Game password (null if public)
String ",34,12,5,1,4,1,ebe6d08d,,," Game Options
String "Moonshine-" 0D Username, terminated with 0D instead of 00
String "Challenger" 0D Map name, terminated with 0D instead of 00
00 End packet
----------------- Game Options ------------------
",34,12,5,1,4,1,ebe6d08d,,,"
^^ ^^ ^ ^ ^ ^ ^^^^^^^^
5 7 1 4 2 3 6
1. Game speed
2. Game type
3. Game penalty
4. Map icon
5. Map size
6. Timestamp of some sort
7. ?
------------------------------------
Game speed goes as follows:
0 = slowest
1 = slower
2 = slow
3 = normal
4 = fast
5 = faster
6 = fastest
none = default (ladder uses this, default=fast)
------------------------------------
Game type goes as follows:
2 = Melee
3 = Free for all
4 = 1 on 1
9 = Ladder
A = Use Map Settings
F = Top vs. Bottom
------------------------------------
Penalty goes as follows:
1 = no penalty on disconnected
2 = loss on disconnect
------------------------------------
Map icons go as follows:
1 = Blue Blizzard Checkmark Icon
2 = Ladder Map Icon
3 = Green GF icon
4 = KBK challenger icon
none = default (no icon)
------------------------------------
Map size goes as follows:
a) You take the number (34).
b) You take the first number (3) and multiply it by 32
c) 3 * 32 = 96
d) You take the second number (4) and multiply it by 32
e) 4 * 32 = 128
f) Your map size is now 96x128
summary: your number is 34. (3 * 32) x (4 * 32) = 96x128
------------------------------------
isnt that creating game?
k, thats not the problem i have, the problem is i dont know when to use the UDP, after doing what? or recivieng what?...
Use the UDP (or any other Force) when the time is right. In this case, when you have the IP address and port of a game which you wish to join. Send a hail, wait for a response, then indicate to the host that you wish to join his game.
ok, you need to enable UDP before connecting to bnet? or after?
you need to connect UDP to the bnet server?
then? if you do? what fucntion to connect host? [VB]
In order: no, no, no (it doesn't make any sense), not applicable, not applicable, and UDP isn't connection-oriented, which you'd know if you'd read udp(7).
kk, then, when i connect to bnet i bind the udp:
.sckUDP.RemoteHost = IP
.sckUDP.RemotePort = 6114
.sckUDP.Bind 6114
im supposed to send 3 times 0x09, but i dont understand at all, how i am supposed to recive an answer?
http://juicystudio.com/tutorial/vb/network.asp
ok, i got it.
x
12 201.133.95.105:6113 :0 8 SendTo
0000 06 00 00 00 98 6C 1B 01 .....l..
anyone knows whats 0x06?
Quote from: Archangel on February 20, 2005, 07:07 PM
12 201.133.95.105:6113 :0 8 SendTo
0000 06 00 00 00 98 6C 1B 01 .....l..
anyone knows whats 0x06?
PKT_SELFPING
What i dont understand about upd is that can i make multiple connections to one upd server? and if not how do i create a control array for it?
As stated many times in this thread, UDP is connectionless.
People who only make bots usually use TCP Instead of UDP. When they hear the word UDP, it's like *LIGHTBULB* :'(
Quote from: BaDDBLooD on February 21, 2005, 01:22 PM
People who only make bots usually use TCP Instead of UDP. When they hear the word UDP, it's like *LIGHTBULB* :'(
Well, for Battle.net, you must use TCP. Anyways, wouldn't the lightbulb go off/away when they hear it?
Quote from: BaDDBLooD on February 21, 2005, 01:22 PM
People who only make bots usually use TCP Instead of UDP. When they hear the word UDP, it's like *LIGHTBULB* :'(
hmmm... what should I do when I don't understand something? *LIGHTBULB*
LOOK IT UP. Just because they aren't familiar with something, doesn't mean they can't learn.
Aside from that, all products predating Diablo II use UDP, so anyone that has made a binary bot should atleast have a basic understanding of what UDP is.
I'd just like to point out that you CAN connect() a datagram socket. It doesn't actually make it a connection-oriented network, but it allows the programmer to treat it that way.
hmm, except there's still no reliable delivery. connect() on a UDP socket just sets a default address. iirc?
Difference between UDP and TCP is that UDP provides connectionless service, is a host-to-host protocol that is used over packet-switched computer communications networks, and that allows an application program on one computer to send a datagram to an application program on another computer.
Well, asking about Starcraft UDP, anyone know the packet sequence for joining a game? and the packets documentation?
Quote from: Arta[vL] on February 21, 2005, 02:37 PM
hmm, except there's still no reliable delivery. connect() on a UDP socket just sets a default address. iirc?
Correct.
Quote from: Archangel on February 21, 2005, 02:43 PM
Difference between UDP and TCP is that UDP provides connectionless service, is a host-to-host protocol that is used over packet-switched computer communications networks, and that allows an application program on one computer to send a datagram to an application program on another computer.
Well, asking about Starcraft UDP, anyone know the packet sequence for joining a game? and the packets documentation?
Good job on rewording it from http://www.bandwidthmarket.com/resources/glossary/U2.html. And to answer your first question, yes. Second question: the question makes no sense
I think he means is there a documentation which AFAIK there isn't.
"As far as I know."
Now, did that really require a forum post to find out? You could have googled it (http://www.google.com/search?hl=en&q=afaik&btnI=I%27m+Feeling+Lucky).
Quote from: UserLoser on February 21, 2005, 02:51 PM
Quote from: Archangel on February 21, 2005, 02:43 PM
Difference between UDP and TCP is that UDP provides connectionless service, is a host-to-host protocol that is used over packet-switched computer communications networks, and that allows an application program on one computer to send a datagram to an application program on another computer.
Well, asking about Starcraft UDP, anyone know the packet sequence for joining a game? and the packets documentation?
Good job on rewording it from http://www.bandwidthmarket.com/resources/glossary/U2.html. And to answer your first question, yes. Second question: the question makes no sense
1st of all, it was http://www.atis.org/tg2k/_user_datagram_protocol.html
2nd, people learn by searching.
nerd.
Quote from: Archangel on February 21, 2005, 03:34 PM
Quote from: UserLoser on February 21, 2005, 02:51 PM
Quote from: Archangel on February 21, 2005, 02:43 PM
Difference between UDP and TCP is that UDP provides connectionless service, is a host-to-host protocol that is used over packet-switched computer communications networks, and that allows an application program on one computer to send a datagram to an application program on another computer.
Well, asking about Starcraft UDP, anyone know the packet sequence for joining a game? and the packets documentation?
Good job on rewording it from http://www.bandwidthmarket.com/resources/glossary/U2.html. And to answer your first question, yes. Second question: the question makes no sense
1st of all, it was http://www.atis.org/tg2k/_user_datagram_protocol.html
2nd, people learn by searching.
nerd.
Hey jungle dweller, nobody cares about you or ugly spain. Spain lost it's power a long time ago, gj, your ancestors suck & so does your country. Quit begging me to become friends with you, it won't happen. Good luck on getting help from others here, since not many of them know how to join UDP games.
Search the dictionary, maybe you'll learn english.
Good job @ making your info public
Quote from: UserLoser on February 21, 2005, 04:34 PM
Quote from: Archangel on February 21, 2005, 03:34 PM
Quote from: UserLoser on February 21, 2005, 02:51 PM
Quote from: Archangel on February 21, 2005, 02:43 PM
Difference between UDP and TCP is that UDP provides connectionless service, is a host-to-host protocol that is used over packet-switched computer communications networks, and that allows an application program on one computer to send a datagram to an application program on another computer.
Well, asking about Starcraft UDP, anyone know the packet sequence for joining a game? and the packets documentation?
Good job on rewording it from http://www.bandwidthmarket.com/resources/glossary/U2.html. And to answer your first question, yes. Second question: the question makes no sense
1st of all, it was http://www.atis.org/tg2k/_user_datagram_protocol.html
2nd, people learn by searching.
nerd.
Hey jungle dweller, nobody cares about you or ugly spain. Spain lost it's power a long time ago, gj, your ancestors suck & so does your country. Quit begging me to become friends with you, it won't happen. Good luck on getting help from others here, since not many of them know how to join UDP games.
Search the dictionary, maybe you'll learn english.
Good job @ making your info public
Hey, guy without life:
1st of all, trust me i dont want to become your friend, no one would, you are a fucking computer nerd and a pathetic crybaby.
2nd "ugly spain"?, well, if u knew some history u would find out why spain is important.
But no, you are just a computer rat.
3rd Yah Good job @ making your info public, wrong, not my info.
You can't even do a good job like a nerd, i will suggest you to suicide, or find some "real" friends. untill then, plz dont talk to me.
P.S. im getting helped already.
Actually, calling you a nerd is to much for ya:
nerd n. 1. [mainstream slang] Pejorative applied to anyone with an
above-average IQ and few gifts at small talk and ordinary social
rituals.(http://dict.die.net/nerd/)
why? above-average IQ should be lower-average IQ in your case.
Please, lets not turn this into a flame fest.
Warrior, im not, this kid comes and takes all personal, like if i care about him,
he hates me because:
Long time ago we made a deal, but he broke the deal and a friend (Gandalf.com),
did something to him and he got pissed enough to hate me for like 3 years now.
Errr... youwhatnow?
Take it elsewhere please, gentlemen.