Skip to content

fix: basic support to d2s version 105.#86

Open
viniciusrezende wants to merge 1 commit intodschu012:masterfrom
viniciusrezende:feat/support-reign-of-warlock
Open

fix: basic support to d2s version 105.#86
viniciusrezende wants to merge 1 commit intodschu012:masterfrom
viniciusrezende:feat/support-reign-of-warlock

Conversation

@viniciusrezende
Copy link

@viniciusrezende viniciusrezende commented Feb 15, 2026

Adds basic support to d2s version 105

Supports Expansion(resurrected) characters/inventory/stash
I didn't test it with stackable items, currency tabs, warlock and new items.

}
}
if (version === 105 && reader.ReadBit()) {
reader.SkipBits(8);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Diablo II save files at version 105, item quantity is being silently discarded (SkipBits(8)) instead of parsed. This causes quantity data to be lost when reading stackable items (materials, gems, runes, etc.) from v105 saves. The following change fixes this issue and correctly parses quantities in the new stash tabs in Diablo 2: Reign of the Warlock

Suggested change
reader.SkipBits(8);
item.quantity = reader.ReadUInt8(8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants