Valhalla Legends Forums Archive | Battle.net Bot Development | Starcraft UDP

AuthorMessageTime
Archangel
What have to be done to connect to a Starcraft Game Host?
February 20, 2005, 7:12 PM
UserLoser.
First step would not be connecting, nor would any of them.  Hope this helps
February 20, 2005, 7:27 PM
Archangel
yes.. it helps alot....
February 20, 2005, 7:41 PM
KkBlazekK
(You don't connect in udp)
http://www.google.de/search?q=define%3AUDP
February 20, 2005, 7:44 PM
Archangel
Well, so, the steps of joining a Starcraft Game?
February 20, 2005, 7:51 PM
Twix
Packet log u joining a game and do a search i remember sombody posting the broken down packet telling u what does what
February 20, 2005, 7:54 PM
Archangel
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..
February 20, 2005, 7:58 PM
Twix
here is some hope this helps
[code]
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

------------------------------------
[/code]
February 20, 2005, 8:01 PM
Archangel
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?...
February 20, 2005, 8:08 PM
Kp
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.
February 20, 2005, 8:57 PM
Archangel
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]
February 20, 2005, 9:02 PM
Kp
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).
February 20, 2005, 9:08 PM
Archangel
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?
February 20, 2005, 10:44 PM
LoRd
http://juicystudio.com/tutorial/vb/network.asp
February 20, 2005, 11:21 PM
Archangel
ok, i got it.
February 20, 2005, 11:38 PM
Archangel
x
February 21, 2005, 12:34 AM
Archangel

12  201.133.95.105:6113  :0  8  SendTo 
0000  06 00 00 00 98 6C 1B 01                            .....l..

anyone knows whats 0x06?
February 21, 2005, 1:07 AM
LoRd
[quote author=Archangel link=topic=10641.msg100712#msg100712 date=1108948034]

12  201.133.95.105:6113  :0  8  SendTo 
0000  06 00 00 00 98 6C 1B 01                            .....l..

anyone knows whats 0x06?
[/quote]

PKT_SELFPING
February 21, 2005, 2:52 AM
NetNX
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?
February 21, 2005, 3:38 PM
Soul Taker
As stated many times in this thread, UDP is connectionless.
February 21, 2005, 6:05 PM
BaDDBLooD
People who only make bots usually use TCP Instead of UDP.  When they hear the word UDP, it's like *LIGHTBULB*  :'(
February 21, 2005, 7:22 PM
UserLoser.
[quote author=BaDDBLooD link=topic=10641.msg100848#msg100848 date=1109013754]
People who only make bots usually use TCP Instead of UDP.  When they hear the word UDP, it's like *LIGHTBULB*  :'(
[/quote]

Well, for Battle.net, you must use TCP.  Anyways, wouldn't the lightbulb go off/away when they hear it?
February 21, 2005, 7:30 PM
LoRd
[quote author=BaDDBLooD link=topic=10641.msg100848#msg100848 date=1109013754]
People who only make bots usually use TCP Instead of UDP.  When they hear the word UDP, it's like *LIGHTBULB*  :'(
[/quote]

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.
February 21, 2005, 8:10 PM
Zakath
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.
February 21, 2005, 8:28 PM
Arta
hmm, except there's still no reliable delivery. connect() on a UDP socket just sets a default address. iirc?
February 21, 2005, 8:37 PM
Archangel
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?
February 21, 2005, 8:43 PM
Zakath
[quote author=Arta[vL] link=topic=10641.msg100860#msg100860 date=1109018270]
hmm, except there's still no reliable delivery. connect() on a UDP socket just sets a default address. iirc?
[/quote]

Correct.
February 21, 2005, 8:45 PM
UserLoser.
[quote author=Archangel link=topic=10641.msg100861#msg100861 date=1109018605]
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]

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
February 21, 2005, 8:51 PM
Quarantine
I think he means is there a documentation which AFAIK there isn't.
February 21, 2005, 9:00 PM
Zakath
"As far as I know."

Now, did that really require a forum post to find out? You could have googled it.
February 21, 2005, 9:27 PM
Archangel
[quote author=UserLoser link=topic=10641.msg100864#msg100864 date=1109019067]
[quote author=Archangel link=topic=10641.msg100861#msg100861 date=1109018605]
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]

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
[/quote]

1st of all, it was http://www.atis.org/tg2k/_user_datagram_protocol.html
2nd, people learn by searching.
nerd.
February 21, 2005, 9:34 PM
UserLoser.
[quote author=Archangel link=topic=10641.msg100885#msg100885 date=1109021646]
[quote author=UserLoser link=topic=10641.msg100864#msg100864 date=1109019067]
[quote author=Archangel link=topic=10641.msg100861#msg100861 date=1109018605]
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]

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
[/quote]

1st of all, it was http://www.atis.org/tg2k/_user_datagram_protocol.html
2nd, people learn by searching.
nerd.
[/quote]

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
February 21, 2005, 10:34 PM
Archangel
[quote author=UserLoser link=topic=10641.msg100895#msg100895 date=1109025253]
[quote author=Archangel link=topic=10641.msg100885#msg100885 date=1109021646]
[quote author=UserLoser link=topic=10641.msg100864#msg100864 date=1109019067]
[quote author=Archangel link=topic=10641.msg100861#msg100861 date=1109018605]
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]

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
[/quote]

1st of all, it was http://www.atis.org/tg2k/_user_datagram_protocol.html
2nd, people learn by searching.
nerd.
[/quote]

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]

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.
February 21, 2005, 11:21 PM
Quarantine
Please, lets not turn this into a flame fest.
February 21, 2005, 11:25 PM
Archangel
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.
February 21, 2005, 11:27 PM
Arta
Errr... youwhatnow?

Take it elsewhere please, gentlemen.
February 21, 2005, 11:30 PM

Search