notes: save slots, PersistentGameData tracking, seed codes, special seeds, the daily

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-27 16:15:42 -04:00
1 parent 9c0b462ff5
commit f47872e49c
1 file changed
+51
+51
View File
@@ -0,0 +1,51 @@
# Save slots, tracking, seed codes, special seeds, the daily (isaac-classic rif/menu-systems, 2026-10-27)
## Save slots
- `Manager::SetSaveSlot` 0x959e70: `PersistentGameData::Clear`, then loads `%spersistentgamedata%d.dat` (local) or
`rep+persistentgamedata%d.dat` (Steam Cloud) for the slot; GameState (the run) per slot after it. Options are
`options.ini`, machine-wide. `Menu_Save::load_slot_data` 0x919980 merges `sharedsave%d.dat` (online shared progress:
achievements OR-ed, counters by gain); `copy_shared_progress` 0x91b720 copies a fixed list of counters and 12
achievements. Not ported (no online).
- Save select drawing: `Menu_Save::replace_slot_graphics` 0x9db2d0 picks `gfx/ui/main menu/SaveDrawings/*.png` from
achievements (0x27d 1000%, 0x27b, 0x153, 0xeb, 0x54, 0x45, 0x29, 0x9b, 0x20, 0xb, 0x21, 4) and counters (0x1ec,
cutscene 0x19, 0x1a mega satan, 0xb/0xd photo/negative pieces, 1 heart kills). `update_save_drawings` 0x9dbdd0:
1/2SaveFilesToGo, Complete1-3, Infinity1-3 by every slot's state.
## PersistentGameData tracking
- Collection: `AddToCollection` 0x92a2d0 (id < 0x2dd, sets byte at counters+0x82c+id). Callers: `Entity_Player::AddCollectible`
(every gain), `pocket_use_input` (card use: 0x3d; pill use: 0x2b), `update_effects` (0x2b), `Entity_Pickup::HandleCollision`
(0x227 Broken Shovel piece).
- Bestiary maps keyed `(type << 12 | variant) << 8` after `EntityConfig::GetBestiaryConfig` 0x695030 (follows
`bestiaryParentType/Variant` +0x158/+0x15c; entries need entities2.xml `bestiary`):
- encounters 0xf64: `TryAddBestiaryEncounter` 0x92aea0 from `Entity_NPC::Update` once per NPC (`_isBestiaryEncountered`
0xc60, cleared by Init/Morph);
- kills 0xf6c: `AddBestiaryKill` 0x92acb0 from `Entity_Player::trigger_npc_death` 0x7a0080 (skipped for flag 1<<42);
- hits 0xf74: FUN_0092aaf0 -> 0x92ab40 from `Entity_Player::TakeDamage` 0x7729d0 when the source type is 10..999;
- deaths 0xf7c: FUN_0092abd0 -> 0x92ac20 from TakeDamage once `_dead`, the source's type or else its spawner's.
- Endings: `Game::End` 0x6f9770 increments `_cutsceneCounters[ending cutscene]` and [2]; `Menu_Cutscenes` shows those >0.
- Special seeds typed: `Menu_Character::submit_seed` 0x94d040 sets byte `_cutsceneCounters + 0x74 + effect` ("Seed %d added
to SaveState").
## Seed codes
- `Seeds::Seed2String` 0x9eb5b0 / `String2Seed` 0x9eb6b0: alphabet `ABCDEFGHJKLMNPQRSTWXYZ01234V6789`; v = seed ^ 0xfef7ffd;
checksum c over the seed: for x = seed; x; x >>= 5: t = c + (u8)x; c = rotl8(t, 1). Digits: v>>27, v>>22, v>>17, v>>12,
v>>7, v>>2 (5 bits each), ((v & 3) << 3 | c >> 5), c & 31; "XXXX XXXX". Seed 0 is invalid (`IsStringValidSeed`).
## Special seeds
- `Seeds::GetSeedEffect` 0x9e9db0 pads/cuts the text to 9 and compares SHA-1 digests (74 digests). 69 plaintexts
verified against them (the wiki's codes, each SHA-1 matched to a digest and its effect read off the compare chain); effects 9 (two more),
0x19, 0x21, 0x36 have extra codes whose plaintext is unknown.
- `Seeds::InitSeedInfo` 0x9e94e0: music group {1,2,41,42,43,44} mutually banned; pairs via FUN_009e9bf0 (both ways):
3-14, 3-37, 3-53, 4-15, 14-35, 14-36, 14-37, 14-46, 14-53, 14-54, 21-17, 21-19, 19-20, 25-32, 35-36, 37-46, 37-53,
47-48, 56-63 .. 61-68, 70-(56..68), 74-75. AchievementUnlocksDisallowed set 0xc798d0: 11 13 16 17 18 19 20 21 24 25 32 33
38 55 57 63-68 70 73 77 79.
- `GetForcedCurses` 0x6f9400: 56 darkness, 57 labyrinth only on odd stages < 8, not greed, not challenge 44; 58.. etc.
- isaac-classic: resources/data/seeds.json (curses / excluded_curses / earns_progress / bans); only the curse seeds act.
## Daily
- `daily_challenge_refresh` 0x958c40: server UTC date -> yyyymmdd -> `DailyChallenge::Init` 0x426a50. RNG(date, or
date-1 on Groundhog Day: `holiday_get_current` 0x427870 id 2 for 02/02), shifts 10/9/21. Draws: player type % 20
(redraw 11, 12, 17), end stage {6,8,10,11}[&3], path, then by weekday (tm_wday): Sun mega satan + hard 1/6;
Mon path 2 stage 8; Tue tainted + %100 table; Wed stage 12 + RandomInt(2) path + table; Thu path 3 stage 13;
Fri hard + table; Sat its own table, RandomInt(2) tainted, RandomInt(2) hard. The run seed is the next draw.
Holidays then override params (FUN_00427290), not the seed.