v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing v0.31:XML dump
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | An XML dump of a world's history can be generated from [[Legends]] mode. | |
− | + | ||
+ | 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. | ||
The XML dump consists of the following elements: | The XML dump consists of the following elements: | ||
Line 16: | Line 17: | ||
**Mountains | **Mountains | ||
**Glacier | **Glacier | ||
− | |||
− | |||
− | |||
− | |||
==underground_regions== | ==underground_regions== | ||
Line 42: | Line 39: | ||
**cave | **cave | ||
**dwarf fortress | **dwarf fortress | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
*coords - an X, Y coordinate giving the location of the site on the world map. | *coords - an X, Y coordinate giving the location of the site on the world map. | ||
Line 57: | Line 44: | ||
Each site may contain a <structures> tag. | Each site may contain a <structures> tag. | ||
− | |||
− | |||
− | |||
== historical_figures == | == historical_figures == | ||
− | The <historical_figure> elements contain the | + | The <historical_figure> elements contain only the very most basic information: |
− | *id | + | *id |
− | *name | + | *name |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Other information such as birth and death dates are stored in the historical_events element. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Other information such as | ||
== entity_populations == | == entity_populations == | ||
Line 236: | Line 60: | ||
Each <entity> element contains an id tag, and may also contain a name tag. | Each <entity> element contains an id tag, and may also contain a name tag. | ||
− | |||
− | |||
==historical_events== | ==historical_events== | ||
Line 243: | Line 65: | ||
The <historical_event> element is the most complex. Each contains: | The <historical_event> element is the most complex. Each contains: | ||
− | * id - a reference number | + | *id - a reference number |
− | * year - the year in which the event took place | + | *year - the year in which the event took place |
− | * seconds72 - | + | *seconds72 - |
− | * type - a label indicating what sort of event this is. | + | *type - a label indicating what sort of event this is. |
The other elements of the historical_event will depend on the contents of the type element. Types include: | The other elements of the historical_event will depend on the contents of the type element. Types include: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===change hf state === | ===change hf state === | ||
− | |||
*state - tells what state the historical figure is changing to. | *state - tells what state the historical figure is changing to. | ||
− | ** | + | **wandering |
− | **scouting | + | ** scouting |
− | ** | + | ** settled |
− | ** | + | ** hunting |
− | + | ** refugee | |
− | **refugee | ||
− | |||
*hfid - ID number of the historical figure whose state is changing | *hfid - ID number of the historical figure whose state is changing | ||
*site_id | *site_id | ||
Line 312: | Line 85: | ||
*coords | *coords | ||
− | === | + | ===add hf site link=== |
− | + | *site_id | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | === | + | === remove hf site link=== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* site_id | * site_id | ||
− | === | + | === add hf hf link === |
− | + | * hfid | |
+ | * hfid_target | ||
− | + | === hf travel === | |
− | * | + | * group_hfid |
− | * | + | * site_id |
− | * | + | * subregion_id |
− | * | + | * feature_layer_id |
+ | * coords | ||
− | + | May also include a <return/> tag. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | === | + | === change hf job === |
− | + | * hfid | |
* site_id | * site_id | ||
* subregion_id | * subregion_id | ||
* feature_layer_id | * feature_layer_id | ||
− | === | + | === hf new pet === |
− | + | * group_hfid | |
* site_id | * site_id | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* subregion_id | * subregion_id | ||
* feature_layer_id | * feature_layer_id | ||
* coords | * coords | ||
− | |||
− | |||
− | ===hf | + | === hf wounded === |
− | |||
− | subregion_id | + | *woundee_hfid |
+ | *wounder_hfid | ||
+ | *site_id | ||
+ | *subregion_id | ||
+ | *feature_layer_id | ||
− | + | === creature devoured === | |
− | |||
* site_id | * site_id | ||
* subregion_id | * subregion_id | ||
Line 397: | Line 131: | ||
===hf died === | ===hf died === | ||
− | |||
* hfid - the historical figure who died | * hfid - the historical figure who died | ||
* slayer_hfid - the historical figure who slew him | * slayer_hfid - the historical figure who slew him | ||
Line 406: | Line 139: | ||
* feature_layer_id | * feature_layer_id | ||
* cause - causes include: | * cause - causes include: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
** shot | ** shot | ||
** struck | ** struck | ||
− | ** | + | ** dragonfire |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===hf simple battle event=== | ===hf simple battle event=== | ||
− | + | *subtype | |
− | * subtype | + | **attacked |
− | ** attacked | + | **scuffle |
− | ** scuffle | + | **confront |
− | + | **ambushed | |
− | ** confront | + | **2 lost after receiving wounds |
− | ** ambushed | + | *group_1_hfid |
− | ** 2 lost after receiving | + | *group_2_hfid |
− | + | *site_id | |
− | + | *subregion_id | |
− | * group_1_hfid | + | *feature_layer_id |
− | * group_2_hfid | ||
− | * site_id | ||
− | * subregion_id | ||
− | * feature_layer_id | ||
− | === | + | ===field battle=== |
− | + | *attacker_civ_id | |
− | + | *defender_civ_id | |
− | + | *subregion_id | |
− | + | *feature_layer_id | |
− | * | + | *coords |
− | * | + | *attacker_general_hfid |
− | * subregion_id | + | *defender_general_hfid |
− | * feature_layer_id | ||
− | * coords | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | === created structure === | ||
* civ_id | * civ_id | ||
* site_civ_id | * site_civ_id | ||
* site_id | * site_id | ||
+ | * structure_id | ||
− | === | + | === hf razed structure === |
− | + | * hist_fig_id | |
− | |||
− | |||
* site_id | * site_id | ||
− | + | * structure_id | |
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== historical_event_collections == | == historical_event_collections == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== historical_eras == | == historical_eras == | ||
Each <historical_era> element contains a name and a start_year element. | Each <historical_era> element contains a name and a start_year element. | ||
− | |||
− |