@gameslate/sdk 0.3.30 → 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.
@@ -121,17 +121,17 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
121
121
  id: string;
122
122
  icon?: string | undefined;
123
123
  max?: string | number | undefined;
124
- format?: "number" | "duration" | "percent" | undefined;
125
124
  display?: Record<string, string> | undefined;
126
125
  role?: "keys" | "health" | "magic" | "armor" | undefined;
126
+ format?: "number" | "duration" | "percent" | undefined;
127
127
  }, {
128
128
  label: string;
129
129
  id: string;
130
130
  icon?: string | undefined;
131
131
  max?: string | number | undefined;
132
- format?: "number" | "duration" | "percent" | undefined;
133
132
  display?: Record<string, string> | undefined;
134
133
  role?: "keys" | "health" | "magic" | "armor" | undefined;
134
+ format?: "number" | "duration" | "percent" | undefined;
135
135
  }>, "many">;
136
136
  flagSets: z.ZodArray<z.ZodString, "many">;
137
137
  inventoryLayouts: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -262,16 +262,16 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
262
262
  name: string;
263
263
  locationId?: string | undefined;
264
264
  pinId?: string | undefined;
265
- collectedBy?: import("./condition.js").Condition | undefined;
266
265
  locationName?: string | undefined;
266
+ collectedBy?: import("./condition.js").Condition | undefined;
267
267
  needs?: string[][] | undefined;
268
268
  }, {
269
269
  id: string;
270
270
  name: string;
271
271
  locationId?: string | undefined;
272
272
  pinId?: string | undefined;
273
- collectedBy?: import("./condition.js").Condition | undefined;
274
273
  locationName?: string | undefined;
274
+ collectedBy?: import("./condition.js").Condition | undefined;
275
275
  needs?: string[][] | undefined;
276
276
  }>, "many">>;
277
277
  localSource: z.ZodOptional<z.ZodObject<{
@@ -294,8 +294,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
294
294
  name: string;
295
295
  locationId?: string | undefined;
296
296
  pinId?: string | undefined;
297
- collectedBy?: import("./condition.js").Condition | undefined;
298
297
  locationName?: string | undefined;
298
+ collectedBy?: import("./condition.js").Condition | undefined;
299
299
  needs?: string[][] | undefined;
300
300
  }[] | undefined;
301
301
  counter?: string | undefined;
@@ -313,8 +313,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
313
313
  name: string;
314
314
  locationId?: string | undefined;
315
315
  pinId?: string | undefined;
316
- collectedBy?: import("./condition.js").Condition | undefined;
317
316
  locationName?: string | undefined;
317
+ collectedBy?: import("./condition.js").Condition | undefined;
318
318
  needs?: string[][] | undefined;
319
319
  }[] | undefined;
320
320
  counter?: string | undefined;
