DFHack / df-structures

Dwarf Fortress data structure descriptions
https://github.com/DFHack/dfhack
118 stars 81 forks source link

Some artifact research #226

Open Putnam3145 opened 6 years ago

Putnam3145 commented 6 years ago

artifact_record.anon_4 is related to the site where an artifact is situated--both are identical to one another on the only artifact genned that wasn't last seen held by a specific individual, that number being the site ID of the site that fortress mode claims the artifact was last seen in.

artifact_record.anon_8 is related to the individual holding an artifact, method of discovery same as above but checking for historical_figure rather than world_site.

artifact_record.anon_9 appears to contain a list of hist figure IDs--only two artifacts in the world I'm testing in have it at all, and both of them have the vector only at size one. One of them only has a single entry, which is identical to anon_8, the other one has a single entry which is not correlated with any particular entry in the artifact record.

artifact_record.anon_11 contains a list of historical figure IDs, probably known past/current holders of the artifact--current holder's hist fig ID is always an entry in the vector, and is sometimes (but not always) the sole entry.

artifact_record.anons_12-16 appear to just be duplicated anons_4-8--no cases where the two are different in 774 artifacts.

artifact_record.anon_17 is always 250, at least in the world I'm testing. I don't know what's up with that.

artifact_record.anon_19 is 3 for artifacts, 4 for codices etc. and 1000000 (!!) for a single artifact, The Glove of Chains, which is unique (as far as I could find) in being destroyed.

artifact_record.flags[1] and artifact_record.flags[2] are related to artifacts being lost/destroyed--every artifact i found which had both flags was lost. The Glove of Chains, which was destroyed, has neither, and indeed no flags set.

Not a pull request because pending more testing.

Putnam3145 commented 6 years ago

anon_5 appears to be related to sites, likely referring to specific building in the site where the artifact is found.

One artifact, a perfect gem, has -2^31 as its anon_19, confusing matters.

lethosor commented 6 years ago

That could be a bitfield, then.