Support Importing Legends Export #46

Closed
opened 2023-11-12 22:49:51 +00:00 by nwesterhausen · 2 comments
nwesterhausen commented 2023-11-12 22:49:51 +00:00 (Migrated from github.com)

After glancing through a legends export, at least the DF-hack expanded ones, include details on creatures including generated creatures (#32)

It should be possible to add

  • XML parsing, specific to reading creature information
  • Way to "open" a legends export for the manual
  • Still support the searching and everything (maybe if you do the import, it won't parse Creatures from raws)
  • Maybe there is another way to indicate things or just add the ones that are missing (i.e. generated)?
After glancing through a legends export, at least the DF-hack expanded ones, include details on creatures including generated creatures (#32) It should be possible to add - XML parsing, specific to reading creature information - Way to "open" a legends export for the manual - Still support the searching and everything (maybe if you do the import, it won't parse Creatures from raws) - Maybe there is another way to indicate things or just add the ones that are missing (i.e. generated)?
nwesterhausen commented 2023-11-15 22:25:34 +00:00 (Migrated from github.com)

Needs to support legends mode xml export via dfhack bonus data (which includes creatures and entities). https://github.com/DFHack/scripts/blob/master/exportlegends.lua

  • understand xml files
  • accept an xml file as input
  • probably iterate over the file somewhat similar to how we do now
  • it's possible we can leverage a library to parse XML which leaves just converting the <creature> and <entity> objects into our versions
Needs to support legends mode xml export via dfhack bonus data (which includes creatures and entities). https://github.com/DFHack/scripts/blob/master/exportlegends.lua - understand xml files - accept an xml file as input - probably iterate over the file somewhat similar to how we do now - it's possible we can leverage a library to parse XML which leaves just converting the `<creature>` and `<entity>` objects into our versions
nwesterhausen commented 2023-11-15 22:29:15 +00:00 (Migrated from github.com)
[legends_plus_examples.zip](https://github.com/nwesterhausen/dfraw_json_parser/files/13370296/legends_plus_examples.zip)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: nwesterhausen/dfraw_parser#46
No description provided.