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.

Difference between revisions of "v0.31:XML dump"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
The XML dump consists of the following elements:
 
The XML dump consists of the following elements:
  
==regions==
+
>==regions==
  
Each dump contains one <regions> element, which contains a large number of <region> elements. Each <region> element has the following attributes stored as elements within it:
+
Each dump contains one &lt;regions&gt; element, which contains a large number of &lt;region&gt; elements. Each &lt;region&gt; element has the following attributes stored as elements within it:
 
*id - a reference number used to identify the region elsewhere
 
*id - a reference number used to identify the region elsewhere
*name - the name of the region (eg, "the colorless desert" or "the perplexing forests"). The names are all lower-case.
+
*name - the name of the region (eg, &quot;the colorless desert&quot; or &quot;the perplexing forests&quot;). The names are all lower-case.
 
*type - the type of region. Types include:
 
*type - the type of region. Types include:
 
**Ocean
 
**Ocean
Line 21: Line 21:
 
**Lake
 
**Lake
 
**Tundra
 
**Tundra
 +
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://ifafenu.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://ifafenu.co.cc CLICK HERE]=
 +
----
 +
</div>
  
 
==underground_regions==
 
==underground_regions==

Revision as of 22:32, 17 November 2010

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:

>==regions==

Each dump contains one <regions> element, which contains a large number of <region> elements. Each <region> element has the following attributes stored as elements within it:

  • id - a reference number used to identify the region elsewhere
  • name - the name of the region (eg, "the colorless desert" or "the perplexing forests"). The names are all lower-case.
  • type - the type of region. Types include:
    • Ocean
    • Hills
    • Desert
    • Forest
    • Mountains
    • Glacier
    • Wetland
    • Grassland
    • Lake
    • Tundra


This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page


CLICK HERE


underground_regions

Similar to the <regions> element. The <underground_region> elements contain the following:

  • id - reference number used to identify the region
  • type - can be:
    • cavern
    • magma
    • underworld
  • depth

Note that underground regions don't have names.

sites

Each <site> element contains the following:

  • id - reference number
  • name
  • type
    • city
    • tree city
    • cave
    • dwarf fortress
    • mountain halls
    • hamlet
    • dark fortress
    • forest retreat
    • town
    • fortress
    • camp
    • lair
    • labyrinth
    • shrine
  • coords - an X, Y coordinate giving the location of the site on the world map.

structures

Each site may contain a <structures> tag.

historical_figures

The <historical_figure> elements contain the following information:

  • id - reference number used to identify the historical figure elsewhere
  • name - the name of the historical figure
  • race - the race of the figure, the following have been seen (not present if the figure is a force)
    • bat_giant
    • bear_black
    • bear_grizzly
    • bird_eagle_giant
    • bird_swallow_cave
    • blind_cave_bear
    • blind_cave_ogre
    • cave_dragon
    • cheetah
    • colossus_bronze
    • cougar
    • crocodile_saltwater
    • cyclops
    • demon_x where x is a number
    • dragon
    • draltha
    • dwarf
    • elf
    • ettin
    • forgotten_beast_x where x is a number
    • giant
    • goblin
    • human
    • hungry_head
    • hydra
    • imp_fire
    • jabberer
    • jaguar
    • jaguar_giant
    • kobold
    • leopard
    • leopard_giant
    • lion
    • minotaur
    • molemarian
    • night_creature_x where x is a number
    • rat
    • sasquatch
    • scorpion_desert_giant
    • spider_cave_giant
    • tiger
    • titan_x where x is a number
    • troglodyte
    • troll
    • voracious_cave_crawler
    • wolf
  • caste - the gender of the figure, can be one of the following (not present if the figure is a force)
    • default
    • female
    • male
  • appeared - unknown, seems to be related to apperance in the world, sometimes appeared and birth_year are different, mostly the same.
  • birth_year - the year of the figure's birth, can be negative value (to indicate figure existing before the beginning of the world?)
  • birth_seconds72 - unknown
  • death_year - the year of the figure's death, -1 means the figure is still alive
  • death_seconds72 - unknown
  • associated_type - seems to be the job of the figure, the following have been seen
    • administrator
    • animal_caretaker
    • animal_dissector
    • animal_trainer
    • architect
    • armorer
    • axeman
    • baby
    • bone_carver
    • bowman
    • bowyer
    • brewer
    • butcher
    • carpenter
    • child
    • clerk
    • clothier
    • crossbowman
    • diagnoser
    • drunk
    • engraver
    • farmer
    • fish_dissector
    • furnace_operator
    • gem_cutter
    • gem_setter
    • hammerman
    • herbalist
    • lasher
    • leatherworker
    • maceman
    • mason
    • master_bowman
    • master_crossbowman
    • master_hammerman
    • master_lasher
    • master_pikeman
    • master_spearman
    • master_swordsman
    • mechanic
    • metalcrafter
    • milker
    • miner
    • none
    • pikeman
    • planter
    • potash_maker
    • pump_operator
    • ranger
    • recruit
    • siege_engineer
    • siege_operator
    • soap_maker
    • spearman
    • standard
    • stonecrafter
    • surgeon
    • suturer
    • swordsman
    • tanner
    • thresher
    • trader
    • weaponsmith
    • weaver
    • wood_burner
    • woodcrafter
    • woodcutter
    • wrestler
  • deity - indicator (does not contain any value) to show if the figure is a deity or not.
  • skeleton - indicator (does not contain any value) to show if the figure is a skeleton or not.
  • 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.

