Skip to content

Commit e252b68

Browse files
committed
Assorted structure fixes for 53.11
1 parent 114321c commit e252b68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+332
-223
lines changed

changelog.txt

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,81 @@ Template for new versions:
1919
# Future
2020

2121
## Structures
22+
- filled in missing ``original-name`` attributes
23+
- fixed assorted typos in ``original-name`` attributes
24+
- ensured that ``original-name`` always appears after ``name`` or ``type-name``, never before
25+
- fixed several structure field type errors
26+
- specific changes: fixed ``building_constructionst.type`` to be 32-bit, along with the ``construction_type`` enum
27+
- specific changes: fixed ``contextst.interrogator_relationships`` to be a pointer to ``evidence_repositoryst``
28+
- specific changes: fixed ``actor_entryst.associated_org`` to contain pointers to ``organization_entryst``
29+
- specific changes: fixed ``justice_interfacest.interrogation_report`` to contain pointers to ``interrogation_report``
30+
- specific changes: fixed ``main_interface_settings.member`` to contain shared pointers to ``world_gen_param_valuest``
31+
- specific changes: fixed ``squad_equipment_interfacest.am_cand_subtype`` to contain ``int16_t``
32+
- specific changes: fixed ``startup_charactersheet_petst.race`` to be ``int32_t``
33+
- specific changes: fixed ``lookinfo_verminst.caste`` to be ``int16_t``
34+
- specific changes: fixed ``intrigue_corruption.facet_rating`` to be ``int16_t``
35+
- specific changes: fixed ``historical_entity.current_wgwg`` to be a direct pointer
36+
- specific changes: fixed ``historical_figure.worldgen_relationships`` to be a direct pointer
37+
- specific changes: fixed ``pmd_tree_texture_infost.texpos_tree_wood_tile`` to use correct array length (sized against the correct enum)
38+
- fixed several enums
39+
- specific changes: fixed ``build_square_type`` enum to add missing element ``OUTSIDE``
40+
- specific changes: swapped ``main_hover_instruction`` elements ``ADVENTURE_MOVE_DOWN_RAMP_E`` and ``ADVENTURE_MOVE_DOWN_RAMP_W``
41+
- added some missing enums and bitfields
42+
- specific changes: ``viewscreen_titlest.mode`` now uses new enum ``title_mode_type``
43+
- specific changes: ``viewscreen_worldst.squad_flag`` now uses new bitfield ``civlist_squad_flag``
44+
- specific changes: ``viewscreen_worldst.messenger_flag`` now uses new bitfield ``civlist_messenger_flag``
45+
- specific changes: fixed ``historical_entity.resources.art_image_types`` to use new ``entity_art_image_type`` enum
46+
- changed various fields to make use of existing enums and bitfields
47+
- specific changes: ``adventure_movement_movest.aim_attack_flag`` now uses ``aim_attack_flag`` bitfield
48+
- specific changes: ``adventure_movement_mountst.riderposition`` now uses ``rider_positions_type`` enum
49+
- specific changes: ``adventure_constructionst.building_jobitemflag`` now uses ``job_material_category`` bitfield
50+
- specific changes: ``adventure_constructionst.mat_jobitemflag`` now uses ``job_material_category`` bitfield
51+
- specific changes: ``adventure_constructionst.mat_jobitemflag_master`` now uses ``job_material_category`` bitfield
52+
- specific changes: ``building_defst.build_key` now uses ``interface_key`` enum
53+
- specific changes: ``body_detail_plan.bp_layers_tissue`` now uses ``creature_interaction_effect_target_mode`` enum
54+
- specific changes: ``body_detail_plan.bp_position_value`` now uses ``body_part_position_type`` enum
55+
- specific changes: ``body_detail_plan.bp_relation_value_1`` now uses ``body_part_relation_type`` enum
56+
- specific changes: ``custom_stockpile_interfacest.cur_main_mode_flag`` now uses ``stockpile_group_set`` bitfield
57+
- specific changes: ``custom_stockpile_interfacest.main_mode_flag`` now uses ``stockpile_group_set`` bitfield
58+
- specific changes: ``name_creator_interfacest.cur_name_place`` now uses ``language_name_component`` enum
59+
- specific changes: ``name_creator_interfacest.cur_word_place`` now uses ``language_word_table_index`` enum
60+
- specific changes: ``dance_form_section.dance_flag`` now uses ``dance_flag`` bitfield
61+
- specific changes: ``evidence_hf_filest.evidence`` now uses ``evidence_type`` enum
62+
- specific changes: ``historical_entity.resources.scholar_flag`` now uses ``entity_scholar_flag`` bitfield
63+
- specific changes: ``interaction_effect_summon_unitst`` fields ``required_creature_flags`` and ``forbidden_creature_flags`` now use ``creature_raw_flags`` enum
64+
- specific changes: ``interaction_effect_summon_unitst`` fields ``required_caste_flags`` and ``forbidden_caste_flags`` now use ``caste_raw_flags`` enum
65+
- specific changes: ``interaction_effect_change_weatherst`` fields ``add_weather_flag`` and ``remove_weather_flag`` now use ``region_weather_bits`` bitfield
66+
- specific changes: ``creature_interaction_effect_body_transformationst`` fields ``required_creature_flags`` and ``forbidden_creature_flags`` now use ``creature_raw_flags`` enum
67+
- specific changes: ``creature_interaction_effect_body_transformationst`` fields ``required_caste_flags`` and ``forbidden_caste_flags`` now use ``caste_raw_flags`` enum
68+
- specific changes: ``unit_personality.habit`` now uses ``habit_type`` enum
69+
- specific changes: ``world_region_feature.vertical_connection`` now uses ``layer_connection_type`` enum
70+
- specific changes: ``site_construction_blueprintst`` fields ``construction_type`` and ``building_type`` now use ``building_type`` enum
71+
- specific changes: ``site_construction_blueprintst`` fields ``construction_jobitemflag`` and ``building_jobitemflag`` now use ``job_material_category`` bitfield
72+
- fixed various fields to use correct signedness
73+
- specific changes: ``building_weaponrackst.rack_flags`` is now unsigned
74+
- specific changes: ``temperaturest.fraction`` is now unsigned
75+
- specific changes: ``historical_entity`` fields ``did_wg_variable_position`` and ``did_wg_variable_market_position`` are now unsigned
76+
- specific changes: ``item_body_component`` fields ``nonsolid_remaining``, ``layer_wound_area``, ``layer_cut_fraction``, ``layer_dent_fraction``, and ``layer_effect_fraction`` are now signed
77+
- specific changes: ``unit_personality.traits`` is now signed
78+
- specific changes: ``rpd_indicator_datast`` fields ``marker_char``, ``marker_f``, ``marker_b``, and ``marker_br`` are now unsigned
79+
- specific changes: ``embark_note.tile`` is now unsigned
80+
- specific changes: ``world_population`` fields ``count_min``, ``count_max``, and ``temp_num`` are now unsigned
81+
- specific changes: ``world_site_realization.mini_colors`` is now unsigned
82+
- specific changes: ``unit.body.components`` fields ``nonsolid_remaining``, ``layer_wound_area``, ``layer_cut_fraction``, ``layer_dent_fraction``, and ``layer_effect_fraction`` are now signed
83+
- specific changes: ``unit.body`` fields ``blood_max`` and ``blood_count`` are now signed
84+
- specific changes: ``unit.counters`` fields ``pain``, ``nausea``, and ``dizziness`` are now signed
85+
- specific changes: ``unit`` fields ``uwss_alt_period``, ``uwss_alt_on_period``, ``uwss_speed_add``, ``uwss_speed_perc``, and ``uwss_skill_role_adjust`` are now signed
86+
- specific changes: ``unit.counters`` fields ``paralysis``, ``numbness``, ``fever``, ``exhaustion``, ``hunger_timer``, ``thirst_timer``, ``sleepiness_timer``, ``stomach_content``, ``stomach_food``, ``vomit_timeout``, and ``stored_fat`` are now signed
87+
- specific changes: ``unit.status2.liquid_depth`` are now signed
88+
- fixed various fields to use ``int8_t`` or ``bool`` as appropriate
89+
- specific changes: ``viewscreen_dwarfmodest.sideSubmenu`` is now ``bool`
90+
- specific changes: ``entity_raw`` fields ``likes_site``, ``tolerates_site``, ``start_biome``, ``settlement_biome``, and ``active_season`` are now ``bool``
91+
- specific changes: ``entity_raw.jobs.permitted_labor`` is now ``int8_t``
92+
- specific changes: ``graphicst`` fields ``do_clean_tile_cache`` and ``do_post_init_texture_clear`` are now ``bool``
93+
- specific changes: ``world_generatorst`` fields ``have_logged_parameters`` and ``last_used_valid`` are now ``bool``
94+
- other changes: added name to field ``cgl_itemst.item_type``
95+
- other changes: ``inclusion_type`` now has 16-bit base type (though nothing relies on it)
96+
- other changes: renamed ``adventure_interface_attackst.scrselected_item_idoll_position_wrestle`` to ``selected_item_id``
2297

