How to read the player experience value from the save file?

Post anything else Diablo II legacy related here but remember this ISN'T a hack site. All posts directly related to battle.net hacking will be deleted.
Post Reply
StephenLynx
Posts: 1
Joined: Tue Aug 17, 2021 4:21 am
Bahrain

How to read the player experience value from the save file?

Post by StephenLynx » Tue Aug 17, 2021 4:30 am

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.

User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
Contact:
South Africa

Hand-picked

Re: How to read the player experience value from the save file?

Post by Necrolis » Wed Aug 18, 2021 4:17 pm

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
Image
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

Post Reply

Return to “Diablo II Chatter”