Skip to content

Commit

Permalink
Patch by _Q
Browse files Browse the repository at this point in the history
  • Loading branch information
quietust authored and angavrilov committed Dec 4, 2015
1 parent 25e5b84 commit 3df992e
Show file tree
Hide file tree
Showing 11 changed files with 207 additions and 84 deletions.
20 changes: 20 additions & 0 deletions df.advmode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@
<int16_t name='unk6'/>
<bool name='sleeping'/>
<int8_t/>

<padding size="24" comment="0.42.01"/> not sure where this is, just that it's before bogeymen_timer

<int32_t name='bogeymen_timer' comment='initialized to 4-7 when the cackling starts'/>
<int32_t name='bogeymen_killed'/>
<int32_t name='unk9' comment='initialized to 60 when the cackling starts'/>
Expand Down Expand Up @@ -510,6 +513,23 @@
<stl-vector/>
<stl-vector/>
</compound>

<compound name='unk_v42_1'>
<int32_t/> ?
<stl-vector/>
<stl-vector/>
<stl-string/>
<int32_t/> ?
<int32_t/> ?
<int32_t/> ?
<int32_t/> ?
<stl-vector/>
<int32_t/> ?
<int32_t/> ?
<int32_t/> ?
<int32_t/> ?
<stl-string/>
</compound>
</struct-type>

<class-type type-name='adventure_movement_option'
Expand Down
3 changes: 3 additions & 0 deletions df.d_init.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,13 @@
<int32_t name="strict_population_cap"/>
<int32_t name="baby_cap_absolute"/>
<int32_t name="baby_cap_percent"/>
<int32_t name="visitor_cap"/>

<int32_t name="specific_seed_cap"/>
<int32_t name="fortress_seed_cap"/>

<static-array name='invasion_soldier_cap' type-name='int32_t' count='3'/>
<static-array name='invasion_monster_cap' type-name='int32_t' count='3'/>
<static-array name='path_cost' type-name='int32_t' count='4'/>
<static-array name='embark_rect' type-name='int16_t' count='2'/>

Expand Down
10 changes: 8 additions & 2 deletions df.history.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@

<compound name='event_collections'>
<stl-vector name='all' pointer-type='history_event_collection'/>
<static-array name='other' count='9'>
<static-array name='other' count='14'>
<stl-vector pointer-type='history_event_collection'/>
</static-array>
</compound>
Expand All @@ -1687,14 +1687,20 @@
<int32_t name='total_megabeasts'/>
<int32_t name='total_semimegabeasts'/>
<stl-vector/>
<padding size="56" comment='v0.42.01'/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<static-array name='unk_v40_1' comment='v0.40.01' count='12'>
<static-array name='unk_v40_1' comment='v0.40.01' count='13'>
<stl-vector/>
</static-array>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.40.01'/>
<bool/>
<stl-vector comment='v0.40.01'/>
Expand Down
6 changes: 3 additions & 3 deletions df.materials.xml
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@
</enum-type>

<struct-type type-name='special_mat_table'>
<static-array name='organic_types' count='37' index-enum='organic_mat_category'>
<static-array name='organic_types' count='39' index-enum='organic_mat_category'>
<stl-vector type-name='int16_t' index-refers-to='(food-mat-by-idx $$._key $)'/>
</static-array>
<static-array name='organic_indexes' count='37' index-enum='organic_mat_category'>
<static-array name='organic_indexes' count='39' index-enum='organic_mat_category'>
<stl-vector type-name='int32_t'/>
</static-array>
<static-array name='organic_unknown' count='37' comment='everything 0'
<static-array name='organic_unknown' count='39' comment='everything 0'
index-enum='organic_mat_category'>
<stl-vector type-name='int32_t'/>
</static-array>
Expand Down
5 changes: 3 additions & 2 deletions df.raws.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<stl-vector name='trapcomps' pointer-type='itemdef_trapcompst'/>
<stl-vector name='toys' pointer-type='itemdef_toyst'/>
<stl-vector name='tools' pointer-type='itemdef_toolst'/>
<static-array name='tools_by_type' count='18' index-enum='tool_uses'>
<static-array name='tools_by_type' count='22' index-enum='tool_uses'>
<stl-vector pointer-type='itemdef_toolst'/>
</static-array>
<stl-vector name='instruments' pointer-type='itemdef_instrumentst'/>
Expand Down Expand Up @@ -108,7 +108,7 @@
<stl-vector name='translations' pointer-type='language_translation'/>

<static-array name='word_table' count='2'>
<static-array type-name='language_word_table' count='60'/>
<static-array type-name='language_word_table' count='62'/>
</static-array>

-- Descriptors
Expand All @@ -128,6 +128,7 @@
<stl-vector name='all' pointer-type='building_def'/>
<stl-vector name='workshops' pointer-type='building_def_workshopst'/>
<stl-vector name='furnaces' pointer-type='building_def_furnacest'/>
<stl-vector comment='v0.42.01'/>

<int32_t name='next_id'/>
</compound>
Expand Down
3 changes: 3 additions & 0 deletions df.stockpile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@
<bool name='unusable'/>
</compound>

<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>

<bool name='allow_organic' init-value='true'/>
<bool name='allow_inorganic' init-value='true'/>
</struct-type>
Expand Down
19 changes: 19 additions & 0 deletions df.ui-menus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@
<compound name='material_category' type-name='job_material_category'/>
</compound>

<stl-string comment='v0.42.01'/>

<compound name='building'>
<stl-vector name='choices_all' pointer-type='interface_button_constructionst'/>
<stl-vector name='choices_visible' pointer-type='interface_button_constructionst'/>
Expand All @@ -248,6 +250,7 @@
<compound name='unit'>
<stl-vector name='inv_items' pointer-type='unit_inventory_item'/>
<stl-vector name='inv_spatters' pointer-type='spatter'/>
<stl-vector comment='v0.42.01'/>

<bool name="in_new_squad" comment='v0.34.08'/>
<int32_t name="cursor_uniform" comment='v0.34.08'/>
Expand Down Expand Up @@ -276,6 +279,8 @@

judging from the destructor, these two sections should probably be in different compounds

<padding size="16" comment="v0.42.01"/>

<stl-vector name='list' type-name='int32_t' refers-to='$global.world.units.active[$]'/>

<int8_t name='unk_a0'/>
Expand All @@ -288,6 +293,18 @@
<bool name="show_misc"/>
</compound>

<compound name='unk_v42_1'>
<int32_t/>
<stl-vector/>
<bool/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<bool/>
<bool/>
<bool/>
</compound>

<compound name='barracks'>
<int32_t name="squad_cursor"/>

Expand All @@ -306,6 +323,8 @@
<int32_t name="position_squad_cursor"/>
</compound>

<stl-vector comment='v0.42.01'/>

<compound name='minimap'>
-- Abstract representation of contents; updated by need_scan
<static-array name='data' count='23'>
Expand Down
10 changes: 10 additions & 0 deletions df.ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,12 @@
</compound>
</compound>

<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>
<stl-vector comment='v0.42.01'/>

<compound name='stockpile'>
<int32_t name='reserved_bins'/>
<int32_t name='reserved_barrels'/>
Expand Down Expand Up @@ -514,6 +520,8 @@
<stl-string name='old_name'/>
</compound>

<stl-vector comment='v0.42.01'/>

<compound name='main'>
<static-array name='hotkeys' type-name='ui_hotkey' count='16'/>

Expand Down Expand Up @@ -552,6 +560,8 @@
<bool name='in_rename_hotkey'/>
</compound>

<int32_t comment='v0.42.01'/>

<compound name='squads'>
<stl-vector name='list' has-bad-pointers='true'
comment='valid only when ui is displayed' pointer-type='squad'/>
Expand Down
26 changes: 26 additions & 0 deletions df.units.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@
<compound name='flags1' type-name='unit_flags1'/>
<compound name='flags2' type-name='unit_flags2'/>
<compound name='flags3' type-name='unit_flags3'/>
<int32_t comment='v0.42.01'/>

<compound name='meeting'>
<enum name='state' base-type='int8_t'>
Expand Down Expand Up @@ -767,6 +768,7 @@

<pointer name='attr_change' type-name='curse_attr_change' comment='v0.34.01'/>
<uint32_t name='luck_mul_percent' comment='v0.34.01' init-value='100'/>
<int32_t comment='v0.42.01'/>

<stl-vector name='interaction_id' type-name='int32_t' comment='v0.34.01'
ref-target='creature_interaction_effect'/>
Expand Down Expand Up @@ -965,6 +967,30 @@
<stl-vector name="unk_10" type-name="int32_t"/>
</pointer>

