• Welcome to Valhalla Legends Archive.
 

Starcraft UDP

Started by Archangel, February 20, 2005, 01:12 PM

Previous topic - Next topic

Archangel

What have to be done to connect to a Starcraft Game Host?
I'm not an Addict.

UserLoser.

#1
First step would not be connecting, nor would any of them.  Hope this helps

Archangel

yes.. it helps alot....
I'm not an Addict.

Blaze

#3
(You don't connect in udp)
http://www.google.de/search?q=define%3AUDP
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Archangel

Well, so, the steps of joining a Starcraft Game?
I'm not an Addict.

DeTaiLs

Packet log u joining a game and do a search i remember sombody posting the broken down packet telling u what does what



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..
I'm not an Addict.

DeTaiLs

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

------------------------------------



Archangel

#8
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?...
I'm not an Addict.

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.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

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]
I'm not an Addict.

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).
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

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?
I'm not an Addict.

Eric


Archangel

#14
ok, i got it.
I'm not an Addict.