• Welcome to Valhalla Legends Archive.
 

Quick Question about a games difficulty

Started by Jiggaboo, February 23, 2007, 10:45 PM

Previous topic - Next topic

Jiggaboo

Is there any way of determining what difficulty your game is in? (Packet Sniffing)

Mystical

That's a good question, Have you checked bnetdocs?

brew

what do you mean, what difficulty? I assume you're refering to Diablo. but do you mean I or II? I have no idea about II...
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

Ringo

#3
Quote from: Jiggaboo on February 23, 2007, 10:45 PM
Is there any way of determining what difficulty your game is in? (Packet Sniffing)
You mean D2?
If so, see S>C 0x01 ingame, its the 1st byte in :)


0x01 Game configeration
Format:

01 00 04 00 30 00 01 01 00 <- LOD SC Ladder
01 00 04 00 10 00 01 00 00 <- LOD SC Non-Ladder
01 00 04 08 30 00 01 01 00 <- LOD HC Ladder N
01 01 04 18 30 00 01 01 00 <- LOD HC Ladder NM
01 02 04 28 30 00 01 01 00 <- LOD HC Ladder H
01 00 04 08 10 00 01 00 00 <- LOD HC Non-Ladder

01 00 04 00 20 00 00 01 00 <- SC Ladder
01 00 04 00 00 00 00 00 00 <- SC Non-Ladder
01 00 04 08 20 00 00 01 00 <- HC Ladder
01 00 04 08 00 00 00 00 00 <- HC Non-Ladder


(BYTE) Difficulty
(BYTE) Unknown - 0x04
(BYTE) Difficulty/Core Flag
(WORD) Ladder/LOD Flag
(BYTE) LOD
(BYTE) Ladder
(BYTE) Unknown - 0x00

Notifys you on joining, what game type you have joined.

Difficulty's:
0x00 = Normal
0x01 = Nightmare
0x02 = Hell

Difficulty/Core Flag's:
0x20 = Hell
0x10 = Nightmare
0x08 = Hardcore

Ladder/LOD Flag's:
0x10 = LOD
0x20 = Ladder

LOD:
0x00 = Classic
0x01 = Lord Of Destruction

Ladder:
0x00 = Non-Ladder
0x01 = Ladder


[EDIT]: Just a side note, you need to decompress the messages from the server in a d2 game. (Search this forum for "d2gs decompression" topic made by brandx)
The packet its self is sent to clients in the login to the game server.

Jiggaboo

Quote from: Ringo on February 23, 2007, 11:32 PM
Quote from: Jiggaboo on February 23, 2007, 10:45 PM
Is there any way of determining what difficulty your game is in? (Packet Sniffing)
You mean D2?
If so, see S>C 0x01 ingame, its the 1st byte in :)
(...)

Exactly what I was looking for. Sorry for not seeing it there.
Anyway, thanks, a lot.  I appreciate it!