Execute world track build limit descriptor

This commit is contained in:
Jan Petykiewicz 2026-04-16 09:20:49 -07:00
commit 43c76adbf0
11 changed files with 439 additions and 9 deletions

View file

@ -0,0 +1,44 @@
{
"format_version": 1,
"fixture_id": "packed-event-world-track-build-limit-save-slice-fixture",
"source": {
"kind": "captured-runtime",
"description": "Fixture proving the recovered Limited Track Building Amount descriptor imports and executes through the ordinary runtime path."
},
"state_save_slice_path": "packed-event-world-track-build-limit-save-slice.json",
"commands": [
{
"kind": "service_trigger_kind",
"trigger_kind": 6
}
],
"expected_summary": {
"packed_event_collection_present": true,
"packed_event_record_count": 1,
"packed_event_decoded_record_count": 1,
"packed_event_imported_runtime_record_count": 1,
"event_runtime_record_count": 1,
"packed_event_blocked_unmapped_world_descriptor_count": 0,
"world_restore_limited_track_building_amount": 18,
"total_event_record_service_count": 1,
"total_trigger_dispatch_count": 1
},
"expected_state_fragment": {
"world_restore": {
"limited_track_building_amount": 18
},
"packed_event_collection": {
"records": [
{
"import_outcome": "imported",
"decoded_actions": [
{
"kind": "set_limited_track_building_amount",
"value": 18
}
]
}
]
}
}
}

View file

@ -0,0 +1,109 @@
{
"format_version": 1,
"save_slice_id": "packed-event-world-track-build-limit-save-slice",
"source": {
"description": "Tracked save-slice document proving the recovered Limited Track Building Amount descriptor imports and executes.",
"original_save_filename": "captured-world-track-build-limit.gms",
"original_save_sha256": "world-track-build-limit-sample-sha256",
"notes": [
"tracked as JSON save-slice document rather than raw .smp",
"descriptor 122 now lowers into the bounded world-restore scalar lane",
"whole-game scalar descriptor sample for Limited Track Building Amount"
]
},
"save_slice": {
"file_extension_hint": "gms",
"container_profile_family": "rt3-classic-save-container-v1",
"mechanism_family": "classic-save-rehydrate-v1",
"mechanism_confidence": "grounded",
"trailer_family": null,
"bridge_family": null,
"profile": null,
"candidate_availability_table": null,
"special_conditions_table": null,
"event_runtime_collection": {
"source_kind": "packed-event-runtime-collection",
"mechanism_family": "classic-save-rehydrate-v1",
"mechanism_confidence": "grounded",
"container_profile_family": "rt3-classic-save-container-v1",
"metadata_tag_offset": 32000,
"records_tag_offset": 32256,
"close_tag_offset": 33024,
"packed_state_version": 1001,
"packed_state_version_hex": "0x000003e9",
"live_id_bound": 53,
"live_record_count": 1,
"live_entry_ids": [53],
"decoded_record_count": 1,
"imported_runtime_record_count": 1,
"records": [
{
"record_index": 0,
"live_entry_id": 53,
"payload_offset": 32320,
"payload_len": 112,
"decode_status": "executable",
"payload_family": "real_packed_v1",
"trigger_kind": 6,
"one_shot": false,
"compact_control": {
"mode_byte_0x7ef": 6,
"primary_selector_0x7f0": 0,
"grouped_mode_0x7f4": 2,
"one_shot_header_0x7f5": 0,
"modifier_flag_0x7f9": 0,
"modifier_flag_0x7fa": 0,
"grouped_target_scope_ordinals_0x7fb": [0, 0, 0, 0],
"grouped_scope_checkboxes_0x7ff": [1, 0, 0, 0],
"summary_toggle_0x800": 1,
"grouped_territory_selectors_0x80f": [-1, -1, -1, -1]
},
"text_bands": [],
"standalone_condition_row_count": 0,
"standalone_condition_rows": [],
"negative_sentinel_scope": null,
"grouped_effect_row_counts": [1, 0, 0, 0],
"grouped_effect_rows": [
{
"group_index": 0,
"row_index": 0,
"descriptor_id": 122,
"descriptor_label": "Limited Track Building Amount",
"target_mask_bits": 8,
"parameter_family": "world_track_build_limit_scalar",
"opcode": 3,
"raw_scalar_value": 18,
"value_byte_0x09": 0,
"value_dword_0x0d": 0,
"value_byte_0x11": 0,
"value_byte_0x12": 0,
"value_word_0x14": 0,
"value_word_0x16": 0,
"row_shape": "scalar_assignment",
"semantic_family": "scalar_assignment",
"semantic_preview": "Set Limited Track Building Amount to 18",
"locomotive_name": null,
"notes": [
"checked-in whole-game scalar descriptor family"
]
}
],
"decoded_conditions": [],
"decoded_actions": [
{
"kind": "set_limited_track_building_amount",
"value": 18
}
],
"executable_import_ready": true,
"notes": [
"checked-in whole-game scalar grouped-effect import sample"
]
}
]
},
"notes": [
"whole-game limited-track-building-amount effect sample"
]
}
}