Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
d2s format docs for 1.10
#2
You can get a great description from SVR's web site

I have also previously prepared the following info about the "gf chunk":


D2 V1.10 Beta – information for dynamic decoding for character stats

After “gf” header (67h, 66h) @ (2FDh,2FEh), look for the value of the next 9 bits (starting at 2FFh), to determine any extra stat ID bits, followed by the stat bits:
0: 9 bits, + 10 bits Strength
1: 9 bits, + 10 bits Energy
2: 9 bits, + 10 bits Dexterity
3: 9 bits, + 10 bits Vitality
4: 9 bits, + 10 bits Stat Points Remaining
5: 9 bits, + 8 bits Skill Choices Remaining
6: 9 bits, + 21 bits Current Life (/256)
7: 9 bits, + 21 bits Maximum Life (/256)
8: 9 bits, + 21 bits Current Mana (/256)
9: 9 bits, + 21 bits Maximum Mana (/256)
A: 9 bits, + 21 bits Current Stamina (/256)
B: 9 bits, + 21 bits Maximum Stamina (/256)
C: 9 bits, + 7 bits Level
D: 9 bits, + 32 bits Experience
E: 9 bits, + 25 bits Gold on Person
F: 9 bits, + 25 bits Gold in Stash

Example, ‘forward bytes’, after “gf” header:
00 28 08 F0 80 00 0F 06 50 40 40 81 02 01 06 00 70 C0 01 00 1C 80 00 70 02 24 00 9C 00 0A 00 AE C0 02 80 2B C0 80 D0 A0 10 03 00 C0 81 16 00 80 07 08 00 00 FE 03

Reverse order of the above example bytes:
03 FE 00 00 08 07 80 00 16 81 C0 00 03 10 A0 D0 80 C0 2B 80 02 C0 AE 00 0A 00 9C 00 24 02 70 00 80 1C 00 01 C0 70 00 06 01 02 81 40 40 50 06 0F 00 80 F0 08 28 00

Reverse Binary: 00000011 11111110 00000000 00000000 00001000 00000111 10000000 00000000 00010110 10000001 11000000 00000000 00000011 00010000 10100000 11010000 10000000 11000000 00101011 10000000 00000010 11000000 10101110 00000000 00001010 00000000 10011100 00000000 00100100 00000010 01110000 00000000 10000000 00011100 00000000 00000001 11000000 01110000 00000000 00000110 00000001 00000010 10000001 01000000 01000000 01010000 00000110 00001111 00000000 10000000 11110000 00001000 00101000 00000000

Decoded values for Example:
0: Strength = 20
1: Energy = 15
2: Dexterity = 30
3: Vitality = 20
4: Stat Points Left = 10
5: Skill Points Left = 1
6: Current Life = 56
7: Maximum Life = 56
8: Current Mana = 19
9: Maximum Mana = 19
A: Current Stamina = 87
B: Maximum Stamina = 87
C: Level = 4
D: Experience = 6277
E: Gold on Person = 90
F: Gold in Stash = 8
Reply


Messages In This Thread
d2s format docs for 1.10 - by andyb@b5 - 04-02-2004, 06:30 AM
d2s format docs for 1.10 - by ZonFire99 - 04-03-2004, 05:06 PM
d2s format docs for 1.10 - by andyb@b5 - 04-03-2004, 07:18 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)