Skip to content

Commit 0022caf

Browse files
committed
Add original-name attributes to everything
And fix a handful of other errors I encountered along the way. Added NONE entries to enums (may affect C++ code): * abstract_building_reputation_type * adopt_region_stage_type * artifact_claim_type * block_square_event_type * building_profile_acquisition_method * civzone_type * dance_form_context * dance_form_group_size * dance_form_move_type * divination_outcome_type * dungeon_type * dungeon_wrestle_type * embark_finder_option * environment_type * era_type * flow_type * genetic_modifier_type * hf_artifact_action_type * history_event_collection_type * incident_artifact_location_type * incident_type * incident_written_content_location_type * insurrection_outcome * interaction_flags * interaction_source_type * intrigue_corruption_method_type * inventory_profile_skill_type * inv_item_role_type * journey_type * language_name_category * language_name_component * language_word_table_index * load_game_stage_type * main_choice_type * misc_trait_type * musical_form_melody_frequency * musical_form_melody_style * musical_form_purpose * occasion_schedule_feature * occasion_schedule_type * occupation_type * personality_preference_type * plant_material_def * poetic_form_persona_type * poetic_form_persona_type * prepare_rod_stage_type * projectile_type * region_weather_type * report_zoom_type * resource_allotment_specifier_type * save_substage * scale_construction_type * scale_naming_type * scale_type * secretion_condition * simple_action_type * site_dispute_type * squad_order_cannot_reason * squad_order_type * tactical_situation * talk_choice_type * theft_method_type * timbre_type * travel_log_itinerary_type * workquota_frequency_type * world_construction_type * wrestle_attack_type Structure reorganization changes (shouldn't affect user scripts): * Various: assigned explicit "UNUSED" names to some unused enum/bitfield members * builtin_mats: added 640 new elements for CREATURE_1-200, HIST_FIG_1-200, PLANT_1-200, and UNUSED01-40 * interface_key: assigned names to various anon entries * job_postingst: promoted flags to top-level bitfield type * noblelistst: promoted upplist to top-level "unitpropertyplacementst" structure * intrigue_corruption: promoted flags to top-level bitfield type * plant_raw: changed stockpile_growth_flags to store ras_crop_flag instead of inline duplicate * stockpile_category: added "ALL" at end Layout fixes (shouldn't affect user scripts): * adventure_interface_companionsst: scrolling was in wrong place * caste_raw: swapped litter_size_min and litter_size_max * entity_position_assignment: added missing "temp" member at end * message_order_to_perform_actionst: inserted missing "action" field Cosmetic changes: * army_controller_goal_infiltrate_societyst: agoal_ab_id -> goal_ab_id * creature_graphics_layerst: dye_color_iuse_palette_rowndex -> use_palette_row * hf_religious_datast: anon_1 -> belief_system_id * historical_entity: unkarmy_reeling_defense -> army_reeling_defense * history_event_hf_learns_secretst: interaction_effect -> interaction_source * item_craft_graphics_flag: size -> material * lookinfo_spatterst: extend -> extent * personality_ethicst: reponse -> response * personality_facet_type: PERSEVERENCE -> PERSEVERANCE * pet_profilest: anon_1 -> journey_race * poetic_form_action: MakeConsession -> MakeConcession * simple_action_type: performe_horrible_experiments -> performed_horrible_experiments * stair_graphics_flag_material: FOZEN -> FROZEN * timbre_type: PURE_ -> PURE * tissue_style_type: PONY_TAILS -> PONY_TAIL * unit: pool_index -> pool_id * unit_vision_arcst: anon_1 -> tri * value_type: PERSEVERENCE -> PERSEVERANCE * viewscreen_choose_start_sitest: def_candidate_nearst -> def_candidate_near_st Type changes: * building_def: graphics_normal and graphics_overlay changed from uint32_t to int32_t * caste_raw: fixed type of blood_state and pus_state * d_init_displayst: track_tile_invert and track_ramp_invert now use the "tile_flag" bitfield * interaction_profilest: changed use_display_name from int8_t to uint8_t * interrogation_resultst: changed relationship_factor to new "interrogation_result_rel_factor_type" enum * intrigue_perspectivest: vector potential_corrupt_circumstance_target now contains circumstance_id unions instead of int32_t * item_handlerst: other.BAG, other.BOLT_THROWER_PARTS, other.ANY_DRINK, other.ANY_CRITTER, and other.FOOD_STORAGE now have proper types * large_integer: changed low_part members from long to unsigned long * main_interface: changed last_displayed_hover_inst from int32_t to main_hover_instruction enum * musicst: m_event and m_context now store enums instead of int32_t * taskst: demoted "flags" from unknown bitfield to plain uint32_t * unit: changed uwss_flag from uint32_t to unit_wound_special_stats_flag * vehicle_ram_graphics_flag: "segment_type" changed from plain integer to "vehicle_ram_graphics_flag_segment_type" enum * widget_job_details_button: "jb" changed from raw pointer to job pointer * world_generatorst: changed rejection_reason from int16_t to map_reject_type enum * world_history: changed first_*_flag* from uint32_t to knowledge_scholar_flags_* enums VMethod changes: * history_event: vmethods "getSentence" and "getPhrase" now take 2 extra bool parameters (which the game currently ignores) * interaction_target: vmethod "affects_unit" first parameter changed from int32_t to unit pointer * item: vmethod "getGloveHandedness" return type changed from int8_t to uint32_t * item: vmethod "getAmmoType" now returns std::string by value instead of taking a pointer as a parameter * item: vmethod "getDyeAmount" now takes an int32 parameter * unit: vmethod "getCreatureTile" now takes a bool parameter Compound changes: * Various: added missing ref-target specifications * caste_raw: changed vermin_bite_chance to vermin_bite_state and fixed type * ci_personal_reputation_profilest: changed entity_id to cultural_identity_id and updated ref-target * cultural_identity: events changed to rumor_info.events * dance_form: changed entity to event and updated ref-target * dance_form_section: changed acts_out_civ to acts_out_event and updated ref-target * entity_burial_requestst: changed civ to hfid and updated ref-target * entity_pop_specifierst: chaned squad_id to squad_enid and updated ref-target * graphic: changed color[][] to default_palette.color[] * history_event_modified_buildingst: modification now uses abstract_building_tower_flag, bitfield names differ * itemdef_ammost: exploded "texpos" array into actual fields * itemdef_siegeammost: exploded "texpos" array into actual fields * itemdef_toolst: exploded "texpos" and "texpos2" arrays into actual fields * itemdef_trapcompst: exploded "texpos" array into actual fields * itemdef_weaponst: exploded "texpos" array into actual fields * knowledge_profilest: changed known_events to rumor_info.events * language_word: s_empty and l_empty changed into single-element arrays * relationship_event_supplement: (int32_t)occasion_type changed to (unit_thought_type)circumstance * relationship_event_supplement: (int32_t)site changed to (circumstance_id)circumstance_id * relationship_event_supplement: (profession)profession changed to (history_event_reason_id)reason_id * scholar_knowledgest: knowledge_goal changed from unknown bitfield to union of all knowledge_scholar_flags bitfields * unit: changed enemy.rumor to enemy.rumor_info.events * workshop_graphics_infost: changed texpos from single int32_t to 4x31x32 array
1 parent 3826f45 commit 0022caf

120 files changed

Lines changed: 18982 additions & 18268 deletions

File tree

Some content is hidden

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

data-definition.xsd

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
<xs:attributeGroup ref="SharedAttributes" />
5858
<xs:attribute name="type-name" type="xs:ID" use="required">
5959
</xs:attribute>
60+
<xs:attribute name="original-name">
61+
</xs:attribute>
6062
</xs:complexType>
6163
<xs:complexType name="EnumTypeDef" mixed="true">
6264
<xs:complexContent>
@@ -119,8 +121,6 @@
119121

120122
<xs:attribute name="is-union" type="xs:boolean">
121123
</xs:attribute>
122-
<xs:attribute name="original-name">
123-
</xs:attribute>
124124
</xs:extension>
125125
</xs:complexContent>
126126
</xs:complexType>
@@ -144,9 +144,6 @@
144144
</xs:choice>
145145
<xs:group ref="SharedElements" minOccurs="0" maxOccurs="unbounded" />
146146
</xs:sequence>
147-
148-
<xs:attribute name="original-name">
149-
</xs:attribute>
150147
</xs:extension>
151148
</xs:complexContent>
152149
</xs:complexType>
@@ -177,8 +174,6 @@
177174
<xs:extension base="CompoundFieldType">
178175
<xs:attribute name="pointer-type">
179176
</xs:attribute>
180-
<xs:attribute name="original-name">
181-
</xs:attribute>
182177
</xs:extension>
183178
</xs:complexContent>
184179
</xs:complexType>
@@ -285,6 +280,8 @@
285280
<xs:attributeGroup ref="SharedAttributes" />
286281
<xs:attribute name="name">
287282
</xs:attribute>
283+
<xs:attribute name="original-name">
284+
</xs:attribute>
288285
<xs:attribute name="ret-type">
289286
</xs:attribute>
290287
<xs:attribute name="is-destructor">
@@ -296,6 +293,8 @@
296293
<xs:attributeGroup ref="SharedAttributes" />
297294
<xs:attribute name="name">
298295
</xs:attribute>
296+
<xs:attribute name="original-name">
297+
</xs:attribute>
299298
<xs:attribute name="ref-target">
300299
</xs:attribute>
301300
<xs:attribute name="refers-to">
@@ -589,6 +588,8 @@
589588
<xs:attributeGroup ref="SharedAttributes" />
590589
<xs:attribute name="name">
591590
</xs:attribute>
591+
<xs:attribute name="original-name">
592+
</xs:attribute>
592593
<xs:attribute name="value" type="xs:integer">
593594
</xs:attribute>
594595
</xs:complexType>
@@ -605,6 +606,8 @@
605606
<xs:attributeGroup ref="SharedAttributes" />
606607
<xs:attribute name="name">
607608
</xs:attribute>
609+
<xs:attribute name="original-name">
610+
</xs:attribute>
608611
<xs:attribute name="type-name">
609612
</xs:attribute>
610613
<xs:attribute name="count" type="xs:positiveInteger">

