krisives / d2s-format

Diablo II Save File Format (.d2s format)
121 stars 19 forks source link

Added hex offsets #14

Closed satandidnowrong closed 5 months ago

satandidnowrong commented 5 months ago

Thanks for the information. I look forward to it being full and precise.

krisives commented 5 months ago

Sorry that this got lost in my inbox. Thank you for the help.

satandidnowrong commented 5 months ago

Glad to be a part. I'm working on finding how the last bits of an item are affected if the same item is socketted or not socketted. I have seen the few item format pages around, but no clue yet as to how it is decided besides manually setting it. Do you know of the algo?

krisives commented 5 months ago

Let's make a new issue for that and maybe you can attach some files? Basically just make a character with some known items (and preferably nothing else) and we can discover what it is.

krisives commented 5 months ago

Or read https://github.com/squeek502/d2itemreader

satandidnowrong commented 5 months ago

Or read https://github.com/squeek502/d2itemreader

ooh this is nice giving a gander now

before reading, this is what I found on my own "the last bytes of the item (norm, not mag) CD E2 FD 07 when socketable 2D DE 7F when not socketable we can see that 2->C, !D, +2, !7, +D, +07

"CD E2 FD 07": 11001101 11100010 11111101 00000111 "2D DE 7F": 00101101 11011110 01111111"

Some one in discord said it's a bitstream, well ofc, right? Gonna see if that is defined in that reply of yours you legend.