Other information such as marriages are stored in the historical_events element.

entity_populations

Each <entity_population> element contains only a single tag, giving an id number.

entities

Each <entity> element contains an id tag, and may also contain a name tag.

Entityies are civilizations, groups (which can found sites/religions/attack/defend), or religions.

historical_events

The <historical_event> element is the most complex. Each contains:

  • id - a reference number
  • year - the year in which the event took place
  • seconds72 -
  • 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:

add hf hf link

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.

  • hfid
  • hfid_target

add hf site link

This event shows that some (unexported) HF took up residence in some site (site_id)

  • site_id

add hf entity link

Explanation needed

  • civ_id

attacked site

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).

  • attacker_civ_id
  • defender_civ_id
  • site_civ_id
  • site_id
  • attacker_general_hfid
  • defender_general_hfid

body abused

Explanation needed

  • site_id
  • subregion_id (always -1?)
  • feature_layer_id (always -1?)
  • coords


change hf job

This event shows that some HF (hfid) took up a different job (unexported) at some site (site_id)

  • hfid
  • site_id
  • subregion_id (always -1?)
  • feature_layer_id (always -1?)

change hf state

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.

  • state - tells what state the historical figure is changing to.
    • settled (site,coords given)
    • scouting (site,coords given)
    • theif (site,coords given)
    • snatcher (site,coords given)
    • wandering (feature_layer given)
    • refugee (subregion_id,coords given)
    • hunting (subregion_id,coords given)
  • hfid - ID number of the historical figure whose state is changing
  • site_id
  • subregion_id
  • feature_layer_id
  • coords

create entity position

Explanation needed No Parts

created site

Appears to be the creation of a town (?)

  • civ_id
  • site_civ_id
  • site_id

created structure

Some entity (site_civ_id) of entity/civ (civ_id) built structure (structure_id) at some site (site_id)

  • civ_id - identifies an entity that makes up the second part of the Civ name (i.e. the 'X' in "Y of X")
  • site_civ_id - identifies an entity that makes up the first part of the Civ name (i.e. the 'Y' in "Y of X")
  • site_id - the site where the structure was created - town, fortress, whatever
  • structure_id - An ID identifying the structure. Uncertain if there is a way to find out what type of structure this is.

created world construction

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. The final completion of the road has master_wcid being -1.

  • civ_id
  • site_civ_id
  • wcid
  • master_wcid
  • site_id1
  • site_id2

creature devoured

This event shows that some HF (unexported) devoured another HF (unexported) at some site/region (site_id or subregion_id)

  • site_id
  • subregion_id
  • feature_layer_id

destroyed site

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).

  • site_id
  • site_civ_id
  • attacker_civ_id
  • defender_civ_id

entity created

This event makrs the creation of an entity (entity_id) at some site (site_id). This could be either a group which leaves and possibly founds another site, or this could be a religion being founded.

field battle

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).

  • attacker_civ_id
  • defender_civ_id
  • subregion_id
  • feature_layer_id
  • coords
  • attacker_general_hfid
  • defender_general_hfid

hf abducted

This event shows that some HF (target_hfid) was abducted by a snatcher (snatcher_hfid) from some site (site_id)

subregion_id/feature_layer_id always -1?

  • target_hfid
  • snatcher_hfid
  • site_id
  • subregion_id
  • feature_layer_id

hf died

This event shows that some HF (hfid) was killed by some HF (slayer_hfid) at site/region (site_id or subregion_id)

  • hfid - the historical figure who died
  • slayer_hfid - the historical figure who slew him
  • slayer_item_id - -1 if no notable item was used
  • slayer_shooter_item_id - -1 if no notable item was used
  • site_id - -1 if not killed at a site
  • subregion_id
  • feature_layer_id
  • cause - causes include:
    • shot
    • struck
    • dragonfire

hf new pet

This event shows that some HF (group_hfid) tamed some animal in sub_region_id at coords.

  • group_hfid
  • site_id (always -1?)
  • subregion_id
  • feature_layer_id (always -1?)
  • coords

