Thanks PE!
Getting a consistent error with DFHack: "exportlegends info" while exporting Extra Legends_plus xml (reports completion of historic figs @ 100% then:)
(DFHack version 0.47.04-r1 (release) on x86_64)
...~1\Dwarf Fortress 0.47.04/hack/scripts/exportlegends.lua:332: Cannot read field identity.civ: not found.
stack traceback:
[C]: in metamethod '__index'
...~1\Dwarf Fortress 0.47.04/hack/scripts/exportlegends.lua:332: in global 'export_more_legends_xml'
...~1\Dwarf Fortress 0.47.04/hack/scripts/exportlegends.lua:956: in global 'export_legends_info'
...~1\Dwarf Fortress 0.47.04/hack/scripts/exportlegends.lua:1009: in local 'script_code'
...ames\DF-PE-~1\Dwarf Fortress 0.47.04\hack\lua\dfhack.lua:680: in function 'dfhack.run_script_with_env'
(...tail calls...)
This is a bug with DFHack getting the script out of sync with the (changing) data field definitions.
You can either wait for a new DFHack (which will likely take a while, given that the new one just came out), copy your save to the previous version of the LNP and use the corresponding script there (I believe that one worked correctly with that version), or correct the script yourself.
The correction is fairly simple: Open the script (found as <DF>\hack\scripts\exportlegends.lua) in a text editor, find line 332, and change "idV.civ" with "idV.entity_id" and save the file.
The field was renamed from "civ" to "entity_id" because the identity is often not one of being a member of a civ, but being a member of some other entity (such as e.g. a site government or a religion).