@@ -348,9 +348,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
348
348
  }, "strict", z.ZodTypeAny, {
349
349
  id: string;
350
350
  title: string;
351
- notes?: string[] | undefined;
352
351
  badge?: string | undefined;
353
352
  sequence?: string[] | undefined;
353
+ notes?: string[] | undefined;
354
354
  rows?: {
355
355
  label: string;
356
356
  detail: string;
@@ -359,9 +359,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
359
359
  }, {
360
360
  id: string;
361
361
  title: string;
362
- notes?: string[] | undefined;
363
362
  badge?: string | undefined;
364
363
  sequence?: string[] | undefined;
364
+ notes?: string[] | undefined;
365
365
  rows?: {
366
366
  label: string;
367
367
  detail: string;
@@ -372,9 +372,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
372
372
  entries: {
373
373
  id: string;
374
374
  title: string;
375
- notes?: string[] | undefined;
376
375
  badge?: string | undefined;
377
376
  sequence?: string[] | undefined;
377
+ notes?: string[] | undefined;
378
378
  rows?: {
379
379
  label: string;
380
380
  detail: string;
@@ -389,9 +389,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
389
389
  entries: {
390
390
  id: string;
391
391
  title: string;
392
- notes?: string[] | undefined;
393
392
  badge?: string | undefined;
394
393
  sequence?: string[] | undefined;
394
+ notes?: string[] | undefined;
395
395
  rows?: {
396
396
  label: string;
397
397
  detail: string;
@@ -542,9 +542,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
542
542
  id: string;
543
543
  icon?: string | undefined;
544
544
  max?: string | number | undefined;
545
- format?: "number" | "duration" | "percent" | undefined;
546
545
  display?: Record<string, string> | undefined;
547
546
  role?: "keys" | "health" | "magic" | "armor" | undefined;
547
+ format?: "number" | "duration" | "percent" | undefined;
548
548
  }[];
549
549
  flagSets: string[];
550
550
  items: {
@@ -556,12 +556,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
556
556
  short?: string | undefined;
557
557
  count?: string | undefined;
558
558
  }[];
559
- chips: {
560
- label: string;
561
- id: string;
562
- prompt: string;
563
- when?: import("./condition.js").Condition | undefined;
564
- }[];
565
559
  inventoryLayouts: ({
566
560
  id: string;
567
561
  title: string;
@@ -605,8 +599,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
605
599
  name: string;
606
600
  locationId?: string | undefined;
607
601
  pinId?: string | undefined;
608
- collectedBy?: import("./condition.js").Condition | undefined;
609
602
  locationName?: string | undefined;
603
+ collectedBy?: import("./condition.js").Condition | undefined;
610
604
  needs?: string[][] | undefined;
611
605
  }[] | undefined;
612
606
  counter?: string | undefined;
@@ -619,9 +613,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
619
613
  entries: {
620
614
  id: string;
621
615
  title: string;
622
- notes?: string[] | undefined;
623
616
  badge?: string | undefined;
624
617
  sequence?: string[] | undefined;
618
+ notes?: string[] | undefined;
625
619
  rows?: {
626
620
  label: string;
627
621
  detail: string;
@@ -633,6 +627,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
633
627
  badge?: string | undefined;
634
628
  defaultOpen?: boolean | undefined;
635
629
  }[];
630
+ chips: {
631
+ label: string;
632
+ id: string;
633
+ prompt: string;
634
+ when?: import("./condition.js").Condition | undefined;
635
+ }[];
636
636
  pinRules: {
637
637
  id: string;
638
638
  match: {
@@ -664,9 +664,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
664
664
  id: string;
665
665
  icon?: string | undefined;
666
666
  max?: string | number | undefined;
667
- format?: "number" | "duration" | "percent" | undefined;
668
667
  display?: Record<string, string> | undefined;
669
668
  role?: "keys" | "health" | "magic" | "armor" | undefined;
669
+ format?: "number" | "duration" | "percent" | undefined;
670
670
  }[];
671
671
  flagSets: string[];
672
672
  items: {
@@ -678,12 +678,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
678
678
  short?: string | undefined;
679
679
  count?: string | undefined;
680
680
  }[];
681
- chips: {
682
- label: string;
683
- id: string;
684
- prompt: string;
685
- when?: import("./condition.js").Condition | undefined;
686
- }[];
687
681
  inventoryLayouts: ({
688
682
  id: string;
689
683
  title: string;
@@ -727,8 +721,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
727
721
  name: string;
728
722
  locationId?: string | undefined;
729
723
  pinId?: string | undefined;
730
- collectedBy?: import("./condition.js").Condition | undefined;
731
724
  locationName?: string | undefined;
725
+ collectedBy?: import("./condition.js").Condition | undefined;
732
726
  needs?: string[][] | undefined;
733
727
  }[] | undefined;
734
728
  counter?: string | undefined;
@@ -741,9 +735,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
741
735
  entries: {
742
736
  id: string;
743
737
  title: string;
744
- notes?: string[] | undefined;
745
738
  badge?: string | undefined;
746
739
  sequence?: string[] | undefined;
740
+ notes?: string[] | undefined;
747
741
  rows?: {
748
742
  label: string;
749
743
  detail: string;
@@ -755,6 +749,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
755
749
  badge?: string | undefined;
756
750
  defaultOpen?: boolean | undefined;
757
751
  }[];
752
+ chips: {
753
+ label: string;
754
+ id: string;
755
+ prompt: string;
756
+ when?: import("./condition.js").Condition | undefined;
757
+ }[];
758
758
  pinRules: {
759
759
  id: string;
760
760
  match: {
@@ -811,9 +811,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
811
811
  id: string;
812
812
  icon?: string | undefined;
813
813
  max?: string | number | undefined;
814
- format?: "number" | "duration" | "percent" | undefined;
815
814
  display?: Record<string, string> | undefined;
816
815
  role?: "keys" | "health" | "magic" | "armor" | undefined;
816
+ format?: "number" | "duration" | "percent" | undefined;
817
817
  }[];
818
818
  flagSets: string[];
819
819
  items: {
@@ -825,12 +825,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
825
825
  short?: string | undefined;
826
826
  count?: string | undefined;
827
827
  }[];
828
- chips: {
829
- label: string;
830
- id: string;
831
- prompt: string;
832
- when?: import("./condition.js").Condition | undefined;
833
- }[];
834
828
  inventoryLayouts: ({
835
829
  id: string;
836
830
  title: string;
@@ -874,8 +868,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
874
868
  name: string;
875
869
  locationId?: string | undefined;
876
870
  pinId?: string | undefined;
877
- collectedBy?: import("./condition.js").Condition | undefined;
878
871
  locationName?: string | undefined;
872
+ collectedBy?: import("./condition.js").Condition | undefined;
879
873
  needs?: string[][] | undefined;
880
874
  }[] | undefined;
881
875
  counter?: string | undefined;
@@ -888,9 +882,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
888
882
  entries: {
889
883
  id: string;
890
884
  title: string;
891
- notes?: string[] | undefined;
892
885
  badge?: string | undefined;
893
886
  sequence?: string[] | undefined;
887
+ notes?: string[] | undefined;
894
888
  rows?: {
895
889
  label: string;
896
890
  detail: string;
@@ -902,6 +896,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
902
896
  badge?: string | undefined;
903
897
  defaultOpen?: boolean | undefined;
904
898
  }[];
899
+ chips: {
900
+ label: string;
901
+ id: string;
902
+ prompt: string;
903
+ when?: import("./condition.js").Condition | undefined;
904
+ }[];
905
905
  pinRules: {
906
906
  id: string;
907
907
  match: {
@@ -944,9 +944,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
944
944
  id: string;
945
945
  icon?: string | undefined;
946
946
  max?: string | number | undefined;
947
- format?: "number" | "duration" | "percent" | undefined;
948
947
  display?: Record<string, string> | undefined;
949
948
  role?: "keys" | "health" | "magic" | "armor" | undefined;
949
+ format?: "number" | "duration" | "percent" | undefined;
950
950
  }[];
951
951
  flagSets: string[];
952
952
  items: {
@@ -958,12 +958,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
958
958
  short?: string | undefined;
959
959
  count?: string | undefined;
960
960
  }[];
961
- chips: {
962
- label: string;
963
- id: string;
964
- prompt: string;
965
- when?: import("./condition.js").Condition | undefined;
966
- }[];
967
961
  inventoryLayouts: ({
968
962
  id: string;
969
963
  title: string;
@@ -1007,8 +1001,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1007
1001
  name: string;
1008
1002
  locationId?: string | undefined;
1009
1003
  pinId?: string | undefined;
1010
- collectedBy?: import("./condition.js").Condition | undefined;
1011
1004
  locationName?: string | undefined;
1005
+ collectedBy?: import("./condition.js").Condition | undefined;
1012
1006
  needs?: string[][] | undefined;
1013
1007
  }[] | undefined;
1014
1008
  counter?: string | undefined;
@@ -1021,9 +1015,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1021
1015
  entries: {
1022
1016
  id: string;
1023
1017
  title: string;
1024
- notes?: string[] | undefined;
1025
1018
  badge?: string | undefined;
1026
1019
  sequence?: string[] | undefined;
1020
+ notes?: string[] | undefined;
1027
1021
  rows?: {
1028
1022
  label: string;
1029
1023
  detail: string;
@@ -1035,6 +1029,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1035
1029
  badge?: string | undefined;
1036
1030
  defaultOpen?: boolean | undefined;
1037
1031
  }[];
1032
+ chips: {
1033
+ label: string;
1034
+ id: string;
1035
+ prompt: string;
1036
+ when?: import("./condition.js").Condition | undefined;
1037
+ }[];
1038
1038
  pinRules: {
1039
1039
  id: string;
1040
1040
  match: {
@@ -1156,9 +1156,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1156
1156
  id: string;
1157
1157
  icon?: string | undefined;
1158
1158
  max?: string | number | undefined;
1159
- format?: "number" | "duration" | "percent" | undefined;
1160
1159
  display?: Record<string, string> | undefined;
1161
1160
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1161
+ format?: "number" | "duration" | "percent" | undefined;
1162
1162
  }[];
1163
1163
  flagSets: string[];
1164
1164
  items: {
@@ -1170,12 +1170,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1170
1170
  short?: string | undefined;
1171
1171
  count?: string | undefined;
1172
1172
  }[];
1173
- chips: {
1174
- label: string;
1175
- id: string;
1176
- prompt: string;
1177
- when?: import("./condition.js").Condition | undefined;
1178
- }[];
1179
1173
  inventoryLayouts: ({
1180
1174
  id: string;
1181
1175
  title: string;
@@ -1219,8 +1213,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1219
1213
  name: string;
1220
1214
  locationId?: string | undefined;
1221
1215
  pinId?: string | undefined;
1222
- collectedBy?: import("./condition.js").Condition | undefined;
1223
1216
  locationName?: string | undefined;
1217
+ collectedBy?: import("./condition.js").Condition | undefined;
1224
1218
  needs?: string[][] | undefined;
1225
1219
  }[] | undefined;
1226
1220
  counter?: string | undefined;
@@ -1233,9 +1227,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1233
1227
  entries: {
1234
1228
  id: string;
1235
1229
  title: string;
1236
- notes?: string[] | undefined;
1237
1230
  badge?: string | undefined;
1238
1231
  sequence?: string[] | undefined;
1232
+ notes?: string[] | undefined;
1239
1233
  rows?: {
1240
1234
  label: string;
1241
1235
  detail: string;
@@ -1247,6 +1241,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1247
1241
  badge?: string | undefined;
1248
1242
  defaultOpen?: boolean | undefined;
1249
1243
  }[];
1244
+ chips: {
1245
+ label: string;
1246
+ id: string;
1247
+ prompt: string;
1248
+ when?: import("./condition.js").Condition | undefined;
1249
+ }[];
1250
1250
  pinRules: {
1251
1251
  id: string;
1252
1252
  match: {
@@ -1310,9 +1310,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1310
1310
  id: string;
1311
1311
  icon?: string | undefined;
1312
1312
  max?: string | number | undefined;
1313
- format?: "number" | "duration" | "percent" | undefined;
1314
1313
  display?: Record<string, string> | undefined;
1315
1314
  role?: "keys" | "health" | "magic" | "armor" | undefined;
1315
+ format?: "number" | "duration" | "percent" | undefined;
1316
1316
  }[];
1317
1317
  flagSets: string[];
1318
1318
  items: {
@@ -1324,12 +1324,6 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1324
1324
  short?: string | undefined;
1325
1325
  count?: string | undefined;
1326
1326
  }[];
1327
- chips: {
1328
- label: string;
1329
- id: string;
1330
- prompt: string;
1331
- when?: import("./condition.js").Condition | undefined;
1332
- }[];
1333
1327
  inventoryLayouts: ({
1334
1328
  id: string;
1335
1329
  title: string;
@@ -1373,8 +1367,8 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1373
1367
  name: string;
1374
1368
  locationId?: string | undefined;
1375
1369
  pinId?: string | undefined;
1376
- collectedBy?: import("./condition.js").Condition | undefined;
1377
1370
  locationName?: string | undefined;
1371
+ collectedBy?: import("./condition.js").Condition | undefined;
1378
1372
  needs?: string[][] | undefined;
1379
1373
  }[] | undefined;
1380
1374
  counter?: string | undefined;
@@ -1387,9 +1381,9 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1387
1381
  entries: {
1388
1382
  id: string;
1389
1383
  title: string;
1390
- notes?: string[] | undefined;
1391
1384
  badge?: string | undefined;
1392
1385
  sequence?: string[] | undefined;
1386
+ notes?: string[] | undefined;
1393
1387
  rows?: {
1394
1388
  label: string;
1395
1389
  detail: string;
@@ -1401,6 +1395,12 @@ export declare const SandboxDescriptionSchema: z.ZodObject<{
1401
1395
  badge?: string | undefined;
1402
1396
  defaultOpen?: boolean | undefined;
1403
1397
  }[];
1398
+ chips: {
1399
+ label: string;
1400
+ id: string;
1401
+ prompt: string;
1402
+ when?: import("./condition.js").Condition | undefined;
1403
+ }[];
1404
1404
  pinRules: {
1405
1405
  id: string;
1406
1406
  match: {
@@ -1475,8 +1475,9 @@ export interface SandboxGuestApi {
1475
1475
  /** a GameState as JSON, or null when this poll has nothing */
1476
1476
  poll(handle: number): string | null;
1477
1477
  closeSession(handle: number): void;
1478
- /** the pack's views (PackViews) of a GameState given as JSON */
1479
- views(gameId: string, state: string): string;
1478
+ /** the pack's views (PackViews) of a GameState given as JSON, with the game's extracted
1479
+ * mission labels (MissionLabels as JSON; a core before sdk 0.3.31 sends none) */
1480
+ views(gameId: string, state: string, missionLabels?: string): string;
1480
1481
  }
1481
1482
  /** The capabilities the core puts on `globalThis.__gsHost`: memory reads for one handle. */
1482
1483
  export interface SandboxHostApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gameslate/sdk",
3
- "version": "0.3.30",
3
+ "version": "0.3.31",
4
4
  "description": "Build plugins for GameSlate, the second-screen companion for PC games: the plugin contract, game-state and catalogue schemas, and the plugin builder.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -344,8 +344,38 @@ Anything with a place to move through, a track or a board still gets one.
344
344
 
345
345
  - `listAssets(inputs, pick)` must be cheap: name what can be built.
346
346
  - `buildAsset(id, inputs)` returns outputs in the SDK's shapes: floorplan, location, nav, mesh
347
- (GS3D), image, and notes (the text of one JSON object, written as `notes/<id>.json` for a
348
- pack's `localSource`, e.g. `{ file: 'notes/check-notes.json', key: 'collectibleSets.gs' }`).
347
+ (GS3D), image, notes (the text of one JSON object, written as `notes/<id>.json` for a
348
+ pack's `localSource`, e.g. `{ file: 'notes/check-notes.json', key: 'collectibleSets.gs' }`),
349
+ and labels (below).
350
+
351
+ **Mission titles that are the game's text** (sdk 0.3.31). Commit the catalogue's missions with
352
+ numbered titles (`{ id: 'bob.1', title: 'Star 1', … }`) and have one asset return the real names
353
+ read from the player's files:
354
+
355
+ ```ts
356
+ { kind: 'labels', id: 'star-names', missions: { 'bob.1': '…', 'bob.2': '…' } }
357
+ ```
358
+
359
+ Keys are the catalogue's mission ids; each title is one line of 1 to 200 characters, at most
360
+ 5000 per output. The core writes `labels/<id>.json`, and the daemon puts the labels over the
361
+ titles it serves, so the Missions panel shows them after a build with no change to the pack.
362
+
363
+ - **For the AI**, name a mission with the context's `missionTitle(id)` (the label, else the
364
+ committed title), never from a table of names of your own. The core always passes the
365
+ context; your own tests may not, so default it:
366
+ `describeState: (state, context = noLabelsContext(catalogue)) => [...]`.
367
+ - **Build label ids and catalogue ids from one table.** Labels naming a mission the pack doesn't
368
+ have are never applied: the pack serves its committed titles and the app shows a banner naming
369
+ the labels file and asking for a rebuild.
370
+ - **Renaming or dropping a mission id needs players to rebuild** the game's assets (the cog's
371
+ Build button). Until they do, their old labels are refused as above. Say so in the release
372
+ notes.
373
+ - **Labels need a core with sdk 0.3.31 or later** (core 2.3.0 doesn't have them). An older core
374
+ refuses the whole result of an asset that returns one, maps included, so return labels from
375
+ an asset of their own, never one that also builds maps or locations.
376
+ - Objective labels of a registry location aren't missions: return them as the `objectives` of a
377
+ `location` output, which merges over the registry's numbered ones (it replaces the whole list,
378
+ so carry each objective's difficulty fields too).
349
379
 
350
380
  Images have a `purpose` (`atlas`, `map`, `icon`, `actor`, which picks the folder) and an `encoding`:
351
381
 
@@ -848,8 +878,9 @@ the plugin repos) in the same change as the fix. The next game should not have t
848
878
  beside the name, and otherwise name it by id ("map 0x38") while the live read supplies context.
849
879
  Uncited player knowledge isn't a source: 33 of 44 names in DK64's first pass didn't survive
850
880
  this. Slug unnamed places by id alone (`map-0c`), so a later name or ruling never changes a
851
- slug; and a decomp's `.data` tables copied from the ROM (DK64's map → world table) are the
852
- publisher's data, read live, not committed (DK64 review, 2026-12-05).
881
+ slug; and a decomp's `.data` tables copied from the ROM: those that only map ids (DK64's map → world,
882
+ Conker's scene → task) may be committed with a ROM-gated test, but gameplay values (start cash,
883
+ prices) are read live, not committed (`data-licensing.md`, decided 2026-12-06).
853
884
  - **A counter declared only for `describeState` also reaches the AI.** Shared code puts every
854
885
  declared counter the state carries into LIVE_STATE (`readableCountersFor`): DK64's world counter
855
886
  told the model the main menu was "a shop". Send such a counter only where its value means
@@ -963,6 +994,80 @@ the plugin repos) in the same change as the fix. The next game should not have t
963
994
  fact behind one is missing: a Doom secret with no pin to place it by dropped its "where"
964
995
  sentence, so a two-sentence card showed how it opens. A sentence ends at `.`, `?` or `!`
965
996
  before a space.
997
+ - **A collected state that lasts one visit lives in the spawn list, not the save.** SM64 keeps
998
+ no save bit for a red coin or a secret: collecting one deactivates it, and the unload marks
999
+ its macro list entry in RAM (`RESPAWN_INFO_DONT_RESPAWN` in the params word's high byte) until
1000
+ the area reloads. Read it through the game's pointer to the *current* area's list (check the
1001
+ area's own index against the one the reader reports, else untracked), name the flag by room
1002
+ and position (the same point in another area is another coin), test the whole byte, not a
1003
+ bit of it, and tie the preset ids the reader keeps to the extractor's behaviours in a ROM
1004
+ test. Leave a pin with no such record uncollected and say so (gameslate-n64, 2026-12-06).
1005
+ - **Save bits that run across maps need a game-wide index.** DK64 numbers a coloured banana's
1006
+ bit as 0x320 plus every counted model of the worlds before its own, of the maps before its own
1007
+ in that world and of its setup before it (a lobby counts as DK Isles); balloons count from
1008
+ 0x26B across every map's actor list. Read every map's setup once per extractor, pass the index
1009
+ in (a hand-made ROM test passes an empty one), and census it on the ROM: the bits must run
1010
+ unbroken up to the game's own total (`gModelCountTotal`, 1700). It costs: the sandbox build
1011
+ went from 13 s to 60 s, one index per builder thread (gameslate-n64, 2026-12-06).
1012
+ - **Bits a game reads as words aren't byte-addressed flags.** DK64's model bits go through
1013
+ `eepromReadBitfield` as big-endian u32s, so bit *n* is byte `(n >> 5) * 4 + 3 - ((n & 31) >> 3)`
1014
+ of the slot, while its file flags are byte `n >> 3`. Give each its own helper and test a bit in
1015
+ each byte of a word.
1016
+ - **Find a packed segment's data member, then prove the split.** DK64's global segment is two
1017
+ gzip members back to back (code, then data); take the one gzip magic inside it as the second
1018
+ member and refuse it unless the two trailers' ISIZEs add up to bss − vram. The data then sits at
1019
+ vram + the code's size, and the code never needs inflating.
1020
+ - **A save item as a mission step is its slot bit, not `has`.** Off a file the inventory is `[]`,
1021
+ so `{ has }` reads "to do" where the truth is unknown; a `{ bit }` on the streamed slot is
1022
+ unknown until a file is loaded. And a pin helper must spread its spec into the landmark: a
1023
+ `category: spec.category` fails the pin-categories scan, which accepts only a literal or
1024
+ `PIN_CATEGORIES.<key>`.
1025
+ - **Colour floors from the game's own textures, not shades of one hue.** Walk the area's geo
1026
+ layout for the display lists it draws in place, run them (vertices, triangles, the texture
1027
+ and light state), give each texture its alpha-weighted mean colour, and draw each up-facing
1028
+ drawn triangle over the collision floor it lies on (within a few dozen units: decals sit just
1029
+ above). Keep the height bands (drawn low to high, darker below), let a hazard (lava, water,
1030
+ gas) override a texture, and merge colours into a small palette by covered area: a drawing
1031
+ holds at most 100 layers. Skip translucent layers (decals and shadows blend over the ground:
1032
+ BoB's shadow discs, intensity 0 with soft alpha, came out as opaque black squares), carry
1033
+ uniform scales (`GEO_SCALE`) down to the vertices and refuse a moved list rather than drop it,
1034
+ and give a texture with nothing opaque no colour. Levels built from objects get only a fallback
1035
+ colour until their models are run too. Render before and after to the scratchpad and look
1036
+ (SM64, 2026-12-06).
1037
+ - **Game text is read from the ROM, never committed.** Act, objective and menu names live in the
1038
+ ROM: read them on the player's PC from the game's own table and charset (SM64's
1039
+ `seg2_act_name_table`), number them in committed code ("Star 4"), use made-up names in tests,
1040
+ and let a ROM test check counts only (the maintainer's call, 2026-12-06).
1041
+ - **Read the spawner's test, not just its mask.** SM64's plain `OBJECT` writes acts 0x1F, which
1042
+ `level_cmd_place_object` treats as "every act" (`|| acts == 0x1F`), so a plain bit test hid
1043
+ act-6 objects. Mirror the game's masks on parameters too (`& 0x1F` on SM64's star index).
1044
+ - **Rebuild a scene graph's nesting as the engine does.** An opened node's children hang under the
1045
+ last node made at that depth (a stack per depth, like SM64's `gCurGraphNodeList`), not under the
1046
+ last command read, and an unbalanced close throws.
1047
+ - **A chapter or scene menu is not one file's progress.** Conker's Chapters menu lists the best
1048
+ save the EEPROM scan found, and outside a slot the task bits belong to the chosen scene: gate
1049
+ progress on the save slot in use (gameslate-n64, 2026-12-06).
1050
+ - **An array behind a pointer that moves:** read the pointer on each side of the bytes and read
1051
+ again if it moved (Conker's `script_reallocTaskDoneBits`).
1052
+ - **Show the HUD's number, not the stored counter.** Read the HUD's draw function: Conker's cash is
1053
+ scaled during the lava race and offset in cutscenes, and the "Heist" gap a README named was
1054
+ really the race.
1055
+ - **Save bits that count across maps need a game-wide index.** DK64's coloured bananas and coins
1056
+ take one bit each in a run that counts every map before this one, so the extractor reads every
1057
+ map's setup once per builder (a build went from 13 s to 60 s). Pin the run against the game's
1058
+ own total (`gModelCountTotal`) in a ROM test.
1059
+ - **Bits a game reads as big-endian words are not byte-addressed flags.** DK64's
1060
+ `eepromReadBitfield` takes bit n lowest-first inside a big-endian u32: build the test buffer the
1061
+ way that function reads it, cite the line, and don't test the formula against itself.
1062
+ - **Find a packed segment's data member by its one gzip magic, then prove the split** with the
1063
+ members' ISIZE sum against the segment's size (DK64's global data).
1064
+ - **A save item as a mission step is its slot bit, not `has`.** Off a file the inventory is `[]`,
1065
+ so `has` reads "not done"; a `{ bit }` on the streamed slot reads unknown.
1066
+ - **A pin helper spreads its spec** (`...spec`), never `category: spec.category` by hand, or the
1067
+ pin-categories scan can't see the category (gameslate-n64, 2026-12-06).
1068
+ - **A ROM table's length comes from its declared size,** not the gap to the next symbol; check the
1069
+ gap is rows × stride exactly. And give hubs one meaning everywhere: DK64's lobbies are DK Isles
1070
+ for the save grid, so the chips must say so too.
966
1071
  - **An "exit" node may be where the player arrives, not what sends them on.** Banjo-Kazooie's
967
1072
  numbered entrance markers are arrival spots; the ways out are separate trigger boxes whose
968
1073
  destination comes from the warp function table the box's id selects. Read the code that fires
@@ -1321,7 +1426,8 @@ the plugin repos) in the same change as the fix. The next game should not have t
1321
1426
  - **Keep game text out of committed tables.** A builder that copies objective labels from the
1322
1427
  game's language files into a committed table or manifest commits the publisher's text. Commit
1323
1428
  ids only ("Objective 1", or the bank and entry number), and join the real labels by id from a
1324
- file on the player's PC or an asset extractor. Then grep your hint prose for quoted game strings:
1429
+ file on the player's PC or an asset extractor (a `labels` output for mission titles, a
1430
+ `location` output's `objectives` for a place's objectives: §5). Then grep your hint prose for quoted game strings:
1325
1431
  Perfect Dark's hints quoted an objective verbatim, and MM's objective labels carried the boss
1326
1432
  title cards (2026-12-05).
1327
1433
  - **A floorplan drawing is not an SVG.** It has no text, no fill opacity, and fills and strokes are
@@ -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