Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011222Dwarf FortressLegends Mode -- History Exportpublic2020-01-29 05:022020-02-03 21:00
Francis_the_dwarf 
Toady One 
normalminorhave not tried
resolvedfixed 
MacmacOS10.13.6
0.47.01 
0.47.02 
0011222: Legends export has wrong terminating tag for interrogator_hfid
I generated a pocket world and exported the history. When I loaded it up in LegendsBrowser, it mentioned that it had a missing terminating tag.

Digging into the actual file:

<historical_event>
        <id>111264</id>
        <year>494</year>
        <seconds72>369600</seconds72>
        <type>hf convicted</type>
        <convicted_hfid>3104</convicted_hfid>
        <convicter_enid>42</convicter_enid>
        <crime>murder</crime>
        <confessed_after_apb_arrest_enid>42</confessed_after_apb_arrest_enid>
        <interrogator_hfid>11189</convicted_hfid>
Generating world using parameter set CREATE WORLD NOW = 1443223
 Seed: lRR5QSTppyt0Km2or4Xb
 History Seed: HiH1U8bjRcFiKx8xb43h
 Name Seed: 0TP10C7kdqrDG8Ah2sLp
 Creature Seed: cjMaLPUtLSIOhqCmx9uh

I tried to generate a new world to reproduce the error, but after 3 other worlds non had the interrogator_hfid tag in the exported XML
Probable Quick Fix
Issue History
2020-01-29 05:02Francis_the_dwarfNew Issue
2020-01-29 05:51Francis_the_dwarfNote Added: 0039692
2020-01-30 10:54beef623Note Added: 0039722
2020-01-30 12:47LociAssigned To => Loci
2020-01-30 12:47LociStatusnew => confirmed
2020-01-30 12:47LociTag Attached: Probable Quick Fix
2020-01-31 11:48therahedwigIssue Monitored: therahedwig
2020-02-03 21:00Toady OneNote Added: 0039845
2020-02-03 21:00Toady OneStatusconfirmed => resolved
2020-02-03 21:00Toady OneFixed in Version => Next Version
2020-02-03 21:00Toady OneResolutionopen => fixed
2020-02-03 21:00Toady OneAssigned ToLoci => Toady One
2020-02-05 05:14therahedwigIssue End Monitor: therahedwig

Notes
(0039692)
Francis_the_dwarf   
2020-01-29 05:51   
I was able to reproduce this with another world finally. Additionally, I found another one that seems to have a similar error:

<conspirator_hfid>33863</conspirator>
(0039722)
beef623   
2020-01-30 10:54   
I had both in my world generated with the default settings in Linux.

As a temporary workaround, I fixed the exported file with the following commands:

sed -i s/<\/conspirator>/<\/conspirator_hfid>/g' region1-....-legends.xml
sed -i s/<interrogator_hfid>\([0-9]*\)<\/convicted_hfid>/<interrogator_hfid>\1<\/interrogator_hfid>/g' region1-....-legends.xml
(0039845)
Toady One   
2020-02-03 21:00   
Blerg, whoops.