feat: Add version 100-105 (ROTW) format support #1
Merged
ResurrectedTrader merged 1 commit intomainfrom Mar 3, 2026
Merged
Conversation
Add support for D2R save format versions 100-105 with restructured header, new sections, and updated item serialization. Header changes (v104+): - PreviewData expanded to 228 bytes with SaveTimes[6], Experiences[6], GameMode field, and 96-byte UTF-8 Name - Character Name field removed (now only in PreviewData) New sections: - DemonSection (v103+, "lf" magic) for summoned creature persistence - ChronicleSection (0xC0EAEDC0) tracking found set/unique/runeword items - StashTabType enum (Normal, AdvancedStash, Chronicle) for StashFormat 2 Item serialization (v105+): - Quantity uses 1-bit presence flag for ALL items, not just stackable - Chronicle recipient data (v100+) with CharacterIdentity pairs - AdvancedStashStackSize for advanced stash tab items (v100+) New enums: GameMode, DemonType, StashTabType, CharacterClass.Warlock, and stat IDs 207/361-367. Version conversion extended across v96↔v97+, v<=103↔v104+, and v<=104↔v105+ boundaries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for D2R save format versions 100-105 with restructured header, new sections, and updated item serialization.
Header changes (v104+):
New sections:
Item serialization (v105+):
New enums: GameMode, DemonType, StashTabType, CharacterClass.Warlock, and stat IDs 207/361-367.
Version conversion extended across v96↔v97+, v<=103↔v104+, and v<=104↔v105+ boundaries.