<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mason11987</id>
	<title>Dwarf Fortress Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dwarffortresswiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mason11987"/>
	<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php/Special:Contributions/Mason11987"/>
	<updated>2026-06-25T12:47:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Topic/table/philosophy&amp;diff=259560</id>
		<title>Topic/table/philosophy</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Topic/table/philosophy&amp;diff=259560"/>
		<updated>2021-11-07T18:30:31Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: is conduct not ethics&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class = &amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width: 60%&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;width: 25%;&amp;quot; | Topic&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;width: 50%;&amp;quot; | Description&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;width: 25%;&amp;quot; | Wikipedia link&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;width: 25%;&amp;quot; | Subdivision&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;width: 25%;&amp;quot; | Skills used in research&lt;br /&gt;
|-&lt;br /&gt;
|Nature of beauty&lt;br /&gt;
|Discourse on the nature of beauty&lt;br /&gt;
|[[wikipedia:Beauty (ancient thought)|Beauty (ancient thought)]]&lt;br /&gt;
|Aesthetics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Value of art&lt;br /&gt;
|Discourse on the value of art &lt;br /&gt;
|[[wikipedia:Aesthetics|Aesthetics]]&lt;br /&gt;
|Aesthetics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Belief&lt;br /&gt;
|Discourse on the nature of belief&lt;br /&gt;
|[[wikipedia:Epistemology#Belief|Epistemology § Belief]]&lt;br /&gt;
|Epistemology&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Justification&lt;br /&gt;
|Discourse on the nature of justification&lt;br /&gt;
|[[wikipedia:Epistemology#Justification|Epistemology § Justification]]&lt;br /&gt;
|Epistemology&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Perception&lt;br /&gt;
|Discourse on the nature of perception&lt;br /&gt;
|[[wikipedia:Philosophy of perception|Philosophy of perception]]&lt;br /&gt;
|Epistemology&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Truth&lt;br /&gt;
|Discourse on the nature of truth&lt;br /&gt;
|[[wikipedia:Epistemology#Truth|Epistemology § Truth]]&lt;br /&gt;
|Epistemology&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Individual value&lt;br /&gt;
|Discourse on the meaning of individual happiness&lt;br /&gt;
|[[wikipedia:Value (ethics)#Personal values|Value (ethics) § Personal values]]&lt;br /&gt;
|Ethics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|State consequentialism&lt;br /&gt;
|Discourse on ethics as applied to the benefit of the state&lt;br /&gt;
|[[wikipedia:State consequentialism|State consequentialism]]&lt;br /&gt;
|Ethics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Interpersonal conduct&lt;br /&gt;
|Discourse on ethics as applied to interpersonal conduct&lt;br /&gt;
|[[wikipedia:Value (ethics)#Cultural values|Value (ethics) § Cultural values]]&lt;br /&gt;
|Ethics (applied)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Medical&lt;br /&gt;
|Discourse on medical ethics&lt;br /&gt;
|[[wikipedia:Medical ethics|Medical ethics]]&lt;br /&gt;
|Ethics (applied)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Military&lt;br /&gt;
|Discourse on ethics as applied to war&lt;br /&gt;
|[[wikipedia:Ethics#Military ethics|Ethics § Military ethics]]&lt;br /&gt;
|Ethics (applied)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Analogical inference&lt;br /&gt;
|Analogical inference&lt;br /&gt;
|[[wikipedia:Argument from analogy|Argument from analogy]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Deductive reasoning&lt;br /&gt;
|Deductive reasoning&lt;br /&gt;
|[[wikipedia:Deductive reasoning|Deductive reasoning]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Dialectic reasoning&lt;br /&gt;
|Dialectic reasoning. Books on this topic will instead talk about using the dialogue, as this opens up the dialogue literary form.&lt;br /&gt;
|[[wikipedia:Dialectic|Dialectic]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Direct inference&lt;br /&gt;
|Direct inference&lt;br /&gt;
|[[wikipedia:Statistical syllogism|Statistical syllogism]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Formal reasoning&lt;br /&gt;
|Formal reasoning&lt;br /&gt;
|[[wikipedia:Reason|Reason]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Hypothetical syllogisms&lt;br /&gt;
|Hypothetical syllogisms&lt;br /&gt;
|[[wikipedia:Hypothetical syllogism|Hypothetical syllogism]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Inductive reasoning&lt;br /&gt;
|Inductive reasoning&lt;br /&gt;
|[[wikipedia:Inductive reasoning|Inductive reasoning]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Propositional logic&lt;br /&gt;
|&lt;br /&gt;
|[[wikipedia:Propositional calculus|Propositional calculus]]&lt;br /&gt;
|Logic&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Syllogistic logic&lt;br /&gt;
|Syllogistic logic&lt;br /&gt;
|[[wikipedia:Syllogism|Syllogism]]&lt;br /&gt;
|Logic&lt;br /&gt;
|[[Logician]]&lt;br /&gt;
|-&lt;br /&gt;
|Causation&lt;br /&gt;
|The nature of causation&lt;br /&gt;
|[[wikipedia:Causality|Causality]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Events&lt;br /&gt;
|Discourse on the nature of events&lt;br /&gt;
|[[wikipedia:Event (philosophy)|Event (philosophy)]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Existence&lt;br /&gt;
|The nature of existence.&lt;br /&gt;
|[[wikipedia:Existence|Existence]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Mind body&lt;br /&gt;
|Discourse on the nature of mind and body&lt;br /&gt;
|[[wikipedia:Mind–body problem|Mind–body problem]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Objects and properties&lt;br /&gt;
|The relationship between objects and their properties&lt;br /&gt;
|[[wikipedia:Essence|Essence]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Processes&lt;br /&gt;
|The nature of processes&lt;br /&gt;
|[[wikipedia:Process philosophy|Process philosophy]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Time&lt;br /&gt;
|Discourse on the nature of time&lt;br /&gt;
|[[wikipedia:Time|Time]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Wholes and parts&lt;br /&gt;
|The relationship between wholes and parts&lt;br /&gt;
|[[wikipedia:Mereology|Mereology]]&lt;br /&gt;
|Metaphysics&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Education&lt;br /&gt;
|Education, its forms and recommendations&lt;br /&gt;
|[[wikipedia:Education|Education]]&lt;br /&gt;
|Specialized&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Law&lt;br /&gt;
|Discourse on law&lt;br /&gt;
|[[wikipedia:Law|Law]]&lt;br /&gt;
|Specialized&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Dictionary&lt;br /&gt;
|Dictionaries&lt;br /&gt;
|[[wikipedia:Dictionary|Dictionary]]&lt;br /&gt;
|Specialized (language)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Etymology&lt;br /&gt;
|The notion of etymology&lt;br /&gt;
|[[wikipedia:Etymology|Etymology]]&lt;br /&gt;
|Specialized (language)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Grammar&lt;br /&gt;
|Grammar&lt;br /&gt;
|[[wikipedia:Grammar|Grammar]]&lt;br /&gt;
|Specialized (language)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Diplomacy&lt;br /&gt;
|Discourse on diplomacy&lt;br /&gt;
|[[wikipedia:Diplomacy|Diplomacy]]&lt;br /&gt;
|Specialized (politics)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Economic policy&lt;br /&gt;
|Discourse on economic policy&lt;br /&gt;
|[[wikipedia:Economic policy|Economic policy]]&lt;br /&gt;
|Specialized (politics)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Government forms&lt;br /&gt;
|Discourse on government&lt;br /&gt;
|[[wikipedia:Government|Government]]&lt;br /&gt;
|Specialized (politics)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Social welfare&lt;br /&gt;
|Discourse on social welfare&lt;br /&gt;
|[[wikipedia:Welfare|Welfare]]&lt;br /&gt;
|Specialized (politics)&lt;br /&gt;
|[[Critical thinker]]&lt;br /&gt;
|-&lt;br /&gt;
|Value agendas&lt;br /&gt;
|The philosopher will choose a [[belief]] that they have and write about the &amp;quot;worthlessness/nuances/value of (belief)&amp;quot;. Reading these books will result in a dwarf's (or adventurer's) values changing. {{cite forum|154197.0}} {{cite devlog|2015|07|25}}&lt;br /&gt;
|[[wikipedia:Propaganda|Propaganda]]&lt;br /&gt;
|''n/a''&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=200144</id>
		<title>v0.34:World Sites file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=200144"/>
		<updated>2014-06-24T13:35:47Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* Sites */  Added additional site info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|03:08, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In [[Legends]] Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World Sites file''' named (save name)-world_sites_and_pops.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Population ===&lt;br /&gt;
At the top of the file the text &amp;quot;Civilized World Population&amp;quot; appears with a listing of the total population of &amp;quot;civilized&amp;quot; beings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Civilized World Population&lt;br /&gt;
&lt;br /&gt;
	20499 Dwarves&lt;br /&gt;
	11742 Humans&lt;br /&gt;
	14187 Elves&lt;br /&gt;
	150 Goblins&lt;br /&gt;
	575 Kobolds&lt;br /&gt;
&lt;br /&gt;
	Total: 47153&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sites ===&lt;br /&gt;
Following is a list of all of the sites in the world, they can appear in a few different varieties, some examples:&lt;br /&gt;
&lt;br /&gt;
A site controlled by an entity belonging to a civilization:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1: R lidsimo Gumsekemus, &amp;quot;Strangleechoes the Wretched Delight&amp;quot;, cave&lt;br /&gt;
	Owner: Jibigiseekis, kobolds&lt;br /&gt;
	Parent Civ: Japlolbus, kobolds&lt;br /&gt;
	288 kobolds&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A site controlled by an entity (which is referred to as a parent civ in other cases), and listing a leader located at that site.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Could use verification on how/why a leader is listed and a parent civ is listed as an owner --&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
37: Karaboshkuc, &amp;quot;Heatedcruxes&amp;quot;, fortress&lt;br /&gt;
	Owner: The Autonomous Confederacy, humans&lt;br /&gt;
	law-giver: Sabu Yawntusks, human&lt;br /&gt;
	1 tortoise demon prisoner&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A site not controlled by any entity, simply listing various creates living there.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
6: Ilasavuz, &amp;quot;The Absolute Mine&amp;quot;, cave&lt;br /&gt;
	1 giant bat&lt;br /&gt;
	2 trolls&lt;br /&gt;
	312 bats&lt;br /&gt;
	395 cave swallows&lt;br /&gt;
	453 cave spiders&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- It's possible the following is a feature of a DF mod --&amp;gt;&lt;br /&gt;
A site listed as an &amp;quot;important location&amp;quot; without a proper name, without any inhabitants&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2929: kobold, &amp;quot;Dashedstake&amp;quot;, important location&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Outdoor Animal Populations ===&lt;br /&gt;
Following the site listing, there is a list of Outdoor animal populations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Outdoor Animal Populations (Including Undead)&lt;br /&gt;
	9060 merpeople&lt;br /&gt;
	28388 sperm whale men&lt;br /&gt;
	18120 giant orcas&lt;br /&gt;
	(many more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Underground Animal Populations ===&lt;br /&gt;
Following the site listing, there is a list of Underground animal populations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Underground Animal Populations (Including Undead)&lt;br /&gt;
	11284 gorlaks&lt;br /&gt;
	11270 trolls&lt;br /&gt;
	7123 giant cave spiders&lt;br /&gt;
	5001 giant rats&lt;br /&gt;
	(many more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[XML dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=User_talk:Briess&amp;diff=197214</id>
		<title>User talk:Briess</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=User_talk:Briess&amp;diff=197214"/>
		<updated>2014-03-06T04:57:30Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* Hey! */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{archive|*[[User_talk:Briess/archive1|archive 1]]&lt;br /&gt;
*[[User_talk:Briess/archive2|archive 2]]&lt;br /&gt;
*[[User_talk:Briess/archive3|archive 3]]&lt;br /&gt;
*[[User_talk:Briess/archive4|archive 4]]&lt;br /&gt;
*[[User_talk:Briess/archive5|archive 5]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== German wiki links ==&lt;br /&gt;
&lt;br /&gt;
79.206.195.135 (&amp;lt;s&amp;gt;Gerugon?&amp;lt;/s&amp;gt;) [[DF2012 talk:Quickstart guide#German wiki|set up a German wiki]] and was wondering if you could add an interwiki link for it. --{{User:Lethosor/sig}} 18:42, 18 May 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Sorry for misleading that is't gerugons IP that mine (Kupferdrache in german wiki, i have no account here yet, may be I should add one), but the german wiki is started by gerugon. Great that your replied so quick. I have another request could we get a full list of used namespaces so we don't have to break the layout, which will help us to keep articles up to date, also ist easier to link between the different language versions if the sorting is comparable, also ther is a DF translation project in progress to help this great game to get more attention (at the moment only as mod, but may be we cann get enough support to make it choosable in init.txt wich language should be used. I hope I didn#t forgot anything important. [[Special:Contributions/79.206.195.135|79.206.195.135]] 08:08, 19 May 2013 (UTC)&lt;br /&gt;
:: This should now be active. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 18:48, 10 December 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== File upload rights ==&lt;br /&gt;
&lt;br /&gt;
Hi Briess. I'm currently trying to upload a couple of my images so I can add [http://www.bay12forums.com/smf/index.php?topic=126934.0 my new graphics set] to the [[DF2012:Graphics set repository|Graphics set repository]]. I'm an experienced Wikipedian (the ''real'' Wikipedia, that is, heh), so I was wondering if I should just wait for a few days for file upload permissions (like in Wikipedia) or is it exclusively granted by admins such as yourself? &lt;br /&gt;
&lt;br /&gt;
Also I think the Jolly Bastion graphics set should be added there as well. --[[User:Obsidian Soul|Obsidian Soul]] ([[User talk:Obsidian Soul|talk]]) 03:00, 7 June 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
:I believe it's 4 days and 3 edits, although I might be wrong about the days. Briess should be able to confirm you, but it's probably easier just to make a couple more edits. In the meantime I can upload them for you, but I'd need to know which ones and where to put them. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 20:10, 7 June 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
::Hm, I forgot about the edit count to article space also contributing to the autoconfirmed rights. It's been so long since I had to do this in a wiki, heh. I'll just take a look around and see what I can fix in other articles, then upload them. I'll also take care of the Jolly Bastion set. If you know of any other graphics sets not in the wiki, it would be nice to add them as well for exposure. This is the primary resource when searching for graphics set and I found my first one here. Anyway, thanks. :) --[[User:Obsidian Soul|Obsidian Soul]] ([[User talk:Obsidian Soul|talk]]) 22:07, 7 June 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::[[DF2012:Graphics set repository|Ok done]]. I've added the Jolly Bastion set as well and removed the empty sections.--[[User:Obsidian Soul|Obsidian Soul]] ([[User talk:Obsidian Soul|talk]]) 23:03, 7 June 2013 (UTC)&lt;br /&gt;
::::Awesome.  Sorry I've been away - just to confirm, it is 3 edits to get autoconfirmed (I removed the 4 day requirement a couple of months ago). --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 05:21, 17 June 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Offline HTML Dump ==&lt;br /&gt;
&lt;br /&gt;
Hi Briess. I was wondering if it was possible for an HTML dump of the wiki to be created. That way the wiki can be viewed by DwarfForters like myself with limited/no internet access. I google'd around for mediawiki ways to do this and come up with [http://www.lee.org/blog/2008/08/17/how-to-create-an-html-dump-of-mediawiki/ this method] using the [http://www.mediawiki.org/wiki/Extension%3aDumpHTML DumpHTML] extension. It would be greatly appreciated if this could happen. &amp;lt;small&amp;gt;&amp;amp;ndash; [[template:unsigned|unsigned]] comment by [[User:Bsilvereagle|Bsilvereagle]]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:From what I remember, size is a major issue with this wiki (due to the multiple namespaces). There used to be a dump of the DF2012 namespace listed in the announcements box ([http://dwarffortresswiki.org/index.php?title=Dwarf_Fortress_Wiki:Announcements&amp;amp;oldid=170946]). The link was removed, but apparently it's still accessible. I just downloaded it – it's about 10 MB, and appears to contain the latest revisions of all DF2012 articles (from yesterday, July 7) that I checked (it ''doesn't'' include articles from older namespaces, however). It's an XML dump, though, so I don't know how to make it work with various wiki-viewing tools. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 01:36, 8 July 2013 (UTC)&lt;br /&gt;
:Also: daD generated a basic HTML dump (which may be slightly outdated): [http://www.bay12forums.com/smf/index.php?topic=125494.0]. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 01:40, 8 July 2013 (UTC)&lt;br /&gt;
::Ah, I didn't know those existed. It's looking like daD's dump is what I'm after, it's downloading now. I guess I should have used Google instead of the wiki search bar for searching for offline.... Thanks Lethosor.&lt;br /&gt;
&lt;br /&gt;
== Bot ==&lt;br /&gt;
&lt;br /&gt;
I'm thinking of trying out a bot (not immediately, as it's still experimental), and was wondering if there are any policies regarding their creation here (would I be allowed to create a new account, do you need to test it first, etc.). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 18:55, 25 July 2013 (UTC)&lt;br /&gt;
: Only policies are bots are for people I trust.  I trust you. If you create a new account, I'll set it up with the appropriate flags (just poke me here as you know how wonderful the recent changes list is for new accounts &amp;gt;.&amp;gt;) --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 18:57, 25 July 2013 (UTC)&lt;br /&gt;
:: Thanks :) It does show up on the recent changes differently (at least the way I created it), but just to confirm it's [[User:LethosorBot]]. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 19:32, 25 July 2013 (UTC)&lt;br /&gt;
::: Done!  I also made you (and the bot) an administrator.  No reason not to at this point. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 19:58, 25 July 2013 (UTC)&lt;br /&gt;
:::: Thanks! :) It'll be nice to be able to do some admin-related things when I need to. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 20:25, 25 July 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Extension update ==&lt;br /&gt;
&lt;br /&gt;
You might want to update [[wikipedia:mw:Extension:RegexFunctions|Extension:RegexFunctions]] to 1.4.3 &amp;amp;mdash; the current version has some type of security vulnerability, which looks like it might allow running arbitrary code. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:00, 25 July 2013 (UTC)&lt;br /&gt;
:: Thanks for the heads up.  I've updated the extension. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 08:49, 26 July 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== A Chinese Version WIKI? ==&lt;br /&gt;
&lt;br /&gt;
Hi Briess, I just a new player of DF. This WIKI site is awesome! It is pretty cool to do some translation when I am free. Is it a possible to make a Chinese version site of this? --[[User:Qianbb2004|Qianbb2004]] ([[User_talk:Qianbb2004|talk]]) 15:10, 02 August 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Polish Dwarf Fortress wiki ==&lt;br /&gt;
&lt;br /&gt;
Hello there!&lt;br /&gt;
&lt;br /&gt;
I would like to add a link to Polish Dwarf Fortress wiki, so that it will be possible to connect every article from this page with &amp;lt;nowiki&amp;gt;[[pl:Article name]]&amp;lt;/nowiki&amp;gt; template.&lt;br /&gt;
&lt;br /&gt;
Here is a website: http://pl.dwarffortress.wikia.com/&lt;br /&gt;
and here is a main page: http://pl.dwarffortress.wikia.com/wiki/Dwarf_Fortress_Wiki&lt;br /&gt;
&lt;br /&gt;
Thank you in advance, --[[User:Marzecki|Marzecki]] ([[User talk:Marzecki|talk]]) 14:23, 30 August 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
:: Is there a chance and possibility to link Polish Dwarf Fortress Wikia on this wiki? Please, someone. Many of the players are visiting English Wiki, and some of them doesn't even know about existence of Polish Wiki! Part of them are teens, which english language level is poor - native language wiki is for them! Please someone :D --[[User:Marzecki|Marzecki]] ([[User talk:Marzecki|talk]]) 12:53, 2 December 2013 (UTC)&lt;br /&gt;
::: I'll take a look at doing that this weekend. Sorry for the delay! --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 01:17, 7 December 2013 (UTC)&lt;br /&gt;
:::: Finally! Waiting for url update :) --[[User:Marzecki|Marzecki]] ([[User talk:Marzecki|talk]]) 23:00, 9 December 2013 (UTC)&lt;br /&gt;
::: This should now be active. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 18:48, 10 December 2013 (UTC)&lt;br /&gt;
:::: Yes, alias &amp;quot;pl:SiteName&amp;quot; is active! '''But''', there is no &amp;quot;pl.&amp;quot; at the beginning, so it redirects to non-existent wiki, showing up &amp;quot;This wiki was closed&amp;quot;. Example: [[pl:Dwarf_Fortress_Wiki]] (http://dwarffortress.wikia.com/wiki/Dwarf_Fortress_Wiki) should be (http://pl.dwarffortress.wikia.com/wiki/Dwarf_Fortress_Wiki) --[[User:Marzecki|Marzecki]] ([[User talk:Marzecki|talk]]) 23:23, 11 December 2013 (UTC)&lt;br /&gt;
:::: Oops, sorry. I've fixed this. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 17:42, 14 December 2013 (UTC)&lt;br /&gt;
:::: Finally. I hope that now some Polish players will visit Polish wiki and consider writing a few articles. Thank you. --[[User:Marzecki|Marzecki]] ([[User talk:Marzecki|talk]]) 00:58, 15 December 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Spambot activity ==&lt;br /&gt;
Hi, I was wondering whether you could add a filter option to the &amp;quot;recent changes&amp;quot; pages so it could hide user registrations: whenever I want to review the most recent changes it seems that the only things going on are a hundred or so spambot registrations. While I know you're doing the best you can about that, it'd be cool to be able to hide these useless events from view. Thanks! [[Special:Contributions/78.250.226.221|78.250.226.221]] 14:05, 7 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Alternative captchas ==&lt;br /&gt;
&lt;br /&gt;
It seems, from [[wikipedia:mw:Extension:ConfirmEdit|the ConfirmEdit page]], that ReCaptcha might not be as secure as other types of captchas. [http://wiki.uqm.stack.nl/ This wiki] seems to have solved this problem by using FancyCaptcha. While it might not be as secure (according to the page on mediawiki.org), its code is part of the extension, which means it can be easily modified to prevent automated scripts from succeeding, even if they guess the captcha correctly (check the source of the [http://wiki.uqm.stack.nl/script/index.php?title=Special:UserLogin&amp;amp;returnto=Main+Page&amp;amp;type=signup account creation page]). It seems to be reasonably effective - the change was made near the end of July, and only 3 accounts have been [http://wiki.uqm.stack.nl/script/index.php?title=Special%3ALog&amp;amp;type=newusers&amp;amp;user=&amp;amp;page=&amp;amp;year=&amp;amp;month=-1 created] since then. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 14:45, 7 September 2013 (UTC)&lt;br /&gt;
:I'll take a look when I'm over this nasty flu. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 08:28, 9 September 2013 (UTC)&lt;br /&gt;
::I am no longer dying sick, but I do have a business trip and a bunch of work to catch up on. If I haven't gotten to this in a week or so, feel free to yell at me to look at this. Thanks :) --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 02:50, 18 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Italian main ==&lt;br /&gt;
&lt;br /&gt;
Hi, I'm an user of the italian community, I'm here for ask to you if will be possible to create a main page with italian language, and after (subpages) the others page in italian. &lt;br /&gt;
&lt;br /&gt;
In this moment the wiki use this link http://dwarffortresswiki.org/index.php/Main_Page&lt;br /&gt;
but for the italian page we can use http://dwarffortresswiki.org/index.php/Main_Page/italia  or http://dwarffortresswiki.org/index.php/Main_Page/italy or http://dwarffortresswiki.org/index.php/Main_Page_Italy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm here only for ask and for information, if it is possible.&lt;br /&gt;
&lt;br /&gt;
I'll wait answer. &lt;br /&gt;
&lt;br /&gt;
Thanks a lot for your time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NB&lt;br /&gt;
sorry for my english&lt;br /&gt;
&lt;br /&gt;
:(Comment:) [http://mediawiki.org mediawiki.org] does something similar to this - I'm not sure how well it would work for some pages on this wiki, especially for pages that check the /raw subpage (they'd have to be rewritten to use the base raw page), but it's worth looking into.&lt;br /&gt;
:(Regarding the Italian wiki:) There's a [http://pl.dwarffortress.wikia.com/ Polish wiki] set up on Wikia - maybe this could be used as an alternative, and we could link to that (like the Russian/French links on the [[Main Page]]). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 00:43, 20 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
:(comment): i see this www.wikidot.com, is a good site? ([[User talk:Jostino]]) 19:47, 20 September 2013 (GMT+200)&lt;br /&gt;
&lt;br /&gt;
::Wikidot is a pretty good site, as well as Wikia (which may be better, since it uses the same software as this site). Unfortunately, this site uses a lot of extensions and modifications, which would be difficult, or even impossible, to set up on a large hosting site. I'll look more into the possibilities of hosting pages in different languages ''here'', which would be much easier to set up. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:04, 20 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Additional languages ==&lt;br /&gt;
&lt;br /&gt;
It may be considerably easier to set up non-English wikis on this site than on other wikis (as I mentioned above, the extensions and patches we use here would be hard to set up, even on a MediaWiki hosting site). Using this site would allow complex things (mainly templates and functions) to be used without being copied over to other wikis. Also, foreign-language wikis would tend to be a lot smaller than the main English wiki (due to fewer contributors), so size shouldn't be a problem. A few things I've found that could assist with this:&lt;br /&gt;
* Some templates exist that could probably be ported to this wiki: [[Wikipedia:mw:Template:Languages]] uses a lot of #ifexist checks (which could be deleted for languages we won't use at all). [[Wikipedia:meta:Template:Languages]] is similar, but adds &amp;lt;code&amp;gt;uselang=&amp;lt;/code&amp;gt; to change the interface language for foreign-language pages (which could also be specified in the preferences, so I'm not sure how useful this is).&lt;br /&gt;
* [[Wikipedia:mw:Extension:Translate|Extension:Translate]] seems promising (it's used on some WMF wikis) - I haven't looked into it much, but I'll test it out when I get a chance.&lt;br /&gt;
--[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:31, 20 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
Update: [[Wikipedia:mw:Extension:Translate|Extension:Translate]] is working very well - all that's required is adding &amp;amp;lt;translate&amp;gt; tags around the page content. It lets any (logged-in) user edit translations by default, but pages need to be ''marked'' before they can be translated, which needs to be done by an admin by default (I'd recommend allowing at least autoconfirmed users to do this with something like &amp;lt;code&amp;gt;$wgGroupPermissions['autoconfirmed']['pagetranslation'] = true;&amp;lt;/code&amp;gt;). [[Wikipedia:mw:MLEB|MLEB]] is the bundle I'm using - it includes a few useful multilingual extensions, including Translate, Babel, and a language selector (which allows you to change the interface language without messing around with your preferences.) --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 17:26, 21 September 2013 (UTC)&lt;br /&gt;
:Interesting. I like the idea, but I can't do anything about it until I get back from my business trip. It's probably about time to update the mediawiki software too - I'll look into both at that time. Thanks for doing the research on this! --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 17:56, 21 September 2013 (UTC)&lt;br /&gt;
Templates have been harder to work out than content pages - the best method I've found so far is using {{#delay:int:}} to change the displayed text based on the interface language (which I suppose is more useful to end users anyway). Unfortunately, this would require editing MediaWiki: messages, which normal users can't do... :( &amp;lt;br&amp;gt;&lt;br /&gt;
Anyway, MediaWiki 1.22 should be released soon, so it may be worth waiting to upgrade (the only useful thing I've found in 1.21 is Ajax patrolling, which I've already [[User:Lethosor/ajaxpatrol.js|implemented]]). Also, if you end up doing software upgrades, [[Wikipedia:mw:Extension:WikiEditor|Extension:WikiEditor]] and [[Wikipedia:mw:Extension:CodeEditor|Extension:CodeEditor]] (and maybe even [[Wikipedia:mw:Extension:Scribunto|Extension:Scribunto]]) could be useful (WikiEditor is extensible, so it would be easy to set up DFWiki-specific editing customizations - maybe adding a [[CP437]] palette, for example). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 01:49, 22 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
Well, I finally managed to get templates to work with translations (see {{tl|msg}}). Would you be able to deploy the multilingual extensions? (I can make a PR for it, but it'll require running update.php). Once they're installed, I can do the rest of the setup on the wiki. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 03:05, 4 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
(They seem to be [http://lists.wikimedia.org/pipermail/mediawiki-i18n/2013-October/000762.html compatible] with both 1.20 and 1.21.) --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 03:17, 4 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
Unfortunately, I am slammed this week, so I won't really be able to start on them until next week. I am more than willing to set it up starting on next monday though. Only thing with update.php - we will need to make sure it's compatible with postgresql, or modify the extension SQL to be compatible with postgresql. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 17:21, 11 November 2013 (UTC)&lt;br /&gt;
:From what I can tell, the extensions use MediaWiki's database system, which is compatible with several database systems (including PostgreSQL), but I'll see if I can set up a test wiki with PostgreSQL to make sure. (I'm pretty busy this week myself, so I doubt I can get much done on this either :). I was hoping to get this set up in time for the next DF release, which gives us another couple of weeks at least.)--[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:44, 11 November 2013 (UTC)&lt;br /&gt;
::I may be taking some time off early next week. If I do so, I'll start working on this. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 17:21, 12 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
Turns out that the Translate extension SQL is ''not'' compatible with PostgreSQL. I've managed to get the tables created successfully after messing around with a bunch of SQL conversion tools (see [https://gist.github.com/lethosor/7457533 this gist]), but there are still errors in the extension files that prevent the extension from actually working. I'll see if I can fix those, although it might make it hard to update in the future. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 22:44, 13 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
I've made a little progress (the database error on Special:Translate no longer occurs), but translation doesn't work at all for some reason (probably because update.php won't run with the SQL modifications I've made, so the installation isn't complete yet). I'm reluctant to ask, but is MySQL a possible alternative? I've found that it tends to be better-supported than other database systems on MediaWiki (SQLite is supposedly well-supported too, but I doubt it would handle a large wiki very well). There are a variety of conversion tools that look promising, such as [http://dev.mysql.com/doc/workbench/en/wb-migration-database-postgresql.html MySQL workbench], but I haven't tested them to see if/how they work. If not, I'll continue my attempts at patching (which will hopefully work eventually). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 17:37, 24 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
Never mind about that. :) I think I finally got the Translate extension to work with PostgreSQL (fortunately, it was the only one of the six that required any changes). I made a [https://gerrit.wikimedia.org/r/#/c/98045/ patch] for it, and I'll let you know how that turns out. (One thing to note is that the current Translate extension requires the current UniversalLanguageSelector extension as well – that is, not the &amp;lt;code&amp;gt;2013.10&amp;lt;/code&amp;gt; branch – so either waiting for a new release or using the &amp;quot;master&amp;quot; branch would be necessary for now) --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 01:59, 28 November 2013 (UTC)&lt;br /&gt;
:Go figure. I'm going to have limited availability over the thanksgiving holiday, but I'll take a look at things on the server starting when I get back. Also, do you have my skype information? it's the same as my github username. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 05:57, 28 November 2013 (UTC)&lt;br /&gt;
::I must have skipped over your response in the recent changes because I thought it was my own edit. -_- Anyway, Skype probably isn't the best way to contact me, but I'm usually available on the Bay12 forums and Gmail (and probably other places that I can't think of right now). Not that those are equivalent to Skype, but they're probably better than constantly editing talk pages.&lt;br /&gt;
::Also, my patch still has a few bugs, one of which causes deletion jobs to fail and display an ugly error message for every user that happens to run one of those jobs when it's in the queue, so don't include that just yet. (Hopefully I can get that fixed quickly.) --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 01:01, 1 December 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Database error when editing an IP talk page ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mw-content-text&amp;quot;&amp;gt;A database query syntax error has occurred.&lt;br /&gt;
This may indicate a bug in the software.&lt;br /&gt;
The last attempted database query was:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;code&amp;gt;(SQL query hidden)&amp;lt;/code&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
from within function &amp;quot;&amp;lt;code&amp;gt;User::updateNewtalk&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
Database returned error &amp;quot;&amp;lt;samp&amp;gt;23502: ERROR:  null value in column &amp;quot;user_id&amp;quot; violates not-null constraint&lt;br /&gt;
&amp;lt;/samp&amp;gt;&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
I'm not having this issue with 1.21, with a nearly-identical installation (except for the namespace-link patch, and I'm not sure how that could cause it). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 20:37, 24 September 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
: Can you make a branch for me with your code as is on the dfwiki github? --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 21:00, 24 September 2013 (UTC)&lt;br /&gt;
::I meant that the error is occurring on ''this'' wiki - I haven't seen this issue on my own wiki, which uses pretty much the same extensions and settings (except it's using MW 1.21, which would make it hard to merge on GitHub). Fortunately, the problem isn't as severe as I thought - messages still get posted (see [[User talk:127.0.0.1]]), but it's still confusing to editors. I'm wondering if there are other patches you know of (besides the link patch) that have been installed on this wiki since the 1.20 upgrade, or if the database settings were recently changed. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:55, 24 September 2013 (UTC)&lt;br /&gt;
:::Not that I'm aware of. The code on github is what the wiki is using, minus the extensions, I believe (I may turn them into submodules at some point) --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 05:52, 4 October 2013 (UTC)&lt;br /&gt;
I'm guessing this is a PostgreSQL problem (it looks familiar ;) ). A MediaWiki upgrade might fix the problem, but I don't think it's major enough for that to be worthwhile. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 02:01, 28 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
I just checked on the PostgreSQL wiki I set up to test the Translate extension and experienced the exact same problem (on 1.21). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 02:03, 28 November 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Pull requests ==&lt;br /&gt;
&lt;br /&gt;
Do you need to do anything special to merge in changes I made on the dfwiki repo, or are changes I make to master automatically merged? --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 20:41, 3 October 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
: I merged them in, but deploys are manual. For some reason, I didn't get a notification of the pull request, I just fixed that so I do get them again. I'll deploy the change shortly. Also, I'm back from the business trip, yay! --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 05:51, 4 October 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Email Contact ==&lt;br /&gt;
&lt;br /&gt;
Hey there! I'm trying to get ahold of the administration team to talk about a partnership proposal, but I cannot find the proper channel to pursue. If you get the chance, can you drop an email at kristophermsandoval@gmail.com and let me know the proper channel to go through? Thank you so much! I look forward to hearing from you! [[Special:Contributions/24.10.3.183|24.10.3.183]] 19:24, 7 October 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Spam prevention ==&lt;br /&gt;
&lt;br /&gt;
I found a couple interesting strategies that could prevent automated account registration entirely, while still allowing users to create accounts normally:&lt;br /&gt;
* Disabling [[wikipedia:mw:API:Account creation|the account creation API]] would block account registrations using api.php instead of [[Special:CreateAccount]]:&lt;br /&gt;
:&amp;lt;pre&amp;gt;$wgAPIModules['createaccount'] = 'ApiDisabled';&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If it turns out that the spammers use [[Special:CreateAccount]] instead (which is less likely), someone at MediaWiki has [https://www.mediawiki.org/wiki/Talk:Anti-spam_features#random_or_editable_Special:UserLogin_link suggested] renaming [[Special:UserLogin]] (or CreateAccount), which would allow it to be accessible with the navigation links but not by a direct URL. I'm not sure how this would be done, but it's probably possible since changing the wiki language changes special pages' URLs.&lt;br /&gt;
* Cookiepedia has their [http://www.cookipedia.co.uk/recipes_wiki/File:Vhost.conf.txt config file] publicly available, which contains IP's of many spammers. I'm not sure how up-to-date it is, but it appears to be working for them.&lt;br /&gt;
* Lastly, blocking requests with an empty User-Agent header has worked in the past. I doubt many current spambots would be blocked by this trick, however.&lt;br /&gt;
It may even be possible to remove captchas entirely if one of these methods works, which would be a lot less irritating for new users. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:46, 11 December 2013 (UTC)&lt;br /&gt;
: Unfortunately, we already disable API account creation, and I block a bunch of IPs very aggressively at the nginx layer (updated via cron job daily). I haven't done anything with user-agent yet, but that may be worth looking into. --21:51, 11 December 2013 (UTC)&lt;br /&gt;
:: Looks like I forgot to check the settings again. -_- I've managed to find a simple method that prevents [[Special:CreateAccount]] from working when accessed directly, which I put on Github in the &amp;lt;code&amp;gt;test-login&amp;lt;/code&amp;gt; branch. I'm not sure how effective it is – the alternate captcha method above may be a better solution. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 22:12, 11 December 2013 (UTC)&lt;br /&gt;
:: I've also found that it's possible to change the &amp;lt;code&amp;gt;wpRetype&amp;lt;/code&amp;gt; field in the password form, which would prevent (generic) automated submissions. I'm not sure how automated they are, though, since they can get through the captcha (occasionally – maybe they just guess?). --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 22:31, 11 December 2013 (UTC)&lt;br /&gt;
::QuestyCaptcha could probably work too, since it can be easily customized for an individual wiki (although eventually spammers might figure them out). Maybe with DFRawFunctions we could set it up to generate random questions on DF-related things, although that would probably be complicated. (Sorry about the multiple edits/notifications, by the way :)) --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 22:38, 11 December 2013 (UTC)&lt;br /&gt;
I found [[wikipedia:mw:Extension:ConfirmAccount|Extension:ConfirmAccount]], which seemed like it required too much information to be usable on this wiki (biography, real name, an optional resume, etc.), but it turns out that's easy to disable:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$wgConfirmAccountRequestFormItems['RealName']['enabled'] = false;&lt;br /&gt;
$wgConfirmAccountRequestFormItems['Biography']['enabled'] = false;&lt;br /&gt;
$wgConfirmAccountRequestFormItems['CV']['enabled'] = false;&lt;br /&gt;
$wgConfirmAccountRequestFormItems['Notes']['enabled'] = false;&lt;br /&gt;
$wgConfirmAccountRequestFormItems['Links']['enabled'] = false;&lt;br /&gt;
$wgConfirmAccountRequestFormItems['TermsOfService']['enabled'] = false;&lt;br /&gt;
// To allow admins to confirm accounts:&lt;br /&gt;
$wgGroupPermissions['sysop']['confirmaccount'] = true;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This would require users to enter a username and email address to create an account, which would then be confirmed by an admin and by email.&amp;lt;br/&amp;gt;&lt;br /&gt;
Anyway, this would almost certainly stop the spam registrations, although I'm not sure if it's worth it (for admins and users). Any thoughts on this? --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 03:31, 13 December 2013 (UTC)&lt;br /&gt;
: It's certainly an option, but I would prefer something that doesn't require a bunch of administrator action. That would be hell. I'm wondering if renaming the signup page will be enough to combat the issue. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 05:12, 13 December 2013 (UTC)&lt;br /&gt;
: Although, I'm not against requiring an email confirmation, but I would probably have to do some work on the email service to make it behave a little better with more providers. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 05:13, 13 December 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Announcements ==&lt;br /&gt;
&lt;br /&gt;
[[Mediawiki:Siteannounce]] (the announcement box) has gone missing (but [[DF:Announcements]] is still intact). This causes an error with [[User:Briess/hideAnnouncements.js]], although it doesn't appear to be causing any major problems. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 15:59, 21 December 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thanks for catching my edit on {{tl|rounded info box}}. Apparently a &amp;amp;lt;div&amp;gt; tag on the same line as Mediawiki's {| table syntax ''breaks the table''. But not the whole table. Just the ''start'' of the table. The end of the table gets parsed perfectly, which caused things that should have been inside a table to float around the page. And adding a newline before the table in the red box doesn't change anything. (Okay, that's probably because of Mediawiki's whitespace stripping, but that doesn't explain why ''every other box on the page worked'' with my change.) I would have tested it more thoroughly, except I thought that wrapping something in a &amp;amp;lt;div&amp;gt; tag wouldn't do anything. This is why I hate Mediawiki table syntax (although HTML table syntax isn't much better. I tried {{tl|columns}} as a [[User:Lethosor/Main Page|replacement]], but apparently it doesn't work in Firefox :( ) --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 03:24, 23 December 2013 (UTC)&lt;br /&gt;
: No worries. I unfortunately have been very busy, or I would have tried to fix it instead of just reverting it. I'll create an issue soon on github about announcements and I'll discuss what Emily and I talked about with announcements. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 04:34, 23 December 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
[https://www.mediawiki.org/wiki/Extension:DismissableSiteNotice This extension] looks interesting, although it only works well for a single, temporary announcement. It might be possible to modify it, though. --[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 01:38, 12 January 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
I think the problem was that the relevant system message is actually [[Mediawiki:Sitenotice]]. (I thought it was a Mediawiki bug that was causing the history to vanish this whole time). &amp;amp;mdash;[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 03:49, 24 January 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
Anyway, how's [[Dwarf_Fortress_Wiki:Announcements/box|this]] for now? I'm thinking of adding it to the recent changes page (see below), although it might be a little big - I can try adjusting the old JS to work with it, or make it possible to hide them in the preferences. &amp;amp;mdash;[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 20:17, 17 February 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Dutch wiki translation ==&lt;br /&gt;
&lt;br /&gt;
Hi.&lt;br /&gt;
As you probably not know, I am a very fluent Dutch speaker, and I think I could make a dutch translation of the wiki(partially, and definitely not alone). How about it?&lt;br /&gt;
&amp;lt;br /&amp;gt;{{User:Latias1290/Sig/src|13:33|January 15, 2014}}&lt;br /&gt;
: We are looking at solutions for hosting translations locally on the wiki at this time. I'm not sure how long before we're ready, but when we are I'll let you know. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 20:22, 15 January 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
== [[:File:FunComic.png]] missing ==&lt;br /&gt;
&lt;br /&gt;
Pointed out [[Talk:Main_Page#Fun_Comic|here]]. It may be related to [[:File:Roach.png]]'s disappearance a while back, although that image (and the others) are working now. &amp;amp;mdash;[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 21:28, 23 January 2014 (UTC)&lt;br /&gt;
:Rebuilding all images now. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 21:54, 23 January 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Recent changes text ==&lt;br /&gt;
&lt;br /&gt;
 The Community Portal is a helpful resource for filtering through recent changes.&lt;br /&gt;
Any idea where this text is coming from? Passing &amp;quot;uselang=qqx&amp;quot; (which usually displays the message names) does nothing: [http://i.imgur.com/ZBH6hcJ.png]. Searching the wiki repo also turns up nothing.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;mdash;[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 22:23, 8 February 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
:I honestly have no idea. --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 04:36, 12 February 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
::It turns out it is, in fact, [[MediaWiki:Recentchangestext]] (see the title of this section). I found it on [[Special:Allmessages]], but it's strange that it doesn't show up with uselang=qqx. &amp;amp;mdash;[[User:Lethosor|&amp;lt;span style=&amp;quot;color:#074&amp;quot;&amp;gt;Lethosor&amp;lt;/span&amp;gt;]] ([[User talk:Lethosor|&amp;lt;span style=&amp;quot;color:#092&amp;quot;&amp;gt;talk&amp;lt;/span&amp;gt;]]) 19:47, 17 February 2014 (UTC)&lt;br /&gt;
::: welp --[[User:Briess|Briess]] ([[User talk:Briess|talk]]) 19:56, 17 February 2014 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Hey! ==&lt;br /&gt;
&lt;br /&gt;
Kind of crazy that I just today decided to take a look here and sign in and saw a &amp;quot;new message&amp;quot; from you from April 2013 :P.  Glad to see you guys are going strong still!  I might take a look around and see if I can help some for the '''hopefully''' soon to come release :).  [[User:Mason11987|Mason]] &amp;lt;sup&amp;gt;([[User talk:Mason11987|T]]-[[Special:Contributions/Mason11987|C]])&amp;lt;/sup&amp;gt; 04:57, 6 March 2014 (UTC)&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:XML_dump&amp;diff=164700</id>
		<title>v0.34:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:XML_dump&amp;diff=164700"/>
		<updated>2012-02-23T03:26:45Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: this is a much bigger change, but I think a holder page is useful with a brief note until we can get it all up correctly here.  Please don't copy paste from the old version without serious editing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|02:39, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
An XML dump of a world's history can be generated from [[Legends]] mode by pressing [x], and will be placed in Dwarf Fortress' root folder.&lt;br /&gt;
&lt;br /&gt;
The XML dump has had significant changes since the [[v0.31:XML dump|v0.31 version]], although that page should be useful until this page can be rewritten.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164699</id>
		<title>v0.34:World Sites file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164699"/>
		<updated>2012-02-23T03:21:17Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: This definitely could use some additions, but it's a decent start.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|03:08, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In [[Legends]] Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World Sites file''' named (save name)-world_sites_and_pops.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Population ===&lt;br /&gt;
At the top of the file the text &amp;quot;Civilized World Population&amp;quot; appears with a listing of the total population of &amp;quot;civilized&amp;quot; beings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Civilized World Population&lt;br /&gt;
&lt;br /&gt;
	20499 Dwarves&lt;br /&gt;
	11742 Humans&lt;br /&gt;
	14187 Elves&lt;br /&gt;
	150 Goblins&lt;br /&gt;
	575 Kobolds&lt;br /&gt;
&lt;br /&gt;
	Total: 47153&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Sites ===&lt;br /&gt;
Following is a list of all of the sites in the world, they can appear in a few different varities, some examples:&lt;br /&gt;
&lt;br /&gt;
A site controlled by an entity belonging to a civilization:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1: R lidsimo Gumsekemus, &amp;quot;Strangleechoes the Wretched Delight&amp;quot;, cave&lt;br /&gt;
	Owner: Jibigiseekis, kobolds&lt;br /&gt;
	Parent Civ: Japlolbus, kobolds&lt;br /&gt;
	288 kobolds&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A site controlled by an entity (which is referred to as a parent civ in other cases), and listing a leader located at that site.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Could use verification on how/why a leader is listed and a parent civ is listed as an owner --&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
37: Karaboshkuc, &amp;quot;Heatedcruxes&amp;quot;, fortress&lt;br /&gt;
	Owner: The Autonomous Confederacy, humans&lt;br /&gt;
	law-giver: Sabu Yawntusks, human&lt;br /&gt;
	1 tortoise demon prisoner&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A site not controlled by any entity, simply listing various creates living there.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
6: Ilasavuz, &amp;quot;The Absolute Mine&amp;quot;, cave&lt;br /&gt;
	1 giant bat&lt;br /&gt;
	2 trolls&lt;br /&gt;
	312 bats&lt;br /&gt;
	395 cave swallows&lt;br /&gt;
	453 cave spiders&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Outdoor Animal Populations ===&lt;br /&gt;
Following the site listing, there is a list of Outdoor animal populations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Outdoor Animal Populations (Including Undead)&lt;br /&gt;
	9060 merpeople&lt;br /&gt;
	28388 sperm whale men&lt;br /&gt;
	18120 giant orcas&lt;br /&gt;
	(many more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Underground Animal Populations ===&lt;br /&gt;
Following the site listing, there is a list of Underground animal populations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Underground Animal Populations (Including Undead)&lt;br /&gt;
	11284 gorlaks&lt;br /&gt;
	11270 trolls&lt;br /&gt;
	7123 giant cave spiders&lt;br /&gt;
	5001 giant rats&lt;br /&gt;
	(many more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[XML dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164697</id>
		<title>v0.34:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164697"/>
		<updated>2012-02-23T03:10:11Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|03:08, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In [[Legends]] Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Name ===&lt;br /&gt;
At the top of the file is the World name, and nickname.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Mareecamo EwŠ&lt;br /&gt;
The Soul-Universe of Enchanting&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Unintelligent Civs ===&lt;br /&gt;
&lt;br /&gt;
Following the world name is a series of names of different unintelligent civs which exist in the world, no further information can be gathered from these files about these civs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Mareecamo EwŠ&lt;br /&gt;
The Soul-Universe of Enchanting&lt;br /&gt;
&lt;br /&gt;
Cave fish men&lt;br /&gt;
Serpent men&lt;br /&gt;
Reptile men&lt;br /&gt;
Bat men&lt;br /&gt;
Antmen&lt;br /&gt;
Cave swallow men&lt;br /&gt;
Olm men&lt;br /&gt;
... (Multiple more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Civilizations ===&lt;br /&gt;
The majority of the useful information in the history file exists within the civilizations, which follow immediately after the unintelligent civs.  A short example civ is shown below, but the components will be viewed in detail afterwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bat men&lt;br /&gt;
Amphibian men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
The Hammer of Seers, Dwarves&lt;br /&gt;
 Worship List&lt;br /&gt;
  Engig the Bright Pearls, deity: metals, jewels, wealth&lt;br /&gt;
  Onget the Fiery Oil, deity: mountains, volcanos&lt;br /&gt;
  Laltur, deity: fortresses&lt;br /&gt;
  Ral Minedirons, deity: minerals&lt;br /&gt;
  Mirstal, deity: music, festivals, song&lt;br /&gt;
  Kogan Coastalpaddled, deity: rivers&lt;br /&gt;
 king List&lt;br /&gt;
  [*] Logem Anvilentrance (b.??? d. 36, Reign Began: 1), *** Original Line, Married (d. 8)&lt;br /&gt;
      4 Children (out-lived 1 of them) -- Ages at death: 32 31 29 (d. 14)&lt;br /&gt;
      Worshipped Onget the Fiery Oil (61%)&lt;br /&gt;
  [*] Bomrek Championboulder (b.7 d. 51, Reign Began: 37), Inherited from mother, Never Married&lt;br /&gt;
      No Children&lt;br /&gt;
      Worshipped Onget the Fiery Oil (94%)&lt;br /&gt;
  [*] Cog Cloisteredrazors (b.???, Reign Began: 52), *** New Line, Married&lt;br /&gt;
      14 Children -- Ages: 62 61 60 59 54 51 36 31 24 18 16 15 12 4&lt;br /&gt;
      Worships Mirstal (32%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Civ Name and Race ====&lt;br /&gt;
The Civ name is at the top of the section for each civ, along with the race of the civ.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Hammer of Seers, Dwarves&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Worship List ====&lt;br /&gt;
If the civ has any Deities or Forces they have ever worshipped then this section will exist, beginning with the text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Worship List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual line refers to a different force or deity.  First the deity name, then whether they are a &amp;quot;deity&amp;quot; or &amp;quot;force&amp;quot;, and finally a list of the [[sphere]]s they belong to, or control.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  Istrath the Gravel of Oiling, deity: earth, wealth&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Leader List ====&lt;br /&gt;
If the civ has had any leaders, they will be listed according to what type of leader they are (king/queen/law-giver/ect.):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; king List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual leader begins with the text &amp;lt;code&amp;gt;[*]&amp;lt;/code&amp;gt;, and has two or three lines.  Those are:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  [*] Logem Anvilentrance (b.??? d. 36, Reign Began: 1), *** Original Line, Married (d. 8)&lt;br /&gt;
      4 Children (out-lived 1 of them) -- Ages at death: 32 31 29 (d. 14)&lt;br /&gt;
      Worshipped Onget the Fiery Oil (61%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*'''Leader Name and Life''': &amp;lt;code&amp;gt; Logem Anvilentrance (b.??? d. 36, Reign Began: 1), *** Original Line, Married (d. 8) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Children''': &amp;lt;code&amp;gt; 4 Children (out-lived 1 of them) -- Ages at death: 32 31 29 (d. 14) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Worship''': &amp;lt;code&amp;gt; Worshipped Onget the Fiery Oil (61%) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Name and Life''' is made up of several pieces of information.&lt;br /&gt;
:*The leaders name: &amp;lt;code&amp;gt;Logem Anvilentrance&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders birth year: &amp;lt;code&amp;gt; (b.???&amp;lt;/code&amp;gt;&lt;br /&gt;
:**This is represented as ??? if the leader was born before history (before year 1).&lt;br /&gt;
:**If there is a year, there is no space between the &amp;quot;b.&amp;quot; and the year.  ex: &amp;lt;code&amp;gt; (b.66&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders death year: &amp;lt;code&amp;gt; d. 36&amp;lt;/code&amp;gt;&lt;br /&gt;
:**If the leader hasn't died, this won't be listed.&lt;br /&gt;
:**There '''is''' a space between the &amp;quot;d.&amp;quot; and the year.&lt;br /&gt;
:*The year the leader's reign began: &amp;lt;code&amp;gt;, Reign Began: 1),&amp;lt;/code&amp;gt;&lt;br /&gt;
:*How the Leader acquired power, either by being the original leader (&amp;lt;code&amp;gt; *** Original Line,&amp;lt;/code&amp;gt;), starting a new line (&amp;lt;code&amp;gt; *** New Line,&amp;lt;/code&amp;gt;), or by inheriting the position (&amp;lt;code&amp;gt; Inherited from &amp;lt;/code&amp;gt;)&lt;br /&gt;
:*If the position was inherited, it will list who they received it from.  The possibilities:&lt;br /&gt;
:**Father - &amp;lt;code&amp;gt; Inherited from father,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Mother - &amp;lt;code&amp;gt; Inherited from mother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandfather - &amp;lt;code&amp;gt; Inherited from paternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandmother - &amp;lt;code&amp;gt; Inherited from paternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandfather - &amp;lt;code&amp;gt; Inherited from maternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandmother - &amp;lt;code&amp;gt; Inherited from maternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Unknown - &amp;lt;code&amp;gt; Inherited from,&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The marriage of this leader.  Either: &amp;lt;code&amp;gt; Never Married&amp;lt;/code&amp;gt; or  &amp;lt;code&amp;gt; Married&amp;lt;/code&amp;gt;&lt;br /&gt;
:*If the leader has married, and the spouse died, it'll list the year they died &amp;lt;code&amp;gt; Married (d. 8)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Children''' is made up of several pieces of information about a leader's children (if any)&lt;br /&gt;
:*Number of children: &amp;lt;code&amp;gt;No Children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1 Child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x Children&amp;lt;/code&amp;gt;, where &amp;quot;x&amp;quot; is the number of children &amp;gt;1&lt;br /&gt;
:*Number of outlived children, which is some number less than or equal to the number of children: &amp;lt;code&amp;gt; (out-lived 9 of them) &amp;lt;/code&amp;gt;.  If the leader outlived none, then this part won't be given.&lt;br /&gt;
:*Ages (at death) of children.  Listed with &amp;lt;code&amp;gt;-- Ages at death: &amp;lt;/code&amp;gt; if the leader has died, otherwise with &amp;lt;code&amp;gt;-- Ages&amp;lt;/code&amp;gt;&lt;br /&gt;
:**It will list as &amp;quot;Ages&amp;quot; even if there was only one child.&lt;br /&gt;
:*The ages at death will be listed as numbers separated by spaces: (&amp;lt;code&amp;gt;37 31 27 9&amp;lt;/code&amp;gt;), or if the child was outlived, with the year they died: (&amp;lt;code&amp;gt;(d. 32) (d. 29) (d. 8)&amp;lt;/code&amp;gt;)&lt;br /&gt;
:**There aren't always the right number of items in this list, at times some children ages might not be listed.{{verify}}&lt;br /&gt;
&lt;br /&gt;
*'''Leader Worship''' gives information about the leader's deity/force of worship, if they did not worship, this line won't exist.&lt;br /&gt;
:*Worship object name: &amp;lt;code&amp;gt;Worshipped Onget the Fiery Oil&amp;lt;/code&amp;gt;&lt;br /&gt;
:*Degree of worship: &amp;lt;code&amp;gt;(61%)&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Between 1% and 100% inclusive.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[Legends|Legends Mode]]&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
* [[XML dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164696</id>
		<title>v0.34:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164696"/>
		<updated>2012-02-23T03:08:25Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: Looks like it's almost completely the same, there is one &amp;quot;verify&amp;quot; that will require testing against a large history dump to check&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|03:08, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In [[Legends]] Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Name ===&lt;br /&gt;
At the top of the file is the World name, and nickname.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Mareecamo EwŠ&lt;br /&gt;
The Soul-Universe of Enchanting&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Unintelligent Civs ===&lt;br /&gt;
&lt;br /&gt;
Following the world name is a series of names of different unintelligent civs which exist in the world, no further information can be gathered from these files about these civs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Mareecamo EwŠ&lt;br /&gt;
The Soul-Universe of Enchanting&lt;br /&gt;
&lt;br /&gt;
Cave fish men&lt;br /&gt;
Serpent men&lt;br /&gt;
Reptile men&lt;br /&gt;
Bat men&lt;br /&gt;
Antmen&lt;br /&gt;
Cave swallow men&lt;br /&gt;
Olm men&lt;br /&gt;
... (Multiple more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Civilizations ===&lt;br /&gt;
The majority of the useful information in the history file exists within the civilizations, which follow immediately after the unintelligent civs.  A short example civ is shown below, but the components will be viewed in detail afterwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bat men&lt;br /&gt;
Amphibian men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
The Hammer of Seers, Dwarves&lt;br /&gt;
 Worship List&lt;br /&gt;
  Engig the Bright Pearls, deity: metals, jewels, wealth&lt;br /&gt;
  Onget the Fiery Oil, deity: mountains, volcanos&lt;br /&gt;
  Laltur, deity: fortresses&lt;br /&gt;
  Ral Minedirons, deity: minerals&lt;br /&gt;
  Mirstal, deity: music, festivals, song&lt;br /&gt;
  Kogan Coastalpaddled, deity: rivers&lt;br /&gt;
 king List&lt;br /&gt;
  [*] Logem Anvilentrance (b.??? d. 36, Reign Began: 1), *** Original Line, Married (d. 8)&lt;br /&gt;
      4 Children (out-lived 1 of them) -- Ages at death: 32 31 29 (d. 14)&lt;br /&gt;
      Worshipped Onget the Fiery Oil (61%)&lt;br /&gt;
  [*] Bomrek Championboulder (b.7 d. 51, Reign Began: 37), Inherited from mother, Never Married&lt;br /&gt;
      No Children&lt;br /&gt;
      Worshipped Onget the Fiery Oil (94%)&lt;br /&gt;
  [*] Cog Cloisteredrazors (b.???, Reign Began: 52), *** New Line, Married&lt;br /&gt;
      14 Children -- Ages: 62 61 60 59 54 51 36 31 24 18 16 15 12 4&lt;br /&gt;
      Worships Mirstal (32%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Civ Name and Race ====&lt;br /&gt;
The Civ name is at the top of the section for each civ, along with the race of the civ.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Hammer of Seers, Dwarves&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Worship List ====&lt;br /&gt;
If the civ has any Deities or Forces they have ever worshipped then this section will exist, beginning with the text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Worship List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual line refers to a different force or deity.  First the deity name, then whether they are a &amp;quot;deity&amp;quot; or &amp;quot;force&amp;quot;, and finally a list of the [[sphere]]s they belong to, or control.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  Istrath the Gravel of Oiling, deity: earth, wealth&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Leader List ====&lt;br /&gt;
If the civ has had any leaders, they will be listed according to what type of leader they are (king/queen/law-giver/ect.):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; king List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual leader begins with the text &amp;lt;code&amp;gt;[*]&amp;lt;/code&amp;gt;, and has two or three lines.  Those are:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  [*] Logem Anvilentrance (b.??? d. 36, Reign Began: 1), *** Original Line, Married (d. 8)&lt;br /&gt;
      4 Children (out-lived 1 of them) -- Ages at death: 32 31 29 (d. 14)&lt;br /&gt;
      Worshipped Onget the Fiery Oil (61%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*'''Leader Name and Life''': &amp;lt;code&amp;gt; Logem Anvilentrance (b.??? d. 36, Reign Began: 1), *** Original Line, Married (d. 8) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Children''': &amp;lt;code&amp;gt; 4 Children (out-lived 1 of them) -- Ages at death: 32 31 29 (d. 14) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Worship''': &amp;lt;code&amp;gt; Worshipped Onget the Fiery Oil (61%) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Name and Life''' is made up of several pieces of information.&lt;br /&gt;
:*The leaders name: &amp;lt;code&amp;gt;Logem Anvilentrance&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders birth year: &amp;lt;code&amp;gt; (b.???&amp;lt;/code&amp;gt;&lt;br /&gt;
:**This is represented as ??? if the leader was born before history (before year 1).&lt;br /&gt;
:**If there is a year, there is no space between the &amp;quot;b.&amp;quot; and the year.  ex: &amp;lt;code&amp;gt; (b.66&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders death year: &amp;lt;code&amp;gt; d. 36&amp;lt;/code&amp;gt;&lt;br /&gt;
:**If the leader hasn't died, this won't be listed.&lt;br /&gt;
:**There '''is''' a space between the &amp;quot;d.&amp;quot; and the year.&lt;br /&gt;
:*The year the leader's reign began: &amp;lt;code&amp;gt;, Reign Began: 1),&amp;lt;/code&amp;gt;&lt;br /&gt;
:*How the Leader acquired power, either by being the original leader (&amp;lt;code&amp;gt; *** Original Line,&amp;lt;/code&amp;gt;), starting a new line (&amp;lt;code&amp;gt; *** New Line,&amp;lt;/code&amp;gt;), or by inheriting the position (&amp;lt;code&amp;gt; Inherited from &amp;lt;/code&amp;gt;)&lt;br /&gt;
:*If the position was inherited, it will list who they received it from.  The possibilities:&lt;br /&gt;
:**Father - &amp;lt;code&amp;gt; Inherited from father,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Mother - &amp;lt;code&amp;gt; Inherited from mother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandfather - &amp;lt;code&amp;gt; Inherited from paternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandmother - &amp;lt;code&amp;gt; Inherited from paternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandfather - &amp;lt;code&amp;gt; Inherited from maternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandmother - &amp;lt;code&amp;gt; Inherited from maternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Unknown - &amp;lt;code&amp;gt; Inherited from,&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The marriage of this leader.  Either: &amp;lt;code&amp;gt; Never Married&amp;lt;/code&amp;gt; or  &amp;lt;code&amp;gt; Married&amp;lt;/code&amp;gt;&lt;br /&gt;
:*If the leader has married, and the spouse died, it'll list the year they died &amp;lt;code&amp;gt; Married (d. 8)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Children''' is made up of several pieces of information about a leader's children (if any)&lt;br /&gt;
:*Number of children: &amp;lt;code&amp;gt;No Children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1 Child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x Children&amp;lt;/code&amp;gt;, where &amp;quot;x&amp;quot; is the number of children &amp;gt;1&lt;br /&gt;
:*Number of outlived children, which is some number less than or equal to the number of children: &amp;lt;code&amp;gt; (out-lived 9 of them) &amp;lt;/code&amp;gt;.  If the leader outlived none, then this part won't be given.&lt;br /&gt;
:*Ages (at death) of children.  Listed with &amp;lt;code&amp;gt;-- Ages at death: &amp;lt;/code&amp;gt; if the leader has died, otherwise with &amp;lt;code&amp;gt;-- Ages&amp;lt;/code&amp;gt;&lt;br /&gt;
:**It will list as &amp;quot;Ages&amp;quot; even if there was only one child.&lt;br /&gt;
:*The ages at death will be listed as numbers separated by spaces: (&amp;lt;code&amp;gt;37 31 27 9&amp;lt;/code&amp;gt;), or if the child was outlived, with the year they died: (&amp;lt;code&amp;gt;(d. 32) (d. 29) (d. 8)&amp;lt;/code&amp;gt;)&lt;br /&gt;
:**There aren't always the right number of items in this list, at times some children ages might not be listed.{{verify}}&lt;br /&gt;
&lt;br /&gt;
*'''Leader Worship''' gives information about the leader's deity/force of worship, if they did not worship, this line won't exist.&lt;br /&gt;
:*Worship object name: &amp;lt;code&amp;gt;Worshipped Onget the Fiery Oil&amp;lt;/code&amp;gt;&lt;br /&gt;
:*Degree of worship: &amp;lt;code&amp;gt;(61%)&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Between 1% and 100% inclusive.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164694</id>
		<title>v0.34:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164694"/>
		<updated>2012-02-23T02:40:10Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|02:39, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
* [[XML dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164693</id>
		<title>v0.34:World Sites file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164693"/>
		<updated>2012-02-23T02:40:06Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{quality|Tattered|02:38, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[XML dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:XML_dump&amp;diff=164692</id>
		<title>v0.34:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:XML_dump&amp;diff=164692"/>
		<updated>2012-02-23T02:39:44Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: Created page with &amp;quot;{{av}} {{Quality|Tattered|~~~~~}}  == See Also ==  * World History file * World Sites file&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|02:39, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[World Sites file]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164691</id>
		<title>v0.34:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_History_file&amp;diff=164691"/>
		<updated>2012-02-23T02:39:38Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: Created page with &amp;quot;{{av}} {{Quality|Tattered|~~~~~}}  == See Also ==  * World Sites file * XML Dump&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|02:39, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[World Sites file]]&lt;br /&gt;
* [[XML Dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164690</id>
		<title>v0.34:World Sites file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164690"/>
		<updated>2012-02-23T02:38:59Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{quality|Tattered|02:38, 23 February 2012 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[World History file]]&lt;br /&gt;
* [[XML Dump]]&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164689</id>
		<title>v0.34:World Sites file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.34:World_Sites_file&amp;diff=164689"/>
		<updated>2012-02-23T02:38:09Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: Working on these pages&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{quality|Tattered|02:38, 23 February 2012 (UTC)}}&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=164688</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=164688"/>
		<updated>2012-02-23T02:35:57Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{quality|Exceptional|02:38, 30 April 2011 (UTC)}}An XML dump of a world's history can be generated from [[Legends]] mode by pressing [x], and will be placed in Dwarf Fortress' root folder.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
== world_constructions ==&lt;br /&gt;
&lt;br /&gt;
== artifacts ==&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entities are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== artifact created ===&lt;br /&gt;
(artifact_id) was created in (site_id) by (hist_figure_id)&lt;br /&gt;
* artifact_id&lt;br /&gt;
* unit_id (not sure what this is)&lt;br /&gt;
* hist_figure_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== diplomat lost ===&lt;br /&gt;
(unknown entity) lost a diplomat at (unknown site). They suspected the involvement of (unknown entity);&lt;br /&gt;
* No details exported.&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf revived ===&lt;br /&gt;
(hfid) comes back from the dead as a (ghost) in (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* ghost&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece arch constructed ===&lt;br /&gt;
(hfid) constructed a masterpiece (unknown) architecture for (entity_id) at (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece arch design ===&lt;br /&gt;
(hfid) designed a masterpiece (unknown) architecture for (entity_id) at (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece engraving ===&lt;br /&gt;
(hfid) created a masterful engraving for (entity_id) in (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece food ===&lt;br /&gt;
(hfid) prepared a masterful (UNKNOWN) for (entity_id) in (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece item ===&lt;br /&gt;
(hfid) created a masterful (UNKNOWN) for (entity_id) in (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece item improvement ===&lt;br /&gt;
(hfid) added masterful (UNKNOWN) to a (UNKNOWN) for (entity_id) in (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece lost ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
*Nothing Exported&lt;br /&gt;
&lt;br /&gt;
=== merchant ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
*Nothing exported&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site abandoned ===&lt;br /&gt;
(site_civ_id) of (civ_id) abandoned the settlement at (site_id)&lt;br /&gt;
*civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
=== site died ===&lt;br /&gt;
(site_civ_id) and (civ_id) settlement of (site_id) withered.&lt;br /&gt;
*civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
*attacker_civ_id&lt;br /&gt;
*new_site_civ_id&lt;br /&gt;
*defender_civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;br /&gt;
&lt;br /&gt;
{{Category|Guides}}&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:World_History_file&amp;diff=134129</id>
		<title>v0.31:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:World_History_file&amp;diff=134129"/>
		<updated>2010-12-28T11:12:43Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|11:12, 28 December 2010 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In {{L|Legends}} Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Name ===&lt;br /&gt;
At the top of the file is the World name, and nickname.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ikuinenplaneetta&lt;br /&gt;
The Eternal Planet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Unintelligent Civs ===&lt;br /&gt;
&lt;br /&gt;
Following the world name is a series of names of different unintelligent civs which exist in the world, no further information can be gathered from these files about these civs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ikuinenplaneetta&lt;br /&gt;
The Eternal Planet&lt;br /&gt;
&lt;br /&gt;
Olm men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
Bat men&lt;br /&gt;
Olm men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
... (Multiple more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Civilizations ===&lt;br /&gt;
The majority of the useful information in the history file exists within the civilizations, which follow immediately after the unintelligent civs.  A short example civ is shown below, but the components will be viewed in detail afterwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Olm men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
Antmen&lt;br /&gt;
The Standards of Brushing, Dwarves&lt;br /&gt;
 Worship List&lt;br /&gt;
  Istrath the Gravel of Oiling, deity: earth, wealth&lt;br /&gt;
  Kerlig, deity: fortresses&lt;br /&gt;
 king List&lt;br /&gt;
  [*] Stinthad Paddledrock (b.???, Reign Began: 1), *** Original Line, Never Married&lt;br /&gt;
      No Children&lt;br /&gt;
  [*] Obok Firecrypt (b.??? d. 84, Reign Began: 5), *** New Line, Married (d. 77)&lt;br /&gt;
      14 Children (out-lived 9 of them) -- Ages at death: (d. 32) (d. 29) (d. 8) (d. 16) (d. 16) 67 (d. 30) (d. 30) (d. 48) (d. 48) 37 31 27 9&lt;br /&gt;
      Worshipped Tabmik the Larval Filths (48%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Civ Name and Race ====&lt;br /&gt;
The Civ name is at the top of the section for each civ, along with the race of the civ.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Standards of Brushing, Dwarves&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Worship List ====&lt;br /&gt;
If the civ has any Deities or Forces they have ever worshipped then this section will exist, beginning with the text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Worship List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual line refers to a different force or deity.  First the deity name, then whether they are a &amp;quot;deity&amp;quot; or &amp;quot;force&amp;quot;, and finally a list of the {{L|sphere}}s they belong to, or control.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  Istrath the Gravel of Oiling, deity: earth, wealth&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Leader List ====&lt;br /&gt;
If the civ has had any leaders, they will be listed according to what type of leader they are (king/queen/law-giver/ect.):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; king List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual leader begins with the text &amp;lt;pre&amp;gt;[*]&amp;lt;/pre&amp;gt;, and has two or three lines.  Those are:&lt;br /&gt;
&lt;br /&gt;
  [*] Obok Firecrypt (b.??? d. 84, Reign Began: 5), *** New Line, Married (d. 77)&lt;br /&gt;
      14 Children (out-lived 9 of them) -- Ages at death: (d. 32) (d. 29) (d. 8) (d. 16) (d. 16) 67 (d. 30) (d. 30) (d. 48) (d. 48) 37 31 27 9&lt;br /&gt;
      Worshipped Tabmik the Larval Filths (48%)&lt;br /&gt;
&lt;br /&gt;
*'''Leader Name and Life''': &amp;lt;code&amp;gt; Obok Firecrypt (b.??? d. 84, Reign Began: 5), *** New Line, Married (d. 77) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Children''': &amp;lt;code&amp;gt; 14 Children (out-lived 9 of them) -- Ages at death: (d. 32) (d. 29) (d. 8) (d. 16) (d. 16) 67 (d. 30) (d. 30) (d. 48) (d. 48) 37 31 27 9 &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Worship''': &amp;lt;code&amp;gt; Worshipped Tabmik the Larval Filths (48%) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Name and Life''' is made up of several pieces of information.&lt;br /&gt;
:*The leaders name: &amp;lt;code&amp;gt;Obok Firecrypt&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders birth year: &amp;lt;code&amp;gt; (b.???&amp;lt;/code&amp;gt;&lt;br /&gt;
:**This is represented as ??? if the leader was born before history (before year 1).&lt;br /&gt;
:**If there is a year, there is no space between the &amp;quot;b.&amp;quot; and the year.  ex: &amp;lt;code&amp;gt; (b.66&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders death year: &amp;lt;code&amp;gt; d. 84&amp;lt;/code&amp;gt;&lt;br /&gt;
:**If the leader hasn't died, this won't be listed.&lt;br /&gt;
:**There '''is''' a space between the &amp;quot;d.&amp;quot; and the year.&lt;br /&gt;
:*The year the leader's reign began: &amp;lt;code&amp;gt;, Reign Began: 5),&amp;lt;/code&amp;gt;&lt;br /&gt;
:*How the Leader acquired power, either by being the original leader (&amp;lt;code&amp;gt; *** Original Line,&amp;lt;/code&amp;gt;), starting a new line (&amp;lt;code&amp;gt; *** New Line,&amp;lt;/code&amp;gt;), or by inheriting the position (&amp;lt;code&amp;gt; Inherited from &amp;lt;/code&amp;gt;)&lt;br /&gt;
:*If the position was inherited, it will list who they received it from.  The possibilities:&lt;br /&gt;
:**Father - &amp;lt;code&amp;gt; Inherited from father,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Mother - &amp;lt;code&amp;gt; Inherited from mother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandfather - &amp;lt;code&amp;gt; Inherited from paternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandmother - &amp;lt;code&amp;gt; Inherited from paternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandfather - &amp;lt;code&amp;gt; Inherited from maternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandmother - &amp;lt;code&amp;gt; Inherited from maternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Unknown - &amp;lt;code&amp;gt; Inherited from,&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The marriage of this leader.  Either: &amp;lt;code&amp;gt; Never Married&amp;lt;/code&amp;gt; or  &amp;lt;code&amp;gt; Married&amp;lt;/code&amp;gt;&lt;br /&gt;
:*If the leader has married, and the spouse died, it'll list the year they died &amp;lt;code&amp;gt; Married (d. 77)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Children''' is made up of several pieces of information about a leader's children (if any)&lt;br /&gt;
:*Number of children: &amp;lt;code&amp;gt;No Children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1 Child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x Children&amp;lt;/code&amp;gt;, where &amp;quot;x&amp;quot; is the number of children &amp;gt;1&lt;br /&gt;
:*Number of outlived children, which is some number less than or equal to the number of children: &amp;lt;code&amp;gt; (out-lived 9 of them) &amp;lt;/code&amp;gt;.  If the leader outlived none, then this part won't be given.&lt;br /&gt;
:*Ages (at death) of children.  Listed with &amp;lt;code&amp;gt;-- Ages at death: &amp;lt;/code&amp;gt; if the leader has died, otherwise with &amp;lt;code&amp;gt;-- Ages&amp;lt;/code&amp;gt;&lt;br /&gt;
:**It will list as &amp;quot;Ages&amp;quot; even if there was only one child.&lt;br /&gt;
:*The ages at death will be listed as numbers separated by spaces: (&amp;lt;code&amp;gt;37 31 27 9&amp;lt;/code&amp;gt;), or if the child was outlived, with the year they died: (&amp;lt;code&amp;gt;(d. 32) (d. 29) (d. 8)&amp;lt;/code&amp;gt;)&lt;br /&gt;
:**There aren't always the right number of items in this list, at times some children ages might not be listed.&lt;br /&gt;
&lt;br /&gt;
*'''Leader Worship''' gives information about the leader's deity/force of worship, if they did not worship, this line won't exist.&lt;br /&gt;
:*Worship object name: &amp;lt;code&amp;gt;Worshipped Tabmik the Larval Filths&amp;lt;/code&amp;gt;&lt;br /&gt;
:*Degree of worship: &amp;lt;code&amp;gt;(48%)&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Between 1% and 100% inclusive.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:World_History_file&amp;diff=134128</id>
		<title>40d:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:World_History_file&amp;diff=134128"/>
		<updated>2010-12-28T11:12:07Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: Rated article &amp;quot;Fine&amp;quot; using the rating script&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{quality|Fine|11:12, 28 December 2010 (UTC)}}{{av}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{L|Legends}} Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Name ===&lt;br /&gt;
At the top of the file is the World name, and nickname.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ikuinenplaneetta&lt;br /&gt;
The Eternal Planet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Civilizations ===&lt;br /&gt;
The majority of the useful information in the history file exists within the civilizations, which follow immediately after the name.  A short example civ is shown below, but the components will be viewed in detail afterwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Osmlo Ud”&lt;br /&gt;
The Dimensions of Soul&lt;br /&gt;
&lt;br /&gt;
The Fountain of Entrancing, Dwarves&lt;br /&gt;
 Worship List&lt;br /&gt;
  RŒsen the Silvery Merchants, deity: metals, minerals, jewels, wealth, trade&lt;br /&gt;
  Bufut, deity: fortresses, war, valor&lt;br /&gt;
  ¢k Crestoil the Walled Point, deity: mountains&lt;br /&gt;
  RŒthol Noblereigned, deity: rulership&lt;br /&gt;
  Som, deity: speech&lt;br /&gt;
  B†l the Whiteness of Blueness, deity: the dawn&lt;br /&gt;
  Lemis the Leopard of Roots, deity: animals, plants&lt;br /&gt;
  Inod, deity: boundaries&lt;br /&gt;
  T¡lgil, deity: family, children&lt;br /&gt;
  Iden, deity: the rain&lt;br /&gt;
  Shadmal Sneaksecrets, deity: darkness&lt;br /&gt;
  Tesum, deity: thunder&lt;br /&gt;
 Ruler List&lt;br /&gt;
  [*] Šrith Ringjewel (b.??? d. 22, Reign Began: 1), *** Original Line, Married (d. 99)&lt;br /&gt;
      4 Children -- Ages at death: 21 20 17 15&lt;br /&gt;
      Worshipped B†l the Whiteness of Blueness (61%)&lt;br /&gt;
  [*] Tekkud Honestpaint (b.5, Reign Began: 23), Inherited from father, Married (d. 91)&lt;br /&gt;
      10 Children -- Ages: 94 92 90 87 73 65 40 34 31 26&lt;br /&gt;
      Worships B†l the Whiteness of Blueness (72%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Civ Name and Race ====&lt;br /&gt;
The Civ name is at the top of the section for each civ, along with the race of the civ.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Fountain of Entrancing, Dwarves&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Worship List ====&lt;br /&gt;
If the civ has any Deities or Forces they have ever worshipped then this section will exist, beginning with the text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Worship List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual line refers to a different force or deity.  First the deity name, then whether they are a &amp;quot;deity&amp;quot; or &amp;quot;force&amp;quot;, and finally a list of the {{L|sphere}}s they belong to, or control.   Unlike .31.x versions, these spheres can sometimes be made up of two words, like &amp;quot;the rain&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  RŒsen the Silvery Merchants, deity: metals, minerals, jewels, wealth, trade&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ruler List ====&lt;br /&gt;
If the civ has had any rulers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Ruler List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual ruler begins with the text &amp;lt;pre&amp;gt;[*]&amp;lt;/pre&amp;gt;, and has two or three lines.  Those are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  [*] Šrith Ringjewel (b.??? d. 22, Reign Began: 1), *** Original Line, Married (d. 99)&lt;br /&gt;
      4 Children -- Ages at death: 21 20 17 15&lt;br /&gt;
      Worshipped B†l the Whiteness of Blueness (61%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Ruler Name and Life''': &amp;lt;code&amp;gt; [*] Šrith Ringjewel (b.??? d. 22, Reign Began: 1), *** Original Line, Married (d. 99) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Ruler Children''': &amp;lt;code&amp;gt; 4 Children -- Ages at death: 21 20 17 15 &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Ruler Worship''': &amp;lt;code&amp;gt; Worshipped B†l the Whiteness of Blueness (61%) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Ruler Name and Life''' is made up of several pieces of information.&lt;br /&gt;
:*The rulers name: &amp;lt;code&amp;gt;Šrith Ringjewel&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The rulers birth year: &amp;lt;code&amp;gt; (b.???&amp;lt;/code&amp;gt;&lt;br /&gt;
:**This is represented as ??? if the ruler was born before history (before year 1).&lt;br /&gt;
:**If there is a year, there is no space between the &amp;quot;b.&amp;quot; and the year.  ex: &amp;lt;code&amp;gt; (b.66&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The rulers death year: &amp;lt;code&amp;gt; d. 84&amp;lt;/code&amp;gt;&lt;br /&gt;
:**If the ruler hasn't died, this won't be listed.&lt;br /&gt;
:**There '''is''' a space between the &amp;quot;d.&amp;quot; and the year.&lt;br /&gt;
:*The year the ruler's reign began: &amp;lt;code&amp;gt;, Reign Began: 5),&amp;lt;/code&amp;gt;&lt;br /&gt;
:*How the Ruler acquired power, either by being the original ruler (&amp;lt;code&amp;gt; *** Original Line,&amp;lt;/code&amp;gt;), starting a new line (&amp;lt;code&amp;gt; *** New Line,&amp;lt;/code&amp;gt;), or by inheriting the position (&amp;lt;code&amp;gt; Inherited from &amp;lt;/code&amp;gt;)&lt;br /&gt;
:*If the position was inherited, it will list who they received it from.  The possibilities:&lt;br /&gt;
:**Father - &amp;lt;code&amp;gt; Inherited from father,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Mother - &amp;lt;code&amp;gt; Inherited from mother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandfather - &amp;lt;code&amp;gt; Inherited from paternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandmother - &amp;lt;code&amp;gt; Inherited from paternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandfather - &amp;lt;code&amp;gt; Inherited from maternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandmother - &amp;lt;code&amp;gt; Inherited from maternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Unknown - &amp;lt;code&amp;gt; Inherited from,&amp;lt;/code&amp;gt; (this may only exist in .31.18.  Not yet confirmed in 40d)&lt;br /&gt;
:*The marriage of this ruler.  Either: &amp;lt;code&amp;gt; Never Married&amp;lt;/code&amp;gt; or  &amp;lt;code&amp;gt; Married&amp;lt;/code&amp;gt;&lt;br /&gt;
:*If the ruler has married, and the spouse died, it'll list the year they died &amp;lt;code&amp;gt; Married (d. 77)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Ruler Children''' is made up of several pieces of information about a ruler's children (if any)&lt;br /&gt;
:*Number of children: &amp;lt;code&amp;gt;No Children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1 Child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x Children&amp;lt;/code&amp;gt;, where &amp;quot;x&amp;quot; is the number of children &amp;gt;1&lt;br /&gt;
:*Number of outlived children, which is some number less than or equal to the number of children: &amp;lt;code&amp;gt; (out-lived 9 of them) &amp;lt;/code&amp;gt;.  If the ruler outlived none, then this part won't be given.&lt;br /&gt;
:*Ages (at death) of children.  Listed with &amp;lt;code&amp;gt;-- Ages at death: &amp;lt;/code&amp;gt; if the ruler has died, otherwise with &amp;lt;code&amp;gt;-- Ages&amp;lt;/code&amp;gt;&lt;br /&gt;
:**It will list as &amp;quot;Ages&amp;quot; even if there was only one child.&lt;br /&gt;
:*The ages at death will be listed as numbers separated by spaces: (&amp;lt;code&amp;gt;37 31 27 9&amp;lt;/code&amp;gt;), or if the child was outlived, with the year they died: (&amp;lt;code&amp;gt;(d. 32) (d. 29) (d. 8)&amp;lt;/code&amp;gt;)&lt;br /&gt;
:**There aren't always the right number of items in this list, at times some children ages might not be listed.&lt;br /&gt;
&lt;br /&gt;
*'''Ruler Worship''' gives information about the ruler's deity/force of worship, if they did not worship, this line won't exist.&lt;br /&gt;
:*Worship object name: &amp;lt;code&amp;gt;Worshipped B†l the Whiteness of Blueness&amp;lt;/code&amp;gt;&lt;br /&gt;
:*Degree of worship: &amp;lt;code&amp;gt;(61%)&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Between 1% and 100% inclusive.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=40d:World_History_file&amp;diff=134127</id>
		<title>40d:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=40d:World_History_file&amp;diff=134127"/>
		<updated>2010-12-28T11:11:11Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: from .31.x version, there are some changes though&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|00:51, 21 December 2010 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In {{L|Legends}} Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Name ===&lt;br /&gt;
At the top of the file is the World name, and nickname.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ikuinenplaneetta&lt;br /&gt;
The Eternal Planet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Civilizations ===&lt;br /&gt;
The majority of the useful information in the history file exists within the civilizations, which follow immediately after the name.  A short example civ is shown below, but the components will be viewed in detail afterwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Osmlo Ud”&lt;br /&gt;
The Dimensions of Soul&lt;br /&gt;
&lt;br /&gt;
The Fountain of Entrancing, Dwarves&lt;br /&gt;
 Worship List&lt;br /&gt;
  RŒsen the Silvery Merchants, deity: metals, minerals, jewels, wealth, trade&lt;br /&gt;
  Bufut, deity: fortresses, war, valor&lt;br /&gt;
  ¢k Crestoil the Walled Point, deity: mountains&lt;br /&gt;
  RŒthol Noblereigned, deity: rulership&lt;br /&gt;
  Som, deity: speech&lt;br /&gt;
  B†l the Whiteness of Blueness, deity: the dawn&lt;br /&gt;
  Lemis the Leopard of Roots, deity: animals, plants&lt;br /&gt;
  Inod, deity: boundaries&lt;br /&gt;
  T¡lgil, deity: family, children&lt;br /&gt;
  Iden, deity: the rain&lt;br /&gt;
  Shadmal Sneaksecrets, deity: darkness&lt;br /&gt;
  Tesum, deity: thunder&lt;br /&gt;
 Ruler List&lt;br /&gt;
  [*] Šrith Ringjewel (b.??? d. 22, Reign Began: 1), *** Original Line, Married (d. 99)&lt;br /&gt;
      4 Children -- Ages at death: 21 20 17 15&lt;br /&gt;
      Worshipped B†l the Whiteness of Blueness (61%)&lt;br /&gt;
  [*] Tekkud Honestpaint (b.5, Reign Began: 23), Inherited from father, Married (d. 91)&lt;br /&gt;
      10 Children -- Ages: 94 92 90 87 73 65 40 34 31 26&lt;br /&gt;
      Worships B†l the Whiteness of Blueness (72%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Civ Name and Race ====&lt;br /&gt;
The Civ name is at the top of the section for each civ, along with the race of the civ.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Fountain of Entrancing, Dwarves&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Worship List ====&lt;br /&gt;
If the civ has any Deities or Forces they have ever worshipped then this section will exist, beginning with the text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Worship List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual line refers to a different force or deity.  First the deity name, then whether they are a &amp;quot;deity&amp;quot; or &amp;quot;force&amp;quot;, and finally a list of the {{L|sphere}}s they belong to, or control.   Unlike .31.x versions, these spheres can sometimes be made up of two words, like &amp;quot;the rain&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  RŒsen the Silvery Merchants, deity: metals, minerals, jewels, wealth, trade&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Ruler List ====&lt;br /&gt;
If the civ has had any rulers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Ruler List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual ruler begins with the text &amp;lt;pre&amp;gt;[*]&amp;lt;/pre&amp;gt;, and has two or three lines.  Those are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  [*] Šrith Ringjewel (b.??? d. 22, Reign Began: 1), *** Original Line, Married (d. 99)&lt;br /&gt;
      4 Children -- Ages at death: 21 20 17 15&lt;br /&gt;
      Worshipped B†l the Whiteness of Blueness (61%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''Ruler Name and Life''': &amp;lt;code&amp;gt; [*] Šrith Ringjewel (b.??? d. 22, Reign Began: 1), *** Original Line, Married (d. 99) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Ruler Children''': &amp;lt;code&amp;gt; 4 Children -- Ages at death: 21 20 17 15 &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Ruler Worship''': &amp;lt;code&amp;gt; Worshipped B†l the Whiteness of Blueness (61%) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Ruler Name and Life''' is made up of several pieces of information.&lt;br /&gt;
:*The rulers name: &amp;lt;code&amp;gt;Šrith Ringjewel&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The rulers birth year: &amp;lt;code&amp;gt; (b.???&amp;lt;/code&amp;gt;&lt;br /&gt;
:**This is represented as ??? if the ruler was born before history (before year 1).&lt;br /&gt;
:**If there is a year, there is no space between the &amp;quot;b.&amp;quot; and the year.  ex: &amp;lt;code&amp;gt; (b.66&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The rulers death year: &amp;lt;code&amp;gt; d. 84&amp;lt;/code&amp;gt;&lt;br /&gt;
:**If the ruler hasn't died, this won't be listed.&lt;br /&gt;
:**There '''is''' a space between the &amp;quot;d.&amp;quot; and the year.&lt;br /&gt;
:*The year the ruler's reign began: &amp;lt;code&amp;gt;, Reign Began: 5),&amp;lt;/code&amp;gt;&lt;br /&gt;
:*How the Ruler acquired power, either by being the original ruler (&amp;lt;code&amp;gt; *** Original Line,&amp;lt;/code&amp;gt;), starting a new line (&amp;lt;code&amp;gt; *** New Line,&amp;lt;/code&amp;gt;), or by inheriting the position (&amp;lt;code&amp;gt; Inherited from &amp;lt;/code&amp;gt;)&lt;br /&gt;
:*If the position was inherited, it will list who they received it from.  The possibilities:&lt;br /&gt;
:**Father - &amp;lt;code&amp;gt; Inherited from father,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Mother - &amp;lt;code&amp;gt; Inherited from mother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandfather - &amp;lt;code&amp;gt; Inherited from paternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandmother - &amp;lt;code&amp;gt; Inherited from paternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandfather - &amp;lt;code&amp;gt; Inherited from maternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandmother - &amp;lt;code&amp;gt; Inherited from maternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Unknown - &amp;lt;code&amp;gt; Inherited from,&amp;lt;/code&amp;gt; (this may only exist in .31.18.  Not yet confirmed in 40d)&lt;br /&gt;
:*The marriage of this ruler.  Either: &amp;lt;code&amp;gt; Never Married&amp;lt;/code&amp;gt; or  &amp;lt;code&amp;gt; Married&amp;lt;/code&amp;gt;&lt;br /&gt;
:*If the ruler has married, and the spouse died, it'll list the year they died &amp;lt;code&amp;gt; Married (d. 77)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Ruler Children''' is made up of several pieces of information about a ruler's children (if any)&lt;br /&gt;
:*Number of children: &amp;lt;code&amp;gt;No Children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1 Child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x Children&amp;lt;/code&amp;gt;, where &amp;quot;x&amp;quot; is the number of children &amp;gt;1&lt;br /&gt;
:*Number of outlived children, which is some number less than or equal to the number of children: &amp;lt;code&amp;gt; (out-lived 9 of them) &amp;lt;/code&amp;gt;.  If the ruler outlived none, then this part won't be given.&lt;br /&gt;
:*Ages (at death) of children.  Listed with &amp;lt;code&amp;gt;-- Ages at death: &amp;lt;/code&amp;gt; if the ruler has died, otherwise with &amp;lt;code&amp;gt;-- Ages&amp;lt;/code&amp;gt;&lt;br /&gt;
:**It will list as &amp;quot;Ages&amp;quot; even if there was only one child.&lt;br /&gt;
:*The ages at death will be listed as numbers separated by spaces: (&amp;lt;code&amp;gt;37 31 27 9&amp;lt;/code&amp;gt;), or if the child was outlived, with the year they died: (&amp;lt;code&amp;gt;(d. 32) (d. 29) (d. 8)&amp;lt;/code&amp;gt;)&lt;br /&gt;
:**There aren't always the right number of items in this list, at times some children ages might not be listed.&lt;br /&gt;
&lt;br /&gt;
*'''Ruler Worship''' gives information about the ruler's deity/force of worship, if they did not worship, this line won't exist.&lt;br /&gt;
:*Worship object name: &amp;lt;code&amp;gt;Worshipped B†l the Whiteness of Blueness&amp;lt;/code&amp;gt;&lt;br /&gt;
:*Degree of worship: &amp;lt;code&amp;gt;(61%)&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Between 1% and 100% inclusive.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:World_History_file&amp;diff=133856</id>
		<title>v0.31:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:World_History_file&amp;diff=133856"/>
		<updated>2010-12-21T17:27:26Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|00:51, 21 December 2010 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In {{L|Legends}} Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;br /&gt;
&lt;br /&gt;
== File Breakdown ==&lt;br /&gt;
&lt;br /&gt;
Below the history file will be explained in detail, using portions from an example file to show all of the possibilities.&lt;br /&gt;
&lt;br /&gt;
=== World Name ===&lt;br /&gt;
At the top of the file is the World name, and nickname.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ikuinenplaneetta&lt;br /&gt;
The Eternal Planet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Unintelligent Civs ===&lt;br /&gt;
&lt;br /&gt;
Following the world name is a series of names of different unintelligent civs which exist in the world, no further information can be gathered from these files about these civs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ikuinenplaneetta&lt;br /&gt;
The Eternal Planet&lt;br /&gt;
&lt;br /&gt;
Olm men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
Bat men&lt;br /&gt;
Olm men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
... (Multiple more lines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Civilizations ===&lt;br /&gt;
The majority of the useful information in the history file exists within the civilizations, which follow immediately after the unintelligent civs.  A short example civ is shown below, but the components will be viewed in detail afterwards.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Olm men&lt;br /&gt;
Cave swallow men&lt;br /&gt;
Antmen&lt;br /&gt;
The Standards of Brushing, Dwarves&lt;br /&gt;
 Worship List&lt;br /&gt;
  Istrath the Gravel of Oiling, deity: earth, wealth&lt;br /&gt;
  Kerlig, deity: fortresses&lt;br /&gt;
 king List&lt;br /&gt;
  [*] Stinthad Paddledrock (b.???, Reign Began: 1), *** Original Line, Never Married&lt;br /&gt;
      No Children&lt;br /&gt;
  [*] Obok Firecrypt (b.??? d. 84, Reign Began: 5), *** New Line, Married (d. 77)&lt;br /&gt;
      14 Children (out-lived 9 of them) -- Ages at death: (d. 32) (d. 29) (d. 8) (d. 16) (d. 16) 67 (d. 30) (d. 30) (d. 48) (d. 48) 37 31 27 9&lt;br /&gt;
      Worshipped Tabmik the Larval Filths (48%)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Civ Name and Race ====&lt;br /&gt;
The Civ name is at the top of the section for each civ, along with the race of the civ.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Standards of Brushing, Dwarves&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Worship List ====&lt;br /&gt;
If the civ has any Deities or Forces they have ever worshipped then this section will exist, beginning with the text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; Worship List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual line refers to a different force or deity.  First the deity name, then whether they are a &amp;quot;deity&amp;quot; or &amp;quot;force&amp;quot;, and finally a list of the {{L|sphere}}s they belong to, or control.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  Istrath the Gravel of Oiling, deity: earth, wealth&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Leader List ====&lt;br /&gt;
If the civ has had any leaders, they will be listed according to what type of leader they are (king/queen/law-giver/ect.):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; king List&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each individual leader begins with the text &amp;lt;pre&amp;gt;[*]&amp;lt;/pre&amp;gt;, and has two or three lines.  Those are:&lt;br /&gt;
&lt;br /&gt;
  [*] Obok Firecrypt (b.??? d. 84, Reign Began: 5), *** New Line, Married (d. 77)&lt;br /&gt;
      14 Children (out-lived 9 of them) -- Ages at death: (d. 32) (d. 29) (d. 8) (d. 16) (d. 16) 67 (d. 30) (d. 30) (d. 48) (d. 48) 37 31 27 9&lt;br /&gt;
      Worshipped Tabmik the Larval Filths (48%)&lt;br /&gt;
&lt;br /&gt;
*'''Leader Name and Life''': &amp;lt;code&amp;gt; Obok Firecrypt (b.??? d. 84, Reign Began: 5), *** New Line, Married (d. 77) &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Children''': &amp;lt;code&amp;gt; 14 Children (out-lived 9 of them) -- Ages at death: (d. 32) (d. 29) (d. 8) (d. 16) (d. 16) 67 (d. 30) (d. 30) (d. 48) (d. 48) 37 31 27 9 &amp;lt;/code&amp;gt;&lt;br /&gt;
*'''Leader Worship''': &amp;lt;code&amp;gt; Worshipped Tabmik the Larval Filths (48%) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Name and Life''' is made up of several pieces of information.&lt;br /&gt;
:*The leaders name: &amp;lt;code&amp;gt;Obok Firecrypt&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders birth year: &amp;lt;code&amp;gt; (b.???&amp;lt;/code&amp;gt;&lt;br /&gt;
:**This is represented as ??? if the leader was born before history (before year 1).&lt;br /&gt;
:**If there is a year, there is no space between the &amp;quot;b.&amp;quot; and the year.  ex: &amp;lt;code&amp;gt; (b.66&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The leaders death year: &amp;lt;code&amp;gt; d. 84&amp;lt;/code&amp;gt;&lt;br /&gt;
:**If the leader hasn't died, this won't be listed.&lt;br /&gt;
:**There '''is''' a space between the &amp;quot;d.&amp;quot; and the year.&lt;br /&gt;
:*The year the leader's reign began: &amp;lt;code&amp;gt;, Reign Began: 5),&amp;lt;/code&amp;gt;&lt;br /&gt;
:*How the Leader acquired power, either by being the original leader (&amp;lt;code&amp;gt; *** Original Line,&amp;lt;/code&amp;gt;), starting a new line (&amp;lt;code&amp;gt; *** New Line,&amp;lt;/code&amp;gt;), or by inheriting the position (&amp;lt;code&amp;gt; Inherited from &amp;lt;/code&amp;gt;)&lt;br /&gt;
:*If the position was inherited, it will list who they received it from.  The possibilities:&lt;br /&gt;
:**Father - &amp;lt;code&amp;gt; Inherited from father,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Mother - &amp;lt;code&amp;gt; Inherited from mother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandfather - &amp;lt;code&amp;gt; Inherited from paternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Paternal Grandmother - &amp;lt;code&amp;gt; Inherited from paternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandfather - &amp;lt;code&amp;gt; Inherited from maternal grandfather,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Maternal Grandmother - &amp;lt;code&amp;gt; Inherited from maternal grandmother,&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Unknown - &amp;lt;code&amp;gt; Inherited from,&amp;lt;/code&amp;gt;&lt;br /&gt;
:*The marriage of this leader.  Either: &amp;lt;code&amp;gt; Never Married&amp;lt;/code&amp;gt; or  &amp;lt;code&amp;gt; Married&amp;lt;/code&amp;gt;&lt;br /&gt;
:*If the leader has married, and the spouse died, it'll list the year they died &amp;lt;code&amp;gt; Married (d. 77)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leader Children''' is made up of several pieces of information about a leader's children (if any)&lt;br /&gt;
:*Number of children: &amp;lt;code&amp;gt;No Children&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1 Child&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;x Children&amp;lt;/code&amp;gt;, where &amp;quot;x&amp;quot; is the number of children &amp;gt;1&lt;br /&gt;
:*Number of outlived children, which is some number less than or equal to the number of children: &amp;lt;code&amp;gt; (out-lived 9 of them) &amp;lt;/code&amp;gt;.  If the leader outlived none, then this part won't be given.&lt;br /&gt;
:*Ages (at death) of children.  Listed with &amp;lt;code&amp;gt;-- Ages at death: &amp;lt;/code&amp;gt; if the leader has died, otherwise with &amp;lt;code&amp;gt;-- Ages&amp;lt;/code&amp;gt;&lt;br /&gt;
:**It will list as &amp;quot;Ages&amp;quot; even if there was only one child.&lt;br /&gt;
:*The ages at death will be listed as numbers separated by spaces: (&amp;lt;code&amp;gt;37 31 27 9&amp;lt;/code&amp;gt;), or if the child was outlived, with the year they died: (&amp;lt;code&amp;gt;(d. 32) (d. 29) (d. 8)&amp;lt;/code&amp;gt;)&lt;br /&gt;
:**There aren't always the right number of items in this list, at times some children ages might not be listed.&lt;br /&gt;
&lt;br /&gt;
*'''Leader Worship''' gives information about the leader's deity/force of worship, if they did not worship, this line won't exist.&lt;br /&gt;
:*Worship object name: &amp;lt;code&amp;gt;Worshipped Tabmik the Larval Filths&amp;lt;/code&amp;gt;&lt;br /&gt;
:*Degree of worship: &amp;lt;code&amp;gt;(48%)&amp;lt;/code&amp;gt;&lt;br /&gt;
:**Between 1% and 100% inclusive.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:World_History_file&amp;diff=133836</id>
		<title>v0.31:World History file</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:World_History_file&amp;diff=133836"/>
		<updated>2010-12-21T00:51:28Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: Created page with '{{av}} {{Quality|Tattered|~~~~~}}  In {{L|Legends}} Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those file…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Tattered|00:51, 21 December 2010 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
In {{L|Legends}} Mode, pressing the {{k|p}} (Export Map/Gen information) will create three files in the root directory of DF, one of those files is the '''World History file''' named (save name)-world_history.txt.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Legends&amp;diff=133835</id>
		<title>v0.31:Legends</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Legends&amp;diff=133835"/>
		<updated>2010-12-21T00:37:09Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|14:16, 9 June 2010 (UTC)}}&lt;br /&gt;
'''Legends''' mode is one of the three main methods of interacting with an already generated {{L|World generation|world}}. You cannot start Legends mode (or {{L|Dwarf fortress mode|Fortress}} or {{L|Adventurer mode|Adventurer}} mode) until you create a new world. &lt;br /&gt;
&lt;br /&gt;
Legends mode allows you to inspect the history of a world. Many players choose to design a world where the option '''Reveal all history''' is set to YES. However, if you set the option to NO, then the the vast majority of the world's history will be hidden from Legends mode, and only uncovered by brave adventurers. In fact, there are many ways for an adventurer to uncover the past. Talk to people in civilized sites and they will tell you of their families, surroundings and local histories. Past events can also be found by viewing {{L|coins}} or items with images, or by visiting an abandoned {{L|fortress}}es and viewing the {{L|engraving|engraved}} tiles within.&lt;br /&gt;
&lt;br /&gt;
You don't have to have an adventure or fortress game active in order to use legend mode. Some players simply enjoy Legends mode for the option of looking at the interactive historical map, or to read about the last time their favorite kingdom went to war, or for the ability to export lists of all the sites and governments active in the world.  &lt;br /&gt;
&lt;br /&gt;
== Number of Events Undiscovered ==&lt;br /&gt;
A self-explanatory number indicating how many &amp;quot;legends&amp;quot; are still lost in the mists of time. If you chose to reveal all history during world generation, the number displayed should be 0. Otherwise, better get out there and adventure some more.&lt;br /&gt;
&lt;br /&gt;
== Historical Figures ==&lt;br /&gt;
The number to the right indicates how many historical figures exist in this world's history. Historical figures include entries on {{L|megabeast}}s, {{L|forgotten beast}}s, {{L|demon}}s, gods, {{L|Dwarf|dwarves}}, {{L|human}}s, {{L|goblin}}s, {{L|kobold}}s, and named {{L|creature}}s.&lt;br /&gt;
&lt;br /&gt;
== Sites ==&lt;br /&gt;
The number to the right indicates how many sites have existed throughout this world's history. Sites include things like towns, towers, fortresses, forest retreats, and {{L|cave}}s.&lt;br /&gt;
&lt;br /&gt;
== Regions ==&lt;br /&gt;
A list of the various regions of the world, along with the various historical events that occurred within those regions.&lt;br /&gt;
&lt;br /&gt;
== Civilizations and Entities ==&lt;br /&gt;
The number to the right indicates how many civilizations, local governments, and religions have existed throughout this world's history. The histories of these various groups can be viewed as well, detailing events like when a site was founded, when a person was kidnapped, or when a road was completed.&lt;br /&gt;
&lt;br /&gt;
== Structures ==&lt;br /&gt;
Structures are buildings found throughout the world. Fortress, towers, shops, taverns and more can all be found in this list.&lt;br /&gt;
&lt;br /&gt;
== Historical Map ==&lt;br /&gt;
The historical map is a relatively new and very cool feature of Legends mode. From here you can view the territorial disputes between different civilizations and entities, including those who were destroyed before your starting year. If you are new to Dwarf Fortress, reading the map may be a little difficult, but play around with these buttons and you might get a better grasp of what you are seeing. Press {{k|Enter}} while looking at the map to change between the political and geographical view of the world. The geographic map is colored (blue seas, gray mountains, green forests etc.) while the political map's background is tan (think parchment) with colored fields corresponding to the territories of different civilizations. Civilizations can lay claim to the same area, causing the colored territory markers to overlap. You can also see how territories changes over time by moving 10 or 100 years forward and back through time. Pressing {{k|c}} while looking at the political map will show local government territories instead of civilizations, but that's generally a pretty messy scene.&lt;br /&gt;
&lt;br /&gt;
== The Age of... ==&lt;br /&gt;
During world generation, the Ages are named for the greatest powers extant in the world. In v0.31, megabeasts are nearly immortal during world gen, so history rarely ever advances beyond the &amp;quot;Age of Myth&amp;quot;, although with a small enough world, or a modded game you can get names like &amp;quot;The Age of the Titan and Hydra&amp;quot;. In previous versions, Ages would commonly advance during world generation (e.g. Age of Legends, Age of Heroes, Age of Humans), this is now extremly rare. When you choose to look at the history of an Age, you will be given a list of all historical events in chronological order. Here you can read the battle reports from various wars, or the duels that took place between long dead champions, or the &amp;lt;s&amp;gt;burninations&amp;lt;/s&amp;gt; rampages of megabeasts amongst the peasants.  For a list of ages and their conditions, see [[40d:Calendar#Ages|this page]].&lt;br /&gt;
&lt;br /&gt;
== XML dump ==&lt;br /&gt;
&lt;br /&gt;
Once you've generated a world, you can dump much of the historical data into an XML file for external analysis. The XML dump currently doesn't include every detail of world history but it contains many of the important ones. Be warned that a large world with a thousand years of history can produce an XML dump up to a full gigabyte in size, which may prove unwieldy. Press {{k|x}} while in Legends mode to produce an XML dump (it will be placed in the root Dwarf Fortress directory and named the same as your game's save folder) See [[XML dump]] for information on the XML file's format.&lt;br /&gt;
&lt;br /&gt;
== Export Map/Gen Information.==&lt;br /&gt;
Another option is to export the map/gen information by pressing {{k|p}} in Legends mode. This produces three .txt files that are placed in the root directory of Dwarf Fortress, named after the save file you're viewing:&lt;br /&gt;
# (save name)-world_gen_param.txt - contains the world generation settings. &lt;br /&gt;
# {{L|World History file|(save name)-world_history.txt}} - Includes some information about the deities, and rulers of the Human, Dwarven, Elven, and Goblin civilizations. &lt;br /&gt;
# {{L|World Sites file|(save name)-world_sites_and_pops.txt}}  - Lists the sites' population, owner, parent civilization and warlord. This one will also list all the animal populations above and below ground including demons.&lt;br /&gt;
&lt;br /&gt;
== Export Detailed Map ==&lt;br /&gt;
Pressing {{k|d}} in Legends mode reveals a list of the different kinds map you can export. The Images are exported to the root directory when you highlight the one you want and pressing {{k|Enter}}.&lt;br /&gt;
&lt;br /&gt;
*{{L|Standard biome+site map}}&lt;br /&gt;
*{{L|Elevations incl. lake and ocean floors}}&lt;br /&gt;
*{{L|Elevations respecting water level}}&lt;br /&gt;
*{{L|Temperature}}&lt;br /&gt;
*{{L|Rainfall}}&lt;br /&gt;
*{{L|Drainage}}&lt;br /&gt;
*{{L|Savagery}}&lt;br /&gt;
*{{L|Volcanism}}&lt;br /&gt;
*{{L|Current vegetation}}&lt;br /&gt;
*{{L|evil}}&lt;br /&gt;
*{{L|salinity}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:Standard biome and site map.png|Biome &amp;amp; site map&lt;br /&gt;
Image:World_graphic-el-region5-203-10075.PNG|Elevation incl. lake and ocean floors&lt;br /&gt;
Image:World_graphic-elw-region5-203-10075.PNG|Elevation respecting water level&lt;br /&gt;
Image:World graphic-tmp-region5-203-10075.PNG|Temperature&lt;br /&gt;
Image:World_graphic-rain-region5-203-10075.PNG|Rainfall&lt;br /&gt;
Image:World_graphic-drn-region5-203-10075.PNG|Drainage&lt;br /&gt;
Image:World_graphic-sav-region5-203-10075.PNG|Savagery&lt;br /&gt;
Image:World_graphic-vol-region5-203-10075.PNG|Volcanism&lt;br /&gt;
Image:World_graphic-veg-region5-203-10075.PNG|Current vegetation&lt;br /&gt;
Image:World_graphic-evil-region5-203-10075.PNG|Evil&lt;br /&gt;
Image:World_graphic-sal-region5-203-10075.PNG|Salinity&lt;br /&gt;
Image:modified map.png|Modified&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The last image is produced using the following steps.&lt;br /&gt;
&lt;br /&gt;
1. You need to export Elevations Including Lake and Ocean Floors (this is your height-map), Elevation Respecting Water Level (this is for figuring out ocean boundaries) and Current Vegetation.&lt;br /&gt;
&lt;br /&gt;
2. Open your elevations map in photoshop or paintshop or whatever you use. That's your base layer. Colorize it brownish.&lt;br /&gt;
&lt;br /&gt;
3. Open your water levels elevation map and select the blue, invert and delete everything that isn't water. Place this &amp;quot;water&amp;quot; on a new layer above your brown elevation map. Play with the transparency until you have an effect of shallow coasts and deep oceans, 70-80% looks good. Adjust the color if you think the blue is too dark.&lt;br /&gt;
&lt;br /&gt;
4. Open your vegetation map and paste as a new layer above the water. Colorize it greenish, set the blend mode to &amp;quot;color&amp;quot; - this blends the color/saturation but doesn't mess with the lightness so you can see the elevation under your &amp;quot;foliage&amp;quot;. Blend mode &amp;quot;Hue&amp;quot; has a similar effect, use whichever you prefer. Adjust transparency of this layer (~60%) or you won't have any brown show through.&lt;br /&gt;
&lt;br /&gt;
5. Import the rainfall like above and add as a new layer above the rest. Blend mode Lighten so only the light areas show. You'll see there's only a few gaps you can see through because this is literally all the rain in the world- you only want the heavy parts as &amp;quot;clouds&amp;quot;. If you adjust the brightness you'll create more gaps but your clouds will become darker. Use the curves tool instead- see pic for a nice setting. Then use a weal blur or average effect to take the hard edges off the new clouds.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Legends&amp;diff=133834</id>
		<title>v0.31:Legends</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Legends&amp;diff=133834"/>
		<updated>2010-12-21T00:34:34Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* Export Map/Gen Information. */  Going to create these files soon&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
{{Quality|Fine|14:16, 9 June 2010 (UTC)}}&lt;br /&gt;
'''Legends''' mode is one of the three main methods of interacting with an already generated {{L|World generation|world}}. You cannot start Legends mode (or {{L|Dwarf fortress mode|Fortress}} or {{L|Adventurer mode|Adventurer}} mode) until you create a new world. &lt;br /&gt;
&lt;br /&gt;
Legends mode allows you to inspect the history of a world. Many players choose to design a world where the option '''Reveal all history''' is set to YES. However, if you set the option to NO, then the the vast majority of the world's history will be hidden from Legends mode, and only uncovered by brave adventurers. In fact, there are many ways for an adventurer to uncover the past. Talk to people in civilized sites and they will tell you of their families, surroundings and local histories. Past events can also be found by viewing {{L|coins}} or items with images, or by visiting an abandoned {{L|fortress}}es and viewing the {{L|engraving|engraved}} tiles within.&lt;br /&gt;
&lt;br /&gt;
You don't have to have an adventure or fortress game active in order to use legend mode. Some players simply enjoy Legends mode for the option of looking at the interactive historical map, or to read about the last time their favorite kingdom went to war, or for the ability to export lists of all the sites and governments active in the world.  &lt;br /&gt;
&lt;br /&gt;
== Number of Events Undiscovered ==&lt;br /&gt;
A self-explanatory number indicating how many &amp;quot;legends&amp;quot; are still lost in the mists of time. If you chose to reveal all history during world generation, the number displayed should be 0. Otherwise, better get out there and adventure some more.&lt;br /&gt;
&lt;br /&gt;
== Historical Figures ==&lt;br /&gt;
The number to the right indicates how many historical figures exist in this world's history. Historical figures include entries on {{L|megabeast}}s, {{L|forgotten beast}}s, {{L|demon}}s, gods, {{L|Dwarf|dwarves}}, {{L|human}}s, {{L|goblin}}s, {{L|kobold}}s, and named {{L|creature}}s.&lt;br /&gt;
&lt;br /&gt;
== Sites ==&lt;br /&gt;
The number to the right indicates how many sites have existed throughout this world's history. Sites include things like towns, towers, fortresses, forest retreats, and {{L|cave}}s.&lt;br /&gt;
&lt;br /&gt;
== Regions ==&lt;br /&gt;
A list of the various regions of the world, along with the various historical events that occurred within those regions.&lt;br /&gt;
&lt;br /&gt;
== Civilizations and Entities ==&lt;br /&gt;
The number to the right indicates how many civilizations, local governments, and religions have existed throughout this world's history. The histories of these various groups can be viewed as well, detailing events like when a site was founded, when a person was kidnapped, or when a road was completed.&lt;br /&gt;
&lt;br /&gt;
== Structures ==&lt;br /&gt;
Structures are buildings found throughout the world. Fortress, towers, shops, taverns and more can all be found in this list.&lt;br /&gt;
&lt;br /&gt;
== Historical Map ==&lt;br /&gt;
The historical map is a relatively new and very cool feature of Legends mode. From here you can view the territorial disputes between different civilizations and entities, including those who were destroyed before your starting year. If you are new to Dwarf Fortress, reading the map may be a little difficult, but play around with these buttons and you might get a better grasp of what you are seeing. Press {{k|Enter}} while looking at the map to change between the political and geographical view of the world. The geographic map is colored (blue seas, gray mountains, green forests etc.) while the political map's background is tan (think parchment) with colored fields corresponding to the territories of different civilizations. Civilizations can lay claim to the same area, causing the colored territory markers to overlap. You can also see how territories changes over time by moving 10 or 100 years forward and back through time. Pressing {{k|c}} while looking at the political map will show local government territories instead of civilizations, but that's generally a pretty messy scene.&lt;br /&gt;
&lt;br /&gt;
== The Age of... ==&lt;br /&gt;
During world generation, the Ages are named for the greatest powers extant in the world. In v0.31, megabeasts are nearly immortal during world gen, so history rarely ever advances beyond the &amp;quot;Age of Myth&amp;quot;, although with a small enough world, or a modded game you can get names like &amp;quot;The Age of the Titan and Hydra&amp;quot;. In previous versions, Ages would commonly advance during world generation (e.g. Age of Legends, Age of Heroes, Age of Humans), this is now extremly rare. When you choose to look at the history of an Age, you will be given a list of all historical events in chronological order. Here you can read the battle reports from various wars, or the duels that took place between long dead champions, or the &amp;lt;s&amp;gt;burninations&amp;lt;/s&amp;gt; rampages of megabeasts amongst the peasants.  For a list of ages and their conditions, see [[40d:Calendar#Ages|this page]].&lt;br /&gt;
&lt;br /&gt;
== XML dump ==&lt;br /&gt;
&lt;br /&gt;
Once you've generated a world, you can dump much of the historical data into an XML file for external analysis. The XML dump currently doesn't include every detail of world history but it contains many of the important ones. Be warned that a large world with a thousand years of history can produce an XML dump up to a full gigabyte in size, which may prove unwieldy. Press {{k|x}} while in Legends mode to produce an XML dump (it will be placed in the root Dwarf Fortress directory and named the same as your game's save folder) See [[XML dump]] for information on the XML file's format.&lt;br /&gt;
&lt;br /&gt;
== Export Map/Gen Information.==&lt;br /&gt;
Another option is to export the map/gen information by pressing {{k|p}} in Legends mode. This produces three .txt files that are placed in the root directory of Dwarf Fortress, named after the save file you're viewing:&lt;br /&gt;
# (save name)-world_gen_param.txt - contains the world generation settings. &lt;br /&gt;
# [[World History file|(save name)-world_history.txt]] - Includes some information about the deities, and rulers of the Human, Dwarven, Elven, and Goblin civilizations. &lt;br /&gt;
# [[World Sites file|(save name)-world_sites_and_pops.txt]]  - Lists the sites' population, owner, parent civilization and warlord. This one will also list all the animal populations above and below ground including demons.&lt;br /&gt;
&lt;br /&gt;
== Export Detailed Map ==&lt;br /&gt;
Pressing {{k|d}} in Legends mode reveals a list of the different kinds map you can export. The Images are exported to the root directory when you highlight the one you want and pressing {{k|Enter}}.&lt;br /&gt;
&lt;br /&gt;
*{{L|Standard biome+site map}}&lt;br /&gt;
*{{L|Elevations incl. lake and ocean floors}}&lt;br /&gt;
*{{L|Elevations respecting water level}}&lt;br /&gt;
*{{L|Temperature}}&lt;br /&gt;
*{{L|Rainfall}}&lt;br /&gt;
*{{L|Drainage}}&lt;br /&gt;
*{{L|Savagery}}&lt;br /&gt;
*{{L|Volcanism}}&lt;br /&gt;
*{{L|Current vegetation}}&lt;br /&gt;
*{{L|evil}}&lt;br /&gt;
*{{L|salinity}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:Standard biome and site map.png|Biome &amp;amp; site map&lt;br /&gt;
Image:World_graphic-el-region5-203-10075.PNG|Elevation incl. lake and ocean floors&lt;br /&gt;
Image:World_graphic-elw-region5-203-10075.PNG|Elevation respecting water level&lt;br /&gt;
Image:World graphic-tmp-region5-203-10075.PNG|Temperature&lt;br /&gt;
Image:World_graphic-rain-region5-203-10075.PNG|Rainfall&lt;br /&gt;
Image:World_graphic-drn-region5-203-10075.PNG|Drainage&lt;br /&gt;
Image:World_graphic-sav-region5-203-10075.PNG|Savagery&lt;br /&gt;
Image:World_graphic-vol-region5-203-10075.PNG|Volcanism&lt;br /&gt;
Image:World_graphic-veg-region5-203-10075.PNG|Current vegetation&lt;br /&gt;
Image:World_graphic-evil-region5-203-10075.PNG|Evil&lt;br /&gt;
Image:World_graphic-sal-region5-203-10075.PNG|Salinity&lt;br /&gt;
Image:modified map.png|Modified&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The last image is produced using the following steps.&lt;br /&gt;
&lt;br /&gt;
1. You need to export Elevations Including Lake and Ocean Floors (this is your height-map), Elevation Respecting Water Level (this is for figuring out ocean boundaries) and Current Vegetation.&lt;br /&gt;
&lt;br /&gt;
2. Open your elevations map in photoshop or paintshop or whatever you use. That's your base layer. Colorize it brownish.&lt;br /&gt;
&lt;br /&gt;
3. Open your water levels elevation map and select the blue, invert and delete everything that isn't water. Place this &amp;quot;water&amp;quot; on a new layer above your brown elevation map. Play with the transparency until you have an effect of shallow coasts and deep oceans, 70-80% looks good. Adjust the color if you think the blue is too dark.&lt;br /&gt;
&lt;br /&gt;
4. Open your vegetation map and paste as a new layer above the water. Colorize it greenish, set the blend mode to &amp;quot;color&amp;quot; - this blends the color/saturation but doesn't mess with the lightness so you can see the elevation under your &amp;quot;foliage&amp;quot;. Blend mode &amp;quot;Hue&amp;quot; has a similar effect, use whichever you prefer. Adjust transparency of this layer (~60%) or you won't have any brown show through.&lt;br /&gt;
&lt;br /&gt;
5. Import the rainfall like above and add as a new layer above the rest. Blend mode Lighten so only the light areas show. You'll see there's only a few gaps you can see through because this is literally all the rain in the world- you only want the heavy parts as &amp;quot;clouds&amp;quot;. If you adjust the brightness you'll create more gaps but your clouds will become darker. Use the curves tool instead- see pic for a nice setting. Then use a weal blur or average effect to take the hard edges off the new clouds.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133482</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133482"/>
		<updated>2010-12-15T01:08:56Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_events */  adding details&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
== world_constructions ==&lt;br /&gt;
&lt;br /&gt;
== artifacts ==&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== artifact created ===&lt;br /&gt;
'''Details needed'''&lt;br /&gt;
* artifact_id&lt;br /&gt;
* unit_id&lt;br /&gt;
* hist_figure_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece arch constructed ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece engraving ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece food ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece item ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece item improvement ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
* hfid&lt;br /&gt;
* entity_id&lt;br /&gt;
* site_id&lt;br /&gt;
* skill_at_time&lt;br /&gt;
&lt;br /&gt;
=== masterpiece lost ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
*Nothing Exported&lt;br /&gt;
&lt;br /&gt;
=== merchant ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
*Nothing exported&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
*attacker_civ_id&lt;br /&gt;
*new_site_civ_id&lt;br /&gt;
*defender_civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133480</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133480"/>
		<updated>2010-12-15T00:48:08Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_events */  Missing event types&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
== world_constructions ==&lt;br /&gt;
&lt;br /&gt;
== artifacts ==&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== artifact created ===&lt;br /&gt;
'''Details needed'''&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece item ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece engraving ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece food ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece item improvement ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece lost ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== masterpiece arch constructed ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== merchant ===&lt;br /&gt;
'''Details Needed'''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
*attacker_civ_id&lt;br /&gt;
*new_site_civ_id&lt;br /&gt;
*defender_civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133471</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133471"/>
		<updated>2010-12-14T21:10:28Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: missing two top-level sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
== world_constructions ==&lt;br /&gt;
&lt;br /&gt;
== artifacts ==&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
*attacker_civ_id&lt;br /&gt;
*new_site_civ_id&lt;br /&gt;
*defender_civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133401</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133401"/>
		<updated>2010-12-11T06:06:36Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_event_collections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
*attacker_civ_id&lt;br /&gt;
*new_site_civ_id&lt;br /&gt;
*defender_civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, in seconds.  There are 403200 seconds in a year, 1200 seconds in a day, 28 days in a month, and 12 months in a year.&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133400</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133400"/>
		<updated>2010-12-11T06:05:05Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* site taken over */  This is still in .31.18&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
*attacker_civ_id&lt;br /&gt;
*new_site_civ_id&lt;br /&gt;
*defender_civ_id&lt;br /&gt;
*site_civ_id&lt;br /&gt;
*site_id&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133399</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133399"/>
		<updated>2010-12-11T06:03:48Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* remove hf site link */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133398</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133398"/>
		<updated>2010-12-11T06:03:19Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* razed structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''No longer used in 31.18'''&lt;br /&gt;
&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133397</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133397"/>
		<updated>2010-12-11T06:02:26Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* hf razed structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133396</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133396"/>
		<updated>2010-12-11T06:01:47Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* entity created */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
'''.31.18'''&lt;br /&gt;
Appears as an event in the xml file relating to the player founding a site in dwarf fortress mode. Showing your embark group entity_id being created at your fortress site - site_id&lt;br /&gt;
&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133395</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133395"/>
		<updated>2010-12-11T06:00:09Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* created structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
'''Prior to 31.18'''&lt;br /&gt;
&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133394</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133394"/>
		<updated>2010-12-11T05:59:50Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* created site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
The founding of a site by site_civ_id, which is a group that is a member of civ_id.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133393</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133393"/>
		<updated>2010-12-11T05:58:13Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* add hf site link */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
'''Prior to .31.18'''&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133392</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133392"/>
		<updated>2010-12-11T05:57:16Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_events */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 - the point in the year when it took place.  There are 403200 seconds in a year, so a value of 394800 would be a week before the end of the year&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133391</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133391"/>
		<updated>2010-12-11T05:55:45Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_figures */ adding &amp;lt;/zombie&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*zombie - indicator (does not contain any value) to show if the figure is a zombie or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133390</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=133390"/>
		<updated>2010-12-11T05:54:40Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_figures */  I did a test with a fairly large world because I doubted the &amp;quot;mostly&amp;quot; here, but it confirmed it.  I believe this is when the individual does something notable, birth - often.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
**Wetland&lt;br /&gt;
**Grassland&lt;br /&gt;
**Lake&lt;br /&gt;
**Tundra&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
**mountain halls&lt;br /&gt;
**hamlet&lt;br /&gt;
**dark fortress&lt;br /&gt;
**forest retreat&lt;br /&gt;
**town&lt;br /&gt;
**fortress&lt;br /&gt;
**camp&lt;br /&gt;
**lair&lt;br /&gt;
**labyrinth&lt;br /&gt;
**shrine&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain the following information:&lt;br /&gt;
*id - reference number used to identify the historical figure elsewhere&lt;br /&gt;
*name - the name of the historical figure&lt;br /&gt;
*race - the race of the figure, the following have been seen (not present if the figure is a force)&lt;br /&gt;
**alligator&lt;br /&gt;
**bat_giant&lt;br /&gt;
**bear_black&lt;br /&gt;
**bear_grizzly&lt;br /&gt;
**bird_eagle_giant&lt;br /&gt;
**bird_swallow_cave&lt;br /&gt;
**bird_vulture&lt;br /&gt;
**blind_cave_bear&lt;br /&gt;
**blind_cave_ogre&lt;br /&gt;
**cave_dragon&lt;br /&gt;
**camel_1_hump&lt;br /&gt;
**camel_2_hump&lt;br /&gt;
**cheetah&lt;br /&gt;
**cheetah_giant&lt;br /&gt;
**colossus_bronze&lt;br /&gt;
**cougar&lt;br /&gt;
**crocodile_saltwater&lt;br /&gt;
**cyclops&lt;br /&gt;
**demon_x where x is a number&lt;br /&gt;
**dog&lt;br /&gt;
**dragon&lt;br /&gt;
**draltha&lt;br /&gt;
**dwarf&lt;br /&gt;
**elf&lt;br /&gt;
**ettin&lt;br /&gt;
**forgotten_beast_x where x is a number&lt;br /&gt;
**giant&lt;br /&gt;
**goblin&lt;br /&gt;
**gorlak&lt;br /&gt;
**human&lt;br /&gt;
**hungry_head&lt;br /&gt;
**hydra&lt;br /&gt;
**imp_fire&lt;br /&gt;
**jabberer&lt;br /&gt;
**jaguar&lt;br /&gt;
**jaguar_giant&lt;br /&gt;
**kobold&lt;br /&gt;
**leopard&lt;br /&gt;
**leopard_giant&lt;br /&gt;
**lion&lt;br /&gt;
**lion_giant&lt;br /&gt;
**llama&lt;br /&gt;
**minotaur&lt;br /&gt;
**molemarian&lt;br /&gt;
**night_creature_x where x is a number&lt;br /&gt;
**rat&lt;br /&gt;
**sasquatch&lt;br /&gt;
**scorpion_desert_giant&lt;br /&gt;
**spider_cave_giant&lt;br /&gt;
**tiger&lt;br /&gt;
**tiger_giant&lt;br /&gt;
**titan_x where x is a number&lt;br /&gt;
**troglodyte&lt;br /&gt;
**troll&lt;br /&gt;
**voracious_cave_crawler&lt;br /&gt;
**wolf&lt;br /&gt;
**yeti&lt;br /&gt;
&lt;br /&gt;
*caste - the gender of the figure, can be one of the following (not present if the figure is a force)&lt;br /&gt;
**default&lt;br /&gt;
**female&lt;br /&gt;
**male&lt;br /&gt;
*appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly (~80%) the same.&lt;br /&gt;
*birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)&lt;br /&gt;
*birth_seconds72 - unknown&lt;br /&gt;
*death_year - the year of the figure's death, -1 means the figure is still alive&lt;br /&gt;
*death_seconds72 - unknown&lt;br /&gt;
*associated_type - seems to be the job of the figure, the following have been seen&lt;br /&gt;
**administrator&lt;br /&gt;
**animal_caretaker&lt;br /&gt;
**animal_dissector&lt;br /&gt;
**animal_trainer&lt;br /&gt;
**architect&lt;br /&gt;
**armorer&lt;br /&gt;
**axeman&lt;br /&gt;
**baby&lt;br /&gt;
**blacksmith&lt;br /&gt;
**bone_carver&lt;br /&gt;
**bone_setter&lt;br /&gt;
**bowman&lt;br /&gt;
**bowyer&lt;br /&gt;
**brewer&lt;br /&gt;
**butcher&lt;br /&gt;
**carpenter&lt;br /&gt;
**cheese_maker&lt;br /&gt;
**child&lt;br /&gt;
**clerk&lt;br /&gt;
**clothier&lt;br /&gt;
**cook&lt;br /&gt;
**craftsman&lt;br /&gt;
**crossbowman&lt;br /&gt;
**diagnoser&lt;br /&gt;
**drunk&lt;br /&gt;
**dyer&lt;br /&gt;
**engraver&lt;br /&gt;
**farmer&lt;br /&gt;
**fish_cleaner&lt;br /&gt;
**fish_dissector&lt;br /&gt;
**fisherman&lt;br /&gt;
**fishery_worker&lt;br /&gt;
**furnace_operator&lt;br /&gt;
**gem_cutter&lt;br /&gt;
**gem_setter&lt;br /&gt;
**glassmaker&lt;br /&gt;
**hammerman&lt;br /&gt;
**herbalist&lt;br /&gt;
**hunter&lt;br /&gt;
**jeweler&lt;br /&gt;
**lasher&lt;br /&gt;
**leatherworker&lt;br /&gt;
**lye_maker&lt;br /&gt;
**maceman&lt;br /&gt;
**mason&lt;br /&gt;
**master_bowman&lt;br /&gt;
**master_crossbowman&lt;br /&gt;
**master_hammerman&lt;br /&gt;
**master_lasher&lt;br /&gt;
**master_maceman&lt;br /&gt;
**master_pikeman&lt;br /&gt;
**master_spearman&lt;br /&gt;
**master_swordsman&lt;br /&gt;
**master_thief&lt;br /&gt;
**mechanic&lt;br /&gt;
**metalcrafter&lt;br /&gt;
**metalsmith&lt;br /&gt;
**milker&lt;br /&gt;
**miller&lt;br /&gt;
**miner&lt;br /&gt;
**none&lt;br /&gt;
**pikeman&lt;br /&gt;
**planter&lt;br /&gt;
**potash_maker&lt;br /&gt;
**pump_operator&lt;br /&gt;
**ranger&lt;br /&gt;
**recruit&lt;br /&gt;
**siege_engineer&lt;br /&gt;
**siege_operator&lt;br /&gt;
**soap_maker&lt;br /&gt;
**spearman&lt;br /&gt;
**standard&lt;br /&gt;
**stonecrafter&lt;br /&gt;
**surgeon&lt;br /&gt;
**suturer&lt;br /&gt;
**swordsman&lt;br /&gt;
**tanner&lt;br /&gt;
**thief&lt;br /&gt;
**thresher&lt;br /&gt;
**trader&lt;br /&gt;
**trained war&lt;br /&gt;
**weaponsmith&lt;br /&gt;
**weaver&lt;br /&gt;
**wood_burner&lt;br /&gt;
**woodcrafter&lt;br /&gt;
**woodcutter&lt;br /&gt;
**wrestler&lt;br /&gt;
*deity - indicator (does not contain any value) to show if the figure is a deity or not.  &lt;br /&gt;
*skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.  &lt;br /&gt;
*force - indicator (does not contain any value) to show if the figure is a force.  If this node is present, this figure will lack the race and caste nodes.&lt;br /&gt;
&lt;br /&gt;
Other information such as marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) linked to an entity. Observed link types from legends: became  position in the entity(general/queen/etc) / enemy / member / imprisoned&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  Observed link types from legends: marriage / worship / imprisonment&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
After a historical figure (can be multiple / unlisted) is killed, the body is abused. Observed abuses from legends: horribly mutilated / hung from tree / impaled on pikes&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**thief (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== changed creature type ===&lt;br /&gt;
(changer) turns some (changee) into (new race/caste). Seen to happen in legends after changer (always a demon?) imprisons then turns changee into same demon as changer.&lt;br /&gt;
*changee_hfid&lt;br /&gt;
*changer_hfid&lt;br /&gt;
*old_race&lt;br /&gt;
*old_caste&lt;br /&gt;
*new_race&lt;br /&gt;
*new_caste&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** air (suffocated)&lt;br /&gt;
** blood (bled to death)&lt;br /&gt;
** crushed bridge (atom smasher?)&lt;br /&gt;
** dragonfire&lt;br /&gt;
** drown&lt;br /&gt;
** exec burned alive&lt;br /&gt;
** exec crucified&lt;br /&gt;
** exec fet to beasts&lt;br /&gt;
** exec hacked to pieces&lt;br /&gt;
** fire&lt;br /&gt;
** murdered&lt;br /&gt;
** obstacle (being thrown into a wall?)&lt;br /&gt;
** old age&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** thirst&lt;br /&gt;
** trap&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
No long used in 31.18?&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
2 or more (only 2 listed) historical figures reunited.&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** happen upon&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
** 2 lost after giving wounds&lt;br /&gt;
** 2 lost after mutual wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid). Unlisted body part and attack type (smashed/slashed/etc)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid / always a deity?) within an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers won and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
This event ends a war. The info about which entity initiated the negotiations is missing.&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
Some historical figure (unlisted) removes link with entity. Observed link removals in legends: ceased to position / escaped from prison&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
No longer used in 31.18?&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 - the date of the year, format unknown. seconds since 01.01?&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=Talk:Expedition_Leader&amp;diff=127725</id>
		<title>Talk:Expedition Leader</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=Talk:Expedition_Leader&amp;diff=127725"/>
		<updated>2010-09-17T12:57:44Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Shouldn't this link to DF2010: Expedition Leader? [[User:Taerh|Taerh]] 23:17, 16 September 2010 (UTC)&lt;br /&gt;
:Agreed, done. [[User:Mason11987|Mason]] &amp;lt;sup&amp;gt;([[User talk:Mason11987|T]]-[[Special:Contributions/Mason11987|C]])&amp;lt;/sup&amp;gt; 12:57, 17 September 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127702</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127702"/>
		<updated>2010-09-16T23:47:54Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: adding theft&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== theft ===&lt;br /&gt;
A member of attacking_enid stole something from a member of defending_enid at site_id located at coords.  Can include multiple different thefts by different theives from the same location&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127685</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127685"/>
		<updated>2010-09-16T20:05:48Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* '''Multiple different &amp;quot;squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127684</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127684"/>
		<updated>2010-09-16T19:59:40Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_event_collections */  lots of details&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
An abduction by a member of (attacking_enid) of a member of (defending_enid).  They were abducted from (site_id) located at (coords).&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
A beast attacked a member of defending_enid at site_id, located at coords.&lt;br /&gt;
&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
A war, as named, where aggressor_ent_id battled defender_ent_id.  It contains the battles, sieges, and pillaging events listed in eventcol.&lt;br /&gt;
* eventcol (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
This describes a battle between multiple sides.  The battle is part of the war event collection war_eventcol.  The events that make up this collection are individual simple battle events or assaults.  They involve an attacking_hfid and/or a defending_hfid. It occurred at site_id which is located at coords.  &lt;br /&gt;
&lt;br /&gt;
There can be multiple attacking and defending squads made up of non-notable units, their civ they belong to is *_squad_entity_pop.  They contain *_squad_number units of race *_squad_race, of which *_squad_deaths died.  &lt;br /&gt;
&lt;br /&gt;
Also some or all of the important people (attacking_hfid and defending_hfid) may have died.&lt;br /&gt;
&lt;br /&gt;
The outcome is either &amp;quot;defender won&amp;quot; or &amp;quot;attacker won&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* eventcol (multiple?)&lt;br /&gt;
* event (multiple)&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* defending_hfid (multiple)&lt;br /&gt;
* noncom_hfid (multiple) (?)&lt;br /&gt;
* '''Multiple different &amp;quot;attacking squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site (?)&lt;br /&gt;
* '''Multiple different &amp;quot;defending squads&amp;quot; each with these parts&lt;br /&gt;
** defending_squad_race&lt;br /&gt;
** defending_squad_entity_pop&lt;br /&gt;
** defending_squad_number&lt;br /&gt;
** defending_squad_deaths&lt;br /&gt;
** defending_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part'''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
As part of war_eventcol, attacking_enid conquered site_id from defending_enid.&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127682</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127682"/>
		<updated>2010-09-16T19:09:48Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* journey */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* '''Multiple different &amp;quot;squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127680</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127680"/>
		<updated>2010-09-16T19:09:34Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_event_collections */  the ones I've found thus far&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
* ordinal - How many times has this happened (&amp;quot;The Third Siege of Ironhand&amp;quot; would have &amp;lt;ordinal&amp;gt;3&amp;lt;/ordinal&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid&lt;br /&gt;
* defending_hfid&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
''No additional parts''&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* aggressor_ent_id&lt;br /&gt;
* defender_ent_id&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* name&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* site_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacking_hfid (multiple)&lt;br /&gt;
* '''Multiple different &amp;quot;squads&amp;quot; each with these parts&lt;br /&gt;
** attacking_squad_race&lt;br /&gt;
** attacking_squad_entity_pop&lt;br /&gt;
** attacking_squad_number&lt;br /&gt;
** attacking_squad_deaths&lt;br /&gt;
** attacking_squad_site&lt;br /&gt;
* outcome&lt;br /&gt;
&lt;br /&gt;
''' Does not have an &amp;quot;ordinal&amp;quot; part&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
* war_eventcol&lt;br /&gt;
* site_id&lt;br /&gt;
* attacking_enid&lt;br /&gt;
* defending_enid&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127678</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127678"/>
		<updated>2010-09-16T18:53:10Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_event_collections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127677</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127677"/>
		<updated>2010-09-16T18:52:29Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* historical_event_collections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
Each historical event collection contains the following items, as well as additional items depending on it's type:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* start_year - the year in which the event collection started&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* end_year - the year in which the event collection ended&lt;br /&gt;
* start_seconds72 -&lt;br /&gt;
* event - one or more events which are part of this collection&lt;br /&gt;
* type - the type of event collection this is (the different types are listed below)&lt;br /&gt;
* parent_eventcol - Is this event collection part of another event collection?  If so the id of that parent is listed here, otherwise it will be -1&lt;br /&gt;
&lt;br /&gt;
The different types of event collections along with a description and their components are listed below.  It's likely there are more event collections then those listed below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== abduction ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== beast attack ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== duel ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== journey ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== war ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== battle ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== site conquered ===&lt;br /&gt;
'''Description needed'''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127674</id>
		<title>v0.31:XML dump</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:XML_dump&amp;diff=127674"/>
		<updated>2010-09-16T18:31:26Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An XML dump of a world's history can be generated from [[Legends]] mode.&lt;br /&gt;
&lt;br /&gt;
The XML file this produces is currently not well-formed, lacking a root element that encapsulates the other contents of the dump. Some XML manipulation programs may need to have this taken into account to handle the file properly.&lt;br /&gt;
&lt;br /&gt;
The XML dump consists of the following elements:&lt;br /&gt;
&lt;br /&gt;
==regions==&lt;br /&gt;
&lt;br /&gt;
Each dump contains one &amp;lt;regions&amp;gt; element, which contains a large number of &amp;lt;region&amp;gt; elements. Each &amp;lt;region&amp;gt; element has the following attributes stored as elements within it:&lt;br /&gt;
*id - a reference number used to identify the region elsewhere&lt;br /&gt;
*name - the name of the region (eg, &amp;quot;the colorless desert&amp;quot; or &amp;quot;the perplexing forests&amp;quot;). The names are all lower-case.&lt;br /&gt;
*type - the type of region. Types include:&lt;br /&gt;
**Ocean&lt;br /&gt;
**Hills&lt;br /&gt;
**Desert&lt;br /&gt;
**Forest&lt;br /&gt;
**Mountains&lt;br /&gt;
**Glacier&lt;br /&gt;
&lt;br /&gt;
==underground_regions==&lt;br /&gt;
Similar to the &amp;lt;regions&amp;gt; element. The &amp;lt;underground_region&amp;gt; elements contain the following:&lt;br /&gt;
*id - reference number used to identify the region&lt;br /&gt;
*type - can be:&lt;br /&gt;
**cavern&lt;br /&gt;
**magma&lt;br /&gt;
**underworld&lt;br /&gt;
*depth&lt;br /&gt;
&lt;br /&gt;
Note that underground regions don't have names.&lt;br /&gt;
&lt;br /&gt;
==sites==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;site&amp;gt; element contains the following:&lt;br /&gt;
*id - reference number&lt;br /&gt;
*name&lt;br /&gt;
*type&lt;br /&gt;
**city&lt;br /&gt;
**tree city&lt;br /&gt;
**cave&lt;br /&gt;
**dwarf fortress&lt;br /&gt;
*coords - an X, Y coordinate giving the location of the site on the world map.&lt;br /&gt;
&lt;br /&gt;
=== structures ===&lt;br /&gt;
&lt;br /&gt;
Each site may contain a &amp;lt;structures&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
== historical_figures ==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_figure&amp;gt; elements contain only the very most basic information:&lt;br /&gt;
*id&lt;br /&gt;
*name&lt;br /&gt;
&lt;br /&gt;
Other information such as death dates and marriages are stored in the historical_events element.&lt;br /&gt;
&lt;br /&gt;
== entity_populations ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity_population&amp;gt; element contains only a single tag, giving an id number.&lt;br /&gt;
&lt;br /&gt;
== entities ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;entity&amp;gt; element contains an id tag, and may also contain a name tag.&lt;br /&gt;
&lt;br /&gt;
Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.&lt;br /&gt;
&lt;br /&gt;
==historical_events==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;historical_event&amp;gt; element is the most complex. Each contains:&lt;br /&gt;
&lt;br /&gt;
* id - a reference number&lt;br /&gt;
* year - the year in which the event took place&lt;br /&gt;
* seconds72 -&lt;br /&gt;
* type - a label indicating what sort of event this is.&lt;br /&gt;
&lt;br /&gt;
The other elements of the historical_event will depend on the contents of the type element. Types include:&lt;br /&gt;
&lt;br /&gt;
=== add hf hf link ===&lt;br /&gt;
This is an event that links two historical figures (hf) together.  This event could either be a marriage, the beginning of hfid worshipping hfid_target, or something else.&lt;br /&gt;
* hfid&lt;br /&gt;
* hfid_target&lt;br /&gt;
&lt;br /&gt;
===add hf site link===&lt;br /&gt;
This event shows that some (unexported) HF took up residence in some site (site_id)&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== add hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== attacked site ===&lt;br /&gt;
This is an event that marks when a group (attacker_civ_id) attacked another group (site_civ_id) at a site (site_id) owned by a civ (defender_civ_id).  The attack was led by a HF (attacker_general_hfid) and the defense was led by another hfid (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
=== body abused ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== change hf job ===&lt;br /&gt;
This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)&lt;br /&gt;
* hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id (always -1?)&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
&lt;br /&gt;
===change hf state ===&lt;br /&gt;
This event shows that some HF (hfid) changed state (to state) at site_id, in subregion_id, or in feature_layer_id, located at coords.&lt;br /&gt;
*state - tells what state the historical figure is changing to.&lt;br /&gt;
**settled (site,coords given)&lt;br /&gt;
**scouting (site,coords given)&lt;br /&gt;
**theif (site,coords given)&lt;br /&gt;
**snatcher (site,coords given)&lt;br /&gt;
**wandering (feature_layer given)&lt;br /&gt;
**refugee (subregion_id,coords given)&lt;br /&gt;
**hunting (subregion_id,coords given)&lt;br /&gt;
*hfid - ID number of the historical figure whose state is changing&lt;br /&gt;
*site_id&lt;br /&gt;
*subregion_id&lt;br /&gt;
*feature_layer_id&lt;br /&gt;
*coords&lt;br /&gt;
&lt;br /&gt;
=== create entity position ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== created site ===&lt;br /&gt;
Appears to be the creation of a town (?)&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== created structure ===&lt;br /&gt;
Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)&lt;br /&gt;
* civ_id  - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in &amp;quot;Y of X&amp;quot;)&lt;br /&gt;
* site_id - the site where the structure was created - town, fortress, whatever&lt;br /&gt;
* structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.&lt;br /&gt;
&lt;br /&gt;
=== created world construction ===&lt;br /&gt;
Some entity (site_civ_id) of some civ/entity (civ_id) completed component wcid of master_wcid, which is a road between site_id1 and site_id2.  &lt;br /&gt;
The final completion of the road has master_wcid being -1.&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* wcid&lt;br /&gt;
* master_wcid&lt;br /&gt;
* site_id1&lt;br /&gt;
* site_id2&lt;br /&gt;
&lt;br /&gt;
=== creature devoured ===&lt;br /&gt;
This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== destroyed site ===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) destroyed some site (site_id) defended by some entity (defender_civ_id) which is a member of some entity (site_civ_id).&lt;br /&gt;
* site_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
&lt;br /&gt;
=== entity created ===&lt;br /&gt;
This event makrs the creation of an entity (entity_id) at some site (site_id).  &lt;br /&gt;
This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.&lt;br /&gt;
&lt;br /&gt;
===field battle===&lt;br /&gt;
This event shows that some entity (attacker_civ_id) attacked some entity (defender_civ_id) at some region (subregion_id) led by a HF (attacker_general_hfid), the defenders are led by another HF (defender_general_hfid).&lt;br /&gt;
* attacker_civ_id&lt;br /&gt;
* defender_civ_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
* attacker_general_hfid&lt;br /&gt;
* defender_general_hfid&lt;br /&gt;
&lt;br /&gt;
===hf abducted ===&lt;br /&gt;
This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)&lt;br /&gt;
&lt;br /&gt;
subregion_id/feature_layer_id always -1?&lt;br /&gt;
&lt;br /&gt;
* target_hfid&lt;br /&gt;
* snatcher_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf died ===&lt;br /&gt;
This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)&lt;br /&gt;
* hfid - the historical figure who died&lt;br /&gt;
* slayer_hfid - the historical figure who slew him&lt;br /&gt;
* slayer_item_id - -1 if no notable item was used&lt;br /&gt;
* slayer_shooter_item_id - -1 if no notable item was used&lt;br /&gt;
* site_id - -1 if not killed at a site&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* cause - causes include:&lt;br /&gt;
** shot&lt;br /&gt;
** struck&lt;br /&gt;
** dragonfire&lt;br /&gt;
&lt;br /&gt;
=== hf new pet ===&lt;br /&gt;
This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id (always -1?)&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id (always -1?)&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf razed structure ===&lt;br /&gt;
Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)&lt;br /&gt;
* hist_fig_id&lt;br /&gt;
* site_id&lt;br /&gt;
* structure_id&lt;br /&gt;
&lt;br /&gt;
=== hf reunion ===&lt;br /&gt;
'''Explanation needed'''&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
===hf simple battle event===&lt;br /&gt;
This shows that some HF (group_1_hfid) did something (subtype) to another HF (group_2_hfid) at some site/region (site_id or subregion_id)&lt;br /&gt;
* subtype&lt;br /&gt;
** attacked&lt;br /&gt;
** scuffle&lt;br /&gt;
** confront&lt;br /&gt;
** ambushed&lt;br /&gt;
** 2 lost after receiving wounds&lt;br /&gt;
* group_1_hfid&lt;br /&gt;
* group_2_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== hf travel ===&lt;br /&gt;
This event shows that some HF (group_hfid):&lt;br /&gt;
:escaped from the underworld (has &amp;lt;escape/&amp;gt; and feature_layer_id given)&lt;br /&gt;
:returned to a site (has &amp;quot;&amp;lt;return/&amp;gt;&amp;quot; listed and a site)&lt;br /&gt;
:left a site to go to a region (has subregion_id,coords and site_id)&lt;br /&gt;
* group_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
* coords&lt;br /&gt;
&lt;br /&gt;
=== hf wounded ===&lt;br /&gt;
This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)&lt;br /&gt;
* woundee_hfid&lt;br /&gt;
* wounder_hfid&lt;br /&gt;
* site_id&lt;br /&gt;
* subregion_id&lt;br /&gt;
* feature_layer_id&lt;br /&gt;
&lt;br /&gt;
=== impersonate hf ===&lt;br /&gt;
This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)&lt;br /&gt;
&lt;br /&gt;
* trickster_hfid&lt;br /&gt;
* cover_hfid&lt;br /&gt;
* target_enid&lt;br /&gt;
&lt;br /&gt;
=== item stolen ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
''No Parts''&lt;br /&gt;
&lt;br /&gt;
=== new site leader ===&lt;br /&gt;
This event shows that an attacking entity (attacker_civ_id) attacked another entity (defender_civ_id) which was part of an entity (site_civ_id).  The attackers one and took over the site (site_id), instituting a new government (new_site_civ_id) ran by a new leader (new_leader_hfid).&lt;br /&gt;
&lt;br /&gt;
=== peace accepted ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== peace rejected ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== razed structure ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
=== reclaim site ===&lt;br /&gt;
This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).&lt;br /&gt;
&lt;br /&gt;
* civ_id&lt;br /&gt;
* site_civ_id&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf site link===&lt;br /&gt;
This event shows that some HF (unexported) moved out of site_id.&lt;br /&gt;
* site_id&lt;br /&gt;
&lt;br /&gt;
=== remove hf entity link ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
* civ_id&lt;br /&gt;
&lt;br /&gt;
=== replaced structure ===&lt;br /&gt;
This event shows that an entity (site_civ_id) a member of another entity (civ_id) replaced a structure type (old_ab_id) with another structure type (new_ab_id) at a site (site_id).  This normally (only?) happens when a civ replaces buildings (homes) with larger buildings&lt;br /&gt;
&lt;br /&gt;
=== site taken over ===&lt;br /&gt;
'''Explanation needed '''&lt;br /&gt;
'''Parts needed'''&lt;br /&gt;
&lt;br /&gt;
== historical_event_collections ==&lt;br /&gt;
'''As of .31.13 these have been added and contain a massive amount of information.  Please help to add details below'''&lt;br /&gt;
&lt;br /&gt;
== historical_eras ==&lt;br /&gt;
&lt;br /&gt;
Each &amp;lt;historical_era&amp;gt; element contains a name and a start_year element.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Known_bugs_and_issues&amp;diff=125536</id>
		<title>v0.31:Known bugs and issues</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Known_bugs_and_issues&amp;diff=125536"/>
		<updated>2010-08-15T02:25:47Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: /* Items */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{AV}}&lt;br /&gt;
'''PLEASE SUBMIT BUGS TO THE OFFICIAL BUG TRACKER - THEY WON'T GET FIXED IF THEY ARE ONLY LISTED HERE.'''&amp;lt;br /&amp;gt;&lt;br /&gt;
'''[http://bay12games.com/dwarves/mantisbt/ Dwarf Fortress Bug Tracker]'''&lt;br /&gt;
&lt;br /&gt;
'''Please link to the mantis tracker issue as well as the forum post if possible.'''&lt;br /&gt;
&lt;br /&gt;
'''This page recently underwent a major cleanup edit.  See the talk page for more info.'''&lt;br /&gt;
&lt;br /&gt;
:As the version is new, and we're still discovering bugs,  a lot of unverifiable information is going to get added to this thread.  It is recommended that new entries be added with &amp;quot;'''(confirmation needed)'''&amp;quot;, and that others can discuss and document each bug on the discussion page.  Following confirmation of a bug with a specific description of what's occurring, the parenthetical can be removed.  &lt;br /&gt;
&lt;br /&gt;
:Please also read the 'Not Actually Bugs' section before adding bug reports!&lt;br /&gt;
&lt;br /&gt;
==Not Actually Bugs==&lt;br /&gt;
*When choosing material for a squad item, there are hundreds of &amp;quot;forgotten beast leather&amp;quot; to choose from.&lt;br /&gt;
:This is because there are hundreds of different forgotten beasts.&lt;br /&gt;
&lt;br /&gt;
*Making adamantine items sometimes results in &amp;quot;Urist McArmorer, Armorer cancels Forge adamantine cloak: Needs 10000 adamantine cloth.&amp;quot;  Likewise making pearlash can yield &amp;quot;...cancels Make pearlash.  Needs 150 pearlash.&amp;quot;&lt;br /&gt;
:This happens if you don't have enough cloth/wafers/strands, if you have enough it works nicely. This is probably due to the fact that cloth can be consumed &amp;quot;in pieces&amp;quot; now for medical purposes.&lt;br /&gt;
&lt;br /&gt;
*Animals are listed twice on the embark screen.&lt;br /&gt;
:They're listed twice because they separately list males and females.&lt;br /&gt;
&lt;br /&gt;
*Weird red C in top left corner&lt;br /&gt;
:&amp;quot;&amp;lt;span style=&amp;quot;color:#FF0000; background:#B22222&amp;quot;&amp;gt;''' C '''&amp;lt;/span&amp;gt;&amp;quot; means new combat report&lt;br /&gt;
:&amp;quot;&amp;lt;span style=&amp;quot;color:#00FF00; background:#008000&amp;quot;&amp;gt;''' H '''&amp;lt;/span&amp;gt;&amp;quot; means new hunting message&lt;br /&gt;
:&amp;quot;&amp;lt;span style=&amp;quot;color:#48D1CC; background:#008080&amp;quot;&amp;gt;''' S '''&amp;lt;/span&amp;gt;&amp;quot; means new sparring message&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=52514.0 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*No option for magma in the finder&lt;br /&gt;
:[[Magma]] is guaranteed everywhere now.&lt;br /&gt;
&lt;br /&gt;
*Unable to add items or skill points on the embarking screen.&lt;br /&gt;
:Check your keybindings!  By default the keys to add and remove items and skills are + and - on the numpad.&lt;br /&gt;
&lt;br /&gt;
*{{L|Wrestling}} will take much longer than combat using any kind of weapon (unlike in 40d.)&lt;br /&gt;
&lt;br /&gt;
*When iron men and Bronze Colossuses die, the statues that make up their corpses adopt images of creatures (I.e: Statue of a dwarf 1) and events.  The molten metal falling from them will make statues out of any corpses below where they died.&lt;br /&gt;
&lt;br /&gt;
*All fish are mentioned twice.&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123220#msg1123220 Forum Link]&lt;br /&gt;
:Not a bug. Each creature has a male and a female caste, and each caste shows up on embark.&lt;br /&gt;
== Embarking ==&lt;br /&gt;
&lt;br /&gt;
*You can embark with some rather unrealistic prepared foods (such as fly brains, which in real life go at about 900 thousand brains to the pound).  These unrealistic foods have also been seen in trading. This may be related to further issues involving vermin's organs.  (Each 'Unit' of Food is representative of enough food to feed a dwarf for just over a month.)&lt;br /&gt;
&lt;br /&gt;
*You may get a &amp;quot;Cavern Collapse&amp;quot; announcement as soon as you arrive.  (Perhaps many times, if you have a volcano in your ocean...)&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=51 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
== Sites ==&lt;br /&gt;
&lt;br /&gt;
*Magma pipes in volcanoes extend to the top of the map, past the mountain itself.&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=52412.0 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Magma tubes remain the same shape and size the whole way down and may be square. &lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=52412.0 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*There are currently very few or even no fish. This includes brooks, rivers, oceans, ponds, lakes (underground and otherwise). You may get a few turtles sometimes.&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=52217.0 Forum Link]&lt;br /&gt;
:[http://www.bay12games.com/dwarves/mantisbt/view.php?id=2015 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
== Buildings and Zones ==&lt;br /&gt;
&lt;br /&gt;
*Can't farm on dry soil underground. &lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51951.msg1123336#msg1123336 Forum Link]&lt;br /&gt;
:Also, dwarves will clean away mud right from under farm plots, rendering them useless until re-irrigated and rebuilt.&lt;br /&gt;
&lt;br /&gt;
*Construction and/or deconstruction can occasionally force some dwarves to idle.  &lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123250#msg1123250 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*When linking buildings to levers/pressure plates, the view may center on a different building than the one that is currently selected.  (However, the view switches to the correct building after it is selected)&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=1915 Bug Tracker] --'''Open'''&lt;br /&gt;
&lt;br /&gt;
*Setting workshop profiles according to minimum and maximum skill levels does not work, typically resulting in no one being able to use the workshop. Setting a profile for individual dwarves still works.&lt;br /&gt;
:[http://www.bay12forums.com/smf/index.php?topic=61051.0 Forum Link]&lt;br /&gt;
&lt;br /&gt;
== Combat ==&lt;br /&gt;
&lt;br /&gt;
*Some combat maneuvers have no effect.  &lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123104#msg1123104 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Attempting to grab a bodypart with a weapon leads to &amp;quot;you grab *** by *** with your *weapon* but nothing is grabbed&lt;br /&gt;
&lt;br /&gt;
*Attempting to &amp;quot;pinch&amp;quot; various body parts shows &amp;quot;you adjust you grip on***&amp;quot; and nothing else.&lt;br /&gt;
&lt;br /&gt;
*Alligators can wear armor&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123104#msg1123104 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Non-alive creatures (like bronze colossuses, zombies and blizzard men) cannot be destroyed (possibly because they can't bleed to death nor have their brain destroyed).  Arena testing has revealed that [[dragonfire]] and [[magma]] can melt bronze colossuses, and falling from very high up may kill some undead creatures.&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123220#msg1123220 Forum Link]&lt;br /&gt;
: Fixed in .10&lt;br /&gt;
&lt;br /&gt;
*Shield-bashing has no effect with a wooden shield&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123499#msg1123499 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Ballistae have been nerfed considerably: They now easily glance off normal clothing and are very unlikely to kill anything with armour.&lt;br /&gt;
:Fixed in .10&lt;br /&gt;
&lt;br /&gt;
*Animals with teeth do nearly no damage.  Don't count on your wardogs to help defend your fortress.&lt;br /&gt;
:[http://www.bay12forums.com/smf/index.php?topic=55798.0 Workaround]&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=744 Bug Tracker] -'''Fixed''' {{version|0.31.06}}&lt;br /&gt;
&lt;br /&gt;
== Labors ==&lt;br /&gt;
&lt;br /&gt;
*Hunting Issues&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123228#msg1123228 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Miners now cancel mining designations when they can't reach them&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123272#msg1123272 Forum Link]&lt;br /&gt;
:'''Fixed''' {{version|0.31.03}}&lt;br /&gt;
&lt;br /&gt;
*Metal goblets are sometimes iron, regardless of input&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123533#msg1123533 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Manager screen doesn't show you materials for traction benches&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123533#msg1123533 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Workers are too dedicated, dehydrate themselves.  This was intended as a helpful feature, as dwarves will try to finish what they are doing before running off to eat.  However, many players view it as a bug, because it can cause dwarves that are far from food to begin with to starve to death.  Working while hungry or thirsty also causes unhappy thoughts, slower work, and worse quality work.&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123599#msg1123599 Forum Link]&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=8 Bug Tracker] --'''Fixed''' {{version|0.31.07}}&lt;br /&gt;
&lt;br /&gt;
*Cooking with alcohol is buggy&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123702#msg1123702 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*When crafting shell crafts, craftsdwarves never actually produce a shell craft, but instead sit forever with the same shell, with their skills increasing.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=206 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Dwarves take orders to prepare meals with liquid ingredients like dwarven syrup, wine, and rum, but almost never do it and instead dump the liquid inside the kitchen where it sits cluttering it up and can't be moved...  Because it's liquid.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=138 Bug Tracker]&lt;br /&gt;
:Workaround: Using dwarven syrup works just fine for me, but my cook always grabs at least one solid ingredient.  Ie, 3 stacks of syrup + one stack of cheese -&amp;gt; finished and edible meal.&lt;br /&gt;
:Workaround: The liquid seems to be underneath the kitchen.  If you remove the kitchen, some dwarf will come along and clean the spill.  Then you can remake the kitchen.  I'd recommend simply disabling all cooking of booze.&lt;br /&gt;
&lt;br /&gt;
*Making Rock Short Sword results in a wooden short sword. Especially annoying when making an adamantine sword! (multiple reports)&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=256 Bug Tracker]&lt;br /&gt;
:Bug is display only. Stats are based on the rock used.&lt;br /&gt;
&lt;br /&gt;
*Metal items may require fewer bars/wafers than announcements lead you to believe.  Since price of items is affected by what went into creating it, this can lead to your adamantine armor being worth far less than it would otherwise.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=130 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Wood cutter.  Tried to upgrade his axe to a steel one, never cut another tree in his life after being forced to dump his copper battle axe.  It's like wood cutting had a seperate profile and he was the only one excluded;  Sure enough, turned one of my jewelers into wood cutter and it worked fine for him.&lt;br /&gt;
&lt;br /&gt;
*Woodcutters can chop down trees with (wooden) training axes.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=712 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Immigrants can arrive with only peasant labors enabled, even if they are legendary jewelers. They may sometimes have weird labors enabled. (Stonecrafting master lye makers.)&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=110 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*In the {{k|o}}rders menu, there are options (in {{k|W}}orkshops) for auto {{k|b}}utcher, auto {{k|k}}itchen and auto {{k|f}}ishery. All three of these respond to {{k|b}} only, {{k|k}} and {{k|f}} do nothing.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=68 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Parties never end, sometimes eating up half the labor force.&lt;br /&gt;
:Workaround: Undesignate whatever the party is gathered around and it will end.&lt;br /&gt;
&lt;br /&gt;
*Soap-making task is missing from the workshop. Issuing work order through the manager does work.  Also with cutting clear and crystal glass.&lt;br /&gt;
:The soap making task has two reagents, one of which is a barrel that [CONTAINS_LYE]. The bucket the lye is produced in doesn't count, since it's a bucket, not a barrel. Make sure you have 1) a dwarf with the appropriate hauling task enabled, 2) an empty, usable barrel, and 3) a food stockpile with lye allowed that accepts barreled inventory. Once the lye is in the barrel in the stockpile, check the soap shop again. Don't know why the glass is wonky, though. -[[Special:Contributions/76.102.26.49|76.102.26.49]] 06:27, 13 May 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
*Making waterskin in leather works results in a weird item called &amp;quot;flask&amp;quot; (simply that, no mention of leather or whatever) that is never used and stays forever in the workshop. Those don't seem to cause clutter in the workshop either.  (A metal variant (Ex. Iron) is now capable of being created at a metal smith, probably causing this bug.  Soldiers will carry an Metal Flask).&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=93 Bug Tracker]&lt;br /&gt;
: &amp;quot;Flask&amp;quot; can be traded, but isn't automatically moved to stockpiles (It's neither a leather good nor a finished good). They do seem to clutter leatherworkers shops, which must then be destroyed and rebuilt (0.31.06). ~Neftaly Hernandez&lt;br /&gt;
: You can also use the View Items in Buildings command {{k|t}} to mark the Flasks for {{k|d}}umping to remove the clutter (0.31.06). ~mk&lt;br /&gt;
::More on metal flasks- a friend of mine noticed that when he assigned the job &amp;quot;make iron flask&amp;quot;, in would go iron bars and charcoal, and out would come 3 ''gold'' flasks. I did the same thing, except I used coke instead of charcoal, and got 3 gypsum plaster flasks.&lt;br /&gt;
:::Making adamantine flasks results in iron flasks. &lt;br /&gt;
&lt;br /&gt;
*Dwarves will occasionally go exceptionally out of their way to get a material while a giant stockpile is sitting beside them (I saw my carpenter travel half the map to get a log while there was a stockpile of 20 logs beside him)&lt;br /&gt;
:This will happen if the stockpiled items are already reserved for another task (sometimes happens en masse if you're designating constructions from the material). If this still functions as it did in 40d, dwarves will count the number of tiles to an item 'as the crow flies' rather than checking the actual pathfinding distance, meaning that they regard items above or below their workshop as being very nearby even if the travel distance to reach them is substantial. [[User:Oddtwang of Dork|Oddtwang of Dork]] 16:20, 8 April 2010 (UTC)&lt;br /&gt;
:True, but I wasn't using wood for anything, only had 2 carpenters active and the wood was on the same Z plane as my workshops. The usual explanation doesn't fly for the one event I saw.&lt;br /&gt;
::Perhaps they had the wood hauling labor enabled and were going to haul it?&lt;br /&gt;
&lt;br /&gt;
*Canceling a job at the metalsmith can jam the shop if the item was being actively produced at that time (Cancelled job to stop untrained armorer from working on an adamantium plate armor, shop jammed and no other orders ever went through. Ordered deconstruction and then halted deconstruction to clear this up.)&lt;br /&gt;
&lt;br /&gt;
== Moods ==&lt;br /&gt;
&lt;br /&gt;
*Fey moods can request body parts (!!!)&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123573#msg1123573 Forum Link]&lt;br /&gt;
&lt;br /&gt;
*Fey moods can request &amp;quot;rock bars.&amp;quot;  Has been seen to ignore all metal bars, ores, other rock, and rock.  (Confirmed)&lt;br /&gt;
:I've had the same situation, but my dwarf made due with bars of [[Coke]].  &lt;br /&gt;
&lt;br /&gt;
*Fey mood; Dwarf took only dog bones into the craftsdwarf's shop. Produced an iron figurine with an image of waves in dog bone on it.&lt;br /&gt;
:Seconded Most if not all figurines made in Fey moods become iron, despite the material used.&lt;br /&gt;
&lt;br /&gt;
*Glass Makers will not use a Magma Glass Furnace to manufacture their artifact. A traditional Glass Furnace is needed. (0.31.04; Unconfirmed)&lt;br /&gt;
&lt;br /&gt;
== Creature Data ==&lt;br /&gt;
&lt;br /&gt;
*Descriptions sometimes take strange objects: &amp;quot;She likes to consume she&amp;quot;&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123533#msg1123533 Forum Link]&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=582 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Giants and giantesses are mapped to the wrong gender.&lt;br /&gt;
:Fixed&lt;br /&gt;
*Unicorns give birth to elk fawns.&lt;br /&gt;
:Fixed &lt;br /&gt;
*Mountain goat fawns are called &amp;quot;Stray Horse foal&amp;quot;, although having all the features of a mountain goat.&lt;br /&gt;
:This is due to what is assumed to be a copy/paste error in the raws - The raws list &amp;quot;Mountain goat kid&amp;quot; as well as &amp;lt;b&amp;gt;&amp;quot;Horse foal&amp;quot;&amp;lt;/b&amp;gt; as possible child names, so it randomly picks one.&lt;br /&gt;
:Fixed&lt;br /&gt;
*In BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS both eyelids are around the right eye and clean the left eye&lt;br /&gt;
:Fixed&lt;br /&gt;
== Stockpiles ==&lt;br /&gt;
*Problems with categorization. (Stone is considered metal) &lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123178#msg1123178 Forum Link]&lt;br /&gt;
:[http://www.bay12games.com/dwarves/mantisbt/view.php?id=157 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Custom stockpile options don't seem to always work&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123474#msg1123474 Forum Link]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;s&amp;gt;*Dead vermin never rot&amp;lt;/s&amp;gt; &lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=51953.msg1123731#msg1123731 Forum Link]&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=161 Bug Tracker] --'''Fixed''' {{version|0.31.04}}&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;s&amp;gt;&amp;quot;Take from stockpile&amp;quot; is broken&amp;lt;/s&amp;gt;&lt;br /&gt;
:[http://www.bay12games.com/forum/index.php?topic=52126.0 Forum Link]&lt;br /&gt;
: Fixed in .10&lt;br /&gt;
*There is no category for wood blocks. As such, wood blocks can not be removed from carpentry workshops. &lt;br /&gt;
:[http://www.bay12games.com/dwarves/mantisbt/view.php?id=439 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
== Military ==&lt;br /&gt;
'''{{L|Military|Main Military Page}}'''&lt;br /&gt;
'''[http://bay12games.com/dwarves/mantisbt/view.php?id=535 Main Military Equipment Bug Tracker Page]'''&lt;br /&gt;
*Dwarves who are assigned to squads seem to be permanently affixed to the soldier life - changing schedules, training options, switching out dwarves, disbanding the squad: nothing works. All they do is eat, drink, sleep, Individual Combat Drill and take Kill orders. (Multiple reports, bug incidence is somewhat inconsistent, deconstructing assigned barracks sometimes helps.)&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=605 Bug Tracker] --'''Acknowledged''' (There may be several duplicate bug reports.)&lt;br /&gt;
&lt;br /&gt;
*The [[arsenal dwarf]] may assign weapons/armor that do not belong to you.&lt;br /&gt;
:[http://www.bay12games.com/dwarves/mantisbt/view.php?id=1290 Bug Tracker-Goblins] --'''Fixed''' {{version|0.31.06}}&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=1526 Bug Tracker-Caravans] --'''Fixed''' {{version|0.31.06}}&lt;br /&gt;
:Arsenal dwarf position deleted in .10&lt;br /&gt;
*Squads can get into a &amp;quot;permanent civilian life&amp;quot; and will never go into &amp;quot;recruit mode&amp;quot; unless ordered to &amp;quot;station&amp;quot; or &amp;quot;Kill a target&amp;quot;, upon canceling this order they will go back to civilian mode.  (Although they will perform individual combat drills, but in civilian garbs unless you replaced their equipment) [[User:Kenji 03|Kenji 03]] 11:54, 5 April 2010 (UTC).&lt;br /&gt;
:You mean they're supposed to not be civilians while training? Oh... yeah maybe that is a bug, never seen anything else personally - foarl 10:19, 09 April, 2010&lt;br /&gt;
::This bug is different - not civilian clothing, but civilian jobs.  They'll work in workshops, haul goods, sit idle with &amp;quot;No Job&amp;quot;, etc, and never attempt &amp;quot;Individual Combat Training&amp;quot;.  They do appear to equip assigned gear, though. -- 5:50, 10 June, 2010&lt;br /&gt;
:::Yes I can verify this bug.  I have version .10 and it is still present-- None of the 4 dwarfs in 1 of my 2 squads will take on 'active' military roles such as macedwarf, marksdwarf, etc...  unless they are performing a move or attack order.  When a kill order was cancelled (because it was completed) they even dumped their weapons and armor right where they were!  At the same time the other squad works fine other than they are all endlessly waiting for a training excercise to begin.  I was able to work around this by disbanding the squad, firing the militia captain &amp;amp; recreating them.  17:00EST 19 July, 2010&lt;br /&gt;
&lt;br /&gt;
*Bolts assigned to a squad that is then disbanded do not free up for use by other squads automatically.&lt;br /&gt;
&lt;br /&gt;
*The default settings are such that your military dwarfs will train, train, train, and possibly starve in the process.  [[Thirsty]] and [[Hungry]] tags are guaranteed to appear for any soldier (as they are when a dwarf does anything else in this release) because Dwarves will now try to complete a task before they eat/drink.&lt;br /&gt;
:{{L|Military/Guide}}&lt;br /&gt;
&lt;br /&gt;
*Dwarves will continue to train in barracks even after being removed from a squad. (Because they are completing the task they started before they will move on to something else, changing your alert helps here as well).&lt;br /&gt;
&lt;br /&gt;
*Dwarves will sometimes use many weapons and armor at once.  When they have two weapons in the same hand, they seem to be unable to attack with either weapon.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=648 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Dwarves who die are still listed in the military screen in their squad without any notification of their death. This could lead to a user assigning the best equipment to a squad leader without knowledge of his demise.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=182 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*When [[Reclaim]]ing a lost fortress, soldiers will not use any armour or weapons assigned to them, insisting on training and fighting unarmoured and barehanded. This behaviour seems related to the [[arsenal dwarf]] position - when the fortress population becomes high enough and a dwarf is assigned to the position, soldiers will finally use the equipment they have been assigned. It seems that, on reclaiming, the game acts as if you need to have an arsenal dwarf right from the start, despite there not being any way to assign one.&lt;br /&gt;
&lt;br /&gt;
*Copying an empty order causes an immediate crash.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=35 Bug Tracker] --'''Fixed''' {{version|0.31.03}}&lt;br /&gt;
&lt;br /&gt;
*Going to the schedule grid of the inactive group causes an immediate crash. &lt;br /&gt;
:[http://www.bay12games.com/dwarves/mantisbt/view.php?id=156 Bug Tracker] --'''Fixed''' {{version|0.31.03}}&lt;br /&gt;
&lt;br /&gt;
== Medicine ==&lt;br /&gt;
*&amp;lt;s&amp;gt;Surgeons may endlessly perform surgery on dwarves with no effect.&amp;lt;/s&amp;gt;&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=318 Bug Tracker]&lt;br /&gt;
: Fixed&lt;br /&gt;
*&amp;lt;s&amp;gt;Surgeon provided constant &amp;quot;suturing,&amp;quot; each time using up thread.  May be related to above problem.&amp;lt;/s&amp;gt;&lt;br /&gt;
:Fixed&lt;br /&gt;
*Any blood smear or pool can spread indefinitely.  The most common problem is a pool of blood in a high-traffic area.  This causes every dwarf that touches it to get blood on them.  Each dwarf will then eventually wash it off, creating another pool of blood by the well, which is likely another high-traffic area.  Eventually you end up with the dining room and food stockpiles all coated with several dozen different creatures' blood.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=296 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;s&amp;gt;Dwarves raid caravans for cloth (maybe thread as well) for the hospital zone.&amp;lt;/s&amp;gt;&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=66 Bug tracker]&lt;br /&gt;
&lt;br /&gt;
== Items ==&lt;br /&gt;
&lt;br /&gt;
*Eating a masterwork meal will cause the cook to suffer art defacement. --'''Fixed''' {{version|0.31.07}&lt;br /&gt;
&lt;br /&gt;
*Quarry bush leaves might not appear in the kitchen menu, and dwarves might not cook them, rendering them useless except for trading.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=47 Bug Tracker] --'''Fixed''' {{version|0.31.02}}&lt;br /&gt;
&lt;br /&gt;
*Obsidian does not appear in the accounting stone menu.&lt;br /&gt;
: Workaround: Remove edge tags from raws.&lt;br /&gt;
*Reclaim mode, some items recovered become immobile, even when claimed instead of forbidden.  Buidling on the area they occupy is impossible, as dwarves won't move the item.&lt;br /&gt;
:Workaround: Make water wash the item into a river, or somewhere it will be destroyed.&lt;br /&gt;
:Workaround: Channel under the item, dropping it to a lower z-level.  This makes the item usable again.&lt;br /&gt;
&lt;br /&gt;
*Dwarves will frequently abandon meals they've claimed for eating, resulting in rotting food scattered about the fortress that can't be stored, hauled, or dumped by any dwarf, including the one who claimed it.&lt;br /&gt;
&lt;br /&gt;
==Nobles==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;s&amp;gt;When the mayor dies, all nobles are removed until a new mayor is elected.&amp;lt;/s&amp;gt;&lt;br /&gt;
:Workaround: To speed up this process, set the population required for mayors to '1' in the raws (raw&amp;gt;objects&amp;gt;entity_default.txt).&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=141 Bug Tracker] --'''Fixed''' {{version|0.31.05}}&lt;br /&gt;
&lt;br /&gt;
*Former mayors continue to demand accomodations and make mandates.  You can check their mandates by going to that specific dwarf's thoughts.  This can cause [[fun]] as dwarves are arrested for not fufilling demands.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=814 Bug Tracker] --'''Fixed''' {{version|0.31.05}}&lt;br /&gt;
&lt;br /&gt;
== Graphics ==&lt;br /&gt;
*Arena does not work for graphics mode. &lt;br /&gt;
:[http://www.bay12forums.com/smf/index.php?topic=53505.0 Forum Link]&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=42 Bug Tracker] --'''Fixed''' {{version|0.31.02}}&lt;br /&gt;
&lt;br /&gt;
*After generating a world and embarking, you may notice missing tiles.&lt;br /&gt;
:Workaround: Restart Dwarf Fortress.&lt;br /&gt;
&lt;br /&gt;
*In the 'z'-status menu, there is no image for nobles/administrators. Instead, there is an empty space where the purple dwarf should be.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=375 Bug Tracker] --'''Open'''&lt;br /&gt;
&lt;br /&gt;
== Saves ==&lt;br /&gt;
*Renaming a save (ex. &amp;quot;Region2-spr-1050&amp;quot; to &amp;quot;Region2&amp;quot;) may invalidate the save, even if you give the save its original name back.  ((Confirmation needed))&lt;br /&gt;
&lt;br /&gt;
==Trading and Depot==&lt;br /&gt;
&lt;br /&gt;
*Elf traders may stay a long time.&lt;br /&gt;
:This is because creatures that the elves come with do not have pack animal values set on them, yet elves are able to use any creature as a pack animal.  Check what is carrying their goods when they arrive.  Often it will be warthogs, which do not have trade capacity values.  Which apparently makes them carry enormous, ridiculous loads and take forever to load/unpack.&lt;br /&gt;
:Workaround: A fix is to go into the creature_large_topical.txt file and add in [TRADE_CAPACITY:XXXX] under the warthog's [PACK_ANIMAL] entry (where XXXX is the weight you want them to carry). Or just remove the [PACK_ANIMAL] tag altogether. Be forewarned, you may or may not have to make a new world for the fix to take effect.&lt;br /&gt;
:Workaround: with the game paused and the depot in view, designate treecutting {{k|d}} - {{k|t}}, and just hold down the mouse button until the depot display no longer flashes between items very quickly.&lt;br /&gt;
::Why this works: it has been known that certain parts of the game engine keep running while the game is paused.  These include cat-dwarf adoptions and the trade liaison conversation.  It appears to also apply to traders loading up their goods, and probably to unloading goods as well.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=325 Bug Tracker] --'''Fixed''' {{version|0.31.06}}&lt;br /&gt;
&lt;br /&gt;
*No one brings wagons, even if there is a clear path to your depot.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=197 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
*Dwarves may try to eat unowned food at the Depot, but realize their mistake halfway and stop... then try again... you can see where this is going.&lt;br /&gt;
:[http://bay12games.com/dwarves/mantisbt/view.php?id=237 Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
== Program Lockup ==&lt;br /&gt;
*The DF process sometimes locks up (freezes) when alt-tabbing to another window and back.&lt;br /&gt;
:Workaround: That happened to me fairly often in the 40d# series. Try hitting the Alt key (I think it was Alt anyway) before you give up. [[Special:Contributions/75.210.204.237|75.210.204.237]] 04:42, 2 June 2010 (UTC)&lt;br /&gt;
::Alt did not work, neither did control, shift, enter or any combination of those--[[Special:Contributions/208.81.12.34|208.81.12.34]] 18:22, 9 June 2010 (UTC)&lt;br /&gt;
:::My lockup issue seems to be related to Lotus Notes. I only get the lockup when running Notes, and I don't get locked up when not running Notes.--[[Special:Contributions/208.81.12.34|208.81.12.34]] 17:12, 14 July 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Maximizing_framerate&amp;diff=125265</id>
		<title>v0.31:Maximizing framerate</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Maximizing_framerate&amp;diff=125265"/>
		<updated>2010-08-13T04:46:19Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: cleanup and av article&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{quality|Fine|08:00, 22 May 2010 (UTC)}}&lt;br /&gt;
{{av}}&lt;br /&gt;
[[File:Frames_Per_Second_Meter.png|300px|thumb|bottom|A picture of Dwarf Fortress with Frames Per Second displayed.]]&lt;br /&gt;
&lt;br /&gt;
{{L|Frames per second|Framerate}} is used in Dwarf Fortress to measure the speed at which the game is running. To check your FPS (frames per second) in Dwarf Fortress, simply change [FPS:NO] to [FPS:YES] in {{l|init.txt}}, and your FPS will be displayed near the top right corner of the screen.&lt;br /&gt;
&lt;br /&gt;
==Ways to increase your framerate==&lt;br /&gt;
&lt;br /&gt;
* Decreasing the G_FPS in the init text file can drastically improve your fortress' overall FPS. Be careful however, decreasing it too much can subject you to incomprehensible graphic instabilities. G_FPS refers to the &amp;quot;maximum graphical frame refresh rate during play.&amp;quot; In other words, the maximum number of times it repaints the graphics of your game per second. Remember, with a low G_FPS, it can be dangerous during battle or when arrows are flying over your Dwarves' heads, because the screen doesn't update as often. The default is 50 G_FPS, but it's been reported that 20 G_FPS is fine. Others report being able to play at even 5 G_FPS. There is no set number, just remember to test out a variety of numbers to see which one is right for you and your computer.&lt;br /&gt;
&lt;br /&gt;
*Disabling [[Temperature]] and [[Weather]] in the init file increases speed due to fewer calculations being required.&lt;br /&gt;
&lt;br /&gt;
*Limiting the number of dwarves and other moving units (cage or butcher animals!) greatly helps keep speed up.&lt;br /&gt;
&lt;br /&gt;
*World size and fortress site size increase RAM usage and decrease speed. Check if you are happier with an embark rectangle of 3x3 or 3x2 and a medium or small world. &lt;br /&gt;
::(DF .31.12) World size probably doesn't matter at all (except for save file size), but the embark size and how many cavern layers the world has (defaults to 3).&lt;br /&gt;
&lt;br /&gt;
*Lowering the pathfinder cost for normal tiles to 1 can reduce lag created by open space but does this at the cost of being able to use high traffic options. Alternatively, you can cover the entire map with high traffic tiles and simply make everything you don't want your dwarves traveling through low or restricted.&lt;br /&gt;
&lt;br /&gt;
* Some people try to reduce the number of items in the fort by &amp;quot;atom-smashing&amp;quot; them under a bridge or donating them away to traders. Alternatively, less digging in the first place results in fewer stones and corridors in the world to consider.&lt;br /&gt;
&lt;br /&gt;
* Due to bug (0000296), contaminants such as blood, snow, etc, count as items.  Since contaminants can spread and you cannot easily get rid of them, try to avoid things that spread contaminants: wells, killing things in high traffic spots, and soap. If you have HFS that exudes slime, you might as well save your game and wait for an update.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Interface&amp;diff=124827</id>
		<title>v0.31:Interface</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Interface&amp;diff=124827"/>
		<updated>2010-08-11T20:59:09Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
&lt;br /&gt;
The Dwarf Fortress interface is made up of several different parts besides the main game area.&lt;br /&gt;
&lt;br /&gt;
[[Image:DFInterface.png|right|500px]]&lt;br /&gt;
&lt;br /&gt;
* A: [[Combat report|Combat, Hunting, and Sparring reports]].&lt;br /&gt;
* B: The game [[Menu]]&lt;br /&gt;
* C: The number of [[Idle dwarfs]]&lt;br /&gt;
* D: The [[z-level]] you are currently viewing.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=v0.31:Interface&amp;diff=124823</id>
		<title>v0.31:Interface</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=v0.31:Interface&amp;diff=124823"/>
		<updated>2010-08-11T20:58:09Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: This&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{av}}&lt;br /&gt;
&lt;br /&gt;
The Dwarf Fortress interface is made up of several different parts besides the main game area.&lt;br /&gt;
&lt;br /&gt;
[[Image:DFInterface.png|right|500px]]&lt;br /&gt;
&lt;br /&gt;
* A: [[Combat Report|Comabt, Hunting, and Sparring reports]].&lt;br /&gt;
* B: The game [[Menu]]&lt;br /&gt;
* C: The number of [[Idle dwarfs]]&lt;br /&gt;
* D: The [[z-leve]] you are currently viewing.&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
	<entry>
		<id>https://dwarffortresswiki.org/index.php?title=File:DFInterface.png&amp;diff=124820</id>
		<title>File:DFInterface.png</title>
		<link rel="alternate" type="text/html" href="https://dwarffortresswiki.org/index.php?title=File:DFInterface.png&amp;diff=124820"/>
		<updated>2010-08-11T20:55:23Z</updated>

		<summary type="html">&lt;p&gt;Mason11987: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mason11987</name></author>
	</entry>
</feed>