<stl-vector comment='v0.42.01'>
<pointer>
<stl-vector>
<pointer>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t name='enemy_status_slot' init-value='-1'/>
<int32_t name='unk_874_cntr'/> // age ? incremented every tick

Expand Down
47 changes: 40 additions & 7 deletions df.world.xml
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@

<stl-vector name='all' pointer-type='item'/>

<static-array name='other' count='129' index-enum='items_other_id'>
<static-array name='other' count='131' index-enum='items_other_id'>
<stl-vector pointer-type='item'/>
</static-array>

Expand Down Expand Up @@ -498,7 +498,7 @@

<stl-vector name='all' pointer-type='building'/>

<static-array name='other' count='87' index-enum='buildings_other_id'>
<static-array name='other' count='90' index-enum='buildings_other_id'>
<stl-vector pointer-type='building'/>
</static-array>

Expand Down Expand Up @@ -750,6 +750,36 @@
<stl-vector name='bad' pointer-type='agreement' has-bad-pointers='true'/>
</compound>

<compound name='poetic_forms' comment='v0.42.01'>
<stl-vector name='all'/>
<stl-vector name='bad' has-bad-pointers='true'/>
</compound>

<compound name='musical_forms' comment='v0.42.01'>
<stl-vector name='all'/>
<stl-vector name='bad' has-bad-pointers='true'/>
</compound>

<compound name='dance_forms' comment='v0.42.01'>
<stl-vector name='all'/>
<stl-vector name='bad' has-bad-pointers='true'/>
</compound>

<compound name='scales' comment='v0.42.01'>
<stl-vector name='all'/>
<stl-vector name='bad' has-bad-pointers='true'/>
</compound>

<compound name='rhythms' comment='v0.42.01'>
<stl-vector name='all'/>
<stl-vector name='bad' has-bad-pointers='true'/>
</compound>

<compound name='occupations' comment='v0.42.01'>
<stl-vector name='all'/>
<stl-vector name='bad' has-bad-pointers='true'/>
</compound>

<pointer name='selected_building' type-name='building'/>
<enum base-type='int16_t' name='selected_stockpile_type' type-name='stockpile_category'/>
<bool name='update_selected_building'/>
Expand Down Expand Up @@ -793,10 +823,10 @@
comment='Appears to be precomputed rounded integer distances'/>
</static-array>

<static-array name='unk_v40_1a' count='112' index-enum='profession' comment='v0.40.1'>
<static-array name='unk_v40_1a' count='129' index-enum='profession' comment='v0.40.1'>
<stl-vector type-name='int16_t'/>
</static-array>
<static-array name='unk_v40_1b' count='112' index-enum='profession' comment='v0.40.1'>
<static-array name='unk_v40_1b' count='129' index-enum='profession' comment='v0.40.1'>
<stl-vector type-name='int16_t'/>
</static-array>

Expand Down Expand Up @@ -891,11 +921,12 @@
<stl-vector/>
<int32_t/>
<int32_t/>
<stl-vector name='unk_10d298' comment='v0.40.01'/>
<stl-vector name='unk_10d2a4' comment='v0.40.01'/>
<stl-vector comment='v0.42.01'/>
<int32_t comment='v0.42.01'/>
</compound>

<stl-vector name='unk_10d298' comment='v0.40.01'/>
<stl-vector name='unk_10d2a4' comment='v0.40.01'/>

<compound name='orphaned_flow_pool' type-name='flow_reuse_pool'/>

-- RAWs
Expand Down Expand Up @@ -1075,6 +1106,7 @@
<static-array name='unk_v40_6f' comment='v0.40.1' count='336'>
<stl-vector type-name='int32_t'/>
</static-array>
<stl-vector comment='v0.42.01'/>
<stl-vector name='unk_v40_7' comment='v0.40.1'/>

<bool name="reindex_pathfinding" comment='forces map_block.passable to be recomputed'/>
Expand Down Expand Up @@ -1155,6 +1187,7 @@

<bool/>
<bool/>
<bool comment='v0.42.01'/>

<compound name='arena_spawn'>
<stl-vector name='race' type-name='int16_t' ref-target='creature_raw'/>
Expand Down
Loading

0 comments on commit 3df992e

Please sign in to comment.