df.abstract_building.xml

Lines changed: 123 additions & 123 deletions
Large diffs are not rendered by default.

df.activity.xml

Lines changed: 390 additions & 386 deletions
Large diffs are not rendered by default.

df.activity_meeting.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<data-definition>
22
<bitfield-type type-name='activity_flag' base-type='int16_t'> bay12: ACTIVITYFLAG_*
3-
<flag-bit name='next_step' comment='SITESEARCHED'/>
4-
<flag-bit name='checked_building' comment='ARRIVEDATSITE'/>
5-
<flag-bit name='add_delay' comment='INITIALDISCUSS'/>
6-
<flag-bit name='topic_discussed' comment='DISCUSSINGTOPIC'/>
7-
<flag-bit name='meeting_done' comment='MEETINGCOMPLETE'/>
3+
<flag-bit name='next_step' original-name='SITESEARCHED'/>
4+
<flag-bit name='checked_building' original-name='ARRIVEDATSITE'/>
5+
<flag-bit name='add_delay' original-name='INITIALDISCUSS'/>
6+
<flag-bit name='topic_discussed' original-name='DISCUSSINGTOPIC'/>
7+
<flag-bit name='meeting_done' original-name='MEETINGCOMPLETE'/>
88
</bitfield-type>
99

1010
<struct-type type-name='activity_info' original-name='activity_meetingst'>
11-
<int32_t name='id' init-value='-1' comment='bay12: save_index; assigned during Save'/>
12-
<int32_t name='unit_actor' ref-target='unit' init-value='-1' comment='diplomat or worker'/>
13-
<int32_t name='unit_noble' ref-target='unit' init-value='-1' comment='meeting recipient'/>
14-
<int32_t name='place' ref-target='building' init-value='-1' comment='bay12: civzone_id'/>
15-
<bitfield base-type='int16_t' name='flags' type-name='activity_flag'/>
11+
<int32_t name='id' original-name='save-index' init-value='-1' comment='assigned during Save'/>
12+
<int32_t name='unit_actor' original-name='actor_unid' ref-target='unit' init-value='-1' comment='diplomat or worker'/>
13+
<int32_t name='unit_noble' original-name='target_unid' ref-target='unit' init-value='-1' comment='meeting recipient'/>
14+
<int32_t name='place' original-name='civzone_id' ref-target='building' init-value='-1'/>
15+
<bitfield base-type='int16_t' name='flags' original-name='flag' type-name='activity_flag'/>
1616
<int8_t name='worstroomrank' init-value='3'/>
17-
<int16_t name='delay' init-value='0' comment='discusscount'/>
18-
<int32_t name='tree_quota' init-value='-1' comment='tempvalue'/>
17+
<int16_t name='delay' original-name='discusscount' init-value='0'/>
18+
<int32_t name='tree_quota' original-name='tempvalue' init-value='-1'/>
1919
</struct-type>
2020
</data-definition>
2121

0 commit comments

Comments
 (0)