hf razed structure

Some HF (hist_fig_id) razed a structure (structure_id) at some site (site_id)

  • hist_fig_id
  • site_id
  • structure_id

hf reunion

Explanation needed

  • group_1_hfid
  • group_2_hfid
  • site_id
  • subregion_id
  • feature_layer_id

hf simple battle event

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)

  • subtype
    • attacked
    • scuffle
    • confront
    • ambushed
    • 2 lost after receiving wounds
  • group_1_hfid
  • group_2_hfid
  • site_id
  • subregion_id
  • feature_layer_id

hf travel

This event shows that some HF (group_hfid):

escaped from the underworld (has <escape/> and feature_layer_id given)
returned to a site (has "<return/>" listed and a site)
left a site to go to a region (has subregion_id,coords and site_id)
  • group_hfid
  • site_id
  • subregion_id
  • feature_layer_id
  • coords

hf wounded

This event shows that some HF (woundee_hfid) was wounded at site/region (site_id or subregion_id) by some HF (wounder_hfid)

  • woundee_hfid
  • wounder_hfid
  • site_id
  • subregion_id
  • feature_layer_id

impersonate hf

This event that some HF (trickster_hfid) began impersonating another HF (cover_hfid) withing an entity (target_enid)

  • trickster_hfid
  • cover_hfid
  • target_enid

item stolen

Explanation needed No Parts

new site leader

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).

peace accepted

Explanation needed Parts needed

peace rejected

Explanation needed Parts needed

razed structure

Explanation needed Parts needed

reclaim site

This event shows an entity (site_civ_id), a member of another entity (civ_id) reclaimed a site (site_id).

  • civ_id
  • site_civ_id
  • site_id

remove hf site link

This event shows that some HF (unexported) moved out of site_id.

  • site_id

remove hf entity link

Explanation needed

  • civ_id

replaced structure

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

site taken over

Explanation needed Parts needed

historical_event_collections

As of .31.13 these have been added and contain a massive amount of information. Please help to add details below

Each historical event collection contains the following items, as well as additional items depending on it's type:

  • id - a reference number
  • start_year - the year in which the event collection started
  • start_seconds72 -
  • end_year - the year in which the event collection ended
  • start_seconds72 -
  • event - one or more events which are part of this collection
  • type - the type of event collection this is (the different types are listed below)
  • 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
  • ordinal - How many times has this happened ("The Third Siege of Ironhand" would have <ordinal>3</ordinal>)

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:


abduction

An abduction by a member of (attacking_enid) of a member of (defending_enid). They were abducted from (site_id) located at (coords).

  • subregion_id
  • feature_layer_id
  • site_id
  • coords
  • attacking_enid
  • defending_enid

battle

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.

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.

Also some or all of the important people (attacking_hfid and defending_hfid) may have died.

The outcome is either "defender won" or "attacker won".

  • eventcol (multiple?)
  • event (multiple)
  • name
  • war_eventcol
  • subregion_id
  • feature_layer_id
  • site_id
  • coords
  • attacking_hfid (multiple)
  • defending_hfid (multiple)
  • noncom_hfid (multiple) (?)
  • Multiple different "attacking squads" each with these parts
    • attacking_squad_race
    • attacking_squad_entity_pop
    • attacking_squad_number
    • attacking_squad_deaths
    • attacking_squad_site (?)
  • Multiple different "defending squads" each with these parts
    • defending_squad_race
    • defending_squad_entity_pop
    • defending_squad_number
    • defending_squad_deaths
    • defending_squad_site
  • outcome

Does not have an "ordinal" part

beast attack

A beast attacked a member of defending_enid at site_id, located at coords.

  • subregion_id
  • feature_layer_id
  • site_id
  • coords
  • defending_enid

duel

This describes a duel between attacking_hfid and defending_hfid at site_id, located at coords.

  • subregion_id
  • feature_layer_id
  • site_id
  • coords
  • attacking_hfid
  • defending_hfid

journey

This describes a journey of a HF, normally when they leave a site to go tame an animal in a nearby region, then return.

No additional parts

site conquered

As part of war_eventcol, attacking_enid conquered site_id from defending_enid.

  • war_eventcol
  • site_id
  • attacking_enid
  • defending_enid

theft

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

  • subregion_id
  • feature_layer_id
  • site_id
  • coords
  • attacking_enid
  • defending_enid

war

A war, as named, where aggressor_ent_id battled defender_ent_id. It contains the battles, sieges, and pillaging events listed in eventcol.

  • eventcol (multiple)
  • name
  • aggressor_ent_id
  • defender_ent_id

historical_eras

Each <historical_era> element contains a name and a start_year element.