2398
# 53.11-r2
2499

df.activity.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<enum-item name='TrainingSession' original-name='TRAINING_SESSION'/>
6969
<enum-item name='CombatTraining' original-name='COMBAT_TRAINING'/>
7070
<enum-item name='SkillDemonstration' original-name='SKILL_DEMONSTRATION'/>
71-
<enum-item name='IndividualSkillDrill' original-name='ORIGINAL_SKILL_DRILL'/>
71+
<enum-item name='IndividualSkillDrill' original-name='INDIVIDUAL_SKILL_DRILL'/>
7272
<enum-item name='Sparring' original-name='SPARRING'/>
7373
<enum-item name='RangedPractice' original-name='RANGED_PRACTICE'/>
7474
<enum-item name='Harassment' original-name='HARASSMENT'/>
@@ -670,7 +670,7 @@
670670
<class-type type-name='activity_event_prayerst' inherits-from='activity_event'>
671671
<compound type-name='activity_event_participants' name='participants' original-name='list'/>
672672
<int32_t name='histfig_id' original-name='prayer_target_hfid' ref-target='historical_figure' comment='praying to deity'/>
673-
<enum type-name='sphere_type' original-name='sphere_target' name='topic' comment='praying to sphere'/>
673+
<enum type-name='sphere_type' name='topic' original-name='sphere_target' comment='praying to sphere'/>
674674
<int32_t name='site_id' original-name='location_stid' ref-target='world_site'/>
675675
<int32_t name='location_id' original-name='location_abid' ref-target='abstract_building' aux-value='$$.site_id'/>
676676
<int32_t name='building_id' original-name='location_zone_bldid' ref-target='building'/>

df.activity_meeting.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</bitfield-type>
99

1010
<struct-type type-name='activity_info' original-name='activity_meetingst'>
11-
<int32_t name='id' original-name='save-index' init-value='-1' comment='assigned during Save'/>
11+
<int32_t name='id' original-name='save_index' init-value='-1' comment='assigned during Save'/>
1212
<int32_t name='unit_actor' original-name='actor_unid' ref-target='unit' init-value='-1' comment='diplomat or worker'/>
1313
<int32_t name='unit_noble' original-name='target_unid' ref-target='unit' init-value='-1' comment='meeting recipient'/>
1414
<int32_t name='place' original-name='civzone_id' ref-target='building' init-value='-1'/>

df.adventure.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</struct-type>
3333

3434
<enum-type type-name='ui_advmode_menu' original-name='adventure_view_mode'> bay12: AdventureViewModes
35-
<enum-item name='None' value='-1'/>
35+
<enum-item name='None' original-name='NONE' value='-1'/>
3636
<enum-item name='Default' original-name='MAIN'/>
3737
<enum-item name='Look' original-name='LOOK'/>
3838
<enum-item name='ConversationAddress' original-name='CONVERSATION_START_NEW'/>
@@ -519,7 +519,7 @@
519519

520520
<class-type type-name='adventure_movement_movest' inherits-from='adventure_movement_optionst'>
521521
<bitfield type-name='pathfinding_flags' name='override_permit'/>
522-
<uint32_t name='aim_attack_flag' comment='which flags?'/>
522+
<bitfield type-name='aim_attack_flag' name='aim_attack_flag'/>
523523
</class-type>
524524

525525
<class-type type-name='adventure_movement_hold_tilest' inherits-from='adventure_movement_optionst'>
@@ -554,7 +554,7 @@
554554

555555
<class-type type-name='adventure_movement_mountst' inherits-from='adventure_movement_optionst'>
556556
<pointer type-name='unit' name='animal' original-name='mount'/>
557-
<int16_t name='riderposition'/>
557+
<enum base-type='int16_t' type-name='rider_positions_type' name='riderposition'/>
558558
</class-type>
559559

560560
<class-type type-name='adventure_movement_dismountst' inherits-from='adventure_movement_optionst'/>
@@ -616,7 +616,7 @@
616616
<int32_t name='abs_x'/>
617617
<int32_t name='abs_y'/>
618618
<int32_t name='abs_z'/>
619-
<pointer type-name='world_site' name='target_site' original-name='target+st'/>
619+
<pointer type-name='world_site' name='target_site' original-name='target_st'/>
620620
</struct-type>
621621

622622
<enum-type type-name='adventure_construction_mode_type' base-type='int32_t'> bay12: AdventureConstructionModeType
@@ -649,7 +649,7 @@
649649
<int32_t name='building_subtype'/>
650650
<int32_t name='building_subcat1'/>
651651
<int32_t name='building_subcat2'/>
652-
<uint32_t name='building_jobitemflag'/>
652+
<bitfield type-name='job_material_category' name='building_jobitemflag'/>
653653

654654
<int32_t name='selected_build_phase'/>
655655

@@ -687,11 +687,11 @@
687687

688688
<stl-vector type-name='int16_t' name='material'/>
689689
<stl-vector type-name='int32_t' name='matgloss'/>
690-
<stl-vector type-name='uint32_t' name='mat_jobitemflag'/>
690+
<stl-vector type-name='job_material_category' name='mat_jobitemflag'/>
691691
<stl-vector type-name='int32_t' name='material_count'/>
692692
<stl-vector type-name='int16_t' name='material_master'/>
693693
<stl-vector type-name='int32_t' name='matgloss_master'/>
694-
<stl-vector type-name='uint32_t' name='mat_jobitemflag_master'/>
694+
<stl-vector type-name='job_material_category' name='mat_jobitemflag_master'/>
695695
<stl-vector type-name='int32_t' name='material_count_master'/>
696696
<int32_t name='material_select'/>
697697
<stl-string name='material_filter'/>
@@ -710,7 +710,7 @@
710710
<stl-vector type-name='int32_t' name='start_menu_used_mat_item_tool_use'/>
711711
<stl-vector type-name='int16_t' name='start_menu_used_material'/>
712712
<stl-vector type-name='int32_t' name='start_menu_used_matgloss'/>
713-
<stl-vector type-name='uint32_t' name='start_menu_used_mat_job_item_flag'/>
713+
<stl-vector type-name='job_material_category' name='start_menu_used_mat_job_item_flag'/>
714714
<stl-vector type-name='matter_state' name='start_menu_used_mat_state'/>
715715
<stl-vector type-name='int32_t' name='start_menu_used_mat_count'/>
716716
<stl-vector type-name='int32_t' name='start_menu_have_mat_count'/>
@@ -1003,7 +1003,7 @@
10031003
<int16_t name='move_direction_z' original-name='move_sz' comment='z-axis direction for the last attempted player unit movement: -1 = down, 0 = none, 1 = up'/>
10041004
<bool name='move_do_mid_move'/>
10051005
<bool name='move_carefully' original-name='move_do_care' comment='Is set when the player prepares to move carefully (via the Alt + movement key combo)'/>
1006-
<int16_t name='careful_direction_x' original-name='move_care_sz' comment='x-axis direction for the last attempted careful player unit movement: -1 = west, 0 = none, 1 = east'/>
1006+
<int16_t name='careful_direction_x' original-name='move_care_sx' comment='x-axis direction for the last attempted careful player unit movement: -1 = west, 0 = none, 1 = east'/>
10071007
<int16_t name='careful_direction_y' original-name='move_care_sy' comment='y-axis direction for the last attempted careful player unit movement: -1 = north, 0 = none, 1 = south'/>
10081008
<stl-string name='interrupt_performance_warning' original-name='move_confirm_str' comment='the message displayed when the player attempts to move while their unit is performing'/>
10091009

df.adventure_log.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<pointer type-name='squad' name='sq'/>
3131
<pointer type-name='squad_order' name='so'/>
32-
<bool name='squad_order_repeatable'/>
32+
<bool name='squad_order_repeatable' original-name='squad_order_reportable'/>
3333

3434
<stl-string name='list_name'/>
3535
<stl-string name='simple_list_name'/>

df.agreement.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
<pointer type-name='agreement_details_data_retrieve_artifact' name='RetrieveArtifact' original-name='retrieve_artifact'/>
215215
</compound>
216216

217-
<enum base-type='int32_t' type-name='agreement_details_type' name='type'/>
217+
<enum base-type='int32_t' type-name='agreement_details_type' name='type' original-name='subject'/>
218218
</struct-type>
219219

220220
<bitfield-type type-name='agreement_flag' base-type='uint32_t' since='v0.42.01'> bay12: AGREEMENT_FLAG_*

0 commit comments

Comments
 (0)