Unlock negative-sentinel company condition scopes
This commit is contained in:
parent
780e739daa
commit
087ebf1097
18 changed files with 1315 additions and 79 deletions
|
|
@ -0,0 +1,96 @@
|
|||
{
|
||||
"format_version": 1,
|
||||
"fixture_id": "packed-event-negative-company-scope-overlay-fixture",
|
||||
"source": {
|
||||
"kind": "captured-runtime",
|
||||
"description": "Fixture backed by an overlay import document so the first real negative-sentinel company-scope row executes against selected-company context."
|
||||
},
|
||||
"state_import_path": "packed-event-negative-company-scope-overlay.json",
|
||||
"commands": [
|
||||
{
|
||||
"kind": "service_trigger_kind",
|
||||
"trigger_kind": 6
|
||||
}
|
||||
],
|
||||
"expected_summary": {
|
||||
"calendar_projection_source": "base-snapshot-preserved",
|
||||
"calendar_projection_is_placeholder": false,
|
||||
"company_count": 3,
|
||||
"packed_event_collection_present": true,
|
||||
"packed_event_record_count": 1,
|
||||
"packed_event_decoded_record_count": 1,
|
||||
"packed_event_imported_runtime_record_count": 1,
|
||||
"packed_event_parity_only_record_count": 1,
|
||||
"packed_event_unsupported_record_count": 0,
|
||||
"packed_event_blocked_missing_condition_context_count": 0,
|
||||
"packed_event_blocked_company_condition_scope_disabled_count": 0,
|
||||
"packed_event_blocked_player_condition_scope_count": 0,
|
||||
"packed_event_blocked_territory_condition_scope_count": 0,
|
||||
"event_runtime_record_count": 1,
|
||||
"total_event_record_service_count": 1,
|
||||
"total_trigger_dispatch_count": 1,
|
||||
"dirty_rerun_count": 0,
|
||||
"total_company_cash": 400
|
||||
},
|
||||
"expected_state_fragment": {
|
||||
"selected_company_id": 3,
|
||||
"companies": [
|
||||
{
|
||||
"company_id": 1,
|
||||
"controller_kind": "human",
|
||||
"current_cash": 100,
|
||||
"debt": 10
|
||||
},
|
||||
{
|
||||
"company_id": 2,
|
||||
"controller_kind": "ai",
|
||||
"current_cash": 50,
|
||||
"debt": 20
|
||||
},
|
||||
{
|
||||
"company_id": 3,
|
||||
"controller_kind": "human",
|
||||
"current_cash": 250,
|
||||
"debt": 30
|
||||
}
|
||||
],
|
||||
"packed_event_collection": {
|
||||
"live_entry_ids": [9],
|
||||
"records": [
|
||||
{
|
||||
"import_outcome": "imported",
|
||||
"negative_sentinel_scope": {
|
||||
"company_test_scope": "selected_company_only",
|
||||
"player_test_scope": "disabled",
|
||||
"territory_scope_selector_is_0x63": false,
|
||||
"source_row_indexes": [0]
|
||||
},
|
||||
"decoded_actions": [
|
||||
{
|
||||
"kind": "set_company_cash",
|
||||
"target": {
|
||||
"kind": "selected_company"
|
||||
},
|
||||
"value": 250
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"event_runtime_records": [
|
||||
{
|
||||
"record_id": 9,
|
||||
"service_count": 1,
|
||||
"effects": [
|
||||
{
|
||||
"kind": "set_company_cash",
|
||||
"target": {
|
||||
"kind": "selected_company"
|
||||
},
|
||||
"value": 250
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"format_version": 1,
|
||||
"import_id": "packed-event-negative-company-scope-overlay",
|
||||
"source": {
|
||||
"description": "Overlay import that combines selected-company snapshot context with a real negative-sentinel company-scope packed row.",
|
||||
"notes": [
|
||||
"used to prove that the first real negative-sentinel company scope imports through the ordinary runtime path"
|
||||
]
|
||||
},
|
||||
"base_snapshot_path": "packed-event-symbolic-company-scope-overlay-base-snapshot.json",
|
||||
"save_slice_path": "packed-event-negative-company-scope-save-slice.json"
|
||||
}
|
||||
|
|
@ -0,0 +1,169 @@
|
|||
{
|
||||
"format_version": 1,
|
||||
"save_slice_id": "packed-event-negative-company-scope-save-slice",
|
||||
"source": {
|
||||
"description": "Tracked save-slice document with a real packed Company Cash row unlocked by negative-sentinel company scope.",
|
||||
"original_save_filename": "captured-negative-company-scope.gms",
|
||||
"original_save_sha256": "negative-company-scope-sample-sha256",
|
||||
"notes": [
|
||||
"tracked as JSON save-slice document rather than raw .smp",
|
||||
"proves the first executable real negative-sentinel company-scope path"
|
||||
]
|
||||
},
|
||||
"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": 28928,
|
||||
"records_tag_offset": 29184,
|
||||
"close_tag_offset": 29696,
|
||||
"packed_state_version": 1001,
|
||||
"packed_state_version_hex": "0x000003e9",
|
||||
"live_id_bound": 9,
|
||||
"live_record_count": 1,
|
||||
"live_entry_ids": [9],
|
||||
"decoded_record_count": 1,
|
||||
"imported_runtime_record_count": 1,
|
||||
"records": [
|
||||
{
|
||||
"record_index": 0,
|
||||
"live_entry_id": 9,
|
||||
"payload_offset": 29290,
|
||||
"payload_len": 109,
|
||||
"decode_status": "parity_only",
|
||||
"payload_family": "real_packed_v1",
|
||||
"trigger_kind": 6,
|
||||
"one_shot": false,
|
||||
"compact_control": {
|
||||
"mode_byte_0x7ef": 6,
|
||||
"primary_selector_0x7f0": 42,
|
||||
"grouped_mode_0x7f4": 2,
|
||||
"one_shot_header_0x7f5": 0,
|
||||
"modifier_flag_0x7f9": 2,
|
||||
"modifier_flag_0x7fa": 0,
|
||||
"grouped_target_scope_ordinals_0x7fb": [0, 1, 2, 3],
|
||||
"grouped_scope_checkboxes_0x7ff": [1, 0, 1, 0],
|
||||
"summary_toggle_0x800": 1,
|
||||
"grouped_territory_selectors_0x80f": [-1, 10, -1, 22]
|
||||
},
|
||||
"text_bands": [
|
||||
{
|
||||
"label": "primary_text_band",
|
||||
"packed_len": 8,
|
||||
"present": true,
|
||||
"preview": "Resolve!"
|
||||
},
|
||||
{
|
||||
"label": "secondary_text_band_0",
|
||||
"packed_len": 0,
|
||||
"present": false,
|
||||
"preview": ""
|
||||
},
|
||||
{
|
||||
"label": "secondary_text_band_1",
|
||||
"packed_len": 0,
|
||||
"present": false,
|
||||
"preview": ""
|
||||
},
|
||||
{
|
||||
"label": "secondary_text_band_2",
|
||||
"packed_len": 0,
|
||||
"present": false,
|
||||
"preview": ""
|
||||
},
|
||||
{
|
||||
"label": "secondary_text_band_3",
|
||||
"packed_len": 0,
|
||||
"present": false,
|
||||
"preview": ""
|
||||
},
|
||||
{
|
||||
"label": "secondary_text_band_4",
|
||||
"packed_len": 0,
|
||||
"present": false,
|
||||
"preview": ""
|
||||
}
|
||||
],
|
||||
"standalone_condition_row_count": 1,
|
||||
"standalone_condition_rows": [
|
||||
{
|
||||
"row_index": 0,
|
||||
"raw_condition_id": -1,
|
||||
"subtype": 4,
|
||||
"flag_bytes": [
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
|
||||
58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
|
||||
68, 69, 70, 71, 72
|
||||
],
|
||||
"candidate_name": "AutoPlant",
|
||||
"notes": [
|
||||
"negative sentinel-style condition row id",
|
||||
"condition row carries candidate-name side string"
|
||||
]
|
||||
}
|
||||
],
|
||||
"negative_sentinel_scope": {
|
||||
"company_test_scope": "selected_company_only",
|
||||
"player_test_scope": "disabled",
|
||||
"territory_scope_selector_is_0x63": false,
|
||||
"source_row_indexes": [0]
|
||||
},
|
||||
"grouped_effect_row_counts": [1, 0, 0, 0],
|
||||
"grouped_effect_rows": [
|
||||
{
|
||||
"group_index": 0,
|
||||
"row_index": 0,
|
||||
"descriptor_id": 2,
|
||||
"descriptor_label": "Company Cash",
|
||||
"target_mask_bits": 1,
|
||||
"parameter_family": "company_finance_scalar",
|
||||
"opcode": 8,
|
||||
"raw_scalar_value": 250,
|
||||
"value_byte_0x09": 1,
|
||||
"value_dword_0x0d": 12,
|
||||
"value_byte_0x11": 2,
|
||||
"value_byte_0x12": 3,
|
||||
"value_word_0x14": 24,
|
||||
"value_word_0x16": 36,
|
||||
"row_shape": "multivalue_scalar",
|
||||
"semantic_family": "multivalue_scalar",
|
||||
"semantic_preview": "Set Company Cash to 250 with aux [2, 3, 24, 36]",
|
||||
"locomotive_name": "Mikado",
|
||||
"notes": [
|
||||
"grouped effect row carries locomotive-name side string"
|
||||
]
|
||||
}
|
||||
],
|
||||
"decoded_actions": [
|
||||
{
|
||||
"kind": "set_company_cash",
|
||||
"target": {
|
||||
"kind": "condition_true_company"
|
||||
},
|
||||
"value": 250
|
||||
}
|
||||
],
|
||||
"executable_import_ready": true,
|
||||
"notes": [
|
||||
"decoded from grounded real 0x4e9a row framing",
|
||||
"negative-sentinel company scope lowers the condition-relative target at import time"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"notes": [
|
||||
"real negative-sentinel company-scope sample"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -26,7 +26,8 @@
|
|||
"packed_event_imported_runtime_record_count": 0,
|
||||
"packed_event_parity_only_record_count": 1,
|
||||
"packed_event_unsupported_record_count": 1,
|
||||
"packed_event_blocked_missing_condition_context_count": 1,
|
||||
"packed_event_blocked_missing_condition_context_count": 0,
|
||||
"packed_event_blocked_territory_condition_scope_count": 1,
|
||||
"packed_event_blocked_missing_compact_control_count": 0,
|
||||
"packed_event_blocked_unmapped_real_descriptor_count": 0,
|
||||
"packed_event_blocked_structural_only_count": 0,
|
||||
|
|
@ -52,11 +53,17 @@
|
|||
"payload_family": "real_packed_v1",
|
||||
"trigger_kind": 6,
|
||||
"one_shot": true,
|
||||
"import_outcome": "blocked_missing_condition_context",
|
||||
"import_outcome": "blocked_territory_condition_scope",
|
||||
"compact_control": {
|
||||
"primary_selector_0x7f0": 99,
|
||||
"grouped_target_scope_ordinals_0x7fb": [0, 1, 2, 3]
|
||||
},
|
||||
"negative_sentinel_scope": {
|
||||
"company_test_scope": "all_companies",
|
||||
"player_test_scope": "disabled",
|
||||
"territory_scope_selector_is_0x63": true,
|
||||
"source_row_indexes": [0]
|
||||
},
|
||||
"grouped_company_targets": [
|
||||
{
|
||||
"kind": "condition_true_company"
|
||||
|
|
|
|||
|
|
@ -127,6 +127,12 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"negative_sentinel_scope": {
|
||||
"company_test_scope": "all_companies",
|
||||
"player_test_scope": "disabled",
|
||||
"territory_scope_selector_is_0x63": true,
|
||||
"source_row_indexes": [0]
|
||||
},
|
||||
"grouped_effect_row_counts": [1, 0, 0, 0],
|
||||
"grouped_effect_rows": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue