@gameslate/sdk 0.3.29 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,35 @@ one moment that's **not** gameplay (title or file select), so "no save loaded" i
18
18
 
19
19
  ## 2. Get to the moment
20
20
 
21
- **Drive the game yourself; don't wait for a person.** For an emulated console, this loop is
21
+ **Get there in this order: a TAS replay here, the attract demos on the PC, then a short list for a
22
+ person.** Don't play a game by screenshot → input → screenshot: it can't reasonably be played
23
+ that way, and on 2026-12-06 SM64 sat in its attract mode while an agent tried (the PC's RetroArch
24
+ had no network pad, so its presses went nowhere). Instead:
25
+
26
+ 1. **TAS replays in the emulator on the dev machine** (`drive tas`, below) reach deep moments
27
+ frame-exactly. Use them for anything past the title. To check a pack on them, run its own
28
+ source over each snapshot's `rdram.bin` in a scratch vitest file (an `rdramMemory` like Mario
29
+ Golf's `source.test.ts`, the pack's build id) and project each state's `position`, `enemies`
30
+ and `npcs` through the layer's affine onto the map `extract-assets` built; set the drawing
31
+ beside `screen.png` for a few frames. `--watch` keeps snapshotting to the movie's end: once you
32
+ have the frames you need, `Stop-Process` its BizHawk and the snapshots taken stay.
33
+ 2. **Attract demos on the PC:** launch the game with `gs-game`, send no input, and sample the
34
+ daemon's state and position while the demos play. SM64's demos alone covered seven courses.
35
+ Packs report a demo as `menu` or `cutscene` with no position, so read the same addresses
36
+ straight from RAM over RetroArch's command port (55355) with a small sampler on the PC, and
37
+ project them onto the drawn map. The PC's RetroArch (1.20) answers `READ_CORE_RAM`
38
+ (RetroAchievements addressing, little-endian words), not `READ_CORE_MEMORY` ("no memory map
39
+ defined"); `SCREENSHOT` saves the screen into `screenshot_directory` a few seconds later, for
40
+ comparing markers with the screen. Skip a slot whose floats read NaN (mid-write), and expect
41
+ one stale sample at a change of level (DKR's map id moves a poll before its racers).
42
+ Smash's How to Play and two VS demos, DKR's six attract races and three BK demos all
43
+ sampled this way on 2026-12-06. Never `pkill -f` a pattern your own ssh command line
44
+ contains: bracket a letter (`"gs-sampl[e]"`).
45
+ 3. **A person** proves the rest with a few quick sanity checks: panel, label as the UI writes it,
46
+ expected value, and how to reach it in under a minute.
47
+
48
+ Scripted routes from boot to a menu or a first race (`verify/*-retroarch.json`) are still fine:
49
+ they are fixed inputs, not play. For an emulated console, the driving loop they use is
22
50
  proven, and GameSlate's `gameslate drive` does each step (`docs/emulator-driving.md`):
23
51
 
24
52
  ```sh