Go package for reading and writing Diablo 2 saves. Supports version 1.10 through Diablo II: Resurrected (1.15).
Supports reading both d2s (player saves) and d2i (shared stash) files.
To install the package, use the following:
go get github.com/vitalick/go-d2editor
To install command line program, use the following:
go install github.com/vitalick/d2editor-cli@latest
For convert JSON to .d2s, use the following:
d2editor-cli -fromjson <input files>
For convert .d2s to JSON, use the following:
d2editor-cli -tojson <input files>
To specify the path to the output folder, we use the following:
d2editor-cli -fromjson -o <output folder> <input files>
d2editor-cli -tojson -o <output folder> <input files>
Coming soon...
Completed steps
Add Character structAdd Header to CharacterAdd ActiveWeapon to CharacterAdd Name to CharacterAdd Status to CharacterAdd Progression to CharacterAdd Unk0x0026 to CharacterAdd Class to CharacterAdd Unk0x0029 to CharacterAdd Level to CharacterAdd Created to CharacterAdd LastPlayed to CharacterAdd Unk0x0034 to CharacterAdd HotkeySkills to CharacterAdd LeftSkill to CharacterAdd RightSkill to CharacterAdd LeftSwapSkill to CharacterAdd RightSwapSkill to CharacterAdd Appearances to CharacterAdd Locations to CharacterAdd MapID to CharacterAdd Unk0x00af to CharacterAdd Mercenary to CharacterAdd RealmData to CharacterAdd Quests to CharacterAdd Waypoints to CharacterAdd UnkUnk1 to CharacterAdd NPCDialogs to CharacterAdd Attributes to Character
- Add ClassSkills to Character
- Add ItemList to Character
- Add CorpseList to Character
- Add MercenaryItemList to Character
- Add Golem to Character
- Test saved savedata in Diablo 2 Resurrected
- Test saved savedata in Diablo 2 LoD
- Test created savedata in Diablo 2 Resurrected
- Test created savedata in Diablo 2 LoD
- https://github.com/dschu012/D2SLib (credits to dschu012 for example lib on c#)
- https://github.com/d07RiV/d07riv.github.io/blob/master/d2r.html (credits to d07riv for reversing the item code on D2R)
- https://github.com/nokka/d2s (credits to nokka for structs of classes, skills and items)
- https://github.com/krisives/d2s-format
- http://paul.siramy.free.fr/d2ref/eng/
- http://user.xmission.com/~trevin/DiabloIIv1.09_File_Format.shtml
- https://github.com/nickshanks/Alkor
- https://github.com/HarpyWar/d2s-character-editor