Skip to content

hossomi/d2-cloud-stash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D2 Cloud Stash

Save file format (.d2s)

The save file contains all the character current state.

Header

The header is a fixed-size section with file metadata and basic character state.

Address Type Description
0x0000 int Signature (0x55aa55aa)
0x0004 int Version (99)
0x0008 int File size
0x000c int Checksum
0x0010 int Active equipment:
0 Main
1 Swap
0x0014 16 ?
0x0024 byte Character flags:
0x40 Ladder
0x20 Expansion
0x08 Dead
0x04 Hardcore
0x0025 byte Character progression: incremented for each act boss killed; determines the character title
0x0026 2 ?
0x0028 byte Character class:
0 Amazon
1 Sorceress
2 Necromancer
3 Paladin
4 Barbarian
5 Druid
6 Assassin
0x0029 2 ?
0x002b byte Character level
0x002c 4 ?
0x0030 int Last played (epoch seconds)
0x0034 4 ?
0x0038 int[16] Skills assigned to the "Skill #" hotkeys from the game control settings; if no skill is assigned, the corresponding value is -1
0x0078 int Left mouse button skill (main equipment)
0x007c int Right mouse button skill (main equipment)
0x0080 int Left mouse button skill (swap equipment)
0x0084 int Right mouse button skill (swap equipment)
0x0088 32 Character menu appearance (?)
0x00a8 byte[3] Difficulty status (Normal, Nightmare and Hell):
0x80 Unlocked
0x78 ?
0x07 Current act (0-4)
0x00ab int Map ID (?)
0x00af 2 ?
0x00b1 short Mercenary dead
0x00b3 int Mercenary seed (?)
0x00b7 short Mercenary name ID
0x00b9 short Mercenary type
0x00bb int Mercenary experience
0x00bf 74 ?
0x010b char[16] Character name
0x011b 51 ?
0x014f Quests (298) Quests status
0x0279 Waypoints (80) Waypoints status
0x02ca NPCs (51) NPCs status
0x02fc Attributes Character attributes
Skills Character skills
Items Character items

Quests

Describes the status of all quests in the game, as well as some NPC introductions and act travelling.

Address Type Description
0x00 byte[4] Woo!
0x04 6 ?
0x0a Difficulty Quests x 3 Quests status for Normal, Nightmare and Hell

Difficulty Quests

For each act, this structure describes if the player has travelled to the act, introduced to the main NPC and each quest status. Note that the quest order may not be the same as in game.

Each quest data is contained in a short, individual bits representing milestones that are specific to the quest. The only common milestone is the bit 0x0001 which marks the quest completion. See further below for details.

Address Type Description
0x00 short 1 if introduced to Warriv
0x02 short Act 1.1: Den of Evil
0x04 short Act 1.2: Sister's Burial Grounds
0x06 short Act 1.5: Tools of the Trade
0x08 short Act 1.3: The Search for Cain
0x0a short Act 1.4: The Forgotten Tower
0x0c short Act 1.6: Sisters to the Slaughter
0x0e short 1 if travelled to Act 2
0x10 short 1 if introduced to Jerhyn
0x12 short Act 2.1: Radament's Lair
0x14 short Act 2.2: The Hodradric Staff
0x16 short Act 2.3: Tainted Sun
0x18 short Act 2.4: Arcane Sanctuary
0x1a short Act 2.5: The Summoner
0x1c short Act 2.6: The Seven Tombs
0x1e short 1 if travelled to Act 3
0x20 short 1 if introduced to Hratli
0x22 short Act 3.4: Lam Esen's Tome
0x24 short Act 3.3: Khalim's Will
0x26 short Act 3.2: Blade of the Old Religion
0x28 short Act 3.1: The Golden Bird
0x2a short Act 3.5: The Blackened Temple
0x2c short Act 3.6: The Guardian
0x2e short 1 if travelled to Act 4
0x30 short 1 if introduced to Act 4 (true if travelled)
0x32 short Act 4.1: The Fallen Angel
0x34 short Act 4.2: Hell's Forge
0x36 short Act 4.3: Terror's End
0x38 short[3] Empty (Act 4 has only 3 quests)
0x3e short 1 if travelled to Act 5
0x40 short 1 if introduced to Cain in Act 5
0x42 4 ?
0x46 short Act 5.1: Siege on Harrogath
0x48 short Act 5.2: Rescue on Mountain Arreat
0x4a short Act 5.3: Prison of Ice:
0x0080 Scroll consumed
0x4c short Act 5.4: Betrayal of Harrogath
0x4e short Act 5.5: Rite of Passage
0x50 short Act 5.6: Eve of Destruction
0x52 14 ?

Waypoints

Describes the status of all waypoints in the game.

Address Type Description
0x00 byte[2] WS
0x02 6 ?
0x08 Difficulty Waypoints x 3 Waypoint status for Normal, Nightmare and Hell

Difficulty Waypoints

Describes if the player has activated each waypoint in this difficulty, represented by individual bits in the same order as in game. For example, 0x0000000001 is the status for the Rogue Encampment waypoint.

Address Type Description
0x00 2 ?
0x02 5 Waypoints activated
0x07 17 ?

About

A Diablo 2 Resurrected stash in the cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages