df-structures
df-structures copied to clipboard
Dwarf Fortress data structure descriptions
https://github.com/DFHack/df-structures/blob/a04727cc4ec350399ce4d2ded4425f33c50cea50/df.viewscreen.xml#L2677 in my testing it is always 10 for some reason.
itemst vmethod 106 is called to notify of the creation of a masterwork. there are three arguments. the first is definitely a pointer to a unit; the other two are...
According to Rekov (see http://www.bay12forums.com/smf/index.php?topic=164136.msg8306462#msg8306462) world_region_feature.unk_30 (in df.world-data.xml) may be a field controlling cavern lakes. The thread post should cover the info in all details except the field referenced (which...
https://github.com/DFHack/df-structures/blob/4d8800c87702cbe2324bb50dae79a2c1eeb85983/df.world.xml#L347 Reverse engineered a DF function called by history_eventst constructor. Lua code equivalent: ``` function pushNewCampaignEvent(event_id, mission_report, year, year_tick) local unk_5 = mission_report.unk_5 if unk_5 < 0 or mission_report.campaigns[unk_5].events_count >=...
Reverse engineered a function that finds a site at a tile with certain conditions. Might be useful in determining some site flags. Lua code equivalent here: ``` function getTileSite(x, y,...
There are some unmapped global variables that are named in DF's data segment. For example: ``` .data:00000001410B6620 dq offset aDebugAlwayshap ; "DEBUG_ALWAYSHAPPY" .data:00000001410B6628 dq offset unk_141697472 .data:00000001410B6630 dq offset aDebugNeverbers...
_Originally posted by @ab9rf in https://github.com/DFHack/df-structures/issues/435#issuecomment-903359458_ > My research suggests that we should rename `Bin` to something else. Specifically, `StoreItemInHospital` jobs increment `world.stockpile.num_jobs[Bin]`, even though a "store in hospital" job...
"unk_v40_1" is the target unit's id. For a bolt fired at an archery target, this is set to -1. Falling items/units and siege weapons leave the value as garbage. "proj_unitst"...
This is actually mostly close to a year old by now, when vjek and myself had a conversation regarding some of the unk flags in entities. However, it wasn't recorded...