Skip to content

Commit

Permalink
identify unknown fields, types, and enums
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Mar 14, 2024
1 parent 070e61a commit 487f5b2
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 140 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 9 additions & 8 deletions df.items.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<flag-bit name='construction' comment='Material used in construction'/>
<flag-bit name='encased' comment='Item encased in ice or obsidian'/>

<flag-bit name='unk12' comment='unknown, unseen'/>
<flag-bit comment='unused'/>
<flag-bit name='murder' comment='Implies murder - used in fell moods'/>
<flag-bit name='foreign' comment='Item is imported'/>
<flag-bit name='trader' comment='Item ownwed by trader'/>
Expand All @@ -27,28 +27,29 @@
<flag-bit name='artifact' comment='Artifact'/>
<flag-bit name='forbid' comment='Forbidden item'/>

<flag-bit name='already_uncategorized' comment='unknown, unseen'/>
<flag-bit name='already_uncategorized' comment='bay12: NONGLOBAL_DELETE'/>
<flag-bit name='dump' comment='Designated for dumping'/>
<flag-bit name='on_fire' comment='Indicates if item is on fire, Will Set Item On Fire if Set!'/>
<flag-bit name='melt' comment='Designated for melting, if applicable'/>

<flag-bit name='hidden' comment='Hidden item'/>
<flag-bit name='in_chest' comment='Stored in chest/part of well?'/>
<flag-bit comment='unused'/>
<flag-bit name='use_recorded' comment='transient in unit.used_items update'/>
<flag-bit name='artifact_mood' comment='created by mood/named existing item'/>

<flag-bit name='temps_computed' comment='melting/boiling/ignite/etc. points'/>
<flag-bit name='weight_computed'/>
<flag-bit name='unk30' comment='unknown, unseen'/>
<flag-bit name='from_worldgen' comment='created by underground critters?'/>
<flag-bit name='top_open'/>
<flag-bit name='from_worldgen' comment='bay12: DO_NOT_RETAIN_IN_CREATION_ZONE'/>
</bitfield-type>

<bitfield-type type-name='item_flags2'>
<flag-bit name='has_rider' comment='vehicle with a rider'/>
<flag-bit name='unk1'/>
<flag-bit name='forbid_on_unretire'/>
<flag-bit name='grown'/>
<flag-bit name='unk_book' comment='possibly book/written-content-related'/>
<flag-bit/>
<flag-bit name='location_reserved' comment='possibly book/written-content-related'/>
<flag-bit name='utterly_destroyed'/>
<flag-bit name='might_contain_artifact'/>
</bitfield-type>

<enum-type type-name='item_magicness_type' base-type='int16_t'>
Expand Down
25 changes: 14 additions & 11 deletions df.legends.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,17 @@
<enum-item name='ACTIVE_ADVENTURER' comment='used when loading save. Swapping the player character via tactical mode disables this flag on the old player character and sets it for the new one.'/>
<enum-item name='RETIRED_ADVENTURER' comment='allows resuming play'/>
<enum-item name='ADVENTURER' comment='blue color and guided by forces unknown description in legends mode'/>
<enum-item name='unk_3'/>
<enum-item name='unk_4'/>
<enum-item name='unk_5'/>
<enum-item name='unk_6'/>
<enum-item name='unk_7' comment='Causes the unit tile to flash between dark and light.'/>
<enum-item name='unk_8'/>
<enum-item name='TEMP_FLAG_ASSOCIATE_PEOPLE_TO_REALIZATION'/>
<enum-item name='BRAG_ON_KILL'/>
<enum-item name='KILL_QUEST'/>
<enum-item name='CHAT_WORTHY'/>
<enum-item name='FLASHES' comment='Causes the unit tile to flash between dark and light.'/>
<enum-item name='DO_NOT_CULL'/>
<enum-item name='HERO' comment='Set after assigning the Hero status during adventure mode character creation, produces the vanguard of destiny description in legends mode.'/>
<enum-item name='DEMIGOD' comment='Set after assigning the Demigod status during adventure mode character creation, produces the divine parentage description in legends mode.'/>
<enum-item name='POTENTIAL_CIVILIZED_ACTOR'/>
<enum-item name='CHECK_FOR_POSITION_CLAIM'/>
<enum-item name='POTENTIAL_PLOTTER_ACTOR'/>
</enum-type>

<struct-type type-name='nemesis_record' key-field='id' instance-vector='$global.world.nemesis.all' original-name='nemesisst'>
Expand All @@ -109,11 +112,11 @@
<int32_t ref-target='nemesis_record'/>
</stl-vector>

<int16_t name='unk10' init-value='-1'/>
<int32_t name='unk11' init-value='-1'/>
<int32_t name='unk12' init-value='-1'/>
<int32_t name='unk_v47_1'/>
<int32_t name='unk_v47_2'/>
<int16_t name='activeplotindex' init-value='-1'/>
<int32_t name='travel_link_nemid' init-value='-1'/>
<int32_t name='ideal_item_container_id' init-value='-1'/>
<int32_t name='next_plot_year'/>
<int32_t name='next_plot_season_count'/>
<df-flagarray name='flags' index-enum='nemesis_flags'/>
</struct-type>

Expand Down
11 changes: 7 additions & 4 deletions df.projectile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@

<flag-bit name='piercing'/>
<flag-bit name='to_be_deleted'/>
<flag-bit name='unk6'/>
<flag-bit name='unk7'/>
<flag-bit name='hits_friends'/>
<flag-bit name='trap_origin'/>

<flag-bit name='parabolic'/>
<flag-bit name='unk9'/>
<flag-bit name='unk10'/>
<flag-bit name='no_adv_pause'/>
<flag-bit name='vehicle_origin'/>
<flag-bit name='no_collide'/>
<flag-bit name='safe_landing'/>
<flag-bit name='struck'/>
<flag-bit name='auto_hit'/>
<flag-bit name='item_link_deleted'/>
</bitfield-type>

<class-type type-name='projectile' original-name='projst' df-list-link-type='proj_list_link' df-list-link-field='link' key-field='id'>
Expand Down
Loading

0 comments on commit 487f5b2

Please sign in to comment.