Valhalla Legends Forums Archive | Battle.net Bot Development | D2XP Game Creation

AuthorMessageTime
laurion
I tried to create a d2xp game, took a log, and got this
(full log @ http://www.incdamage.net/pistol/ingame%20log.txt )
[code]
1 192.168.2.37 63.240.202.148 19 Send
0000 13 00 03 02 00 00 00 00 00 01 FF 08 56 6C 00 56 ............Vl.V
0010 6C 00 00 l..

2 63.240.202.148 192.168.2.37 13 Recv
0000 0D 00 03 02 00 14 01 00 00 00 00 00 00 .............

3 192.168.2.37 63.240.202.148 11 Send
0000 0B 00 04 03 00 56 6C 00 56 6C 00 .....Vl.Vl.

4 192.168.2.37 63.240.202.121 31 Send
0000 FF 1C 1F 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00 56 6C 00 56 6C 00 00 ........Vl.Vl..

5 63.240.202.148 192.168.2.37 21 Recv
0000 15 00 04 03 00 14 01 00 00 3F F0 CA 9B 1B A1 58 .........?.....X
0010 28 00 00 00 00 (....

6 192.168.2.37 63.240.202.121 18 Send
0000 FF 22 12 00 50 58 32 44 0A 00 00 00 56 6C 00 56 ."..PX2D....Vl.V
0010 6C 00 l.

7 63.240.202.155 192.168.2.37 2 Recv
0000 AE 01 ..

8 192.168.2.37 63.240.202.155 29 Send
0000 67 1B A1 58 28 14 01 01 0A 00 00 00 00 69 63 65 g..X(........ice
0010 64 2D 63 72 65 61 6D 00 4B 00 00 00 04 d-cream.K....

9 63.240.202.155 192.168.2.37 5 Recv
0000 05 7A 09 A5 F0 .z...

10 63.240.202.155 192.168.2.37 2 Recv
0000 02 5C .\

11 192.168.2.37 63.240.202.155 9 Send
0000 6C 55 3A 1B 00 00 00 00 00 lU:......

12 63.240.202.155 192.168.2.37 7 Recv
0000 07 1F 7F FF FF FF C0 .......

13 192.168.2.37 63.240.202.155 1 Send
0000 6A j
[/code]
vL//vL was game, iced-cream was character, and account was Kcoj14@useast
can anyone make heads or tails of this? I'm not sure if 0x1C is used to create games for ALL clients, and if the values are the same. By the looks of it, making D2 games is much different, if I assume correctly.
February 13, 2004, 12:53 AM
Soul Taker
Yes, I'm sure many people can make heads and/or tails of it, as it's pretty simple stuff. Do you have a specific question? =P
February 13, 2004, 1:32 AM
UserLoser.
[quote][pre]
1 192.168.2.37 63.240.202.148 19 Send
0000 13 00 03 02 00 00 00 00 00 01 FF 08 56 6C 00 56 ............Vl.V
0010 6C 00 00 [/pre]
[/quote]
0x03 Creates game on realm server
[hr]
[quote][pre]
3 192.168.2.37 63.240.202.148 11 Send
0000 0B 00 04 03 00 56 6C 00 56 6C 00 .....Vl.Vl.[/pre]
[/quote]
0x04 Joins game on realm server
[hr]
[quote][pre]
4 192.168.2.37 63.240.202.121 31 Send
0000 FF 1C 1F 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00 56 6C 00 56 6C 00 00 ........Vl.Vl..[/pre]
[/quote]
0x1C Tells BNCS game was created
[hr]
[quote][pre]
6 192.168.2.37 63.240.202.121 18 Send
0000 FF 22 12 00 50 58 32 44 0A 00 00 00 56 6C 00 56 ."..PX2D....Vl.V
0010 6C 00 l.[/pre]
[/quote]
0x22 Tells BNCS you joined a game
February 13, 2004, 2:24 AM
laurion
0x03 and 0x04 are they UDP or something? i dont recognize the packet format
February 13, 2004, 11:25 AM
Soul Taker
He said 'realm server' =P
February 13, 2004, 11:26 AM
UserLoser.
[quote author=laurion link=board=17;threadid=5257;start=0#msg44011 date=1076671559]
0x03 and 0x04 are they UDP or something? i dont recognize the packet format
[/quote]

Like SoulTaker said, I did say realm server - which is TCP

Diablo II/Lord of Destruction and Warcraft III/The Frozen Throne are the only Battle.net games that do not use UDP for gaming, it's all TCP.
February 13, 2004, 4:59 PM
laurion
So 0x03//0x04 would be sent on a seperate TCP socket, one used for realm stuff?
February 14, 2004, 12:43 AM
UserLoser.
[quote author=laurion link=board=17;threadid=5257;start=0#msg44130 date=1076719425]
So 0x03//0x04 would be sent on a seperate TCP socket, one used for realm stuff?
[/quote]

The same socket you used for logging onto your character, which would be the one you're using for the realm
February 14, 2004, 12:48 AM
laurion
can i get some help on how 2 read the packet?
February 14, 2004, 9:29 PM
dRAgoN
[quote author=laurion link=board=17;threadid=5257;start=0#msg44329 date=1076794191]
can i get some help on how 2 read the packet?
[/quote]

Which ones, D2GS or Realm packets lol.
February 15, 2004, 11:00 PM
laurion
[quote author=dRAgoN link=board=17;threadid=5257;start=0#msg44487 date=1076886021]
[quote author=laurion link=board=17;threadid=5257;start=0#msg44329 date=1076794191]
can i get some help on how 2 read the packet?
[/quote]

Which ones, D2GS or Realm packets lol.
[/quote]
Both
February 16, 2004, 11:19 AM
UserLoser.
[quote author=laurion link=board=17;threadid=5257;start=0#msg44563 date=1076930372]
[quote author=dRAgoN link=board=17;threadid=5257;start=0#msg44487 date=1076886021]
[quote author=laurion link=board=17;threadid=5257;start=0#msg44329 date=1076794191]
can i get some help on how 2 read the packet?
[/quote]

Which ones, D2GS or Realm packets lol.
[/quote]
Both
[/quote]

One way you can figure it out is by packet logging it multiple times with different characters, different game names and see what changes and what doesn't

Edit: Fixed quote
February 16, 2004, 4:58 PM
DaRk-FeAnOr
It would help a great deal if you posted your source code as well as the packet logs, so that it is easier to see where something went wrong.
February 16, 2004, 6:16 PM
LoRd
[quote]It would help a great deal if you posted your source code as well as the packet logs, so that it is easier to see where something went wrong.[/quote]

He doesn't know how to read the packet, he most likely doesn't have much if any useful code to show. Packetlogs > *

[quote]can i get some help on how 2 read the packet?

One way you can figure it out is by packet logging it multiple times with different characters, different game names and see what changes and what doesn't

Which ones, D2GS or Realm packets lol.

Both[/quote]

D2GS packets are always in the following format:

[code]
(BYTE) Packet ID
(VOID) Packet Data
[/code]

However these packets are compressed using what appears to be a broken Huffman encryption.

MCP (Realm) packets are always in the following format:
[code]
(WORD) Packet length, including this header
(BYTE) Packet ID
(VOID) Packet Data
[/code]
February 16, 2004, 7:17 PM
laurion
So, help me read 0x03, 0x04, and 0x1C?
February 16, 2004, 9:11 PM

Search