How to read the player experience value from the save file?
-
- Posts: 1
- Joined: Tue Aug 17, 2021 4:21 am
How to read the player experience value from the save file?
I've been using http://user.xmission.com/~trevin/Diablo ... ader_level as a reference, but I think something important changed on 1.10, because there is no way the character stats are the same. I can't find my current xp at all in the search, my level is only using a single byte and the amount of bytes between "gf" and "if" don't seem to match what it should. There are 45 bytes, take 2 for the header, you are left with 43. If all the values are longs, it should be a number divisible by 4.
- Necrolis
- Throne
- Posts: 9125
- Joined: Sat Mar 25, 2006 1:22 pm
- Location: The Land of the Dead
- Contact:
Re: How to read the player experience value from the save file?
The stats are encoded as bit streams, you'll need to read info from itemstatcost to deserialize them.
I'd suggest going through this thread for more info: https://d2mods.info/forum/viewtopic.php?f=8&t=9011
I'd suggest going through this thread for more info: https://d2mods.info/forum/viewtopic.php?f=8&t=9011
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal