SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
Loading...
Searching...
No Matches
sdt.py File Reference

Go to the source code of this file.

Namespaces

namespace  sl2
 
namespace  sl2.sdt
 

Functions

 sl2.sdt.sdt_twin (buf, off, alt)
 Read a field the game stores twice, or None unless both copies agree.
 
 sl2.sdt.sdt_weapon_cat (iid, prosthetics)
 

Variables

int sl2.sdt.SDT_SLOT_COUNT = 10
 How many character slots the game has.
 
int sl2.sdt.SDT_STEAM_OFF = 0x33E54
 Slot fields, at fixed offsets into the decrypted (plaintext) slot payload.
 
int sl2.sdt.SDT_NG_OFF = 0x33F34
 
int sl2.sdt.SDT_PLAYTIME_OFF = 0x33F80
 
int sl2.sdt.SDT_ATTACK_OFF = 0x3449C
 
int sl2.sdt.SDT_SEN_OFF = 0x344D0
 
 sl2.sdt.SDT_HP_OFF
 Max HP and max Posture, each stored TWICE, and neither at the offset the published source names.
 
 sl2.sdt.SDT_HP_ALT
 Max HP and max Posture, each stored TWICE, and neither at the offset the published source names.
 
 sl2.sdt.SDT_POSTURE_OFF
 
 sl2.sdt.SDT_POSTURE_ALT
 
int sl2.sdt.SDT_VITALITY_OFF = 0x34498
 Vitality, the second of Sekiro's two upgrade tracks, at the word immediately before Attack Power.
 
int sl2.sdt.SDT_VITALITY_MAX = 20
 
int sl2.sdt.SDT_GOURD_OFF = 0x34562
 The Healing Gourd's CHARGE COUNT — a byte, and Sekiro's third spent-token counter — at 0x34562.
 
int sl2.sdt.SDT_GOURD_MAX = 10
 
int sl2.sdt.SDT_ATTACK_BASE = 1
 Attack power on a character who has consumed no Memory.
 
 sl2.sdt.SDT_ATTACK_MAX
 Ceilings that make a field a field rather than noise: a value past either means the read landed somewhere it should not have, and the field is dropped.
 
 sl2.sdt.SDT_NG_MAX
 Ceilings that make a field a field rather than noise: a value past either means the read landed somewhere it should not have, and the field is dropped.
 
tuple sl2.sdt.SDT_LISTS
 One inventory-style list: where it starts and how long it runs.
 
int sl2.sdt.SDT_RECORD = 16
 
dict sl2.sdt.SDT_CAT = {0x8: "weapons", 0x9: "armors", 0xB: "goods"}
 Item type, from the top nibble of the record's HANDLE.
 
int sl2.sdt.SDT_ID_MASK = 0x00FFFFFF
 The item id proper is the low 24 bits; the rest is the type code.
 
int sl2.sdt.SDT_ARTS_MAX = 9999
 Category refinement for the weapons table, applied at load time.