From 487f5b25a13c8952d697e0de82f92b1f90898339 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Thu, 14 Mar 2024 16:12:00 -0700 Subject: [PATCH] identify unknown fields, types, and enums --- changelog.txt | 1 + df.items.xml | 17 +-- df.legends.xml | 25 ++-- df.projectile.xml | 11 +- df.units.xml | 306 ++++++++++++++++++++++++++++------------------ 5 files changed, 220 insertions(+), 140 deletions(-) diff --git a/changelog.txt b/changelog.txt index 92fd23959..b913818b9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -21,6 +21,7 @@ Template for new versions: ## Structures - ``plotinfo.hauling``: name fields related to the hauling route panel - ``plant_tree_info``: define tree body and branch flags +- ``unit``: identify and define many previously unknown fields, types, and enums # 50.12-r1 diff --git a/df.items.xml b/df.items.xml index 649327418..55157d23b 100644 --- a/df.items.xml +++ b/df.items.xml @@ -17,7 +17,7 @@ - + @@ -27,28 +27,29 @@ - + - + - - + + - + - - + + + diff --git a/df.legends.xml b/df.legends.xml index 35a3a250a..f56eeb6be 100644 --- a/df.legends.xml +++ b/df.legends.xml @@ -79,14 +79,17 @@ - - - - - - + + + + + + + + + @@ -109,11 +112,11 @@ - - - - - + + + + + diff --git a/df.projectile.xml b/df.projectile.xml index 65bc5176f..f67220090 100644 --- a/df.projectile.xml +++ b/df.projectile.xml @@ -15,14 +15,17 @@ - - + + - - + + + + + diff --git a/df.units.xml b/df.units.xml index 5d5e5683d..a0481798f 100644 --- a/df.units.xml +++ b/df.units.xml @@ -600,6 +600,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + following field not saved: + + following field saved if first field is 0 + + + + + + + @@ -661,7 +742,7 @@ - + @@ -669,7 +750,7 @@ - + @@ -687,12 +768,12 @@ - + - - + @@ -709,8 +790,8 @@ - - + + @@ -724,41 +805,41 @@ This was used by a vampire scared of cave creatures and doing FleeFromOpponent panic - + - - + + - + - - + - - + + - - + + - - + + - + TODO: find correct location and enumify - + @@ -769,31 +850,29 @@ - - - - + + - + - - - - - - + + + + + + + - - TODO: fix - + + @@ -891,7 +970,7 @@ - + @@ -918,7 +997,7 @@ - + - + - + @@ -998,25 +1077,13 @@ - - - - - - following field not saved: - - following 3 fields saved if first field is 0 - - - - - - - - - + + + + + - + -- average of the following vector @@ -1027,7 +1094,7 @@ + comment='bay12: physical_hfid: used for ghost in AttackedByDead thought'/> @@ -1047,9 +1114,9 @@ - - - + + + @@ -1087,16 +1154,16 @@ svector((int32_t)) sound_timer - - - - - - + + + + + + - - + + unit_active_animation *active_animation @@ -1111,7 +1178,7 @@ svector((physical_formst *)) physical_form - + rumor_infost rumor_info @@ -1135,37 +1202,37 @@ - unit_sr_pop_specst *sr_pop_spec - - - - - - - - - - - - - - + unit_sr_pop_specst *sr_pop_spec + + + + entity_pop_specifierst + + + + + + + + + + - unit_sr_walker_infost *sr_walker - - - - - - - - - - - - + unit_sr_walker_infost *sr_walker + + + + + + + + + + + + probably references a historical_entity probably references a entity_position_assignment @@ -1174,17 +1241,17 @@ unit_army_infost - - - - + + + + probably references a unit probably references a unit opinion_infost - - + + travel_logst @@ -1236,23 +1303,21 @@ - // age ? incremented every tick + - - 0 blocks pains, nausea + + 0 blocks pains, nausea - + - - - // items ids? - - // same size as 8e8, soldier related? + + + - + @@ -1778,7 +1843,6 @@ - @@ -1789,11 +1853,12 @@ - + + @@ -1832,7 +1897,14 @@ - + + + + + + + +