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.34:XML dump"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(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)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{Quality|Superior|05:29, 1 May 2014 (UTC)}}
 
{{av}}
 
{{av}}
{{Quality|Tattered|02:39, 23 February 2012 (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.
 
 
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.
 
  
 +
An '''XML dump''' of a [[region|world]]'s history can be generated from [[Legends]] mode by pressing {{k|x}}, and will be placed in Dwarf Fortress' root folder. The dump consists of many internals Dwarf Fortress tracks about the world in [[wikipedia:XML|XML format]].  A non-exhaustive breakdown of DF xml export tags is available [http://pastebin.com/wb2zLvRh here].
  
 +
If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters.  This is caused by [[utility:DFHack|DFHack]]'s workflow, which saves its settings as unreadable historical figures.  There are several ways to fix this:
 +
* Clear the workflow settings in fortress mode before exporting legends
 +
* Edit the xml by hand, [http://www.bay12forums.com/smf/index.php?topic=72702.msg4629392#msg4629392 as described here] (any platform)
 +
* Use the [http://www.bay12forums.com/smf/index.php?topic=131307 Legends Processing script] (windows only), which fixes the xml and also creates a compressed folder as described above
  
 
== See Also ==
 
== See Also ==
 
 
* [[Legends|Legends Mode]]
 
* [[Legends|Legends Mode]]
 
* [[World History file]]
 
* [[World History file]]
 
* [[World Sites file]]
 
* [[World Sites file]]
 +
* [[Utilities#Legends_Viewer|Legends Viewer (utility)]]

Latest revision as of 17:50, 1 May 2014

This article is about an older version of DF.

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. The dump consists of many internals Dwarf Fortress tracks about the world in XML format. A non-exhaustive breakdown of DF xml export tags is available here.

If you have played a fortress and then exported legends, you may get an error about unreadable HEX characters. This is caused by DFHack's workflow, which saves its settings as unreadable historical figures. There are several ways to fix this:

  • Clear the workflow settings in fortress mode before exporting legends
  • Edit the xml by hand, as described here (any platform)
  • Use the Legends Processing script (windows only), which fixes the xml and also creates a compressed folder as described above

See Also[edit]