Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: Kromtec on December 13, 2015, 05:49:09 pm

Title: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Kromtec on December 13, 2015, 05:49:09 pm
Recreates Legends Mode from exported data. Browser like navigation, including tabs, allows to easily view other people/places/entities by just clicking names in the event logs or search lists, CTRL+Click opens a new tab.

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

README (https://github.com/Kromtec/Legends-Viewer/blob/master/README.md)

Getting the data from Dwarf Fortress:
If you are already playing a fort or adventure on the save you want to use, you need to:
* Make a copy of your save!!!
* Abandon or retire your fortress/adventure on the copy
* Enter DF legends mode on the copy


Recommended: (requires DFHack (https://github.com/DFHack/dfhack/releases) which is usually included in Lazy Newb Pack (http://lazynewbpack.com))
1. Enter DF legends mode on the save you want to export
2. Switch to the DFHack window
3. Enter the command `exportlegends info` and press enter
  * this command generates all files you need and an additional file with the ending legends_plus.xml
  * the legends_plus.xml file contains a lot of information that is missing if you export via the old way

Or use the old way:
1. Enter Legends Mode.
2. Export the XML `(x)`
3. Export Map/Gen Information `(p)`
4. (Optional) Export Additional Detailed Maps `(d)`

* (Optional) Archive/Compress files

NOTE: If you see a lot of UNKNOWN stuff it is because of this:
Quote
XML dump is incomplete! Anywhere that there are details left out I noted with "UNKNOWN" however if you see any "INVALID" then its a bug that needs to be fixed.
If you export the data with DFHacks' `exportlegends info` a lot of additional data is available and you will get less "UNKNOWN" information.

Screenshots:

Familytree:
Spoiler (click to show/hide)

Curse Lineage:
Spoiler (click to show/hide)

Regions:
Spoiler (click to show/hide)

Sites with Structures:
Spoiler (click to show/hide)

World Constructions (Roads, Tunnels):
Spoiler (click to show/hide)

Structures (Taverns, Libraries, ...):
Spoiler (click to show/hide)

Written Content:
Spoiler (click to show/hide)

Leadership Information:
Spoiler (click to show/hide)



Changelog:
Spoiler (click to show/hide)

Older Changelogs:
See on Releases page on GitHub (https://github.com/Kromtec/Legends-Viewer/releases)
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: PeridexisErrant on December 14, 2015, 04:25:47 am
PTW
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: notfood on December 14, 2015, 09:33:22 am
Do you think it'd  be possible to run it under Mono?
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: Witty on December 14, 2015, 10:41:28 am
Awesome! I really appreciate you taking over for Parker here, this is one of my favorite third party utilities. Be a shame if it just went under with this new version.
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 15, 2015, 07:46:58 am
Do you think it'd  be possible to run it under Mono?

Sorry, I won't have the time to rewrite larger core components of the program especially with tools I am not familiar with.
But I will definitly do my best to keep it alive and healthy.
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: jaked122 on December 15, 2015, 02:01:53 pm
Mono is an implementation of .Net for Linux, Mac OSX, and Windows. It is not the Microsoft version, though Microsoft has contributed significantly to the development of Mono.


 You may wish to familiarize yourself with the ecosystem of .Net, but hey, good job updating.


Let's run through a checklist, does it use the Windows Forms for gui? Check.


Does it use an external library that is specific to Windows? Yes. It uses 7Zip.dll, which is written in C, rather than a portable C# implementation. That may be an issue, I'm not sure if it is possible to change the linking so that it would use a Linux version of the library. It looks like it would probably require some modification in order to allow it to work on both, I'm not set up for that right now though.
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on December 16, 2015, 08:17:27 am
Odd entry in Legends Viewer for a world I just generated. I'm using a modded in race of minotaurs, but I don't think that'd cause this:

"In 258, early summer, (Hematite, 15) the hydra Cavere Largespecial the Growth of Blisters fought with Ingiz. While defeated, the latter escaped unscathed. In The 2nd rampage of Cavere Largespecial the Growth of Blisters in Gemwondered as part of a competition."

Awesome that the 1 year old Ingiz Gildrush survived a hydra attack. Odd that it was part of a competition...!

DF Legends mode records the attack, but not as a competition.

Interestingly, Ingiz went on to become a farmer, then suddenly at the age of 19 began worshiping rocs.  4 of them at first. A couple of years later she became queen and added another roc to her God list. She worships a hydra on the side too (not the one that tried to eat her as a child).

Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 16, 2015, 12:45:49 pm
Odd entry in Legends Viewer for a world I just generated. I'm using a modded in race of minotaurs, but I don't think that'd cause this:

"In 258, early summer, (Hematite, 15) the hydra Cavere Largespecial the Growth of Blisters fought with Ingiz. While defeated, the latter escaped unscathed. In The 2nd rampage of Cavere Largespecial the Growth of Blisters in Gemwondered as part of a competition."

Awesome that the 1 year old Ingiz Gildrush survived a hydra attack. Odd that it was part of a competition...!

DF Legends mode records the attack, but not as a competition.

Interestingly, Ingiz went on to become a farmer, then suddenly at the age of 19 began worshiping rocs.  4 of them at first. A couple of years later she became queen and added another roc to her God list. She worships a hydra on the side too (not the one that tried to eat her as a child).

That is really strange. I just looked through some bigger worlds and it seems common now, that beast attacks have a "parent_eventcol"-property set with IDs that link them to event collections of competitions, ceremonies, ...

Tomorrow when I am at home, I will take a look at older 0.40.xx worlds if beast attacks have meaningful "parent_eventcol"-properties there.

Edit:
I checked and couldn't find one beast attack that was linked to a parent collection in 0.40.xx worlds.
Now in 0.42.xx a lot of beast attacks happen to be during special occasions. What's very weird is that the linked occasion always has the exact same start- and enddates as the attack. I could understand if there is a ceremony that gets interrupted by an attacking beast, but in that case the ceremony should start before the attack, not in the same second.

If DF Legends Mode doesn't show it, I'll call it a bug and won't show it in the next version either.

Thanks Shonai_Dweller for reporting.
Title: Re: Legends Viewer 1.14.01 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on December 18, 2015, 06:18:52 pm
Didn't Toady say some festivals are set up in memory of beast attacks/beast defeats. That would require linking one to the other presumably. And while they should probably start a year later, it might be easier for world-gen to start them at the same time for some reason.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Heretic on December 23, 2015, 11:07:27 am


Changelog 1.14.02:
Spoiler (click to show/hide)

Changelog 1.14.01:
Spoiler (click to show/hide)

Changelog 1.14.00:
Spoiler (click to show/hide)
Where I can see ceremonies and other new events? I can't find them in program. Using with 42.03 DF.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Staalo on December 23, 2015, 11:41:40 am
Good work! I have been running my own modded version of Parker147's original code to keep Legends Viewer relevant for .40/.42 but I'm going to switch over to this. Thank you.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 23, 2015, 12:41:49 pm
As some of you may have already seen. I released Version 1.14.02 today!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

When ever I fired up Legend-Viewer in previous versions the first thing I did was to go through the individual civilization pages.
I wanted to get an idea of the distribution of powers in my newly generated world.

How many fortresses do this dwarven civilization have?
How strong is their population compared to the goblin civilization next door?
Is the civ I want to play even composed of dwarves or mainly of goblins and humans?
Will I get visits from the kobold civs or are they already extinct?
...


My main goal with this release was essentially to get a good overview of all this things without having to navigate through a lot of pages.

Instead of only a list of civilization names you now get more detailed information on top of the world stats page.

(http://i.imgur.com/7MP6TQp.png)

Next to the map is a chart of the civilized world population distribution.
The list of civilizations is split into current and fallen civilizations.


(http://i.imgur.com/yKYNO7j.png)
One entry of a civilization shows the portion of people from the original civ-race + the portion of people from other civilized races that migrated into this civ.
You also get the number of sites that are currently owned by this civ.

(http://i.imgur.com/mujDQpq.png)
If you navigate to an entity (civ, group, ...) or site instead of one list for all population information you now get grouped lists for civilized, animal people, outcasts, prisoners, slaves and others.

Changelog 1.14.02:
Spoiler (click to show/hide)
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on December 23, 2015, 06:24:32 pm
Looks very nice!

I've found previously Legends Viewer has been slightly misleading when it comes to nearly dead civs. Bring up the civ stats and it says 'no sites since 400 years ago' but boot up World Viewer and you find 86 members of the civ living in a nearby refugee camp. DF Adventurer allows you to start at the camp and fortress mode usually allows you to play as them.

Does this new 'fallen civs' actually indicate no playable population, or just no sites? Civs in a bad way make for fun stories.

Also are civilized animal people listed in populations?

Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on December 24, 2015, 09:08:37 am
OK tried this out now. It's nice. But you've made it incompatible with mods.
Legends Viewer is good because it throws up information about whatever you mod into it. It's great and flexible that way.

I've got a fairly normal world which I've modded an extra race of minotaurs into.

But in new Legends Viewer:
Minotaurs don't show up on the opening graph.
Each Minotaur civ is listed as having no original race members left (lie)
The civilized population of one of my Minotaurs civs apparently consists of Dwarves, Elves, Humans and goblins (despite the population of 8764 minotaurs, who I'm pretty sure are civilized in their own misguided way)

I like the 'was slowly repopulated' information. That's good to know.
Also the what's the top graph total number calculated from? It doesn't match Site Populations. Is it including outcasts?
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 24, 2015, 02:51:48 pm
OK tried this out now. It's nice. But you've made it incompatible with mods.
Legends Viewer is good because it throws up information about whatever you mod into it. It's great and flexible that way.

I've got a fairly normal world which I've modded an extra race of minotaurs into.

But in new Legends Viewer:
Minotaurs don't show up on the opening graph.
Each Minotaur civ is listed as having no original race members left (lie)
The civilized population of one of my Minotaurs civs apparently consists of Dwarves, Elves, Humans and goblins (despite the population of 8764 minotaurs, who I'm pretty sure are civilized in their own misguided way)

I like the 'was slowly repopulated' information. That's good to know.
Also the what's the top graph total number calculated from? It doesn't match Site Populations. Is it including outcasts?

Can you upload a legend export? I'll try to make the new features as generic as possible with the next version.
The total numbers in the chart come from the regionx-xxxx-xx-xx-world_sites_and_pops.txt file.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Tryble on December 24, 2015, 03:04:25 pm
My main goal with this release was essentially to get a good overview of all this things without having to navigate through a lot of pages.

Instead of only a list of civilization names you now get more detailed information on top of the world stats page.

OH BABY
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on December 24, 2015, 05:43:39 pm
Sure, I'll upload something when I get back from work later.
I really like the new features. Get them working for modded civs and it'll be near-perfect (besides DFhack only features).
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on December 24, 2015, 06:28:03 pm
The total numbers in the chart come from the regionx-xxxx-xx-xx-world_sites_and_pops.txt file.
Interesting. Where does the 'Site Poulations' section get it's numbers from? It's only a very small difference when you add in outcasts and prisoners. Maybe wandering historical figures aren't counted as belonging to any site?
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: CharonM72 on December 25, 2015, 12:53:15 am
I'd like to add a small feature request if I may, something that's been bothering me since the beginning. Legends Viewer only loads one map, and doesn't allow for more than one alternate map (which needs to be loaded manually). Furthermore, it's very frustrating that when navigating away from the map page, the alternate map gets unloaded. It'd be super useful for LV to load all the maps it can find, and also allow for loading other maps (for example, my Satellite Map Maker (http://www.bay12forums.com/smf/index.php?topic=137076.0), or the Fantasy Map Maker maps), which would not then unload after clicking on something.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 25, 2015, 04:05:18 pm
Where I can see ceremonies and other new events? I can't find them in program. Using with 42.03 DF.

You can find these new occasions in the event logs of entities that celebrate them, of historical figures that took part in competitions and in the event logs of regions and sites where they took place.
They aren't search/filterable in the navigation panel, because the legend export files do not include information about their names.
So whenever these occasions appear in an event log you get "Historical Figure took part in a competition, ..." instead of the real name of the competition as you would in DF legends mode.

The total numbers in the chart come from the regionx-xxxx-xx-xx-world_sites_and_pops.txt file.
Interesting. Where does the 'Site Poulations' section get it's numbers from? It's only a very small difference when you add in outcasts and prisoners. Maybe wandering historical figures aren't counted as belonging to any site?

The populations of sites are in the same file. I am sure you are right and wandering historical figures are not part of any site but are counted for the civilized world populations list.

Sure, I'll upload something when I get back from work later.
I really like the new features. Get them working for modded civs and it'll be near-perfect (besides DFhack only features).

Everyone who wants to help to make the new features more mod friendly,
please upload a zip from a world with modded civs with the files:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

I for myself only use UI mods and TWBT+tilesets but no gameplay or world changing mods.

I'd like to add a small feature request if I may, something that's been bothering me since the beginning. Legends Viewer only loads one map, and doesn't allow for more than one alternate map (which needs to be loaded manually). Furthermore, it's very frustrating that when navigating away from the map page, the alternate map gets unloaded. It'd be super useful for LV to load all the maps it can find, and also allow for loading other maps (for example, my Satellite Map Maker (http://www.bay12forums.com/smf/index.php?topic=137076.0), or the Fantasy Map Maker maps), which would not then unload after clicking on something.

I will take a look at the map-loading code.

Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Voxus on December 26, 2015, 01:16:24 pm
So I noticed that the checkboxes for vampires and werebeasts were not working, which is a shame because I need to know how many vampire leaders there are in my large sized 400 year old world. As such I fixed it and made a pull request: https://github.com/Kromtec/Legends-Viewer/pull/1

Additionally I just made a quick jsbin demo of an idea I had for the skills display, in particular skills can take up a lot of room vertically, so I decided it might look nicer with an inline block display with colour coding and hover over: http://jsbin.com/yapaxadaqe

Any thoughts? I can work on this and submit a pull request if it looks promising.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 26, 2015, 03:44:56 pm
So I noticed that the checkboxes for vampires and werebeasts were not working, which is a shame because I need to know how many vampire leaders there are in my large sized 400 year old world. As such I fixed it and made a pull request: https://github.com/Kromtec/Legends-Viewer/pull/1

Additionally I just made a quick jsbin demo of an idea I had for the skills display, in particular skills can take up a lot of room vertically, so I decided it might look nicer with an inline block display with colour coding and hover over: http://jsbin.com/yapaxadaqe

Any thoughts? I can work on this and submit a pull request if it looks promising.

Thank you for the vampire and werebeast bugfix, I already merged it into the branch!  :)

I like your idea for the skill display. It looks a lot better than the simple list, but I am not entirely sure about the color coding.
Skills are already associated with certain colors of their profession.

For example fish cleaner, fish dissector, fisherdwarf have the dark blue color of their parent profession fishery worker.
http://dwarffortresswiki.org/index.php/DF2014:Skill#Skills (http://dwarffortresswiki.org/index.php/DF2014:Skill#Skills)

In Dwarf Therapist the skill level is represented with a growing square and a diamond symbol for legendary.
If you could manage that the skill list looks like in your demo but with their profession color instead of a level color and a level symbol like in DT next to their name it would be perfect!
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Voxus on December 26, 2015, 04:11:16 pm
Thank you for the vampire and werebeast bugfix, I already merged it into the branch!  :)

I like your idea for the skill display. It looks a lot better than the simple list, but I am not entirely sure about the color coding.
Skills are already associated with certain colors of their profession.

For example fish cleaner, fish dissector, fisherdwarf have the dark blue color of their parent profession fishery worker.
http://dwarffortresswiki.org/index.php/DF2014:Skill#Skills (http://dwarffortresswiki.org/index.php/DF2014:Skill#Skills)

In Dwarf Therapist the skill level is represented with a growing square and a diamond symbol for legendary.
If you could manage that the skill list looks like in your demo but with their profession color instead of a level color and a level symbol like in DT next to their name it would be perfect!

Not a bad idea to replicate the dwarf therapist display, should be doable. I'll get back to you with another plain HTML/CSS test before I try to actually implement it.

[EDIT] Progress: (http://imgur.com/eJJ757O.png)
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Deity Link on December 27, 2015, 11:04:10 pm
Windows doesn't let me open the latest version and my antivirus found a virus in it.

(http://i.imgur.com/ZP2Lzgv.png)

Didn't happen with 1.14.01

Got any explanations?
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 28, 2015, 06:57:02 am
Windows doesn't let me open the latest version and my antivirus found a virus in it.

(http://i.imgur.com/ZP2Lzgv.png)

Didn't happen with 1.14.01

Got any explanations?

Hm, maybe because I write the registry key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION\ in the new version.
This is necessary because the WebBrowser Control that hosts the Pages for Historical Figures, Regions, ... only runs in Internet Explorer 7 Mode as default. To use newer features like the population chart it has to run in IE9+ Mode.
The registry key is only set for Legends Viewer and no other program.

Maybe it is something entirely different.
Antivirus software often shows false positives but if you are unsure you can read
http://www.howtogeek.com/180162/how-to-tell-if-a-virus-is-actually-a-false-positive/ (http://www.howtogeek.com/180162/how-to-tell-if-a-virus-is-actually-a-false-positive/)
I made a test
https://www.virustotal.com/en/file/c72e0cb260312e8c22e7d66db9e93ff6031604241223fc817434d7cd0cbae94d/analysis/1451303373/ (https://www.virustotal.com/en/file/c72e0cb260312e8c22e7d66db9e93ff6031604241223fc817434d7cd0cbae94d/analysis/1451303373/)
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Voxus on December 29, 2015, 12:45:01 pm
I'd like to add a small feature request if I may, something that's been bothering me since the beginning. Legends Viewer only loads one map, and doesn't allow for more than one alternate map (which needs to be loaded manually). Furthermore, it's very frustrating that when navigating away from the map page, the alternate map gets unloaded. It'd be super useful for LV to load all the maps it can find, and also allow for loading other maps (for example, my Satellite Map Maker (http://www.bay12forums.com/smf/index.php?topic=137076.0), or the Fantasy Map Maker maps), which would not then unload after clicking on something.

I'd say looking at the code for maps this should be possible, I'm going to spend some time working on the map code and I'll try to implement this as I go.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 29, 2015, 02:27:46 pm
I'd like to add a small feature request if I may, something that's been bothering me since the beginning. Legends Viewer only loads one map, and doesn't allow for more than one alternate map (which needs to be loaded manually). Furthermore, it's very frustrating that when navigating away from the map page, the alternate map gets unloaded. It'd be super useful for LV to load all the maps it can find, and also allow for loading other maps (for example, my Satellite Map Maker (http://www.bay12forums.com/smf/index.php?topic=137076.0), or the Fantasy Map Maker maps), which would not then unload after clicking on something.

I'd say looking at the code for maps this should be possible, I'm going to spend some time working on the map code and I'll try to implement this as I go.

I already put in the part where the alternate map and the opacity setting is remembered during a session.
If you could take a look into how to load more than one alternate map it would be awesome.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Voxus on December 30, 2015, 04:56:12 am
I'd like to add a small feature request if I may, something that's been bothering me since the beginning. Legends Viewer only loads one map, and doesn't allow for more than one alternate map (which needs to be loaded manually). Furthermore, it's very frustrating that when navigating away from the map page, the alternate map gets unloaded. It'd be super useful for LV to load all the maps it can find, and also allow for loading other maps (for example, my Satellite Map Maker (http://www.bay12forums.com/smf/index.php?topic=137076.0), or the Fantasy Map Maker maps), which would not then unload after clicking on something.

I'd say looking at the code for maps this should be possible, I'm going to spend some time working on the map code and I'll try to implement this as I go.

I already put in the part where the alternate map and the opacity setting is remembered during a session.
If you could take a look into how to load more than one alternate map it would be awesome.

I think the best option is to rewrite a large section of the map code, The design is not incompatible with multiple alternate maps, but it would be a duct tape style solution. I'd rather just create a more modular pattern for maps and map features, so I'm going to take a stab at that method. In the mean time I have some other smaller ideas I'd also like to work on, so I'll probably split the time I work on this 50/50 over working on maps and some other small changes. Parker talked about rewriting maps, charts, and figuring out a winforms solution to legend pages, none of which are small changes. I feel like maps needs the least amount of work to become fully modular, so it seems like the best place to start.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: CharonM72 on December 30, 2015, 05:03:03 am
I think the best option is to rewrite a large section of the map code, The design is not incompatible with multiple alternate maps, but it would be a duct tape style solution. I'd rather just create a more modular pattern for maps and map features, so I'm going to take a stab at that method. In the mean time I have some other smaller ideas I'd also like to work on, so I'll probably split the time I work on this 50/50 over working on maps and some other small changes. Parker talked about rewriting maps, charts, and figuring out a winforms solution to legend pages, none of which are small changes. I feel like maps needs the least amount of work to become fully modular, so it seems like the best place to start.

This sounds great. Some way to load all the available maps automatically (plus manually loading one or more alternate maps) and allow freely switching among them would improve Legends Viewer immensely IMO.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on December 30, 2015, 05:45:14 am
I think the best option is to rewrite a large section of the map code, The design is not incompatible with multiple alternate maps, but it would be a duct tape style solution. I'd rather just create a more modular pattern for maps and map features, so I'm going to take a stab at that method. In the mean time I have some other smaller ideas I'd also like to work on, so I'll probably split the time I work on this 50/50 over working on maps and some other small changes.
Yeah a map overhaul would be great! If you take this into your hands I'll stay away from this part.

Parker talked about rewriting maps, charts, and figuring out a winforms solution to legend pages, none of which are small changes. I feel like maps needs the least amount of work to become fully modular, so it seems like the best place to start.
I am not so sure if changing everything into WinForms is still a good idea. WinForms is (except for a few bugfixes) abandoned by Microsoft for years.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Voxus on December 30, 2015, 07:07:34 am
I think the best option is to rewrite a large section of the map code, The design is not incompatible with multiple alternate maps, but it would be a duct tape style solution. I'd rather just create a more modular pattern for maps and map features, so I'm going to take a stab at that method. In the mean time I have some other smaller ideas I'd also like to work on, so I'll probably split the time I work on this 50/50 over working on maps and some other small changes.
Yeah a map overhaul would be great! If you take this into your hands I'll stay away from this part.

Parker talked about rewriting maps, charts, and figuring out a winforms solution to legend pages, none of which are small changes. I feel like maps needs the least amount of work to become fully modular, so it seems like the best place to start.
I am not so sure if changing everything into WinForms is still a good idea. WinForms is (except for a few bugfixes) abandoned by Microsoft for years.

Hurmm, that's something to think on then, it's a huge overhaul either way, perhaps a better idea might be an opensource explorer replacement like webkit? That's still a huge overhaul however.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Mason11987 on December 30, 2015, 01:23:23 pm
As some of you may have already seen. I released Version 1.14.02 today!

...

Changelog 1.14.02:

# World Stats + Populations + Artifacts

### World Stats
* Added a chart for civilized world populations
* Split civ-list into current and fallen civilizations
* Added population and site count information for each civilization


This looks really cool Kromtec, nicely done!
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: burned on January 03, 2016, 02:57:02 am
I recognize that you're quick to give credit to Parker147, but thanks for continuing this Kromtec!

In regards to the program, I keep getting script errors. I'm positive it's because I don't have IE anything installed and you clearly state, "To display the new population chart correctly you will need IE9+ rather than IE7+ as previously."

It still works well enough (I just don't get the fancy graphs, etc), but I hope there is a way to turn off the script error from popping up every time I navigate to a page in the program. Most of the instructions I've read point me to turn it off in IE (not installed) and I did "Disable script debugging (Other)" under Internet Properties > Advanced > Browsing to no effect.

It's a minor annoyance to an otherwise great program.

Thanks again regardless!
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 03, 2016, 04:48:04 pm
This looks really cool Kromtec, nicely done!

Thanks, Mason11987! Big fan of your viewer too  :)

I recognize that you're quick to give credit to Parker147, but thanks for continuing this Kromtec!

In regards to the program, I keep getting script errors. I'm positive it's because I don't have IE anything installed and you clearly state, "To display the new population chart correctly you will need IE9+ rather than IE7+ as previously."

It still works well enough (I just don't get the fancy graphs, etc), but I hope there is a way to turn off the script error from popping up every time I navigate to a page in the program. Most of the instructions I've read point me to turn it off in IE (not installed) and I did "Disable script debugging (Other)" under Internet Properties > Advanced > Browsing to no effect.

It's a minor annoyance to an otherwise great program.

Thanks again regardless!

Fixed in the next version by suppressing script errors for the WebBrowser control.
Title: Re: Legends Viewer 1.14.02 (0.42.XX Compatible) Unoffical Branch
Post by: burned on January 03, 2016, 09:09:21 pm
Fixed in the next version by suppressing script errors for the WebBrowser control.

Awesome! I really appreciate it.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 04, 2016, 05:20:05 pm
Now that was a big one! Version 1.15.00 is released!  :D
Big THX to Voxus (http://www.bay12forums.com/smf/index.php?action=profile;u=100671) who contributed a lot of cool things and fixes this release!
and also to all people involved in making the exportlegends.lua script. It is awesome!

Support for DFHacks' legends_plus.xml!
This will make a lot of "UNKNOWN" stuff go away...

Getting the data from Dwarf Fortress:
If you are already playing a fort or adventure on the save you want to use, you need to:
* Make a copy of your save!!!
* Abandon or retire your fortress/adventure on the copy
* Enter DF legends mode on the copy


Recommended: (requires DFHack (https://github.com/DFHack/dfhack/releases) which is usually included in Lazy Newb Pack (http://lazynewbpack.com))
1. Enter DF legends mode on the save you want to export
2. Switch to the DFHack window
3. Enter the command `exportlegends info` and press enter
  * this command generates all files you need and an additional file with the ending legends_plus.xml
  * the legends_plus.xml file contains a lot of information that is missing if you export via the old way

Or use the old way:
1. Enter Legends Mode.
2. Export the XML `(x)`
3. Export Map/Gen Information `(p)`
4. (Optional) Export Additional Detailed Maps `(d)`

* (Optional) Archive/Compress files

Troubleshooting:
In the current version (DFHack 0.42.04-alpha1 (https://github.com/DFHack/dfhack/releases/tag/0.42.04-alpha1)) of the DFHack exportlegends.lua script are two known bugs:


Changelog:
# Support for DFHacks' LegendsPlus XML

### DFHack LegendsPlus XML Support
* Lots and lots of additional information for existing event log texts.
* Added World Constuctions (roads, bridges, ...) to event log texts.
* Added Structures in Sites to event log texts.
* Additional infos for Artifacts.
* Reputation infos for Historical Figures.
* Type infos for Entites (Religons, bandit groups, performance troupes, ...)

### New Events
* Site Retired
* First Contact
* Agreement Concluded
* Historical Figure Reaches Summit
* Artifact Transformed
* Masterpiece Dye
* + some of the already existing events never appeared in the event log
  * because they were never properly linked to other objects like entities, sites, ...
  * thanks to the additional legends_plus.xml information they are now visible

### New Event Collection
* Purge

### Skill Display:
* Update to historical figure skills display. THX Voxus (http://www.bay12forums.com/smf/index.php?action=profile;u=100671)
  * This updates skills from a regular list into a nicer inline block list styled to be similar to dwarf therapist.
  * Along with the updated display, skills are now compared against the skills token table and the correct name is extracted rather than a reformatted token.
  * Skill groups are now ordered by the number of skills in a group and properly top align.

### New Death Causes
* flying object
* slaughtered
* melted

### Breed Information
* Added breed info for historical animals like beak dogs if available.

### Bugfixes:
* Fixes to historical figure curse filtering. THX Voxus (http://www.bay12forums.com/smf/index.php?action=profile;u=100671)
* Fixed a crash related to civilisations lost to the end of stream. THX Voxus (http://www.bay12forums.com/smf/index.php?action=profile;u=100671)
* Proper tracking of werebeast bites
* Fixed a crash that occured when clicking on heatmap overlays on the world map.
* Solved entity parent conflicts. (subgroups of groups of groups of civilization, ...)
* Lots of NullReferenceException Handling in event log texts.

### Tweaks
* Support for modded civilizations, no more hardcoded races or racecolors.
* Lots of event log texts improved.
* Make population string plural. Simplified code + fixes. THX Voxus (http://www.bay12forums.com/smf/index.php?action=profile;u=100671)
* Suppress javascript errors in WebBrowser control.
* remember alternate map and opacity after navigating to another page and then back to the map

**Note:**
_The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
_Since v1.14.02: To display the new population chart correctly you will need IE9+ rather than IE7+ as previously._
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: CharonM72 on January 05, 2016, 06:38:25 am
Now that was a big one! Version 1.15.00 is released!  :D

This is incredible. I am looking forward to using this!
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on January 06, 2016, 09:34:43 am
Excellent! Much better breakdown of my slightly modded world with this new version. OP Minotaurs rule the planet while goblins and humans struggle for second place.

Got a big bunch of errors when exporting legends_plus file mentioning vector<int32_t but waited a while and it seemed to work. There don't seem to be any lines in the xml with that in it though. Loads OK with no extra work.

The rescue of my prisoners doesn't show up in my adventurers event log. Is that just something legends can't export yet?

Also, minor detail, but Legends Mode mentions that a prisoner 'escaped' from her prison, but in Legends Viewer says she was 'released'. Also her goal is apparently 'maintain entity status'. What does that mean!?

Skills with square boxes is kind of weird. It's pretty confusing for anyone not familiar with dwarf therapist. How big is good? How big do boxes get? Talented, skilled, grandmaster, etc is surely more informative? Color coding is nice though.

Excellent work so far. I use Legends Viewer a lot in planning my DF campaigns, so really enjoy the updates!
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: burned on January 06, 2016, 12:57:21 pm
Skills with square boxes is kind of weird. It's pretty confusing for anyone not familiar with dwarf therapist. How big is good? How big do boxes get? Talented, skilled, grandmaster, etc is surely more informative? Color coding is nice though.

I agree with this sentiment. I am not a user of Dwarf Therapist although I would guess that the bigger the box the better. The organization is nice, but the boxes are meaningless outside of a Therapist user.

I see you can painstakingly mouse over each skill for more detail, but at a glance the size of the box doesn't parse efficiently (again, unless you are familiar with Therapist). As Shonai_Dweller mentioned, how small is Dabbling? How large is Legendary? Even with a size legend of sorts, why force the user to conform to a method the game doesn't even use?

Describing the skill just like the game does has more universal appeal, since no matter how you play the game or what external tools you use or don't use that is how the skills read in the game. Not to mention you could see the entire skill set levels at once without having to mouse over each one (Ack!).

To curb my criticism, thank you once again for all of the hard work. Sincerely.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 06, 2016, 02:24:29 pm
Excellent! Much better breakdown of my slightly modded world with this new version. OP Minotaurs rule the planet while goblins and humans struggle for second place.

Got a big bunch of errors when exporting legends_plus file mentioning vector<int32_t but waited a while and it seemed to work. There don't seem to be any lines in the xml with that in it though. Loads OK with no extra work.
The errors in the DFHack console window don't seem to harm the generated xml. But in some rare cases such a vector value finds its way into the xml.
The issue is known and noted on DFHacks' Github page.

The rescue of my prisoners doesn't show up in my adventurers event log. Is that just something legends can't export yet?

Also, minor detail, but Legends Mode mentions that a prisoner 'escaped' from her prison, but in Legends Viewer says she was 'released'. Also her goal is apparently 'maintain entity status'. What does that mean!?
I loaded lots and lots of worlds and tried to put every information I found into the program. But I am sure that in worlds played in adventure mode and in old fortresses there are plenty of events I haven't encountered in my tests.

If the log in the sidebar shows heaps of "Unknown event: ... " or "Unknown property: ...", then please zip the save and upload it to http://dffd.bay12games.com/index.php (http://dffd.bay12games.com/index.php) so I can incorporate this information.
The 'escaped' vs. 'released' discrepancy can be based on me interpreting the status change to "Former Prisoner" of a historical figure wrong. Because I had no example in DF legends mode.  :)

Skills with square boxes is kind of weird. It's pretty confusing for anyone not familiar with dwarf therapist. How big is good? How big do boxes get? Talented, skilled, grandmaster, etc is surely more informative? Color coding is nice though.

Excellent work so far. I use Legends Viewer a lot in planning my DF campaigns, so really enjoy the updates!
I agree with this sentiment. I am not a user of Dwarf Therapist although I would guess that the bigger the box the better. The organization is nice, but the boxes are meaningless outside of a Therapist user.

I see you can painstakingly mouse over each skill for more detail, but at a glance the size of the box doesn't parse efficiently (again, unless you are familiar with Therapist). As Shonai_Dweller mentioned, how small is Dabbling? How large is Legendary? Even with a size legend of sorts, why force the user to conform to a method the game doesn't even use?

Describing the skill just like the game does has more universal appeal, since no matter how you play the game or what external tools you use or don't use that is how the skills read in the game. Not to mention you could see the entire skill set levels at once without having to mouse over each one (Ack!).

To curb my criticism, thank you once again for all of the hard work. Sincerely.

Sorry, I talked Voxus into using the Dwarf Therapist symbolism.  :o
I will additionally show the text description of the skill level in the next version. For now you can hover over the skills to see a detailed description as burned said.

And for all who aren't familiar with Dwarf Therapist:
The box gets bigger the greater the skill level and legendary skills have a diamond symbol.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on January 06, 2016, 06:23:47 pm
I think the square thing works fine in Therapist. You're playing the game, you want to glance at a list of 100 Dorfs and spot the one with the highest soapmaking skill as quickly as possible so you can get back to playing.

But, consider your target audience for a moment. When browsing historical characters, 'who killed who and when', 'who's related to who', is information that you may want at a quick glance so you can quickly work through several characters. Legends Viewer has this up top, very accessible, very useful.

But, finding an interesting character and thinking, 'but can he make soap?' is the point where you slow down and start studying the character in detail. At that point, you don't need a quick visual aid. You want to read and become involved and visualise the character in your mind. Legendary soapmaker, Dabbling swordsdwarf creates an image of a dwarf who dreams of a more exciting life.

One day in the far future, you may be able to play historical characters as adventurers. At that point a quick glance chart might be handy as you flick through many potential candidates looking for the one with the right balance of skills.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: williamjcm on January 07, 2016, 02:55:26 pm
Thanks for continuing the development of Legends Viewer, but I have a major bug when running the app using Mono under Linux.

When I want to load a legends.xml or legends_plus.xml, the app crashes with the following error message (taken from the terminal):
Code: [Select]
System.ArgumentException: Path is empty
  at System.IO.Path.Validate (System.String path, System.String parameterName) <0xb55659b0 + 0x000cd> in <filename unknown>:0
  at System.IO.Path.Validate (System.String path) <0xb5565970 + 0x00027> in <filename unknown>:0
  at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) <0xb5555510 + 0x0002d> in <filename unknown>:0
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) <0xb5555780 + 0x00061> in <filename unknown>:0
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) <0xb5554bb0 + 0x00034> in <filename unknown>:0
  at System.IO.Directory.GetFiles (System.String path) <0xb5554b70 + 0x00027> in <filename unknown>:0
  at LegendsViewer.FileLoader.LocateOtherFiles (System.String xmlFile) <0xaefaab08 + 0x002c7> in <filename unknown>:0
  at LegendsViewer.FileLoader.AttemptLoadFrom (System.String file) <0xaefaaa20 + 0x0006b> in <filename unknown>:0
  at LegendsViewer.FileLoader.XMLClick (System.Object sender, System.EventArgs e) <0xaefa9ea8 + 0x0002b> in <filename unknown>:0
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) <0xb1b050e0 + 0x00056> in <filename unknown>:0
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) <0xb1b05070 + 0x0004b> in <filename unknown>:0
  at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) <0xb1b65d88 + 0x00118> in <filename unknown>:0
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) <0xb1b65d60 + 0x00017> in <filename unknown>:0
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) <0xb1b65b38 + 0x00124> in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0xb3197660 + 0x001c3> in <filename unknown>:0
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) <0xb1ba4050 + 0x0005f> in <filename unknown>:0
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) <0xb1ba4028 + 0x00017> in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0xb3197640 + 0x0001d> in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0xb3197610 + 0x0002b> in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0xb3196248 + 0x002cb> in <filename unknown>:0

This problem does not happen when loading the world_map.bmp, world_history.txt or world_sites_and_pops.txt.

I use Debian "sid" (unstable branch), and the mono-complete (version 4.2.1.102+dfsg2-5) metapackage (that installs Mono and most of the libraries, including System.Windows.Forms).
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: CharonM72 on January 12, 2016, 07:17:34 am
I just added a ton of issues to the Github page Kromtec. Some are bugs and some are feature requests. Please take a look when you have time.  :D
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 12, 2016, 01:45:37 pm
I just added a ton of issues to the Github page Kromtec. Some are bugs and some are feature requests. Please take a look when you have time.  :D

Thanks for taking the time to report all these issues!

Thanks for continuing the development of Legends Viewer, but I have a major bug when running the app using Mono under Linux.

As far as I know there are lots and lots of issues when trying to run Legends Viewer with Mono.

Try LegendsBrowser (http://www.bay12forums.com/smf/index.php?topic=155307.0) as a multi-platform alternative.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on January 14, 2016, 09:07:03 am
Noticed this while browsing competitions:

The history of Itni Dashedorgan - competitive bard:
Spoiler (click to show/hide)

I didn't notice the second line at first and thought it was pretty funny that Itni was beaten repeatedly by his apprentice and finally got rid of him. Checking Legends reveals that in 49 Itni actually ceased being the apprentice of Thudu Strifeulnourished, not the master.

Competition is 'involving the Berry of Lyrics" according to Legends. Is it possible to get the poetic and musical forms yet? Everything's listed as "UNKNOWN POETIC CONTENT" right now. Some, but not all of the books are "UNKNOWN CONTENT" too for some reason (using Dfhack legends-plus xml)
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: TheCoolSideofthePIllow on January 18, 2016, 12:29:49 am
Is there any way to parse relationship information (mothers, fathers, brothers, sisters, friends, acquaintances, enemies, etc)?
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 19, 2016, 03:15:17 am
Noticed this while browsing competitions:

The history of Itni Dashedorgan - competitive bard:
Spoiler (click to show/hide)

I didn't notice the second line at first and thought it was pretty funny that Itni was beaten repeatedly by his apprentice and finally got rid of him. Checking Legends reveals that in 49 Itni actually ceased being the apprentice of Thudu Strifeulnourished, not the master.
I try to fix this bug in the next version. Thanks for reporting!

Competition is 'involving the Berry of Lyrics" according to Legends. Is it possible to get the poetic and musical forms yet? Everything's listed as "UNKNOWN POETIC CONTENT" right now. Some, but not all of the books are "UNKNOWN CONTENT" too for some reason (using Dfhack legends-plus xml)
Recently Karater (http://www.bay12forums.com/smf/index.php?action=profile;u=114278) did an outstanding job in expanding the exportlegends script with additional information for the legends_plus.xml.
The next version of DFHack will include this script and I currently work on handling all the new data.

Is there any way to parse relationship information (mothers, fathers, brothers, sisters, friends, acquaintances, enemies, etc)?
Some of this information already gets parsed and is displayed. But if the related person is not a historical figure (hasn't an entry in DF legends mode) the information is simply not available.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Feniks on January 19, 2016, 11:50:03 am
Hi there.

There was interesting discusion on reddit today about how great it would be to have family tree to keep track who is related to who. Since legend viewer already tracks this information do you think it would be possible to add function like this to it?
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 19, 2016, 01:45:42 pm
Hi there.

There was interesting discusion on reddit today about how great it would be to have family tree to keep track who is related to who. Since legend viewer already tracks this information do you think it would be possible to add function like this to it?

Yes I did something similar for the lineage of werebeast curses!

Spoiler (click to show/hide)

This will be in the next version.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Feniks on January 19, 2016, 07:26:03 pm
This is great you are amazing.
Title: Re: Legends Viewer 1.15.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 23, 2016, 10:12:33 am
Thanks to the awesome enhancements Karater (http://www.bay12forums.com/smf/index.php?action=profile;u=114278) made to the exportlegends script of DFHack a lot more data is available.
Big THX to him its really cool!

A lot more available data leads of course to a new release of Legends Viewer.  :)

So here is version 1.16.00 (http://dffd.bay12games.com/file.php?id=11455) with family trees, curse lineages, maps for regions, caverns, landmasses, icons, written content and a lot more!

NOTE:
The enhanced exportlegends.lua script from Karater (http://www.bay12forums.com/smf/index.php?action=profile;u=114278) comes not in the current version of DFHack [DFHack 0.42.04-alpha2].
Till it is integrated in DFHack you can get it here: EXPORTLEGENDS SCRIPT (https://raw.githubusercontent.com/robertjanetzko/dfhack/additional-exports/scripts/exportlegends.lua).
You don't need it but without it you will see a lot less content!


Screenshots:

Familytree:
Spoiler (click to show/hide)

Curse Lineage:
Spoiler (click to show/hide)

Regions:
Spoiler (click to show/hide)

Sites with Structures:
Spoiler (click to show/hide)

World Constructions (Roads, Tunnels):
Spoiler (click to show/hide)

Structures (Taverns, Libraries, ...):
Spoiler (click to show/hide)

Written Content:
Spoiler (click to show/hide)

Leadership Information:
Spoiler (click to show/hide)


Changelog:
# Enhanced Support for new DFHacks' LegendsPlus XML & Familytree + Curse Lineage

### DFHack LegendsPlus XML Support
* Additional information for existing event log texts.
* New pages and navigation tabs for
  * World Constuctions (roads, bridges, ...) + map.
  * Structures (Taverns, Libraries, Keeps, ...) + map.
  * Written Contents (Autobiographies, Poems, Manuals, ...).
  * Landmasses + map.
  * Mountain Peaks + map.
* Maps for overworld and underground regions.
* Leadership information for entites.

### Familytrees
* Display of family relations zoom and dragable.
* All ancestors of a historical figure are displayed but only its first child generation.
  * A historical figure can easily have 10-20 children and if I would include also its grand, grand, grand, ... children the family tree could get extremly huge.
* Cursed family members are highlighted with special node shapes.
* Indicator if alive or dead.

### Curse Lineage
* Display of the lineage of werebeast and vampire curses.
* Indicator if alive or dead.

### Bugfixes:
* Crash fix for Conquering Pages.
* Display of slayer race now takes the right text.
* Former apprentice/master event entries are now correct.
* Ex-Spouse relation of historical figures was broken.
* SeatOfPower site link type got proper text.

### Tweaks
* Icons for linked objects in all texts
* Skill display shows skill level in written text again
* Event date display with ordinals

**Note:**
_The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
_The enhanced exportlegends.lua (THX @robertjanetzko) script comes not with the current version of DFHack [DFHack 0.42.04-alpha2]._
_Till it is integrated in DFHack you can get it here: [EXPORTLEGENDS SCRIPT]( https://raw.githubusercontent.com/robertjanetzko/dfhack/additional-exports/scripts/exportlegends.lua )
_Since v1.14.02: To display the new population chart correctly you will need IE9+ rather than IE7+ as previously._
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: CharonM72 on January 23, 2016, 11:25:40 pm
This is incredible. I don't have the chance to test this now, but does this include sitemaps yet?
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 24, 2016, 04:13:24 am
This is incredible. I don't have the chance to test this now, but does this include sitemaps yet?

Sorry, sitemaps will have to wait till next release.

Preview:
Spoiler (click to show/hide)
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on January 24, 2016, 04:20:07 am
Where would you like us to post bugs, text issues, strange occurances and so on? This thread, github or someplace else? Seems like each time I browse a new world I spot some new issue I hadn't noticed before. But I don't really want to fill up this thread with my posts.
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 24, 2016, 04:27:13 am
Please post issues on github.
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 27, 2016, 12:36:05 pm
Just released 1.16.01.

If you had problems loading exports of the enhanced legends_plus.xml this release should help.

+Sitemaps:
Spoiler (click to show/hide)

Changelog:

# More Robust XMLPlus Parser + Site Maps

### XMLPlus Parser
* fix reading claim coordinates.
* fix for objects with negativ IDs.

### Site Maps
* Read site maps if exported with DFHacks' `exportlegends all`.
* They are loaded when navigating to the page of the site not at startup.
* They have to be in the same folder as the XMLs (Archive not supported)

### Event Enhancements
* Diplomat Lost
* Masterpiece Dye
* Masterpiece Food
* Assume Identity

### Tweaks
* Entity Type filter
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: burned on January 27, 2016, 01:25:46 pm
### Site Maps
* Read site maps if exported with DFHacks' `exportlegends all`.
* They are loaded when navigating to the page of the site not at startup.
* They have to be in the same folder as the XMLs (Archive not supported)

I understand why the size of the site map thumbnail matches the other two images when they are displayed together, but wouldn't the site maps be more useful if they actually lead to the file's original resolution? Right now it just leads to the default map just like the other two. I'm not sure I see the point of viewing a 50x50 pixel image of the site map when the image is 816x816 at it's largest. Even on the smaller end the image is roughly three times larger than the thumbnail presented.


Otherwise, I'm happy it works with the exported site maps sans DFhack. Thanks!


Edit: Or maybe the problem is on my end like the family trees and circular graphs and this only works if you have IE?
Title: Re: Legends Viewer 1.16.00 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 27, 2016, 01:55:21 pm
I understand why the size of the site map thumbnail matches the other two images when they are displayed together, but wouldn't the site maps be more useful if they actually lead to the file's original resolution? Right now it just leads to the default map just like the other two. I'm not sure I see the point of viewing a 50x50 pixel image of the site map when the image is 816x816 at it's largest.

They are displayed in 250x250 pixel  ;)

This release is more a hotfix for crashes with the new legends_plus.xml than about the sitemaps. I will enhance the sitemap behaviour in a future release.

If anybody finds a save where loading the export still crashes Legends Viewer, please upload it to DFFD!
Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: burned on January 27, 2016, 02:03:43 pm
They are displayed in 250x250 pixel  ;)

Ha! You're correct! But, the critique still stands. =]


I will enhance the sitemap behaviour in a future release.


Awesome.

Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: figment on January 29, 2016, 11:39:02 pm
Hi. Just wanted to say thanks for making the changes.  I've actually been maintaining my own version locally for a while and have merged in most of the recent changes as you have been updating it recently.

I was doing some work with ObjectListView to have a better list control for filtering and sorting. I also did my own legends_plus xml merging.  Quite a bit is incompatible with the current release so the merging work is getting to be quite a bit. 

Anyway I'm just making you aware of it if you are interested in merging it in.  The change history is not really useful since I was maintaining it for myself but felt I should at least post it back to see if you are interested.  Also helps me if merges are less painful in the future.  Some of my approaches to events and strings may be less error prone and useful but I'll let you determine that for yourself since you seem to know what you are doing.

Additional Information:
Spoiler (click to show/hide)
Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on January 30, 2016, 05:00:03 am
Hi. Just wanted to say thanks for making the changes.  I've actually been maintaining my own version locally for a while and have merged in most of the recent changes as you have been updating it recently.

I was doing some work with ObjectListView to have a better list control for filtering and sorting. I also did my own legends_plus xml merging.  Quite a bit is incompatible with the current release so the merging work is getting to be quite a bit. 

Anyway I'm just making you aware of it if you are interested in merging it in.  The change history is not really useful since I was maintaining it for myself but felt I should at least post it back to see if you are interested.  Also helps me if merges are less painful in the future.  Some of my approaches to events and strings may be less error prone and useful but I'll let you determine that for yourself since you seem to know what you are doing.

Additional Information:
Spoiler (click to show/hide)

Wow, I am definitely interested, this looks gorgeous!

I'll try to merge it into a stable version.

Edit: THX figment!
Basics are in, I added the ObjectListView to entities and regions too and will continue for all other tabs and subtabs over the next days.
I didn't have the time to go through your other xml parse / event improvements today but thats also on my list.
If you have the time, I would appreciate it if you could fork my branch and help me to incorporate more of your code.  :)
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on February 02, 2016, 02:29:05 am
New Release 1.16.02!

Now that DFHack has released an alpha version for 0.42.05 it wont be long till the LazyNewbPack catches up.
So lets release a version of Legends Viewer with figments (http://www.bay12forums.com/smf/index.php?action=profile;u=109052)' NavigationPanel Enhancements + some other tweaks.
Next release will have to wait until I played a lot of XCOM2...  :D


Changelog:
# Group- and Sortable Lists + Bugfixes

### ObjectListView all Tabs - THX figment (http://www.bay12forums.com/smf/index.php?action=profile;u=109052)!
* add columns
* group by columns
* sort by columns

### Event Enhancements
* HF disturbed structure
* HF razed structure
* HF died - new DeathCause "Spikes"

### Bugfixes
* parsing event "item lost"

### Tweaks
* Filter for Artifact Types
* Filter for Entity Types
* README.md as Startpage

**Note:**
_The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
_To display the population chart and family trees correctly you will need IE9+ rather than IE7+ as previously._
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: PeridexisErrant on February 02, 2016, 02:42:54 am
New Release 1.16.02!

Now that DFHack has released an alpha version for 0.42.05 it wont be long till the LazyNewbPack catches up.

Heh, 19 minutes after TwbT - which was the last thing I'm waiting for.  Should be up shortly!
Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: figment on February 03, 2016, 11:44:14 pm
Basics are in, I added the ObjectListView to entities and regions too and will continue for all other tabs and subtabs over the next days.
I didn't have the time to go through your other xml parse / event improvements today but thats also on my list.
If you have the time, I would appreciate it if you could fork my branch and help me to incorporate more of your code.  :)

Sorry I missed this also have been very busy and will continue to be so for another week.  I did actually merge in your branch. I figured that git would sort out that they both derived from same repo and handle a merge more gracefully since I merged in your master multiple times.   I guess not.

I'd be happy to help when I have more time but alas not until next wednesday i think at the earliest if I'm lucky.  But thanks for trying (or succeeding since you had other changes merged).

The only thing that I would really like is not to have to have an internet connection for the code to work correctly.  I couldn't figure out how to embedded the css files and make them actually work I guess more needed there.  Maybe there is a way to intercept the webbrowser download and supply a local version.  Anyway, thanks for our work.
Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on February 04, 2016, 04:08:19 am
I'd be happy to help when I have more time but alas not until next wednesday i think at the earliest if I'm lucky.  But thanks for trying (or succeeding since you had other changes merged).

No problem, as I sayed earlier I won't have time in the near future too.  :)

The only thing that I would really like is not to have to have an internet connection for the code to work correctly.  I couldn't figure out how to embedded the css files and make them actually work I guess more needed there.  Maybe there is a way to intercept the webbrowser download and supply a local version.  Anyway, thanks for our work.

I saw your efforts, but sadly embedding css files like font-awesome.min.css directly into the generated HTML doesn't do anything other than bloating the page. Without the font the css has no purpose and the font can only be loaded if you have a connection.

The only way I could think of how to do this without an internet connection is by hosting a real page locally instead of only generating a HTML-string set as WebBrowser.DocumentText. But that would mean a larger rewrite of this system.

The second thing is the readme page on start. You added it as a html file but that means I would have to maintain the README.html as well as the already maintained README.md.

What are the downsides of not having an internet connection when running Legends Viewer?
You get a blank page on startup like in the previous years since Legends Viewer was first released.
You dont see the fancy icons like in the previous years since Legends Viewer was first released.

I think there are more pressing issues like sorting the ObjectListView with click on the column header VS. sorting the underlying list with the filter/sort panel is not synchronized or implementing your awesome ToSaveLink() extension for all Print() calls.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: figment on February 14, 2016, 01:51:20 pm
I merged again.  github wont let me fork from your build as I already have one from the base library.  I will try a second merge starting from your library and see the conflicts and see what I can do to minimize the issues.  Some are just going to happen because of different approaches to World and Events but in theory are mostly ok from my perspective.

Regarding the internet connection, I dont always have an internet connection and would like it to work consistently when I dont.  I also have an aggressive firewall that alerts on every outbound connection which I dont like whitelisting apps just because they need to check a website if the latest build was successful.  If the files can be precompiled that would be nice.  This isn't an app that really benefits from internet.  Further it doesn't really cache files like a browser would for files that dont change so every time you load it redownloads several MB of files.  I understand that my view is minority view so I'll live.

The WCF library had a bug related to resizing width while collapsed so that it would not reexpand completely.  I should check that into a repo but updated the dll for now to workaround it.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Bearskie on February 25, 2016, 04:58:58 am
Gotta love this. Though event filters for sites doesn't seem to be working, and I'm not sure why the legends_plus isn't being automatically picked up when I load the main legends file (ie, the box doesn't turn green). Would you consider placing the family tree below all of the more important stuff? Right now it just takes up the whole hist figure view in a really bulky way.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Uzu Bash on March 03, 2016, 04:23:36 pm
A lot of this new information added is interesting to the curious, but it's not the info people search for first, so most the time it's quite spammy. Couldn't categories be collapsible, so only brief header info for the category is visible until a user elects to expand it? Or even make the collapse states independently configurable? Would it speed up page loading if each category's info were loaded only if the category is expanded?
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: GiuseppeIII on March 05, 2016, 04:59:23 pm
I am unable to use the Legends Plus XML with Legends Viewer. Whenever I enter the file, the box stays grey and when I enter the Legends XML into Legends Viewer it doesn't automatically find the file and the box stays grey.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: rhavviepoodle on March 23, 2016, 11:33:39 pm
Is there a chance this utility will be expanded to include the ability to easily track noble titles? In one of my games, a dwarf inherited the title of a mountain hall that had been ruined for at least a hundred years. It is fairly inconsequential, but I can't help but feel like it would be a neat addition. I only found this program recently but it's great so far. Keep up the good work :)
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: _forgotten on April 10, 2016, 05:06:07 pm
I cant seem to make Legends Viewer work. Every time i try to load xml i get this error ->
(http://s29.postimg.org/x7wccr18j/problem.jpg) (http://postimg.org/image/x7wccr18j/)

I am playing Dark Ages II.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Ironlion on April 28, 2016, 09:04:24 pm
I love a lot of the new features here, however...the performance is incredibly poor with large histories when compared to the last version by the first author.   The performance issues are *severe*, and it uses something on the order of 250% of the memory compared to previous versions.   This is a lot;   It won't really be useable until this can be pared down some.  Perhaps some indexing? 
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: baldamundo on April 29, 2016, 09:03:13 pm
I cant seem to make Legends Viewer work. Every time i try to load xml i get this error ->
(http://s29.postimg.org/x7wccr18j/problem.jpg) (http://postimg.org/image/x7wccr18j/)

I am playing Dark Ages II.

I'm also having trouble getting this to work with Dark Ages II (more detail here http://www.bay12forums.com/smf/index.php?topic=72702.msg6967161#msg6967161 (apologies if I posted in the wrong thread!)). Legends Browser and World Viewer don't seem to have any issue with the same files, though.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: figment on May 04, 2016, 11:17:14 pm
I'm also having trouble getting this to work with Dark Ages II (more detail here http://www.bay12forums.com/smf/index.php?topic=72702.msg6967161#msg6967161 (apologies if I posted in the wrong thread!)). Legends Browser and World Viewer don't seem to have any issue with the same files, though.
The problem appears to be with the world map.  Was that exported from Legends mode?  Otherwise it might be corrupted or something and possibly the other versions dont use it so dont have problems.  Maybe its name doesn't match the prefix expected.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on May 05, 2016, 07:08:54 am
I cant seem to make Legends Viewer work. Every time i try to load xml i get this error ->
(http://s29.postimg.org/x7wccr18j/problem.jpg) (http://postimg.org/image/x7wccr18j/)

I am playing Dark Ages II.
I'm also having trouble getting this to work with Dark Ages II (more detail here http://www.bay12forums.com/smf/index.php?topic=72702.msg6967161#msg6967161 (apologies if I posted in the wrong thread!)). Legends Browser and World Viewer don't seem to have any issue with the same files, though.


Please upload a zip from a world with this error, that contains these files:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml (if you exported this file using DFHack)
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

You can upload it to Dwarf Fortress File Depot (http://dffd.bay12games.com/index.php).

I will try to fix this problem.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on May 20, 2016, 12:35:04 am
Just to mention, Legends Viewer doesn't seem to like the new adventurer camps (no surprise there). There are the expected 'unknown' lines of course, in addition all the camps are labeled as founded in the year 1 .

Also, on the map, when I hover the mouse over a location with a camp and a fortress in the same place, 3 sites are listed: The camp, The fortress and "Important Place". Clicking on this "important place" reveals something like "dog,,, "'unknown site". I forget the exact description right now, always starts with an animal. Will upload a save if you find it hard to replicate.

Perhaps was present earlier, but I noticed unretiring a fortress now seems to incorrectly state that a reclaim party was sent and the fortress reclaimed.
Title: Re: Legends Viewer 1.17.00 (0.43.XX Compatible) Unoffical Branch
Post by: Kromtec on May 29, 2016, 02:38:11 pm
New Release 1.17.00!

Two weeks ago I saw an awesome Let's Play (https://www.youtube.com/watch?v=jJBjGS4y_6k) from one of my favorite Let's Players Das123 (http://www.bay12forums.com/smf/index.php?action=profile;u=9449), where he went through the history of The Shrine of Freezing (https://www.youtube.com/playlist?list=PLGB6RkFB7ZmMzVBBV_JvEQjyxxV90upZe).
I was baffled and proud that he used the Legends Viewer with all my new features for the whole episode 05!  :D

Of course I took note of the bugs and unknown properties he came across as well as issues from Vakothu, Shonai_Dweller and others and tried to address most of them in this release.

Changelog:
Code: [Select]
# Occasions + Relationships + new 0.43.XX infos + Bugfixes

### Occasion Information
* display name and type of occasions
* read schedule and feature infos

### Historical Figure Relationships
* display related historical figures
* show type (friendly, buddy, bully, grudge, ...)
* and strenght of relationship

### Site Information
* read and print new 0.43.XX rectangle information (Position + Size)
* show link to region in which the site is located (also for mountain peaks)
* also find sitemaps if processed with legendexport compress and sort script (extracted to .\site_maps\*.png)

### Region Information
* show list of sites and mountain peaks located in this region

### Structure Information
* Temples: Deity and Religion
* Inhabitants

### Various Enhancements
* added writtencontent types for musical composition and choreography
* added scheduletype musical competition
* added death cause heat

### Bugfixes
* fixed crash when creating population chart if only one member of a race was left
* special char in custom dwarf names led to empty familygraph
* site event tab was not filled with event types
* temporary work-around for invalid "important location" and "advmode camp" information
* correct texts for site retire/unretire

### Tweaks
* proper gender for noble positions
* find correct noble position in some cases if xml_plus not present
* removed historicalfigure caste from tooltip if "Default"
* removed historicalfigure caste + type from historical figure page if "Default" or "Standard"
* Site founded display in siteprinter (-1 => in a time before time)
* splitted deities and other related historical figure lists on Historical Figure pages
* sorted worshipped deities list by strength of worship
* special text for historical figures that came back from the dead more than once
* more detailed "unknown property" reports

**Note:**
_The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
_To display the population chart and family trees correctly you will need IE9+ rather than IE7+ as previously._
Title: Re: Legends Viewer 1.17.00 (0.43.XX Compatible) Unoffical Branch
Post by: Witty on May 29, 2016, 02:55:28 pm
Woo! Thanks for keeping this going Kromtec, you're the man.

Now we just need DFhack....
Title: Re: Legends Viewer 1.17.00 (0.43.XX Compatible) Unoffical Branch
Post by: bartbartholomew on May 30, 2016, 11:46:25 pm
I'm getter crashes whenever I try to load a world. I'm getting the same error as _forgoten, but I am using unmodified raws.

I am running the starter pack 0.42.06 R1, with updated DFHack 0.42.06 R1, and DF-AI 0.42.06 R1.

Error output:
Spoiler (click to show/hide)

Title: Re: Legends Viewer 1.17.00 (0.43.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on May 31, 2016, 08:09:58 am
Excellent. Thanks for the update!
Will keep you updated if I find any more weirdness.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: Kromtec on June 05, 2016, 04:07:51 pm
New Release 1.17.01!

And another one...
In this release I tried to improve performance and memory usage as well as make sure that even very old worlds do not lead to pages that need an eternity to load or crash the application.

The familygraph now renders ancestors from the same generation on one level and is therefore now a real familytree.  :D
I also wanted to make tracking royal lineages easier by giving their familytree entries special styles and write their title or former title on top.
Spoiler (click to show/hide)

Vampires, Werebeasts, Necromancers and Ghosts are highlighted with different styles and icons too.
Spoiler (click to show/hide)

The bug that _forgotten and bartbartholomew reported should be fixed too.

Changelog:
Code: [Select]
# Familygraph Overhaul + Performance

### Familygraph
* new layout for the familygraph to make it a real familytree (nodes in the same generation are on the same level)
* special styles, shapes and icons in familygraph for vampires, werebeasts, necromancers, ghosts
* track the lineage of leaders, they are highlighted by a crown symbol and their node is octagon shaped

### Performance
* limit for visible ancestors in the familytree to ensure performance on weaker systems or old worlds
 * you can of course go further back in the familytree but you have to navigate through the pages of the ancestors
* site page - only show short summary if more than 100 beast attacks or more than 100 deaths instead of the whole list
* regions and undergroundregions - only show short summary if more than 100 deaths instead of the whole list
* limit eventlog on all pages to 500, use filter in the eventstab if log exceeds this limit
* lots and lots of small performance and memoryusage improvements to the hot path of the code

### Various Enhancements
* you can now search for necromancers in the historical figures tab
* you can now search for animated corpse in the historical figures tab
* added writtencontent reference type for sphere
* added entity reputations for hero and hunter
* added death cause "vanished" and "encased in cooling magma"

### Bugfixes
* prevent itemstolen event to be doubled per site
* animated corpse were incorrectly classified as necromancers
* fix for UsedIdentity crash

### Tweaks
* Leader Position in Tooltip of Historical Figures
* Show duration for loading the world instead of start and end time

**Note:**
_The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
_To display the population chart and family trees correctly you will need IE9+ rather than IE7+ as previously._
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: McArcady on August 08, 2016, 02:30:49 pm
Thanks for the great tool!

I tried to run it under Linux using mono, but it seems that the program is making calls to Windows native libraries (user32.dll), that are not replaced by mono.
Anyone had the same problem?

Spoiler (click to show/hide)
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: CharonM72 on August 08, 2016, 09:00:09 pm
Glad this is still being worked on. Looks like when the artifact release comes out, there's gonna be a lot more work to do!
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: Kromtec on August 09, 2016, 06:10:50 am
Thanks for the great tool!

I tried to run it under Linux using mono, but it seems that the program is making calls to Windows native libraries (user32.dll), that are not replaced by mono.
Anyone had the same problem?

Spoiler (click to show/hide)

I am sorry, as far as I know there is no way of running Legends Viewer under Linux without rewriting large portions of the code.
You could try Legends Browser (http://www.bay12forums.com/smf/index.php?topic=155307.0) as a multi-plattform alternative.

Glad this is still being worked on. Looks like when the artifact release comes out, there's gonna be a lot more work to do!

Yeah, I look forward to that! Will be really cool to flesh out the artifact pages.
I am especially excited about the whole myth generator stuff. It will open lots and lots of new content to discover in legends mode.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: CharonM72 on August 09, 2016, 12:23:52 pm
Yeah, I look forward to that! Will be really cool to flesh out the artifact pages.
I am especially excited about the whole myth generator stuff. It will open lots and lots of new content to discover in legends mode.

I don't think I can play the myth release until LV can properly read it. There's just so much going on in the game world already behind the scenes that we never see in-game, with the myth release I imagine it will be even more.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: Algorithman on August 11, 2016, 11:38:40 am
Since it bugged me no end, quick fix for newer browsers which don't use the ScrollTop property anymore:

Switch in HTMLControl.cs from
Code: [Select]
                BrowserScrollPosition = HTMLBrowser.Document.Body.ScrollTop;

to

Code: [Select]
                BrowserScrollPosition = HTMLBrowser.Document.GetElementsByTagName("HTML")[0].ScrollTop;

and ie11 users are happy again :)

Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: kewlslice on August 13, 2016, 02:41:01 am
This is great, thanks.
Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: Algorithman on August 14, 2016, 02:29:47 pm
Basics are in, I added the ObjectListView to entities and regions too and will continue for all other tabs and subtabs over the next days.
I didn't have the time to go through your other xml parse / event improvements today but thats also on my list.
If you have the time, I would appreciate it if you could fork my branch and help me to incorporate more of your code.  :)

Sorry I missed this also have been very busy and will continue to be so for another week.  I did actually merge in your branch. I figured that git would sort out that they both derived from same repo and handle a merge more gracefully since I merged in your master multiple times.   I guess not.

I'd be happy to help when I have more time but alas not until next wednesday i think at the earliest if I'm lucky.  But thanks for trying (or succeeding since you had other changes merged).

The only thing that I would really like is not to have to have an internet connection for the code to work correctly.  I couldn't figure out how to embedded the css files and make them actually work I guess more needed there.  Maybe there is a way to intercept the webbrowser download and supply a local version.  Anyway, thanks for our work.

I put up a pull request on github for that issue (and a few more). So figment, keep the design enhancements coming, i added a local mini webserver.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: logodaedalus on August 15, 2016, 05:19:08 pm
New Release 1.17.01!

Does anyone know if there's any way to get the song / poem information (style, stanzas, etc) exported from DFHack? I wrote a little extension for myself a couple years back that generated more full-text stories of vampires inside Legends Viewer, but if possible I'd like to try my hand again by making an Arts tab to track stuff. However, I looked and it seems like the extra xml file only contains the material the books are bound in, but nothing more than that?

Thanks to Kromtec for keeping the project alive!

~Jacob
Title: Re: Legends Viewer 1.16.01 (0.42.XX Compatible) Unoffical Branch
Post by: figment on August 23, 2016, 09:06:11 pm
I put up a pull request on github for that issue (and a few more). So figment, keep the design enhancements coming, i added a local mini webserver.
I did figure out how to load CSS and JS into the webbrowser for another project so next time I work on this I'll update my fork to use those changes.  Given that I'm currently working on dfhack and just finished updating my TWBT, the next thing for me is usually exportlegends followed by the Legends Viewer.  Unfortunately, I had a harddrive fail and while it was only games and therefore nothing really unrecoverable and thus why not backed up I realized that my DF lua scripts were lost and now I have rewrite most of my hack scripts that go along with my use of the viewer.  Anyway, possible updates from me in the future (dont count on it as I'm terribly unreliable).

Edit:  I got exportlegends to not fail on my 0.43.05 Win64 build so happy for now.  May look into updating that script but tested with viewer and it works fine.

I downloaded the latest code with the merged webserver and that works pretty well.  I like it.  I'll have to think about if I want to make any changes but I can think of a few things I might add/fix.  One is to save/load default configuration of the lists and filters between sessions.  Another is look into seeing if jqGrid could improve the usability of the large lists in HTML.  Finally, zip and 7zip support never works for me.  But now maybe the time to play for a while to see what I need.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Mario on October 26, 2016, 08:37:47 am
I cant seem to make Legends Viewer work. Every time i try to load xml i get this error ->
(http://s29.postimg.org/x7wccr18j/problem.jpg) (http://postimg.org/image/x7wccr18j/)

I am playing Dark Ages II.

I had the same error when loading an XML. I tried to change my graphic pack and export again and this time it worked.
The XML that didn't work was with Meph 32px graphic pack and the working one was with Phoebus 16px graphic pack.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: jecowa on October 26, 2016, 09:17:50 am
Meph 32x includes a couple of mods. That might have something to do with it.
Title: Re: Legends Viewer 1.16.02 (0.42.XX Compatible) Unoffical Branch
Post by: Kromtec on October 26, 2016, 02:08:55 pm
I cant seem to make Legends Viewer work. Every time i try to load xml i get this error ->
(http://s29.postimg.org/x7wccr18j/problem.jpg) (http://postimg.org/image/x7wccr18j/)

I am playing Dark Ages II.

I had the same error when loading an XML. I tried to change my graphic pack and export again and this time it worked.
The XML that didn't work was with Meph 32px graphic pack and the working one was with Phoebus 16px graphic pack.

This bug from _forgotten has been fixed in the latest version Legends Viewer 1.17.01 (http://dffd.bay12games.com/file.php?id=11455).
I just tried an export with Mephs' Tileset Pack and everything worked fine.

If you get an error with the latest version help me to fix it:

Please upload a zip from a world with this error, that contains these files:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml (if you exported this file using DFHack)
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

You can upload it to Dwarf Fortress File Depot (http://dffd.bay12games.com/index.php).
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: fbo on November 02, 2016, 04:11:58 pm
don't know if there is something missing because of this, but on win10 a registry key ist generated one level to deep:
Code: [Select]
[HKEY_CURRENT_USER\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"LegendsViewer.exe"=dword:00002710
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: Kromtec on November 04, 2016, 01:20:03 pm
don't know if there is something missing because of this, but on win10 a registry key ist generated one level to deep:
Code: [Select]
[HKEY_CURRENT_USER\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"LegendsViewer.exe"=dword:00002710

Thanks! Algorithmen already fixed this bug.

Fix will be in the next version.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: LordKnows on December 09, 2016, 08:24:38 pm
 Hi, I'd just like to say that to me this has become my most important external utility for enjoying DF even compared to DFhack and DT.  :D

Considering the title says "unofficial", I'm unsure if this is the right place, but the one feature I think would enhance this utility greatly would be a bookmark feature. If it could carry over several xml dumps of the same world it would be especially great, but even without it it would be awesome to have a quick list of bookmarked pages you want to keep track of, even if it is just some kind of raw text you can then search for in later dumps of the same world. Obviously I have no technical knowledge of how difficult this would be to implement.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: Kromtec on December 13, 2016, 01:17:10 pm
Hi, I'd just like to say that to me this has become my most important external utility for enjoying DF even compared to DFhack and DT.  :D
Thanks!  :D

Considering the title says "unofficial", I'm unsure if this is the right place, but the one feature I think would enhance this utility greatly would be a bookmark feature. If it could carry over several xml dumps of the same world it would be especially great, but even without it it would be awesome to have a quick list of bookmarked pages you want to keep track of, even if it is just some kind of raw text you can then search for in later dumps of the same world. Obviously I have no technical knowledge of how difficult this would be to implement.
I submitted your idea to my Legends Viewer Github page (https://github.com/Kromtec/Legends-Viewer/issues/21). I hope to find time during the holidays to look into some of the issues I want to finish before releasing the next version.
Title: Re: Legends Viewer 1.17.01 (0.43.XX Compatible) Unoffical Branch
Post by: Shonai_Dweller on February 20, 2017, 02:21:42 am
You might want to think about renaming this. I mean, it may not be 'official' but its the only version which actually works with the current version of DF. Yeah, its a branch, but you might be inadvertently putting people off using one of the best (windows) utils for understanding the game.
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: Kromtec on February 20, 2017, 03:20:31 pm
You are absolutly right, I changed the title.
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: Shonai_Dweller on March 04, 2017, 08:17:25 pm
"...in a vampire purge" could do with a little more flavor.

Legends Mode version:
"In the year 889, Dang Baldevils fled to Sickjackals."

Legends Viewer:
"In 889, midwinter, Dang settled in Sickjackals. In a vampire purge"

In this case, Legends Viewer is actually giving us more information than Legends Mode which is great, it could just do with being arranged better. "In 889, midwinter, Dang fled to Sickjackals after a vampire purge" or something similar would be good.

There's a few cases where "In a..." is stuck on the end of a sentence. "Abducted...In an abduction" followed by "Settled in...In an abduction" is another which could do with being cleaned up.
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: Kromtec on March 05, 2017, 01:03:54 pm
I just revised all eventcollection information and tried to incorporate it better into the existing event description text.
Redundant information like "In 87, early summer, (Hematite, 22) the dwarf Iden Furnacetongues made a journey to the depths of the world. In a journey." was completely removed.
Your example would now be "In 889, midwinter, Dang fled to Sickjackals during a vampire purge."

I only have the information if an event is part of a bigger eventcollection. An eventcollection may be something like a battle, a theft, an abduction, a purge, a beast rampage, ...
There are hundreds of event/eventcollection combinations so I went the easy way for now and combined their description texts in most cases with "... during ...".
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: Nagidal on March 07, 2017, 12:02:02 pm
I recently wondered, is it possible to see the names of Brooks, rivers, and other water bodies in the world?
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: Johuotar on March 27, 2017, 01:05:38 pm
This is amazing tool! I was especially amused by the combat charts from which I can see exactly how many giant wombats were employed in historical battles.

Spoiler (click to show/hide)
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: thedonkified on September 22, 2017, 08:08:17 pm
Hi, I've been having issues where if a creature's plural name/caste name doesn't end with "s", it isn't counted as a part of civilized population. Is this a bug, or is there a problem with plurals of creature names not ending with an "s"?
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: Kromtec on September 23, 2017, 04:41:22 am
Hi, I've been having issues where if a creature's plural name/caste name doesn't end with "s", it isn't counted as a part of civilized population. Is this a bug, or is there a problem with plurals of creature names not ending with an "s"?

The problem is that I don't have the information if a race string is plural or singular. In the xxxxx-xx-xx-world_sites_and_pops.txt file it depends if the population count is greater than 1 which form is used (613 bats vs. 1 bat). In the XML files most race strings are singular or sometimes even only tags like 'camel_2_humped'. I try to map these various forms by using some hardcoded simple (and not very good  ;)) rules. To definitely solve this problem I would have to parse the raws, but I don't want to do that. The exported files should not require the users to keep extra game files.

Maybe in the future the exported XMLs add more information so I don't have to rely on my current method.
Title: Re: Legends Viewer (Maintained Branch) 1.17.01 | DF 0.43.XX
Post by: thedonkified on September 23, 2017, 01:02:18 pm
snip
I see. Thank you for the quick reply. That's unfortunate, but I'll go to making plurals end in "s" to compensate. Thanks again.
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: Kromtec on October 27, 2017, 07:06:35 am
New Release 1.18.00!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Warfare Graph and Charts + lots of minor improvements
### Features
- battle graph on entity page that visualizes the battles fought against other entities
- warfare victory / defeat chart for entities on their page
- war charts for all races and civilisations on the summary page (based on @leacasas initial concept)
- local mini http server to provide images, css and fonts (THX to @Algorithman)
- remember position on page when navigating back or forward
- eventlog on all pages now use jquery datatables and are thereby search and sortable
- group of dwarfs, fortresses and adventurers created by the player are linked on top of the summary page
- religious groups, their origin structures and their deities linked together
- show related entities on the entity page
- show related historical figures on site page
- added tabs for dance, musical and poetic forms - all artforms now have dedicated pages

### Performance
- Speedup for already calculated pages (THX to @Algorithman)

### Enhancements
- switching tabs also performs an initial search, so you don't have to click "search" on every tab to see results
- added types of written content (Comparative Biography, Cultural History, Cultural Comparison, Atlas, Treatise On Technological Evolution, Alternate History, Star Chart, Star Catalogue, Dictionary, Genealogy, Encyclopedia, Biographical Dictionary)
- added "agreement rejected" event
- you do not have to switch back to the summary tab to go to the world map etc., you can now use the short cut buttons in the navigation panel of the page
- historical figure page shows previous race for historical figures that changed type
- site maps (exported with DFHacks 'exportlegends all') are now opened externally in your standard image viewer when you click them

### Bugfixes
- fixed a crash in the chartpanel
- fixed crash when navigating to the world map with ctrl+click
- window title no longer shows the world name twice
- fix for emoji icons in readme page

### Tweaks
- use of the bootstrap grid feature on various pages to make the page more compact on big screens
- sites, structures and world constructions can now be found under the infrastructure tab
- artifacts, written content and art forms can now be found under the art & crafts tab
- the region list now shows the area of the region in square tiles and can be sorted by that
- elven deities "force of nature" have now "force" as their race instead of "unknown"
- changed the style of the chart panel to be closer to the rest of the pages
- show structure instead of id in "razed structure" event if xmlplus is loaded
- revised eventcollection information in event description texts
- found more reliable ways to determine the beast in beastattacks
- lots of refactoring and library updates

**Note:**
_Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: fbo on October 27, 2017, 04:19:12 pm
wohoo  ;D
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: Bearskie on October 28, 2017, 06:31:50 am
Those are some really excellent changes.
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: Ultimuh on November 26, 2017, 04:30:11 am
Looking forward to the next update, if any is planned.
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: Kromtec on November 26, 2017, 04:40:21 am
Looking forward to the next update, if any is planned.

Yeah, I will try to release a new version today.  :D
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: Ultimuh on November 26, 2017, 05:25:51 am
What? Already?
I'll be checking this thread every half hour now. :p
Title: Re: Legends Viewer (Maintained Branch) 1.18.00 | DF 0.43.XX
Post by: Shonai_Dweller on November 26, 2017, 06:01:12 am
Looking forward to the next update, if any is planned.

Yeah, I will try to release a new version today.  :D
Woohoo!
In with a quick request. Please see if you can seperate the new artifacts from the books. Or at least add a filter or something. Thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Kromtec on November 26, 2017, 08:25:02 am
New Release 1.19.01!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Support for DF 0.44.xx content
### Features
- Improved generated icons for civilizations
- The generated icon of a civilization stays the same across multiple exports
- Artifact tab hides written content as default
  - you can check "Show Written Content" to get all artifacts
- new DF 0.44.xx Events
  - hfs formed reputation relationship
  - hf recruited unit type for entity
  - hf prayed inside structure
  - hf viewed artifact
  - artifact given
  - artifact claim formed
  - artifact copied
  - artifact recovered
  - artifact found
  - sneak into site
  - spotted leaving site
- new Event Collection
  - Raid
- Artforms
  - Description
- Libraries
  - list of copied artifact written content
- Reputations
  - Treasure Hunter
  - Knowledge Preserver
- Moods
  - Macabre
  - Secretive
  - Insane
  - Possessed
  - Berserk
  - Fey
  - Melancholy
  - Fell
  - Catatonic
- Death Causes
  - vehicle
  - suicide drowned
  - suicide leaping

### Enhancements
- updated Events
  - artifact destroyed
  - artifact recovered
  - artifact possessed
  - item stolen

**Note:**
_Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_

NOTE: Till DFHack is compatible with DF 0.44.XX you will see a lot of missing data "UNKNOWN ..."!
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Ultimuh on November 26, 2017, 08:45:38 am
Thanks for the update!
One thing I noticed however, the viewer doesn't seem to identify what each legendary artifacts are. Except that they are "legenday item"s.
Any chance of that in the relatively near future?
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Kromtec on November 26, 2017, 08:56:39 am
Thanks for the update!
One thing I noticed however, the viewer doesn't seem to identify what each legendary artifacts are. Except that they are "legenday item"s.
Any chance of that in the relatively near future?

Vanilla Dwarf Fortress does not export the item type or its material. You have to wait until DFHack is updated to support DF 0.44+.
There is lots and lots of data missing in the normal export sadly.
As soon as  DFHack is up to date you can use the exportlegends script to get all the information you remember from previous versions.
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Ultimuh on November 26, 2017, 09:00:54 am
Fair enough, I suppose I'll wait then.
Thanks for the quick reply.
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: KittyTac on November 27, 2017, 04:13:06 am
It's only a few weeks. I can wait. Or so I hope.
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: burned on November 27, 2017, 04:50:02 pm
Kromtec, thanks once again for working on Legends Viewer!

I recently experienced a crash when looking at a specific historical figure. What information do you need from me to help you troubleshoot this?

In the meantime, here are the relevant files.

edit: fixed in 1.19.02 - thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: logodaedalus on November 27, 2017, 08:24:53 pm
Just a heads up! The new Legends XML export now has <written_contents>, <poetic_forms>, <musical_forms>, and <dance_forms>. Also, <artifacts> now link to written content. So it should be possible now to read the total works of writers/composers, etc.

Woohoo!

https://twitter.com/Bay12Games/status/935306800328355840
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Shonai_Dweller on November 27, 2017, 10:39:48 pm
I've had two or three worlds fail to load and one blank historical figure page (amongst many other worlds with no issues). I assume it's part of the ongoing worldgen/histfig crash issues in vanilla so not much to be done. But if you'd like to check some crashing worlds I can post some.
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Kromtec on November 28, 2017, 12:53:05 am
Kromtec, thanks once again for working on Legends Viewer!

I recently experienced a crash when looking at a specific historical figure. What information do you need from me to help you troubleshoot this?

In the meantime, here are the relevant files (http://burnedfx.com/DF/df_44_02_win_Legends_kromtec.zip).
I've had two or three worlds fail to load and one blank historical figure page (amongst many other worlds with no issues). I assume it's part of the ongoing worldgen/histfig crash issues in vanilla so not much to be done. But if you'd like to check some crashing worlds I can post some.

Thanks, I am not at my computer right now, so it will take me a few hours until I can check the files. I found and fixed a crash yesterday when I looked up the historical figure of an animated corpse that visited my fort.
It crashed because he was married.  ;D
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Kromtec on November 28, 2017, 01:28:30 am
@Shonai_Dweller If you could provide an export or a save from a world that does not load at all, that would be awesome.
Title: Re: Legends Viewer (Maintained Branch) 1.19.02 | DF 0.44.XX
Post by: Kromtec on November 28, 2017, 10:25:43 am
New Release 1.19.02!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Artifact location map + crash hotfix
### Bugfix
- fixed a crash when loading a historical figure page of a historical figure that is married

### Features
- artifact page shows its current location on the map if available

### Enhancements
- updated Events
- artifact lost
- artifact stored


**Note:**
_Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!_
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Mason11987 on November 28, 2017, 09:54:49 pm
Hey Kromtec, great update!  Do you happen to have a world you can share that has these two events:


  - sneak into site
  - spotted leaving site

I generated a bunch of world and never spotted these.  Thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.19.02 | DF 0.44.XX
Post by: burned on November 28, 2017, 10:12:56 pm
New Release 1.19.02! . . . /snip

Thanks so much!

No more issues at this time. =]
Title: Re: Legends Viewer (Maintained Branch) 1.19.01 | DF 0.44.XX
Post by: Shonai_Dweller on November 28, 2017, 10:57:18 pm
Hey Kromtec, great update!  Do you happen to have a world you can share that has these two events:


  - sneak into site
  - spotted leaving site

I generated a bunch of world and never spotted these.  Thanks!
They're both off-site squad events, aren't they?
Title: Re: Legends Viewer (Maintained Branch) 1.19.02 | DF 0.44.XX
Post by: Kromtec on November 29, 2017, 01:59:46 am
Hey Kromtec, great update!  Do you happen to have a world you can share that has these two events:


  - sneak into site
  - spotted leaving site

I generated a bunch of world and never spotted these.  Thanks!

The "Bugged Saves" and "Community Games" section of DFFD is a rich source.
This one (http://dffd.bay12games.com/file.php?id=13239) has these two events plus a new one I found yesterday -entity searched site-, that isn't even in 1.19.02.  :)

They're both off-site squad events, aren't they?

Yes, these are all events that happen when you send a squad on a raid mission.
Title: Re: Legends Viewer (Maintained Branch) 1.19.02 | DF 0.44.XX
Post by: Shonai_Dweller on November 29, 2017, 05:27:28 am
This world won't load in 1.19.02
http://dffd.bay12games.com/file.php?id=13245

All sorts of raw tweaking included.
They're pretty much the same as my tweaks from 43.05 which always worked in Legends Viewer but with some new ANIMAL tags too.
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Kromtec on November 29, 2017, 12:55:12 pm
New Release 1.19.03!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Raid tab + new event + tweaks and bugfixes
### Features
- new tab under warfare for raids
  - with map where the raid took place
  - eventlog for all events during the raid
- added new entity searched site event
- new reputationtype Protector of the Weak
- new death cause Chasm

### Enhancements
- updated Events
  - entity searched site (result)
  - artifact given (reason)
  - item stolen (get site from raid info if event was part of a raid)

### Bugfix
- fixed a bug where the waroverview could not find the color for an entity (made more robust for modded entities)

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!


This world won't load in 1.19.02
http://dffd.bay12games.com/file.php?id=13245

All sorts of raw tweaking included.
They're pretty much the same as my tweaks from 43.05 which always worked in Legends Viewer but with some new ANIMAL tags too.
Thanks Shonai_Dweller, the new release can now load this world too.
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Shonai_Dweller on November 29, 2017, 04:10:42 pm
Excellent!
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Iamblichos on November 29, 2017, 10:18:39 pm
The new version fixed my crash as well!  Thanks so much!
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Furla94 on December 01, 2017, 12:35:13 pm
I don't know if this is the rigth place to ask, but I have a question about Legend Viewer:
there is a way to have a "real time" Legend Viewer?
For example: every in-game year the tool automatically export a new XML file of the current word (deleting the old one to save memory) so you can read also about new historical figures/artifacts/beast/events.
P.S: This is a great tool, I love to explore in detail the history of every world!
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Kromtec on December 01, 2017, 12:48:50 pm
I don't know if this is the rigth place to ask, but I have a question about Legend Viewer:
there is a way to have a "real time" Legend Viewer?
For example: every in-game year the tool automatically export a new XML file of the current word (deleting the old one to save memory) so you can read also about new historical figures/artifacts/beast/events.
P.S: This is a great tool, I love to explore in detail the history of every world!

Yes, there is an awesome DFHack script that lets you explore legends mode during regular fortress play.
open-legends (http://dfhack.readthedocs.io/en/stable/docs/_auto/base.html#open-legends)
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Furla94 on December 01, 2017, 01:14:30 pm
I don't know if this is the rigth place to ask, but I have a question about Legend Viewer:
there is a way to have a "real time" Legend Viewer?
For example: every in-game year the tool automatically export a new XML file of the current word (deleting the old one to save memory) so you can read also about new historical figures/artifacts/beast/events.
P.S: This is a great tool, I love to explore in detail the history of every world!

Yes, there is an awesome DFHack script that lets you explore legends mode during regular fortress play.
open-legends (http://dfhack.readthedocs.io/en/stable/docs/_auto/base.html#open-legends)

Thank you very much!!! :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Shonai_Dweller on December 01, 2017, 04:29:48 pm
I don't know if this is the rigth place to ask, but I have a question about Legend Viewer:
there is a way to have a "real time" Legend Viewer?
For example: every in-game year the tool automatically export a new XML file of the current word (deleting the old one to save memory) so you can read also about new historical figures/artifacts/beast/events.
P.S: This is a great tool, I love to explore in detail the history of every world!

Yes, there is an awesome DFHack script that lets you explore legends mode during regular fortress play.
open-legends (http://dfhack.readthedocs.io/en/stable/docs/_auto/base.html#open-legends)

Thank you very much!!! :)
Has been known to rip the world open letting forth screaming hordes of circus fun on occasion. Not to mention save corruption. But...I guess that..might be fixed now. Keep a backup. :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: PatrikLundell on December 05, 2017, 04:12:43 pm
The save corruption is believed to be fixed, i.e. a correction has been made and the problem hasn't been seen after that.

A rather minor issue uncovered in another thread: Legends Viewer 1.19.03 lists Blizzard Men as Animal People, while it was pointed out that they are slow learners, and thus ought to join trolls and ogres in the "animals" category.
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Kromtec on December 07, 2017, 01:37:11 pm
A rather minor issue uncovered in another thread: Legends Viewer 1.19.03 lists Blizzard Men as Animal People, while it was pointed out that they are slow learners, and thus ought to join trolls and ogres in the "animals" category.

I don't have the information what really counts as animal people. Categorizing a race as animal people only depends on the string ending with "... Men" at the moment. Without additionally parsing the raws or hardcoding every DF race, there is no chance of making this decision.  :-\
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: PatrikLundell on December 07, 2017, 05:19:48 pm
A rather minor issue uncovered in another thread: Legends Viewer 1.19.03 lists Blizzard Men as Animal People, while it was pointed out that they are slow learners, and thus ought to join trolls and ogres in the "animals" category.

I don't have the information what really counts as animal people. Categorizing a race as animal people only depends on the string ending with "... Men" at the moment. Without additionally parsing the raws or hardcoding every DF race, there is no chance of making this decision.  :-\
Thanks for explaining the reason.

I think the tag that they can become heroes is required for animal people to join civs (and I assume that rules out the subterranean animal people, although I haven't checked). I believe there are two hero tags, one for joining civs and one for allowing them to be played in adventure mode. Slow learner should disable animal peopleness (and it shouldn't appear together with the hero tag(s) anyway). EXOTIC_PET should disable them as animal people (that would cause them to behave like gremlins, I think).
Going by the "men" suffix would exclude Gorlaks (and include non sapients like magma men, but those probably never show up in settlements), by the way. However, I guess this kind of logic requires RAW parsing (which is far superior to hard coding, but I guess it's not something you like to do when there's no other reason to read them).
The above is from my memory of how it works approximately. I believe others actually know how it works.
Regardless, it's not exactly a major issue.
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: SalmonGod on December 14, 2017, 06:28:23 pm
Anybody else not see any buttons to import legends files?...

(https://i.imgur.com/LGjdh0n.jpg)
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Kromtec on December 15, 2017, 04:31:33 am
Anybody else not see any buttons to import legends files?...

megaBadger had the same problem. I couldn't reproduce it but I reopened the issue on github.
Cannot select xml file (https://github.com/Kromtec/Legends-Viewer/issues/26)

Can you provide more information there. Operating system, screen resolution and DPI could be helpful.
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: SalmonGod on December 15, 2017, 06:28:34 pm
Windows 10 64-Bit (Up to Date)

Dual Monitor
Main -- 2560x1600
Side -- 900x1440 in portrait mode

Not sure about DPI?...  I have a Custom Scaling factor of 113%
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: Kromtec on December 20, 2017, 10:25:12 am
Windows 10 64-Bit (Up to Date)

Dual Monitor
Main -- 2560x1600
Side -- 900x1440 in portrait mode

Not sure about DPI?...  I have a Custom Scaling factor of 113%

It looks like Windows Forms does not do well with custom scaling. 125% 150% 225% were fine but with 113% scaling factor I could reproduce this bug.  I changed the order of the controls so that the buttons are on the left side of the textboxes and made a few other tweaks.
In the next version you will be able to import the legends files. Thanks for reporting this bug.  :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.03 | DF 0.44.XX
Post by: SalmonGod on December 20, 2017, 05:47:45 pm
Nice!  Thanks!  I love this tool for understanding my DF worlds.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Kromtec on December 25, 2017, 09:07:48 am
New Release 1.19.04!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Support for DF Hack 0.44.01-beta1
### Features
- support for DF Hack 0.44.01-beta1
- performance improvements historical figures ToLink()

### Enhancements
- better readability for written content type in navigation table

### Bugfix
- fix for custom scaling DPI
- fixed duplicated structures when loading legends_plus.xml
- object of worship sometimes not found if it is a force of nature

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: dragdeler on December 26, 2017, 02:34:24 pm
I was going to report a crash, then I saw this new version, the crash is gone  ;).

But what it tells me about my fortress can not be true: 131 losses in a battle that's supposedly happened while I was gone with my adventurer; bringing my population count down to 79, which is only off by 60...


I did "exportlegends info" on 44.03 with the new dfhack via "open-legends"
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Shonai_Dweller on December 26, 2017, 03:36:31 pm
I was going to report a crash, then I saw this new version, the crash is gone  ;).

But what it tells me about my fortress can not be true: 131 losses in a battle that's supposedly happened while I was gone with my adventurer; bringing my population count down to 79, which is only off by 60...


I did "exportlegends info" on 44.03 with the new dfhack via "open-legends"
Does that include the huge wave of visitors that showed up shortly after you retired?
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: dragdeler on December 26, 2017, 06:09:59 pm
It shows 79 dwarves for civilized populations and 30 visitors of all races. Ingame both citizens and others are well above 100. The xml was exported something like a week after unretiring.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: dragdeler on December 26, 2017, 06:28:55 pm
Oh well take all that with a grain of salt... My game is just weird AF. That battle can never have happened, the ennemy has to many kills and I'm missing too little people. But even weirder:

 I got nobles, something I did not have before retiring, but here is the weird part: 2 of them I assume are procedural and chosen out of a general population because they have no history prior to becoming noble in some far away thing that barely isn't a ruin. But one of the new nobles lived here prior to that, and he is now also baron of some far away hillocks. Except that my civ only rules over my fortress and the place my adventurer comes from.


Oh yeah the place my adventurer comes from is ruled by a subgovernement my starting 7 consider to be a criminal organisation if all that wasn't weird enough.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Kat on December 27, 2017, 03:28:47 pm
Generating several worlds testing a mod civilisation. Using Legends Viewer to see what's going on in them, see if my changes are having any effect. Found this gem in one world:

(https://i.imgur.com/HHS5LbW.png)

 ???
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Shonai_Dweller on December 27, 2017, 03:54:54 pm
Generating several worlds testing a mod civilisation. Using Legends Viewer to see what's going on in them, see if my changes are having any effect. Found this gem in one world:

(https://i.imgur.com/HHS5LbW.png)

 ???

Pado mellowed out after becoming an inn keeper. After reuniting with his undead nemesis 30 years on, they drunk together until dawn and discovered a newfound respect for one another. How sweet. :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: SalmonGod on December 27, 2017, 06:08:19 pm
Generating several worlds testing a mod civilisation. Using Legends Viewer to see what's going on in them, see if my changes are having any effect. Found this gem in one world:

(https://i.imgur.com/HHS5LbW.png)

 ???

Pado mellowed out after becoming an inn keeper. After reuniting with his undead nemesis 30 years on, they drunk together until dawn and discovered a newfound respect for one another. How sweet. :)

This is why I love DF.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Kromtec on December 28, 2017, 04:37:27 am
I did "exportlegends info" on 44.03 with the new dfhack via "open-legends"
I didn't even know you can "exportlegends" during "open-legends". It looks like "open-legends" retires the fortress in the background and every vacant noble position got filled with a dwarf of my starting seven in my test run.
Don't know what happens in the background when you "open-legends" during adventure mode.

Oh well take all that with a grain of salt... My game is just weird AF. That battle can never have happened, the ennemy has to many kills and I'm missing too little people. But even weirder:

 I got nobles, something I did not have before retiring, but here is the weird part: 2 of them I assume are procedural and chosen out of a general population because they have no history prior to becoming noble in some far away thing that barely isn't a ruin. But one of the new nobles lived here prior to that, and he is now also baron of some far away hillocks. Except that my civ only rules over my fortress and the place my adventurer comes from.

Oh yeah the place my adventurer comes from is ruled by a subgovernement my starting 7 consider to be a criminal organisation if all that wasn't weird enough.
After retiring a fortress, DF might make some weird choices but I don't think these are bugs.
Compare vanilla legends mode with the information LegendsViewer provides and if they don't match, please open an issue (https://github.com/Kromtec/Legends-Viewer/issues) and upload the save to DFFD.

Generating several worlds testing a mod civilisation. Using Legends Viewer to see what's going on in them, see if my changes are having any effect. Found this gem in one world:

Spoiler (click to show/hide)

 ???
Haha, this is awesome!  :D
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: dragdeler on December 28, 2017, 12:23:46 pm
TBH I don't exactly trust the thing, so if it retires I have info about a battle that was not saved. I was hoping it was some DFusion magic  ;D (I don't really understand that side of DFHack). It's entirely possible, but so far every specific information I consulted the legendsviewer for, showed no indication of being from an alternate timeline. Sadly I'm unable to tell which unretirement caused the nobility, I didn't notice soon enough and I'm not particularly interested in going trough backups, especially since there is no guarantee unretirement delays will generate the same history.

Then there is that whole shitstorm with me enrolling demon masters and killing all the hostiles that stand around after you unretire... A few months later one demon killed a baron of some town his civ is ennemy with, did they never cross paths before? Luckily it did cause no loyalty cascade. Ah btw their presence tells me that in any case the battle happened after my adventurer came back.

I'd love to know more about how the game considers things, but DF remains mysterious and I keep ruining the test samples with my ambitions of fun.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Shonai_Dweller on January 22, 2018, 08:15:39 am
Could you take a look at the world in the link below:
http://dffd.bay12games.com/file.php?id=13452

In-game Legends Mode tells of a minotaur civilization named "The Contained Insanities". These don't appear in the list of minotaur civs (fallen or otherwise) in Legends Viewer. However scrolling down the summary indicates a war fought by the Contained Insanities, a group of "Unknown".

Exporting xml with DFhack lists them correctly in the war-list as a group of minotaurs. But they still don't correctly appear as an actual minotaur civilization which Legends Mode indicates they are. So this is either Legends Mode missing something, or some deeply broken connections within DF itself (I have caught Legends Mode mentioning "An Unknown Civilization" recently, so there's some connection issues going on somewhere).

Let me know if you want a save or DFhack exported xml.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Kromtec on January 22, 2018, 12:51:18 pm
Let me know if you want a save or DFhack exported xml.

Please upload a zip that contains these files:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

You can check the regionx-xxxxx-xx-xx-world_history.txt file if it contains your civilization.
If not, I think it might only be a faction of a larger civilization and gets wrongly labeled as a civilization from DF.

Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Shonai_Dweller on January 22, 2018, 04:06:53 pm
OK. Updated the files attached at DFFD.
http://dffd.bay12games.com/file.php?id=13452

I doubt it's being labelled wrongly as a civ.
Like I said, DF Legends Mode calls it a civ and has a full history for it, including appointment of civ level positions.
(WorldViewer is also happy to list it as a civ - in both regular extracted XML and XML extracted with DFHack).
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Kromtec on January 23, 2018, 02:56:38 pm
OK. Updated the files attached at DFFD.
http://dffd.bay12games.com/file.php?id=13452

I doubt it's being labelled wrongly as a civ.
Like I said, DF Legends Mode calls it a civ and has a full history for it, including appointment of civ level positions.
(WorldViewer is also happy to list it as a civ - in both regular extracted XML and XML extracted with DFHack).

Thanks Shonai_Dweller!
The bug occurred in big worlds with entities that have the same name. In your case there was also a nomadic group called "The Contained Insanities".
Your ~1GB legends file was a rich source of duplicated names for both entities and historical figures.  :D

I made the world_history.txt and world_sites_and_pops.txt parser a lot more robust and will release a new version after I have done some more testing.
Title: Re: Legends Viewer (Maintained Branch) 1.19.04 | DF 0.44.XX
Post by: Shonai_Dweller on January 23, 2018, 03:26:10 pm
Ah, yes, I do end up with a lot of duplicates. Especially with all those Utterances tribes. :)
Glad to have been of some use. This is an essential util for me.
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: Kromtec on January 29, 2018, 03:34:09 am
New Release 1.19.05!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# new hf freed event + tweaks and bugfixes
### Features
- added new historical figure freed event
- added changehfstate reason (lack of sleep)

### Enhancements
- made history and sitepops parsers more robust

### Bugfix
- fixed a bug when the name of an entity was duplicated
- population correctly passed to parent entities
- fix event assumeidentity crash if target is null
- assume identity typo

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: Shonai_Dweller on January 29, 2018, 04:23:23 am
When do hf's suffer lack of sleep?  :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: Kromtec on January 29, 2018, 04:48:04 am
When do hf's suffer lack of sleep?  :)

They can get a mood because of a lack of sleep.  :D

Something like:
Quote
{hf} was striken by melancholy in {site} due to lack of sleep.

I download saves of community games from dffd every now and then, to see if I find new things in legends. There are a lot of uncommon legend entries that happen only on rare occasions.
Especially death causes are really funny and macabre sometimes: 
Quote
A cat fell into a deep chasm. (personal favorit ;D)
{hf} was encased in cooling magma.
{hf} was fed to beasts.
{hf} was killed by a vehicle.
...
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: PatrikLundell on January 29, 2018, 12:02:25 pm
I've gotten exceptions for some visiting characters when I've tried to do background checks on them. I would guess you'd like to look at what's causing that, so I've provided the exported legends here:
https://www.dropbox.com/s/daygb4xsurm8mwb/Exported%20Legend.zip?dl=0 (https://www.dropbox.com/s/daygb4xsurm8mwb/Exported%20Legend.zip?dl=0)
I've tried it with the latest version (1.19.05) after it failed with the one in the LNP. The DF version is 0.44.05 with the world generated with the same version, and the character I was looking for was Zulur Segokxem/Ochremyths.
The character is listed, but an exception box is brought up when I try to get details on him.

Very useful utility (although I did actually manage to do the check using Legends Mode, but that's an undesired fallback option).
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: Kromtec on January 30, 2018, 04:35:01 am
I've gotten exceptions for some visiting characters when I've tried to do background checks on them. I would guess you'd like to look at what's causing that, so I've provided the exported legends here:
https://www.dropbox.com/s/daygb4xsurm8mwb/Exported%20Legend.zip?dl=0 (https://www.dropbox.com/s/daygb4xsurm8mwb/Exported%20Legend.zip?dl=0)
I've tried it with the latest version (1.19.05) after it failed with the one in the LNP. The DF version is 0.44.05 with the world generated with the same version, and the character I was looking for was Zulur Segokxem/Ochremyths.
The character is listed, but an exception box is brought up when I try to get details on him.

Very useful utility (although I did actually manage to do the check using Legends Mode, but that's an undesired fallback option).

Thanks!
It crashes because the attacker entity in a battle where Zulur Ochremyths took part is null. This leads to lots of other problems and crashes in various places where information from that battle is processed.
I will try to find the root cause of this problem but it most likely will have to wait till the weekend.
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: PatrikLundell on January 30, 2018, 04:50:45 am
Thanks for looking into it. My starting guess would be that since the world was generated with culling of unimportant hist figs, this might cause references to them to be null when exported.
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: a52 on January 31, 2018, 04:42:08 pm
I'm getting an exception when I try to view my adventurer, Udib Lashedraked. The XML looks fine to me (as far as I can tell), and there are no errors or missing things in the DF legends mode. (Note: When Udib's pages is clicked on from the search bar, it causes an exception, when it's opened from a link, it's just blank)

Here's the file: http://dffd.bay12games.com/file.php?id=13471

I'm using v1.19.04, I don't know yet if it crashes in v1.19.05
Title: Re: Legends Viewer (Maintained Branch) 1.19.05 | DF 0.44.XX
Post by: Kromtec on February 02, 2018, 08:59:37 am
I'm getting an exception when I try to view my adventurer, Udib Lashedraked. The XML looks fine to me (as far as I can tell), and there are no errors or missing things in the DF legends mode. (Note: When Udib's pages is clicked on from the search bar, it causes an exception, when it's opened from a link, it's just blank)

Here's the file: http://dffd.bay12games.com/file.php?id=13471

I'm using v1.19.04, I don't know yet if it crashes in v1.19.05

I just tried it with 1.19.04 and 1.19.05. I get the exception in 1.19.04 but not in the newer version.  ;)
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: Kromtec on February 11, 2018, 07:37:02 am
New Release 1.19.06!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Hotfix
### Bugfix
- null reference crash fix for battles with no attacker entity

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!

Thanks for looking into it. My starting guess would be that since the world was generated with culling of unimportant hist figs, this might cause references to them to be null when exported.

Sorry it took so long.   :)
I finally was able to look into it and it seems that the "attacked site" event can now happen in rare cases without an attacker civilization. It looks like the historical figures on the attacker side are often from different civilizations and are visiting the attacked site.
They have a reputation as treasure hunters in the defending civilization and are sometimes imprisoned after the battle.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: PatrikLundell on February 11, 2018, 08:33:44 am
Thanks a lot!
It doesn't seem to be very rare, though, as it happens with every few visitors (or their spouses) I look at. I'll be back if I encounter any new (different) cases with the latest version.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: Bearskie on February 19, 2018, 09:55:51 pm
Feature request time! Ignore me if this is unfeasible... it would be nice if we could export the world map with the programs overlays, such as civ placements and sites. For pocket maps I can usually just take a screenshot, but large maps are simply too large for it.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: PatrikLundell on February 20, 2018, 04:49:14 am
I assume this is actually a DF issue, but I'll ask here anyway:
I'm looking at the history of my fortress, and it claims all attacks except the last one were made from a site that is currently not under the control of anyone. However, earlier exports showed a number of attacks were made from the goblin capital, which (sort of) matches with the force composition. In those exports this former elven retreat wasn't owned by anyone while these attacks were issued.
Thus, the history of where attacks originated keeps changing.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: ogueta93 on February 21, 2018, 02:59:19 pm
Hi! In advance search when I try to search or order by Notable kill i get an exception.
I try to build other worlds, but always failed.

I'am using the 1.19.06 version and i get the xml file by DFHack.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: Shonai_Dweller on February 24, 2018, 11:43:03 pm
Battle statistics for "Kills" are reversed on the map.
Open up a battle for the detailed breakdown showing total combatants, then click on the mini-map. When you hover the mouse over the battle location, the combatants / kills are shown but the kills are the reverse of what they should be.

So for example (looking at the battle in front of me): "The Crazed Sieges" was fought between "The Impunity of Hawks (Attacker) 1097 members, 33 losses"  and "The Roar of Fortune (Defender) 980 members, 980 losses.
Decisive victory for Minotaurs over Elves and their grizzly bears.

The map (on mouseover) shows the info: The Crazed Sieges (Battle) > Combatants: 1097/980 Kills: 980/33. It should be 33/980 of course.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: Carch on March 16, 2018, 07:16:08 am
Battle statistics for "Kills" are reversed on the map.
Open up a battle for the detailed breakdown showing total combatants, then click on the mini-map. When you hover the mouse over the battle location, the combatants / kills are shown but the kills are the reverse of what they should be.

So for example (looking at the battle in front of me): "The Crazed Sieges" was fought between "The Impunity of Hawks (Attacker) 1097 members, 33 losses"  and "The Roar of Fortune (Defender) 980 members, 980 losses.
Decisive victory for Minotaurs over Elves and their grizzly bears.

The map (on mouseover) shows the info: The Crazed Sieges (Battle) > Combatants: 1097/980 Kills: 980/33. It should be 33/980 of course.

no. that makes sense. the hawks had 1097 combatants, killed 980 enemies. the fortunes had 980 combatants and killed 33.
Title: Re: Legends Viewer (Maintained Branch) 1.19.06 | DF 0.44.XX
Post by: PatrikLundell on March 22, 2018, 10:37:12 am
Minor artifact info bug (1.19.06):
The artifact Hairheat is claimed to have been lost at Newhope the Future of Knowledge (my fortress) at 0169-01-01 and again at 0192-01-01, well before the fortress was founded in 400. DF Legends Mode claims it was lost in 169 in the Elevated Forests and in The Competitive Hills in 192.
The Competitive Hills is a region, rather than a fortress, and so is The Elevated Forests. Interestingly, the entries after the loss ones are about unknown creatures (cull unimportant histfigs) recovering them in the regions they actually were lost in.
There is a later entry about it being lost in an actual fortress, which is correctly identified, so it seems the loss of an item in a region isn't interpreted properly.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: Kromtec on March 25, 2018, 10:35:12 am
New Release 1.19.06!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# new and updated events + tweaks and bugfixes
### Features
- added tactical situation event
- added squad vs squad event

### Enhancements
- updated plunder site event
- updated hffreed event
- updated merchants event
- updated agreement events (tribute topic)
- updated sitetributeforced event (season)

### Bugfix
- various advanced search fixes
- artifact lost in region fix

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!

Feature request time! Ignore me if this is unfeasible... it would be nice if we could export the world map with the programs overlays, such as civ placements and sites. For pocket maps I can usually just take a screenshot, but large maps are simply too large for it.
I added it to the idea list on the github page. here (https://github.com/Kromtec/Legends-Viewer/issues/34) THX

Hi! In advance search when I try to search or order by Notable kill i get an exception.
I try to build other worlds, but always failed.

I'am using the 1.19.06 version and i get the xml file by DFHack.
Thanks for reporting. I neglected the advanced search feature for a long time.  :) All crashes should be gone now.

Minor artifact info bug (1.19.06):
The artifact Hairheat is claimed to have been lost at Newhope the Future of Knowledge (my fortress) at 0169-01-01 and again at 0192-01-01, well before the fortress was founded in 400. DF Legends Mode claims it was lost in 169 in the Elevated Forests and in The Competitive Hills in 192.
The Competitive Hills is a region, rather than a fortress, and so is The Elevated Forests. Interestingly, the entries after the loss ones are about unknown creatures (cull unimportant histfigs) recovering them in the regions they actually were lost in.
There is a later entry about it being lost in an actual fortress, which is correctly identified, so it seems the loss of an item in a region isn't interpreted properly.
You are absolutely right!
If an artifact gets lost in a region, the event information does not contain which region it was. So I took the optimistic approach and took the current location of the artifact that is stored in the artifact information itself. I didn't consider that artifacts can be found after they were lost.  :D
Now the current location of the artifact is only used if the "artifact lost" event is the last event that happend to this artifact.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: Loam on May 05, 2018, 07:57:41 am
So I genned a 1,000-year, Medium-region world. When I try to load it, Legends Viewer throws a "Out of Memory" exception.
The Legends XML is 651 MB, Legends-Plus XML is 198. No other programs running.
Is there anything I could do to fix this, or is the world just too big to load?
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: PatrikLundell on May 05, 2018, 11:43:07 am
So I genned a 1,000-year, Medium-region world. When I try to load it, Legends Viewer throws a "Out of Memory" exception.
The Legends XML is 651 MB, Legends-Plus XML is 198. No other programs running.
Is there anything I could do to fix this, or is the world just too big to load?
You need to provide more information:
- How much memory does your computer have?
- What OS are you using (including version)?
- 32 or 64 bit version? A 32 bit version will probably croak if it needs more than 2 GB. If you're using a 32 bit version on Windoze Large Address Aware patching might increase the addressable memory to 3 GB (I don't have any links to LAA patchers, although I used one several years ago with DF).
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: Loam on May 05, 2018, 04:06:18 pm
Windows 7, 32 bit, 4 GB RAM (just over 3 GB usable).
This is my laptop; I haven't tried it on my desktop (which has better specs) but I'd like to get it running on the laptop, since it's terribly convenient.

Thanks for the help.

EDIT: Ha, nevermind. I loaded it on my desktop, and it takes 3+ gigs to run. Time for an upgrade, I suppose.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: pamelrabo on May 06, 2018, 02:16:17 am
I get a blank screen when I try to click on a destroyed (by user sent squads) necro tower site. If I do a search of the necromancers by name I get an exception.

Long: I played as a civ whose first queen turned a necromancer. I built a fortress to attack the tower she was in, according to Legends. My squads succeeded and destroyed the site, killing all necromancers. I retired then and exported the xml to read the details offgame, but that event didn't show / caused the crash.

I guess the possibility of destroying sites is not supported yet? It's just normal, it's a recent feature. I can provide the xml, if you are curious.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: PatrikLundell on May 06, 2018, 03:53:08 am
I get a blank screen when I try to click on a destroyed (by user sent squads) necro tower site. If I do a search of the necromancers by name I get an exception.

Long: I played as a civ whose first queen turned a necromancer. I built a fortress to attack the tower she was in, according to Legends. My squads succeeded and destroyed the site, killing all necromancers. I retired then and exported the xml to read the details offgame, but that event didn't show / caused the crash.

I guess the possibility of destroying sites is not supported yet? It's just normal, it's a recent feature. I can provide the xml, if you are curious.
Have you tried to look at it in the "raw" Legends Mode to see if the info is shown correctly there?
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: Kromtec on May 06, 2018, 04:04:44 am
I get a blank screen when I try to click on a destroyed (by user sent squads) necro tower site. If I do a search of the necromancers by name I get an exception.

Long: I played as a civ whose first queen turned a necromancer. I built a fortress to attack the tower she was in, according to Legends. My squads succeeded and destroyed the site, killing all necromancers. I retired then and exported the xml to read the details offgame, but that event didn't show / caused the crash.

I guess the possibility of destroying sites is not supported yet? It's just normal, it's a recent feature. I can provide the xml, if you are curious.

Yeah, would be awesome if you could upload a zip that contains these files:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

Or even better: a zip of the save so i can cross-check the information in DF Legends Mode.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: pamelrabo on May 08, 2018, 12:58:18 pm
Tonight (european time) I can send it. Save and xml.
For what I recall, it was pretty informative in the error message about the things it couldn't understand.

Thanks for your attention.
A lot. Really.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: pamelrabo on May 09, 2018, 01:42:01 am
Here's the save.
Hope it helps you.

https://www.dropbox.com/s/dirk45t4u9lxxka/DF%20save.rar?dl=0 (https://www.dropbox.com/s/dirk45t4u9lxxka/DF%20save.rar?dl=0)

Also, let me know if the link doesn't work. I managed to screw these kind of things before.
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: Kromtec on May 09, 2018, 03:57:35 am
Here's the save.
Hope it helps you.

https://www.dropbox.com/s/dirk45t4u9lxxka/DF%20save.rar?dl=0 (https://www.dropbox.com/s/dirk45t4u9lxxka/DF%20save.rar?dl=0)

Also, let me know if the link doesn't work. I managed to screw these kind of things before.

Thank you, everything works.
There are 3 new events in your save:
.. but they don't lead to a bug and are not imported from the xml. I will add them in the next couple of days so they will be displayed in the Legends Viewer.   :D

I found a crash when opening the page of your civ "The Hatchet of Dreaming". That crash happened because battles that occur during a mission sometimes have no defender or attacker set.
But I can not reproduce the bug you described when opening the page of the necro tower or the necromancer queen "Rith Cryptpick".
All 3 towers in your world open just fine: Earthenapes, Abyssknife and Ferriedtalon
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: pamelrabo on May 09, 2018, 04:51:15 am
Curious, the reports said "destroyed". But guess it's more like "the group there fled".

Good to know everything's ok, I had crashes when trying to save while my squads were half-returned (I panicked a bit), until I figured it was related to the battle finishing and characters already out of the game world but not yet in my fortress.

Glad to be of any help for improving the Viewer. Is there a donation button somewhere? This software is for me even more enjoyable than Therapist and other utility wonders. ¿How do I pay you a coffee?
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: Kromtec on May 09, 2018, 06:15:42 am
Curious, the reports said "destroyed". But guess it's more like "the group there fled".

Two of the three towers are destroyed. The "site destroyed" event is nothing new and happened during world gen for years now. What is new is that now you can induce such an event through the new mission system.

Glad to be of any help for improving the Viewer. Is there a donation button somewhere? This software is for me even more enjoyable than Therapist and other utility wonders. ¿How do I pay you a coffee?

Haha, glad you like it, donate to
http://www.bay12games.com/support.html (http://www.bay12games.com/support.html)
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: pamelrabo on May 10, 2018, 12:38:23 am
I'm already a patron of bay 12, I meant Legends Viewer (I also threw a few bucks to the supporter of the starter pack in its moment).

Guess you're ok with knowing your work is great and you're bringing happiness to the world.
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Kromtec on May 11, 2018, 07:54:45 am
New Release 1.19.08!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# export map feature + new and updated events
### Features
- export map with all currently displayed overlays
- added agreement void event
- added entity rampaged in site event
- added entity fled site event

### Enhancements
- updated site conquered event collection
- updated destroyed site event
- updated agreement formed event

### Bugfix
- entity page - battles where attacker or defender is null caused crash

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!

You can now export maps with all currently displayed overlays.

Like for example this map:
Spoiler (click to show/hide)

@pamelrabo
Your world should not crash anymore and I implemented the new events.  :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.07 | DF 0.44.XX
Post by: pamelrabo on May 14, 2018, 01:18:42 pm
IYour work is great and you're bringing happiness to the world.

I'd say it one and one thousand times.
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Saiko Kila on May 15, 2018, 01:16:12 pm
Two questions.

First: how to enable the family view? I see empty space instead of graphs. May it be to some limitations of my hardware or software? I can see the maps (including overlays) and charts seemingly fine.

Second: Initially I had a problem with program not finding the legends plus file. I have a directory/world named "region4410b_Wetsalve_LEGENDS_250". Export with DFHack ('exportlegends info') creates such files:
Code: [Select]
region4410b_Wetsalve-00250-01-15-legends.xml
region4410b_Wetsalve-00250-01-15-world_history.txt
region4410b_Wetsalve-00250-01-15-world_map.bmp
region4410b_Wetsalve-00250-01-15-world_sites_and_pops.txt
region4410b_Wetsalve_LEGENDS_250-00250-01-15-legends_plus.xml
region4410b_Wetsalve_LEGENDS_250-world_gen_param.txt
I've checked with ProcMon that LegendsViewer expects the legends plus file to be named "region4410b_Wetsalve-00250-01-15-legends_plus.xml" (so I renamed it, and have no errors now). Apparently either DFHack or LegendsViewer names the file wrongly. Which one is that?
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Bimbus on May 15, 2018, 10:51:30 pm
Is there any possibility that Historical figures/Artifacts will get their physical descriptions in the viewer, or is it simply impossible to add? And are event logs supposed to have some sort of text information? The charts alone don't impart much themselves(I am also not seeing graphs of battle summaries or family trees, using current versions of all three; dfhack, lviewer, and df.)
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Kromtec on May 16, 2018, 04:03:22 am
... how to enable the family view? I see empty space instead of graphs. May it be to some limitations of my hardware or software? I can see the maps (including overlays) and charts seemingly fine.
... are event logs supposed to have some sort of text information? The charts alone don't impart much themselves(I am also not seeing graphs of battle summaries or family trees, using current versions of all three; dfhack, lviewer, and df.)
I just checked with DF 0.44.10 + DFHack 0.44.10-beta1 + LegendsViewer 1.19.08 and everything works fine for me. What OS do you use?

Is there any possibility that Historical figures/Artifacts will get their physical descriptions in the viewer, or is it simply impossible to add?
Sorry, but that is not possible as long as this information is not exported by DF or DFHack.

Initially I had a problem with program not finding the legends plus file. I have a directory/world named "region4410b_Wetsalve_LEGENDS_250". Export with DFHack ('exportlegends info') creates such files:
Code: [Select]
region4410b_Wetsalve-00250-01-15-legends.xml
region4410b_Wetsalve-00250-01-15-world_history.txt
region4410b_Wetsalve-00250-01-15-world_map.bmp
region4410b_Wetsalve-00250-01-15-world_sites_and_pops.txt
region4410b_Wetsalve_LEGENDS_250-00250-01-15-legends_plus.xml
region4410b_Wetsalve_LEGENDS_250-world_gen_param.txt
I've checked with ProcMon that LegendsViewer expects the legends plus file to be named "region4410b_Wetsalve-00250-01-15-legends_plus.xml" (so I renamed it, and have no errors now). Apparently either DFHack or LegendsViewer names the file wrongly. Which one is that?
This seems to be a DFHack and or DF issue. I just tried it with exactly your world name "region4410b_Wetsalve_LEGENDS_250" and get the same result. Maybe the name is too long or a special case when there are more than one underscore characters in it. I don't know.
LegendsViewer has nothing to do with exporting the files but it expects the files to have this naming scheme:
Code: [Select]
<worldname>-<year>-<month>-<day>-legends.xml
<worldname>-<year>-<month>-<day>-world_history.txt
<worldname>-<year>-<month>-<day>-world_map.bmp
<worldname>-<year>-<month>-<day>-world_sites_and_pops.txt
<worldname>-<year>-<month>-<day>-legends_plus.xml
<worldname>-world_gen_param.txt
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Saiko Kila on May 16, 2018, 05:25:33 am
I just checked with DF 0.44.10 + DFHack 0.44.10-beta1 + LegendsViewer 1.19.08 and everything works fine for me. What OS do you use?

I have the graph issue resolved now. This was caused by lack of Internet Explorer 9. I use Vista x64, and it had IE8, IE9 apparently being optional. I've noticed that LV uses IE files, but at first though it's for internet access only, not as rendering engine. Later I saw I can see source of the displayed information, so copied it to HTML file, and displayed in my old Firefox, and then realised what's the issue. Then I downloaded IE9 and installed (I also applied the last Vista security update, which was for IE9 specifically), and this resolved the problem. As a side note, now my IE does crash when launched separately, but that's OK, as long as Legend Viewer works.

This seems to be a DFHack and or DF issue. I just tried it with exactly your world name "region4410b_Wetsalve_LEGENDS_250" and get the same result. Maybe the name is too long or a special case when there are more than one underscore characters in it. I don't know.
LegendsViewer has nothing to do with exporting the files but it expects the files to have this naming scheme:
Code: [Select]
<worldname>-<year>-<month>-<day>-legends.xml
<worldname>-<year>-<month>-<day>-world_history.txt
<worldname>-<year>-<month>-<day>-world_map.bmp
<worldname>-<year>-<month>-<day>-world_sites_and_pops.txt
<worldname>-<year>-<month>-<day>-legends_plus.xml
<worldname>-world_gen_param.txt

Thank you for answer. The naming issue is minor, and apparently on the DFHacks side anyway. I renamed the world_gen_param too, just in case it is used (is it?).
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Bimbus on May 16, 2018, 11:02:15 am
I am using Windows 7 64bit but only have IE 8 as well. Its likely that this is the issue, but just to confirm, installing the appropriate IE fixed the issues with both chart and log information? Installed the necessary version for my os and everything is working perfectly now. Sorry for the confusion.
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: Kromtec on May 17, 2018, 04:16:04 am
Yeah, Legends Viewer needs IE 9+ for the embedded browser. I recommend you install the latest version (IE 11)  :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: TrippleFlipple on May 24, 2018, 02:54:05 pm
Yes as Saiko Kila and Kromtec pointed out, renaming your save files from its original format will prevent Legends Viewer from reading the xml plus file by that name. Just replace the "region 1" text with something else to organize your files. I have been dealing with this forever so thank you!  :D
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on July 08, 2018, 06:17:27 am
New Release 1.19.09!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# XML parsing progress info, improvements and bugfixes
### Features
- parsing step info during loading

### Enhancements
- better tooltips for entities
- improvements to site owner history - especially vaults
- improvements to ambiguous entity and historicalfigure name handling
- better links between art forms and occasion events
- updated squad vs squad event
- added 'great deal of stress' as a new reason for historical figure state change
- updated body abused event - types for impaled, flayed, piled, hung, multilated, animated
- updated tactical situation event

### Bugfix
- crash fix if AddHFEntityLink event has missing information
- crash fix in siteprinter

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: MangoGold on July 21, 2018, 12:58:19 pm
Error on world load.
Spoiler (click to show/hide)
https://drive.google.com/drive/folders/1ddcXNUZ-gGT_dRNGgIMSShWcrcOqB0k6
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on July 23, 2018, 04:25:02 am
Error on world load.
Spoiler (click to show/hide)
https://drive.google.com/drive/folders/1ddcXNUZ-gGT_dRNGgIMSShWcrcOqB0k6

Thanks, I fixed this issue based on your files (There were two entities with the name "The Late Bell" which led to problems when reading their leaders and worshipped deities). Fix will be in the next version.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Bimbus on August 05, 2018, 09:13:29 pm
Will celebrations/festivals/similar events, ever have their own category? Also for historical figures, will titans and forgotten beasts get their own filter, and is it possible to add their descriptions to their pages?
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Bimbus on August 06, 2018, 12:52:46 am
I notice that wars don't list the reason that they were started, is it possible that this can be added as well?
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Bimbus on August 06, 2018, 02:29:51 pm
Lastly, it seems like there was some sort of memory leak while I was using the Legends viewer, I had been using it for over thirty min, and my PC informed me that I was over my memory limit, and checking my task manager showed the legends viewer had gotten to using almost all my cpu and physical memory.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: jajo on August 18, 2018, 08:50:22 am
Hi

I had/have a problem.
I have Win 10 1803. After updating with KB4343909 Legends Viewer opens and immediately closes.
After removing patch KB4343909 it works OK.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on August 21, 2018, 05:56:00 am
Will celebrations/festivals/similar events, ever have their own category?
They might get their own category but at the moment i am not sure if there is enough interesting information about them.

Also for historical figures, will titans and forgotten beasts get their own filter, and is it possible to add their descriptions to their pages?
I notice that wars don't list the reason that they were started, is it possible that this can be added as well?
In contrast to vampires, werebeasts, necromancers, ... titans and forgotten beasts can be filtered by selecting them from the race drop down.
Descriptions as well as reasons for war are not in the exported files. You have to talk to Toady about that  :) or maybe someone from the dfhack team can put that information in the legends_plus.xml file.

Lastly, it seems like there was some sort of memory leak while I was using the Legends viewer, I had been using it for over thirty min, and my PC informed me that I was over my memory limit, and checking my task manager showed the legends viewer had gotten to using almost all my cpu and physical memory.
I'll look into it, thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on August 23, 2018, 04:02:13 am
Hi

I had/have a problem.
I have Win 10 1803. After updating with KB4343909 Legends Viewer opens and immediately closes.
After removing patch KB4343909 it works OK.

I can not reproduce this bug. I have tried it on two different PCs with KB4343909.  :(
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Leatra on August 29, 2018, 04:35:03 pm
Error on loading a world.

Other worlds worked fine so this must be specific to this particular world.

save: https://www45.zippyshare.com/v/uJyqZYqf/file.html

logs:
Code: [Select]
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.ReadParentCiv()
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.Parse()
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LegendsViewer
    Assembly Version: 1.19.9.341
    Win32 Version: 1.19.09.341
    CodeBase: file:///C:/Users/leatra/DOWNLO~1/PERIDE~1.12-/LNP/Utilities/Legends%20Viewer/LegendsViewer.exe
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ObjectListView
    Assembly Version: 2.9.1.1072
    Win32 Version: 2.9.1.0
    CodeBase: file:///C:/Users/leatra/DOWNLO~1/PERIDE~1.12-/LNP/Utilities/Legends%20Viewer/ObjectListView.DLL
----------------------------------------
WFC
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/leatra/DOWNLO~1/PERIDE~1.12-/LNP/Utilities/Legends%20Viewer/WFC.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SevenZipSharp
    Assembly Version: 0.64.3890.29348
    Win32 Version: 0.64.3890.29348
    CodeBase: file:///C:/Users/leatra/DOWNLO~1/PERIDE~1.12-/LNP/Utilities/Legends%20Viewer/SevenZipSharp.DLL
----------------------------------------
CommonMark
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///C:/Users/leatra/DOWNLO~1/PERIDE~1.12-/LNP/Utilities/Legends%20Viewer/CommonMark.DLL
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




Thanks for this awesome tool btw :D
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on September 04, 2018, 07:40:59 am
Error on loading a world.

Other worlds worked fine so this must be specific to this particular world.
...

Hm, I just tried to replicate your error. But for me the world loads just fine, with and without the legends_plus.xml. I used DF 0.44.12 and DFHack 0.44.12-r1 to export the legend files.
Maybe something went wrong with your export and your legend files are corrupted?
Title: Re: Legends Viewer (Maintained Branch) 1.19.08 | DF 0.44.XX
Post by: lethosor on September 04, 2018, 10:25:01 am
Thank you for answer. The naming issue is minor, and apparently on the DFHacks side anyway. I renamed the world_gen_param too, just in case it is used (is it?).
The naming issue is DF's fault - DF truncates region names in filenames to a certain number of characters, while DFHack does not. It's probably easier to fix on DFHack's side, though.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Accord2 on September 07, 2018, 03:06:03 am
I loaded in the program a legends plus file yet it doesn't show the Unknown Characters name. In the Masterworks Legends version it shows, using the same file. What am I doing wrong?
Edit: I am using DFHack
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on September 14, 2018, 05:38:40 am
I loaded in the program a legends plus file yet it doesn't show the Unknown Characters name. In the Masterworks Legends version it shows, using the same file. What am I doing wrong?
Edit: I am using DFHack

Are you sure you have all these files?:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
There may be some rare events with "UNKNOWN" texts, even with the legends plus file. But almost all of it should be fixed if you have exported the files properly.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: PatrikLundell on October 16, 2018, 01:46:14 pm
Some discrepancies noted when getting down to raiding (v1.19.09):
- I've conquered two sites, and in both cases the map showed the site as belonging to the goblins I took it from at the end of the year of conquest (I export Legends info once per year, using DFHack so the extra data is exported as well). When looking at the site itself it correctly notes that it has been conquered. It's not unlikely it's a matter of DF exporting inconsistent info, of course.
- Similarly, I've been stealing books from a necro tower, and the events of the books being stolen are recorded, but at the top of the site entry it says (created, stored) for them (I haven't checked everyone, only two, but the number remaining is far less than the number listed, and one of the books was stolen in the first raid during the previous year). Again, I wouldn't be surprised if it's caused by inconsistent exported info.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on October 28, 2018, 02:22:07 am
Some discrepancies noted when getting down to raiding (v1.19.09):
- I've conquered two sites, and in both cases the map showed the site as belonging to the goblins I took it from at the end of the year of conquest (I export Legends info once per year, using DFHack so the extra data is exported as well). When looking at the site itself it correctly notes that it has been conquered. It's not unlikely it's a matter of DF exporting inconsistent info, of course.
- Similarly, I've been stealing books from a necro tower, and the events of the books being stolen are recorded, but at the top of the site entry it says (created, stored) for them (I haven't checked everyone, only two, but the number remaining is far less than the number listed, and one of the books was stolen in the first raid during the previous year). Again, I wouldn't be surprised if it's caused by inconsistent exported info.

Can you take a look into the regionx-xxxxx-xx-xx-world_sites_and_pops.txt file and search for the conquered sites. As far as I remember, I take the current owner of a site from there.
For your second issue, could you provide the exported files?
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: PatrikLundell on October 28, 2018, 04:34:53 am
The ...world_sites... file correctly showed the site as belonging to the dorfs. I've zipped it up in https://www.dropbox.com/s/swtois5351dmh67/Dwarf%20Fortress%200.44.12.zip?dl=0 (https://www.dropbox.com/s/swtois5351dmh67/Dwarf%20Fortress%200.44.12.zip?dl=0).
This zip file contains two sets of exported info. The earlier one is the one containing the issues mentioned, while the later shows is a "bonus" issue: The Necro tower Machinesprings (just south of the mountain block in the northern end of the map) throws an exception when clicked on (and doesn't show any info when hovered over). I suspect the tower to be completely empty, as I've raided it repeatedly and had a couple of raids report it just being searched, while most reported reported the dorfs slipping in undetected. Since you can ignore the reception and return from it it's not a serious issue, but it does block you from seeing the info on that site (like the slab the dorfs failed to bring back).

Back to the original issues: The books stolen were taken from the same necro tower mentioned above, i.e. Machinesprings. "The Secret of Creation" is listed as (created, stored) in Machinesprings, and listed as stored in "Newhope the Future of Knowledge", my fortress, to the south of Machinesprings. I suspect the logic looks at "stored" in the log for the book, but fails to account for the next entry "stolen" (i.e. no longer stored), when looking at the info on the book.

And the first issue: There's a civ connection line from Newhope to the SE to Seizerained. Two tiles to the west of that site you have Birdtufts, which is shown with goblin civ links, but it was in fact conquered by me (and the detailed info shows that to be the case, which is probably what you extract from the ...world_sites... file). The issue is that the civ level lines don't match that (and the screen on the doesn't list the sites. However, the summary screen lists The Sin of Clobbering as having 2 sites, while the world map shows 3 (the third one being the misrepresented one).

I hope I've managed to explain the issues. If not, please request clarifications.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on October 30, 2018, 06:27:31 am
I hope I've managed to explain the issues. If not, please request clarifications.

Thanks! I already fixed the exception when clicking on the necro tower for the next version of Legends Viewer, but I will need a little more time for your other issues.
Your exports are a rich source of new features that were implemented in the last versions of DF.  :D
There are even two new events I have never encountered before: "entity expels hf" and "site surrendered"
Can you also upload the save, so I can get the exact wording for the new events from DF legends mode?
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: PatrikLundell on October 30, 2018, 09:44:50 am
Unfortunately, my fortress is dead due to a crash bug. However, that means a save is available on DFFD http://dffd.bay12games.com/file.php?id=14083 (http://dffd.bay12games.com/file.php?id=14083)... (It's several days away from the crash, so Legends Mode should be available).

I've expelled several dorfs (and humies) as they were spiraling towards stress induced madness. I think, however, they were all expelled to sites (as opposed to expelled without a target location, which I had to do in my past dead civ fortress, as those can get no sites (due to a bug)).
The "site surrendered" presumably comes from me successfully demanding the surrender of two sites (there are no failures in there, though), and I haven't tried to raze sites.

Anyway, I'm happy to provide a little help to allow you to improve a great tool a little further.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on November 02, 2018, 05:26:10 am
New Release 1.19.10!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

@PatrikLundell I hope that solves all your problems  ;)

Changelog:
Code: [Select]
# New events, improvements and bugfixes
### Features
- added new event "entity expels hf"
- added new event "site surrendered"

### Enhancements
- improvements to related artifact state info
- improvements to states of related artifacts on site and historical figure pages
- various tweaks for site ownership icons on world map

### Bugfix
- history parser - read civ deities/leaders crash fix
- nullreference fix in "plundered site" event

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in [Lazy Newb Pack](http://lazynewbpack.com/) for exporting the additional XML file!
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: squamous on November 08, 2018, 03:20:12 am
I don't know if this has already been talked about, but two potential features I think would be neat to see are
1. Allowing us to see misc kills by hist figs. Sometimes one might kill only 5 historical figures and then like a few dozen unnamed ones, and we'd never know it unless we went into actual legends mode.
2. Reasons for why wars were fought. Not really high priority (neither is the other one really) but it might be neat to easily understand why people fight each other.
3. Ability to see who's in charge of bandit gangs, mostly for adventure mode quest purposes since you get a lot of orders to kill them.
Regardless though I'm definitely a fan and I've been using this for awhile, good luck with future updates.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: PatrikLundell on January 18, 2019, 05:33:02 am
I encountered an exception when trying to look up a hist fig (everything else I've looked has has worked OK).
The hist fig in question is "Stozu Witchsweats" in this Legends export: https://www.dropbox.com/s/r27u39a1u3sw9xb/Newhope%20legend.zip?dl=0.
Trying to get at the character via "The Oceans of Hatred" resulted in an empty screen, but no exception (again, the other members I looked at were fine).
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on January 22, 2019, 08:23:56 am
I encountered an exception when trying to look up a hist fig (everything else I've looked has has worked OK).
The hist fig in question is "Stozu Witchsweats" in this Legends export: https://www.dropbox.com/s/r27u39a1u3sw9xb/Newhope%20legend.zip?dl=0.
Trying to get at the character via "The Oceans of Hatred" resulted in an empty screen, but no exception (again, the other members I looked at were fine).

Thanks PatrikLundell!
It was a NullReference Exception in the relatively new "Spottet Leaving Site" event. It is fixed, but I think I won't release a new version till DF gets its villain update.

I don't know if this has already been talked about, but two potential features I think would be neat to see are
1. Allowing us to see misc kills by hist figs. Sometimes one might kill only 5 historical figures and then like a few dozen unnamed ones, and we'd never know it unless we went into actual legends mode.
2. Reasons for why wars were fought. Not really high priority (neither is the other one really) but it might be neat to easily understand why people fight each other.
3. Ability to see who's in charge of bandit gangs, mostly for adventure mode quest purposes since you get a lot of orders to kill them.
Regardless though I'm definitely a fan and I've been using this for awhile, good luck with future updates.

I can only show information that gets exported from DF or respectively from DFHacks ExportLegends script. Maybe there will be more info about bandit gang hierarchy with the next DF update.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: PatrikLundell on January 22, 2019, 01:42:36 pm
Thanks Kromtec!

Getting the info on that particular character isn't exactly critical, and I haven't encountered any other cases of it, so it's more a matter of letting you know so things can get handled eventually than anything urgent.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Thundercraft on March 13, 2019, 01:59:56 pm
Posting to watch...
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on March 22, 2019, 09:50:25 pm
Just noticed, there's no sewer option in the structures filter. Sewers are marked in the list as "dungeon".
Actual description shows a sewer though.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on March 27, 2019, 06:16:24 am
Just noticed, there's no sewer option in the structures filter. Sewers are marked in the list as "dungeon".
Actual description shows a sewer though.

Thanks! Sewers and catacombs are handled as a subtype of dungeons by DF. If it is set, I now show this subtype instead of the regular type in the filter dropdown and the navigation list.
This change will be in the next version of LegendsViewer, which will come shortly after the villain update.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on March 27, 2019, 06:22:33 am
Just noticed, there's no sewer option in the structures filter. Sewers are marked in the list as "dungeon".
Actual description shows a sewer though.

Thanks! Sewers and catacombs are handled as a subtype of dungeons by DF. If it is set, I now show this subtype instead of the regular type in the filter dropdown and the navigation list.
This change will be in the next version of LegendsViewer, which will come shortly after the villain update.
Great, thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Flying Teasets on March 30, 2019, 12:33:33 pm
Legends Viewer isn't detecting several modded-in human civs and I can't figure out why. Their settlements appear on the map but their governments aren't listed on the summary page and they're white or grey in civ events.

EDIT: The modded civs might be transposed or superposed due to a mistake I made, but I don't know how. They all have unique entity IDs.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on April 04, 2019, 07:45:50 am
Legends Viewer seems to be having some trouble reading my modded world correctly. It usually does OK, this is the first time I've seen this happen.
It's a large world so I can post a save or Legends file but they'll be pretty big.

Basically the world has two groups, both named "The Froths of Severity". One is a Minotaur civilization, the other is a minotaur bandit gang.
The civilization isn't showing in the list of Minotaur civs in my world on the summary screen. I guess it's because of the name duplicate, but can something be done about it?
That's the main screen I use for a quick look at the world before playing.

Searching brings up both groups. Although the non-Dfhack version describes both as "The Frosts of Severity are a group." Handy...
DFHack version has the correct descriptions but still doesn't list the civilization in the civilization list.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on April 11, 2019, 12:35:42 am
Legends Viewer isn't detecting several modded-in human civs and I can't figure out why. Their settlements appear on the map but their governments aren't listed on the summary page and they're white or grey in civ events.

EDIT: The modded civs might be transposed or superposed due to a mistake I made, but I don't know how. They all have unique entity IDs.

Look in the xxx-world_sites_and_pops.txt file if they are listed under "Civilized World Population". If they are, then it is a problem mapping their race name from the XML (singular) to one of the civilized races in this file (plural).
Or is their race "Human/Humans", in this case it should definitely work.

Legends Viewer seems to be having some trouble reading my modded world correctly. It usually does OK, this is the first time I've seen this happen.
It's a large world so I can post a save or Legends file but they'll be pretty big.

Basically the world has two groups, both named "The Froths of Severity". One is a Minotaur civilization, the other is a minotaur bandit gang.
The civilization isn't showing in the list of Minotaur civs in my world on the summary screen. I guess it's because of the name duplicate, but can something be done about it?
That's the main screen I use for a quick look at the world before playing.

Searching brings up both groups. Although the non-Dfhack version describes both as "The Frosts of Severity are a group." Handy...
DFHack version has the correct descriptions but still doesn't list the civilization in the civilization list.

Could be a similar problem to Flying Teasets' issue. I always have a hard time combining the infos from the xxx-world_sites_and_pops.txt file to the infos of the XML files.
The xxx-world_sites_and_pops.txt file has no IDs for the entities and in larger worlds, duplicated names are very common.

Maybe I can improve the way it is handled in your cases if you post the zipped legend files.
I am sorry that I have long response times at the moment but I am currently moving. It is a little bit hectic until May, I read the forums but I rarely have time to look into details.  :D

Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on April 11, 2019, 08:18:25 am
Legends Viewer isn't detecting several modded-in human civs and I can't figure out why. Their settlements appear on the map but their governments aren't listed on the summary page and they're white or grey in civ events.

EDIT: The modded civs might be transposed or superposed due to a mistake I made, but I don't know how. They all have unique entity IDs.

Look in the xxx-world_sites_and_pops.txt file if they are listed under "Civilized World Population". If they are, then it is a problem mapping their race name from the XML (singular) to one of the civilized races in this file (plural).
Or is their race "Human/Humans", in this case it should definitely work.

Legends Viewer seems to be having some trouble reading my modded world correctly. It usually does OK, this is the first time I've seen this happen.
It's a large world so I can post a save or Legends file but they'll be pretty big.

Basically the world has two groups, both named "The Froths of Severity". One is a Minotaur civilization, the other is a minotaur bandit gang.
The civilization isn't showing in the list of Minotaur civs in my world on the summary screen. I guess it's because of the name duplicate, but can something be done about it?
That's the main screen I use for a quick look at the world before playing.

Searching brings up both groups. Although the non-Dfhack version describes both as "The Frosts of Severity are a group." Handy...
DFHack version has the correct descriptions but still doesn't list the civilization in the civilization list.

Could be a similar problem to Flying Teasets' issue. I always have a hard time combining the infos from the xxx-world_sites_and_pops.txt file to the infos of the XML files.
The xxx-world_sites_and_pops.txt file has no IDs for the entities and in larger worlds, duplicated names are very common.

Maybe I can improve the way it is handled in your cases if you post the zipped legend files.
I am sorry that I have long response times at the moment but I am currently moving. It is a little bit hectic until May, I read the forums but I rarely have time to look into details.  :D
No problem. I know you said you won't be updating until after Villains release.
Here's a zip of the Legends files. It's pretty huge, sorry. 365 year old large region. 52 civilizations (well, 53 and perhaps others if I've missed any which didn't show in the list), 19 civ types (15 surviving).   
http://dffd.bay12games.com/file.php?id=14332

Please use for any other analysis you feel like to make Legends Viewer even better!
 
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on April 16, 2019, 04:05:28 am
No problem. I know you said you won't be updating until after Villains release.
Here's a zip of the Legends files. It's pretty huge, sorry. 365 year old large region. 52 civilizations (well, 53 and perhaps others if I've missed any which didn't show in the list), 19 civ types (15 surviving).   
http://dffd.bay12games.com/file.php?id=14332

Please use for any other analysis you feel like to make Legends Viewer even better!

Thanks, every time I changed the code it took ~10 min to load in debug mode, because as you said, your world is REALLY huge.  :D
But in the end I found a solution where every civilisation is listed correctly on the summary page as long as you have the additional legends_plus.xml from the dfhack export.
With the vanilla infos it might detect some more connections but I think it will be more or less the same as before.

I hope Toady will add more of the missing information to the vanilla export files with the villain update! There is a lot that can only be displayed, if DFHacks' exportlegends script was used for the export.
With the upcoming steam release the vanilla export might increase in importance...
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on April 17, 2019, 08:03:46 am
No problem. I know you said you won't be updating until after Villains release.
Here's a zip of the Legends files. It's pretty huge, sorry. 365 year old large region. 52 civilizations (well, 53 and perhaps others if I've missed any which didn't show in the list), 19 civ types (15 surviving).   
http://dffd.bay12games.com/file.php?id=14332

Please use for any other analysis you feel like to make Legends Viewer even better!

Thanks, every time I changed the code it took ~10 min to load in debug mode, because as you said, your world is REALLY huge.  :D
But in the end I found a solution where every civilisation is listed correctly on the summary page as long as you have the additional legends_plus.xml from the dfhack export.
With the vanilla infos it might detect some more connections but I think it will be more or less the same as before.

I hope Toady will add more of the missing information to the vanilla export files with the villain update! There is a lot that can only be displayed, if DFHacks' exportlegends script was used for the export.
With the upcoming steam release the vanilla export might increase in importance...
That's good. Yes, hopefully we'll keep getting a little more out of vanilla exports with each release. Would be good to know if Toady thinks of Legends exports as a priority for the Steam "User Friendliness" update.
Ha, yeah, that world was a little too massive. Good for noticing rare bugs and spelling mistakes but I'd normally cram everyone into a medium region at about half that history. It's crowded, but there's always interesting stories to be found.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: btonasse on May 02, 2019, 04:46:47 pm
Hey guys. I had this problem a while ago and gave up on Legends Viewer, and now I've decided to try it again, but the problem persists. I never see any events in the event logs. I always follow the exact instructions given by the software (exportlegends info via dfhack.. even tried exportlegends all even though I knew it wasn't necessary), and I always make sure all exported files are in the same folder and loaded correctly, including the PLUS file. It is also not a problem of undiscovered legends, since I can see all events in the game's native legends mode. What am I missing here?

thanks for the hard work!
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: PatrikLundell on May 02, 2019, 05:20:04 pm
Hey guys. I had this problem a while ago and gave up on Legends Viewer, and now I've decided to try it again, but the problem persists. I never see any events in the event logs. I always follow the exact instructions given by the software (exportlegends info via dfhack.. even tried exportlegends all even though I knew it wasn't necessary), and I always make sure all exported files are in the same folder and loaded correctly, including the PLUS file. It is also not a problem of undiscovered legends, since I can see all events in the game's native legends mode. What am I missing here?

thanks for the hard work!
The most important thing missing is what "this problem" is...
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: btonasse on May 02, 2019, 05:34:01 pm
Hey guys. I had this problem a while ago and gave up on Legends Viewer, and now I've decided to try it again, but the problem persists. I never see any events in the event logs. I always follow the exact instructions given by the software (exportlegends info via dfhack.. even tried exportlegends all even though I knew it wasn't necessary), and I always make sure all exported files are in the same folder and loaded correctly, including the PLUS file. It is also not a problem of undiscovered legends, since I can see all events in the game's native legends mode. What am I missing here?

thanks for the hard work!
The most important thing missing is what "this problem" is...

Sorry if I wasn't very clear. The problem is: "I never see any events in the event logs." That is, the event logs are always empty, even though I can see these events in the in-game Legends Mode.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on May 02, 2019, 06:26:27 pm
Hey guys. I had this problem a while ago and gave up on Legends Viewer, and now I've decided to try it again, but the problem persists. I never see any events in the event logs. I always follow the exact instructions given by the software (exportlegends info via dfhack.. even tried exportlegends all even though I knew it wasn't necessary), and I always make sure all exported files are in the same folder and loaded correctly, including the PLUS file. It is also not a problem of undiscovered legends, since I can see all events in the game's native legends mode. What am I missing here?

thanks for the hard work!
The most important thing missing is what "this problem" is...

Sorry if I wasn't very clear. The problem is: "I never see any events in the event logs." That is, the event logs are always empty, even though I can see these events in the in-game Legends Mode.
Can you post a screenshot?
Hard to figure out what you mean by empty "event logs". Are you even seeing the site/historical figure lists at all?
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: btonasse on May 02, 2019, 06:41:46 pm
Hey guys. I had this problem a while ago and gave up on Legends Viewer, and now I've decided to try it again, but the problem persists. I never see any events in the event logs. I always follow the exact instructions given by the software (exportlegends info via dfhack.. even tried exportlegends all even though I knew it wasn't necessary), and I always make sure all exported files are in the same folder and loaded correctly, including the PLUS file. It is also not a problem of undiscovered legends, since I can see all events in the game's native legends mode. What am I missing here?

thanks for the hard work!
The most important thing missing is what "this problem" is...

Sorry if I wasn't very clear. The problem is: "I never see any events in the event logs." That is, the event logs are always empty, even though I can see these events in the in-game Legends Mode.
Can you post a screenshot?
Hard to figure out what you mean by empty "event logs". Are you even seeing the site/historical figure lists at all?

I sure can. Here it is: https://imgur.com/a/NkD3pJh (https://imgur.com/a/NkD3pJh)

This is from a world generated with 1050 years of history, and no site/historical figure/whatever has a single entry in the Event Log. I always had this problem with Legends Viewer. Before I used to just view my legends on Legends Browser, but this particular world is too big for the Legends Browser to handle. Another related problem is that all family trees are empty, even for characters with many children.

Other than that, everything works as it should. All entities as listed, I just cannot see the text for any events on the Event Log (bottom of the screen).

EDIT: providing more information
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on May 03, 2019, 12:00:10 am
I sure can. Here it is: https://imgur.com/a/NkD3pJh (https://imgur.com/a/NkD3pJh)

This is from a world generated with 1050 years of history, and no site/historical figure/whatever has a single entry in the Event Log. I always had this problem with Legends Viewer. Before I used to just view my legends on Legends Browser, but this particular world is too big for the Legends Browser to handle. Another related problem is that all family trees are empty, even for characters with many children.

Other than that, everything works as it should. All entities as listed, I just cannot see the text for any events on the Event Log (bottom of the screen).

EDIT: providing more information

The Windows Forms WebBrowser control uses Internet Explorer internally. When you upgrade to the newest IE version, you should see all the charts and logs. What operating system do you use?
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: btonasse on May 03, 2019, 01:02:26 am
I sure can. Here it is: https://imgur.com/a/NkD3pJh (https://imgur.com/a/NkD3pJh)

This is from a world generated with 1050 years of history, and no site/historical figure/whatever has a single entry in the Event Log. I always had this problem with Legends Viewer. Before I used to just view my legends on Legends Browser, but this particular world is too big for the Legends Browser to handle. Another related problem is that all family trees are empty, even for characters with many children.

Other than that, everything works as it should. All entities as listed, I just cannot see the text for any events on the Event Log (bottom of the screen).

EDIT: providing more information

The Windows Forms WebBrowser control uses Internet Explorer internally. When you upgrade to the newest IE version, you should see all the charts and logs. What operating system do you use?

Ha! That's it. Since I never use IE (who still does, by the way?), I didn't realize mine had been uninstalled a long time ago. It's a pity that we need to install some useless piece of software (sorry, Microsoft) to be able to use this...

Anyway, thanks for the help! Much appreciated.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Shonai_Dweller on May 03, 2019, 01:53:12 am
I sure can. Here it is: https://imgur.com/a/NkD3pJh (https://imgur.com/a/NkD3pJh)

This is from a world generated with 1050 years of history, and no site/historical figure/whatever has a single entry in the Event Log. I always had this problem with Legends Viewer. Before I used to just view my legends on Legends Browser, but this particular world is too big for the Legends Browser to handle. Another related problem is that all family trees are empty, even for characters with many children.

Other than that, everything works as it should. All entities as listed, I just cannot see the text for any events on the Event Log (bottom of the screen).

EDIT: providing more information

The Windows Forms WebBrowser control uses Internet Explorer internally. When you upgrade to the newest IE version, you should see all the charts and logs. What operating system do you use?

Ha! That's it. Since I never use IE (who still does, by the way?), I didn't realize mine had been uninstalled a long time ago. It's a pity that we need to install some useless piece of software (sorry, Microsoft) to be able to use this...

Anyway, thanks for the help! Much appreciated.
Using Chrome (windows 10). Works perfectly. Always has.

--Edit
Oh. It's using IE anyhow? Hmm. Bit of an issue there.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on May 03, 2019, 02:07:53 am
I sure can. Here it is: https://imgur.com/a/NkD3pJh (https://imgur.com/a/NkD3pJh)

This is from a world generated with 1050 years of history, and no site/historical figure/whatever has a single entry in the Event Log. I always had this problem with Legends Viewer. Before I used to just view my legends on Legends Browser, but this particular world is too big for the Legends Browser to handle. Another related problem is that all family trees are empty, even for characters with many children.

Other than that, everything works as it should. All entities as listed, I just cannot see the text for any events on the Event Log (bottom of the screen).

EDIT: providing more information

The Windows Forms WebBrowser control uses Internet Explorer internally. When you upgrade to the newest IE version, you should see all the charts and logs. What operating system do you use?

Ha! That's it. Since I never use IE (who still does, by the way?), I didn't realize mine had been uninstalled a long time ago. It's a pity that we need to install some useless piece of software (sorry, Microsoft) to be able to use this...

Anyway, thanks for the help! Much appreciated.
Using Chrome (windows 10). Works perfectly. Always has.

--Edit
Oh. It's using IE anyhow? Hmm. Bit of an issue there.

Yeah, sadly it uses IE, regardless of what is your default browser. This cannot be changed, Windows Forms WebBrowser control is restricted to IE. There are thirdparty controls like CEFSharp that use a version of Chrome, but using these would mean that instead of being ~2.5MB, LegendsViewer would have to bundle all the necessary Chromium Embedded Framework files and would get as big as ~80MB if I remember correctly.  :-\
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Silverwing235 on May 03, 2019, 02:27:38 am
"Forget IE for a moment - does it actually play nicely with Edge?" I sometimes wonder.

Also, reporting in w/Firefox here sans expected history files, and it seems to be working as expected.
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: Kromtec on May 03, 2019, 02:43:10 am
"Forget IE for a moment - does it actually play nicely with Edge?" I sometimes wonder.

No, it does not. Microsoft does not use Edge for their embedded WebBrowser control, it always comes back to IE.  ::)
Hopefully this will change with their new Chromium Edge (https://www.theverge.com/2019/4/8/18300077/microsoft-edge-chromium-canary-development-release-download).
Title: Re: Legends Viewer (Maintained Branch) 1.19.09 | DF 0.44.XX
Post by: btonasse on May 03, 2019, 11:16:33 am
I sure can. Here it is: https://imgur.com/a/NkD3pJh (https://imgur.com/a/NkD3pJh)

This is from a world generated with 1050 years of history, and no site/historical figure/whatever has a single entry in the Event Log. I always had this problem with Legends Viewer. Before I used to just view my legends on Legends Browser, but this particular world is too big for the Legends Browser to handle. Another related problem is that all family trees are empty, even for characters with many children.

Other than that, everything works as it should. All entities as listed, I just cannot see the text for any events on the Event Log (bottom of the screen).

EDIT: providing more information

The Windows Forms WebBrowser control uses Internet Explorer internally. When you upgrade to the newest IE version, you should see all the charts and logs. What operating system do you use?

Ha! That's it. Since I never use IE (who still does, by the way?), I didn't realize mine had been uninstalled a long time ago. It's a pity that we need to install some useless piece of software (sorry, Microsoft) to be able to use this...

Anyway, thanks for the help! Much appreciated.
Using Chrome (windows 10). Works perfectly. Always has.

--Edit
Oh. It's using IE anyhow? Hmm. Bit of an issue there.

Yeah, sadly it uses IE, regardless of what is your default browser. This cannot be changed, Windows Forms WebBrowser control is restricted to IE. There are thirdparty controls like CEFSharp that use a version of Chrome, but using these would mean that instead of being ~2.5MB, LegendsViewer would have to bundle all the necessary Chromium Embedded Framework files and would get as big as ~80MB if I remember correctly.  :-\

Here I am, fingers crossed, hoping this changes in the future and I can forget IE exists again.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Jack_Caboose on August 09, 2019, 01:36:17 am
Legends viewer seems not play well with custom-made sites in Adventure mode. I made a site and retired my adventurer, and both the page for the adventurer himself and his created camp do not work. Here's the message:

Code: [Select]
************* Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Controls.HTML.HistoricalFigureHtmlPrinter.PrintRelatedArtifacts()
   at LegendsViewer.Controls.HTML.HistoricalFigureHtmlPrinter.Print()
   at LegendsViewer.Controls.HTML.HtmlPrinter.GetHtmlPage()
   at LegendsViewer.Controls.HTML.HtmlControl.GetControl()
   at LegendsViewer.Controls.DwarfTabPage.LoadPageControl()
   at LegendsViewer.Controls.DwarfTabPage.NewPageControl(PageControl pageControl)
   at LegendsViewer.Controls.DwarfTabControl.Navigate(ControlOption control, Object navigateObject)
   at LegendsViewer.Controls.Tabs.BaseSearchTab.ListSearch_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e)
   at BrightIdeasSoftware.ObjectListView.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LegendsViewer
    Assembly Version: 1.19.10.352
    Win32 Version: 1.19.10.352
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/LegendsViewer.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
    Assembly Version: 2.9.1.1072
    Win32 Version: 2.9.1.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/ObjectListView.DLL
----------------------------------------
WFC
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/WFC.DLL
----------------------------------------
SevenZipSharp
    Assembly Version: 0.64.3890.29348
    Win32 Version: 0.64.3890.29348
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/SevenZipSharp.DLL
----------------------------------------
CommonMark
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/CommonMark.DLL
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Jdenticon
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/Jdenticon.DLL
----------------------------------------
Jdenticon.Gdi
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/Jdenticon.Gdi.DLL
----------------------------------------

This isn't too much of a problem because it doesn't crash the whole program, and other objects that are tangentially related to the site (artifacts stored there for example) work fine, but the viewer is so much better than the in-game legends that it's a bit annoying having to switch between them.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on August 29, 2019, 03:08:11 am
Legends viewer seems not play well with custom-made sites in Adventure mode. I made a site and retired my adventurer, and both the page for the adventurer himself and his created camp do not work. Here's the message:

Code: [Select]
************* Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Controls.HTML.HistoricalFigureHtmlPrinter.PrintRelatedArtifacts()
   at LegendsViewer.Controls.HTML.HistoricalFigureHtmlPrinter.Print()
   at LegendsViewer.Controls.HTML.HtmlPrinter.GetHtmlPage()
   at LegendsViewer.Controls.HTML.HtmlControl.GetControl()
   at LegendsViewer.Controls.DwarfTabPage.LoadPageControl()
   at LegendsViewer.Controls.DwarfTabPage.NewPageControl(PageControl pageControl)
   at LegendsViewer.Controls.DwarfTabControl.Navigate(ControlOption control, Object navigateObject)
   at LegendsViewer.Controls.Tabs.BaseSearchTab.ListSearch_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e)
   at BrightIdeasSoftware.ObjectListView.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LegendsViewer
    Assembly Version: 1.19.10.352
    Win32 Version: 1.19.10.352
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/LegendsViewer.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
    Assembly Version: 2.9.1.1072
    Win32 Version: 2.9.1.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/ObjectListView.DLL
----------------------------------------
WFC
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/WFC.DLL
----------------------------------------
SevenZipSharp
    Assembly Version: 0.64.3890.29348
    Win32 Version: 0.64.3890.29348
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/SevenZipSharp.DLL
----------------------------------------
CommonMark
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/CommonMark.DLL
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Jdenticon
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/Jdenticon.DLL
----------------------------------------
Jdenticon.Gdi
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///D:/Games/mdf%20new/MasterworkDwarfFortress/Utilities/LegendsViewer/Jdenticon.Gdi.DLL
----------------------------------------

This isn't too much of a problem because it doesn't crash the whole program, and other objects that are tangentially related to the site (artifacts stored there for example) work fine, but the viewer is so much better than the in-game legends that it's a bit annoying having to switch between them.

Hi, sorry for answering so late.
I think I found the problem, if you provide the exported files, I can test my fix:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Silverwing235 on September 29, 2019, 03:46:23 pm
Hey, I notice you don't have an email. Could be tricky, because I am willing to provide exported files if I knew where to send them, basically:
...as it happens, am slightly uncertain if this would turn out to be an XML (and therefore Toady) thing, or LV thing, but there seems to be an overuse of the plural form when the singular ought to be used (*examples in the Sabre of Taxing or the Pale Hale Hame) Not sure how far it extends, at least for this world. Furthermore, over in Arts and Crafts, things seem uncomfortably thin on the ground WRT the apparent interrelationship of music and poetry, at least in the current DF version (EX: 'dance is accompanied by any composition of YYYY' Me: "ok, let's see what YYYY is....damn, no hyperlink!")
*NPC forts, for which it's presumed you'd need data. Unfortunately, much like Toady doesn't Reddit, I don't Github. Yet, anyway.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on September 29, 2019, 04:14:05 pm
Hey, I notice you don't have an email. Could be tricky, because I am willing to provide exported files if I knew where to send them, basically:
...as it happens, am slightly uncertain if this would turn out to be an XML (and therefore Toady) thing, or LV thing, but there seems to be an overuse of the plural form when the singular ought to be used (*examples in the Sabre of Taxing or the Pale Hale Hame) Not sure how far it extends, at least for this world. Furthermore, over in Arts and Crafts, things seem uncomfortably thin on the ground WRT the apparent interrelationship of music and poetry, at least in the current DF version (EX: 'dance is accompanied by any composition of YYYY' Me: "ok, let's see what YYYY is....damn, no hyperlink!")
*NPC forts, for which it's presumed you'd need data. Unfortunately, much like Toady doesn't Reddit, I don't Github. Yet, anyway.

Hi! You can upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php) and contact me in this thread here.
There sometimes may be long response times in between major releases of DF, but close to the releases I am very active and read the forums regularly.  :)

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

Sadly, descriptions of art forms in the exported XMLs contain no further information I could use to link to other content.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Silverwing235 on October 01, 2019, 10:54:29 am
Hi! You can upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php) and contact me in this thread here.
There sometimes may be long response times in between major releases of DF, but close to the releases I am very active and read the forums regularly.  :)

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

It may have taken a while, but  the work is done. (http://dffd.bay12games.com/file.php?id=14550) Also, similarly, any deity name starting with "The" just gets chopped off in the description and listing of events. Ex: The Aquamarine Silks
Is a deity that occurs in the myths of The Realm of Channeling. The is most often depicted as a female human.
  or In 20, midspring, (15th of Slate) The cursed the goblin werebeast Nako Blackirons to assume the form of a skink-like monster every full moon in Scratchsugar.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on October 02, 2019, 06:50:19 am
It may have taken a while, but  the work is done. (http://dffd.bay12games.com/file.php?id=14550) Also, similarly, any deity name starting with "The" just gets chopped off in the description and listing of events. Ex: The Aquamarine Silks
Is a deity that occurs in the myths of The Realm of Channeling. The is most often depicted as a female human.
  or In 20, midspring, (15th of Slate) The cursed the goblin werebeast Nako Blackirons to assume the form of a skink-like monster every full moon in Scratchsugar.

Thanks! I fixed the "short name" bug of deities.

...as it happens, am slightly uncertain if this would turn out to be an XML (and therefore Toady) thing, or LV thing, but there seems to be an overuse of the plural form when the singular ought to be used (*examples in the Sabre of Taxing or the Pale Hale Hame) Not sure how far it extends, at least for this world.

Do you mean in the populations lists? Example "1 ducks", "1 sparrow men", ...
I only get the plural form from the XML.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Silverwing235 on October 02, 2019, 01:40:18 pm
Do you mean in the populations lists? Example "1 ducks", "1 sparrow men", ...
I only get the plural form from the XML.
Yeah, that seems to be the case.  Hang on, is there supposed to be a "KnowledgeScholarFlag: 0" in the References field of a written work, or do we have another bug here? (Suspect: The Book of the Light of Day, by a Thalu Dabblinghoof, elven hobbyist astronomer.) Also noting the general shortness - nigh-complete absence, to be precise - of description on written works in general (as in "reduced to what appears to be bare bones technicalities") versus Legends Mode - XML again?   
(LV example: A cheerful, self indulgent, Cheerful, SelfIndulgent manual written by the elf Thalu Dabblinghoof.)

EDIT: Almost forgot - yes, you have permission to credit my username for this in the next update if you'd rather!  :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on October 07, 2019, 05:50:11 am
Do you mean in the populations lists? Example "1 ducks", "1 sparrow men", ...
I only get the plural form from the XML.
Yeah, that seems to be the case.  Hang on, is there supposed to be a "KnowledgeScholarFlag: 0" in the References field of a written work, or do we have another bug here? (Suspect: The Book of the Light of Day, by a Thalu Dabblinghoof, elven hobbyist astronomer.) Also noting the general shortness - nigh-complete absence, to be precise - of description on written works in general (as in "reduced to what appears to be bare bones technicalities") versus Legends Mode - XML again?   
(LV example: A cheerful, self indulgent, Cheerful, SelfIndulgent manual written by the elf Thalu Dabblinghoof.)

EDIT: Almost forgot - yes, you have permission to credit my username for this in the next update if you'd rather!  :)

Yes, the XML from vanilla DF is very incomplete. The legends_plus.xml from DFHack adds a lot of missing data, but sadly nowhere near all of it.
The "KnowledgeScholarFlag: 0" text is a fallback. If I can not resolve the reference (a written work can reference an artifact or another written work, ...), I write exactly what is in the XML.
If you know what "KnowledgeScholarFlag: 0" stands for and can point to what exactly it references in the XML, I may be able to make a meaningful link.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Silverwing235 on October 15, 2019, 09:24:06 am
Other than the suspicion of its being some sort of binary switch, after much thought, I have to admit I'm at an impasse - may as well check w/Toady. BTW, I'm content with the name credit applying to the populations lists and "short name" stuff anyway.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Heretic on October 18, 2019, 02:50:25 am
Question about legends_plus. I want to find info about all important sites and buildings to auto generate signatures for my map.
I find where things like
   
Code: [Select]
<site>
<civ_id>25</civ_id>
<cur_owner_id>1122</cur_owner_id>
<id>11</id>
<structures>
<structure>
<id>0</id>
<type>inn_tavern</type>
<name>The Mint Harvester</name>
<name2>Gitnukud</name2>
</structure>
<structure>
<id>1</id>
<type>inn_tavern</type>
<name>The Sweet Snacks</name>
<name2>Xospogud</name2>
<inhabitant>3959</inhabitant>
<inhabitant>10903</inhabitant>
<inhabitant>22732</inhabitant>
<inhabitant>31956</inhabitant>
<inhabitant>38921</inhabitant>
</structure>
</structures>
</site>
How can i find info about fistly position this site on global map - and, secondly -info about proper position of this tavern in map tile.
Can i find this info somewhere in legends_export or legends export_plus?
Can dfhack get this info then this place is loaded in memory?
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on October 18, 2019, 03:25:25 am
Question about legends_plus. I want to find info about all important sites and buildings to auto generate signatures for my map.
I find where things like
   
Code: [Select]
<site>
<civ_id>25</civ_id>
<cur_owner_id>1122</cur_owner_id>
<id>11</id>
<structures>
<structure>
<id>0</id>
<type>inn_tavern</type>
<name>The Mint Harvester</name>
<name2>Gitnukud</name2>
</structure>
<structure>
<id>1</id>
<type>inn_tavern</type>
<name>The Sweet Snacks</name>
<name2>Xospogud</name2>
<inhabitant>3959</inhabitant>
<inhabitant>10903</inhabitant>
<inhabitant>22732</inhabitant>
<inhabitant>31956</inhabitant>
<inhabitant>38921</inhabitant>
</structure>
</structures>
</site>
How can i find info about fistly position this site on global map - and, secondly -info about proper position of this tavern in map tile.
Can i find this info somewhere in legends_export or legends export_plus?
Can dfhack get this info then this place is loaded in memory?

legends.xml:
Code: [Select]
<site>
<id>6</id>
<type>fortress</type>
<name>ringedcats</name>
<coords>45,31</coords>
<rectangle>722,503:724,505</rectangle>
<structures>
    <structure>
<local_id>0</local_id>
<type>inn tavern</type>
<name>the fruity harvest</name>
    </structure>
</structures>
</site>
legends_plus.xml:
Code: [Select]
<site>
<civ_id>63</civ_id>
<cur_owner_id>64</cur_owner_id>
<id>6</id>
<structures>
<structure>
<id>0</id>
<type>inn_tavern</type>
<name>The Fruity Harvest</name>
<name2>Dozebgolud</name2>
<inhabitant>19998</inhabitant>
</structure>
</structures>
</site>

In the legends.xml file you can find coords and rectangle of the site. The site has the same id in both xml files.
coords are the x,y position of the site in world tiles
rectangle are x,y,width,height info of the site in mid map tiles I think.
As far as I know, you can not find the position of structures in the exported files. I don't know if DFHack provides this info.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: PatrikLundell on October 18, 2019, 04:23:54 am
A quick look with gui/gm-editor shows that sites (can) have abstract buildings and those buildings have coordinates, but those coordinates are world map ones, not a finer resolution than that. It's possible DF generates building locations from seeds for generated locations, or that it's hidden away in the largely unmapped "world_data.site_unk130" vector. The "buildings" vector in the world data contains only the buildings in the player fortress (I don't retire fortresses, but I wouldn't expect old fortresses to clutter the list).

Thus, you're likely to have to do some DF structure research to be able to find the location of buildings in in-game coordinates.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Heretic on October 18, 2019, 09:29:03 am
Spoiler (click to show/hide)
Red signatures is from info in "coords" tag
Green - from rectangle. (it's placed in middle of it)
I don't really understand how correctly convert one to other - firstly i think that green must be more accurate, but now i don't sure...
If anybody knows how it work better, i will be glad any help.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Heretic on October 18, 2019, 09:40:20 am
Spoiler (click to show/hide)
Red signatures is from info in "coords" tag
Green - from rectangle. (it's placed in middle of it)
And they all seriously incorrect.
I even don't really understand how correctly convert one to other - firstly i think that green must be more accurate, but now i don't sure...
And ofc, if somebody knows how to get totally accurate coords  - it would be super fine.
If anybody knows how it work better, i will be glad any help.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: 2xW on December 02, 2019, 08:13:26 pm
Ohh I am happy, I got it working on Manjaro using wine. So far everything i tested worked besides family trees and the pie chart in the summary. Family trees are just a blank space. Maybe i still need to install an additional component for wine? Also i am getting some visual artifacts like shown in the picture but that's alright with me. Maybe someone else knows how to get the family trees and pie chart working?
Edit: while family trees dont work, the lineage for werebeast curses works.


No family tree
(https://i.imgur.com/ASuOP3Y.png)

Visual glitches
(https://i.imgur.com/LPZN6Qm.png)
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on December 03, 2019, 07:09:11 am
Ohh I am happy, I got it working on Manjaro using wine. So far everything i tested worked besides family trees and the pie chart in the summary. Family trees are just a blank space. Maybe i still need to install an additional component for wine? Also i am getting some visual artifacts like shown in the picture but that's alright with me. Maybe someone else knows how to get the family trees and pie chart working?
Edit: while family trees dont work, the lineage for werebeast curses works.

Sorry, I don't know why you have those visual glitches, but you need Internet Explorer 9+ installed for the charts and the family trees. The .NET WebBrowser control that is used to display the individual pages runs only with IE (not Edge). If you can, try to install IE 11, the latest and last version.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: 2xW on December 03, 2019, 09:18:50 am
Oh no need to apologize, I know its not really meant to run on Linux so i expected these kinda things. Hmm i am pretty sure I installed IE11, but maybe it didn't go well. Will try again. Thanks for your response though, now i at least know that i am not missing something else (probably^^)
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: brg3386 on December 05, 2019, 09:33:07 pm
Trying to load a 1050 year world results in this error, consistently occurring right after Legends Viewer attempts to read the sites. I read earlier in the thread a similar issue was being caused by duplicate named entities. Tediously, I started checking for duplicate civ names, site names, and group names. The only result was finding two sites with the same dwarven name "Berduthnur" one being Earthguarded and the other being Earthenguarded. Changing the name yielded nothing. I'd love to hear as to how to proceed from hear.


Code: [Select]
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.ReadParentCiv()
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.Parse()
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on December 06, 2019, 03:17:29 am
Trying to load a 1050 year world results in this error, consistently occurring right after Legends Viewer attempts to read the sites. I read earlier in the thread a similar issue was being caused by duplicate named entities. Tediously, I started checking for duplicate civ names, site names, and group names. The only result was finding two sites with the same dwarven name "Berduthnur" one being Earthguarded and the other being Earthenguarded. Changing the name yielded nothing. I'd love to hear as to how to proceed from hear.
The duplicated names of entities did not result in a crash, but in wrong connections between data, so I don't think your problem is related.

Did you use LegendsViewer 1.19.10?
If you used the most recent version of Legends Viewer and the error still happens, then please upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: brg3386 on December 06, 2019, 05:05:35 am
Trying to load a 1050 year world results in this error, consistently occurring right after Legends Viewer attempts to read the sites. I read earlier in the thread a similar issue was being caused by duplicate named entities. Tediously, I started checking for duplicate civ names, site names, and group names. The only result was finding two sites with the same dwarven name "Berduthnur" one being Earthguarded and the other being Earthenguarded. Changing the name yielded nothing. I'd love to hear as to how to proceed from hear.
The duplicated names of entities did not result in a crash, but in wrong connections between data, so I don't think your problem is related.

Did you use LegendsViewer 1.19.10?
If you used the most recent version of Legends Viewer and the error still happens, then please upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

I am indeed using 1.19.10.

http://dffd.bay12games.com/file.php?id=14629
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on December 06, 2019, 05:19:29 am
Trying to load a 1050 year world results in this error, consistently occurring right after Legends Viewer attempts to read the sites. I read earlier in the thread a similar issue was being caused by duplicate named entities. Tediously, I started checking for duplicate civ names, site names, and group names. The only result was finding two sites with the same dwarven name "Berduthnur" one being Earthguarded and the other being Earthenguarded. Changing the name yielded nothing. I'd love to hear as to how to proceed from hear.
The duplicated names of entities did not result in a crash, but in wrong connections between data, so I don't think your problem is related.

Did you use LegendsViewer 1.19.10?
If you used the most recent version of Legends Viewer and the error still happens, then please upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

I am indeed using 1.19.10.

http://dffd.bay12games.com/file.php?id=14629

There are 3 files from region1 from the year 1050 and 2 files from region2 1052. All files have to be from the same region and timestamp.
If you manually combined files from different regions or times, then that is your error.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Lioneez on December 09, 2019, 11:11:07 pm
Hey, I was kinda wondering if anyone here maybe knows how can someone run LegendsViewer on linux, I kinda looked around and I found LegendBrowser as an Java based alternative but for some reason there is no executable file inside the Jar for convenience sake and when I try to run the Jar file itself it says:
Spoiler (click to show/hide)
So I am kinda lost about the whole thing and was wondering if anyone have guides on how to run one of the 2 because from those I found they dont really tell you how to run the god damn thing, I also already have my df-linux version with the current version of dfhack since that tool has a good and simple guide on how to actually make it work.
any help? pretty please?
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: feelotraveller on December 10, 2019, 03:25:07 am
From the LegendsBrowser (http://www.bay12forums.com/smf/index.php?topic=155307.0) opening post:
Quote
On linux run "java -jar legendsbrowser-x.x.x.jar"
which is the usual way to run a jar file on linux.  Use the above thread if more help is needed.

Since Legends Viewer is .NET rather than Mono (and needs IE9+)  there is unfortunately no straight forward way to run it on anything other than windows.

Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Silverwing235 on January 09, 2020, 07:03:55 pm
Not sure if known quantity, but...

Just found buggish weirdness, reproducible (in this instance, uncertain if valid via other parameters) via Adv. Search > Artifacts + Sub Types, which generates
Code: [Select]
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Object.GetType()
   at LegendsViewer.Controls.AppHelpers.GetDescription(Object enumerationValue)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at LegendsViewer.Controls.Query.CriteriaLine.GetValueOptions()
   at LegendsViewer.Controls.Query.PropertyBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Thoughts?
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 13, 2020, 03:06:01 am
Not sure if known quantity, but...

Just found buggish weirdness, reproducible (in this instance, uncertain if valid via other parameters) via Adv. Search > Artifacts + Sub Types, which generates
Code: [Select]
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Object.GetType()
   at LegendsViewer.Controls.AppHelpers.GetDescription(Object enumerationValue)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at LegendsViewer.Controls.Query.CriteriaLine.GetValueOptions()
   at LegendsViewer.Controls.Query.PropertyBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Thoughts?

Thanks, I'll try to fix it for the next release.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kat on January 19, 2020, 07:51:35 am
Using Legendsviewer to look up some of the events in my fortress.

Found that a were-lizard that attacked my fort, was actually a reptile man cursed to assume the form of a lizard-like monster...

That's... not really that much of a curse, lol
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 21, 2020, 02:35:51 am
Using Legendsviewer to look up some of the events in my fortress.

Found that a were-lizard that attacked my fort, was actually a reptile man cursed to assume the form of a lizard-like monster...

That's... not really that much of a curse, lol

Haha, I love the funny little things this game creates!  :D
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Oxidus on January 26, 2020, 02:59:38 am
Hello, I have a problem that is frustrasting me since yesterday. I extracted the Legends Viewer .zip file into both my game folder and a new folder, and problems persists in both of these. Whenever I start the .exe, I get a loading circle next to my cursor for a second or so and then nothing happens. I tried restarting, reinstalling to no avail.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 26, 2020, 06:57:52 am
Hello, I have a problem that is frustrasting me since yesterday. I extracted the Legends Viewer .zip file into both my game folder and a new folder, and problems persists in both of these. Whenever I start the .exe, I get a loading circle next to my cursor for a second or so and then nothing happens. I tried restarting, reinstalling to no avail.

I can look into it if you upload your zip-file.  :)
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Oxidus on January 26, 2020, 08:28:23 am
Hello, I have a problem that is frustrasting me since yesterday. I extracted the Legends Viewer .zip file into both my game folder and a new folder, and problems persists in both of these. Whenever I start the .exe, I get a loading circle next to my cursor for a second or so and then nothing happens. I tried restarting, reinstalling to no avail.

I can look into it if you upload your zip-file.  :)
Sure, how do I do that?
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 26, 2020, 01:30:43 pm
Did you use LegendsViewer 1.19.10?
If you used the most recent version of Legends Viewer and the error still happens, then please upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Oxidus on January 26, 2020, 02:38:10 pm
Did you use LegendsViewer 1.19.10?
If you used the most recent version of Legends Viewer and the error still happens, then please upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
http://dffd.bay12games.com/file.php?id=14670 There you go
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 27, 2020, 01:49:42 am
Did you use LegendsViewer 1.19.10?
If you used the most recent version of Legends Viewer and the error still happens, then please upload your exported files to the Dwarf Fortress File Depot (DFFD) (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
http://dffd.bay12games.com/file.php?id=14670 There you go

Oh, I think I misunderstood you, sorry. I thought you have problems when loading your exported XMLs, but you can not get LegendsViewer to run at all.
What Operating System do you use?
Do you have .NET 4.0 (https://dotnet.microsoft.com/download/dotnet-framework/net40) and Internet Explorer 11 installed?
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Oxidus on January 27, 2020, 08:59:57 am
I'm using Windows 8.1. I already have installed the .NET 4.0 and yes I do have IE 11. The thing that baffles me is that it worked before, but now it doesn't.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 28, 2020, 03:47:34 am
I'm using Windows 8.1. I already have installed the .NET 4.0 and yes I do have IE 11. The thing that baffles me is that it worked before, but now it doesn't.

You can try to find an error message in the Windows Event Viewer, otherwise I have no idea what could cause this.  :(
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on January 31, 2020, 04:47:04 am
I am currently on vacation, without access to a computer.
Work on the updated version of Legends Viewer will start on Sunday, but there are already some unreleased features and bugfixes that I implemented in the last few month.  ;)

I am excited to see all the cool new additions the update brought to legends mode!
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Lovecraft on February 01, 2020, 03:14:09 pm
Thank you so much for this utility! I love browsing legends and seeing the history of the world unfold and this makes it so much less time consuming. You rock!
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: MaxTheFox on February 02, 2020, 02:25:47 am
<snip because I was tired when posting this and embarrassed myself>
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Bumber on February 02, 2020, 02:27:17 am
Will this get updated to the new version?

I am currently on vacation, without access to a computer.
Work on the updated version of Legends Viewer will start on Sunday, but there are already some unreleased features and bugfixes that I implemented in the last few month.  ;)

I am excited to see all the cool new additions the update brought to legends mode!
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Verdiumm on February 06, 2020, 09:25:56 pm
Just wanted to take the time to say that i really appreciate the work yourself, and others have put into these 3rd party tools.
I think for me and a lot of new players, it would be a lot harder to enjoy the game without them!

I got into Dwarf fortress only 6 months ago and have used your tool a whole bunch already. one of the best parts of this game is the simulation, and it's SO hard to view that information normally.
(I like my eyes, thank you very much)

Anyways, seeing as i've had this forum account for a little while, figured i should use it for something worthwhile.

Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on February 07, 2020, 02:43:25 am
Just wanted to take the time to say that i really appreciate the work yourself, and others have put into these 3rd party tools.
I think for me and a lot of new players, it would be a lot harder to enjoy the game without them!

I got into Dwarf fortress only 6 months ago and have used your tool a whole bunch already. one of the best parts of this game is the simulation, and it's SO hard to view that information normally.
(I like my eyes, thank you very much)

Anyways, seeing as i've had this forum account for a little while, figured i should use it for something worthwhile.

Thanks, always happy to hear that people enjoy it!  :D

Toady put really a lot work in world generation and the intrigue system with its plots and schemes. Not only that, there are lots and lots of new events, and every one of them is a little bit like detective work. Finding out which properties are tied to which text snippets in legends mode is not always that easy.  ;)
I already implemented a huge amount of content from the 0.47.01 release, but everytime I generate a new world I find more...
And now 0.47.02 is out and fixes lots of issues with corrupted XML structure and unidentifiable events! The first export I made in this new version, fixed and revealed almost as many new things as I finished from the 0.42.01 release, haha.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Gabeux on February 07, 2020, 07:33:36 am
And now 0.47.02 is out and fixes lots of issues with corrupted XML structure and unidentifiable events! The first export I made in this new version, fixed and revealed almost as many new things as I finished from the 0.42.01 release, haha.

Sounds like you're having fun!  :P
Thanks for all the effort, Kromtec!
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: qualiyah on February 07, 2020, 11:50:25 am
Very glad to hear that you're already working on an update! Thank you for all your hard work--Legends Viewer is a fantastic tool that adds so much to the DF experience for me.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: sly_urist on February 08, 2020, 12:51:56 pm
Very glad to hear that you're already working on an update! Thank you for all your hard work--Legends Viewer is a fantastic tool that adds so much to the DF experience for me.

This.

This tool is probably my most relied on piece of supplementary software for the game, even more than dwarf therapist. You do great work and I am glad you are continuing! Thanks for all the effort!
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Scruiser on February 08, 2020, 01:02:57 pm
PTW.

I realized as sly_urist said, that I rely on this tool even more than Dwarf Therapist.  I can at least play small forts and under-managed/unoptimized forts without dwarf therapist.  Without Legends Viewer, I find legends mode (almost) completely impenetrable.

I also wanted to chime in and add that if there are any tasks or help you need that is simple to explain and can be done in parallel in small pieces (churning out new world in worldgen and then searching through the xml dumps for examples of a particular string, for example), I can spare some time to help out, and I am sure you could find more volunteers.  Apologies if you've already mentioned such things earlier in the thread, I only read the first page and last two pages.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: Kromtec on February 08, 2020, 01:51:55 pm
Very glad to hear that you're already working on an update! Thank you for all your hard work--Legends Viewer is a fantastic tool that adds so much to the DF experience for me.
This.

This tool is probably my most relied on piece of supplementary software for the game, even more than dwarf therapist. You do great work and I am glad you are continuing! Thanks for all the effort!
That is exactly why I work on Legends Viewer, I love the rich history DF creates. I am fascinated by the details, how everything comes together and forms all these great little and big stories!

PTW.

I realized as sly_urist said, that I rely on this tool even more than Dwarf Therapist.  I can at least play small forts and under-managed/unoptimized forts without dwarf therapist.  Without Legends Viewer, I find legends mode (almost) completely impenetrable.

I also wanted to chime in and add that if there are any tasks or help you need that is simple to explain and can be done in parallel in small pieces (churning out new world in worldgen and then searching through the xml dumps for examples of a particular string, for example), I can spare some time to help out, and I am sure you could find more volunteers.  Apologies if you've already mentioned such things earlier in the thread, I only read the first page and last two pages.
Without making breakpoints in the code and cross-referencing already partially resolved IDs (to historical figures, entities, sites and so on) and dates with the exact lines in DF legends mode, you wont find the related events there. But thanks for asking!  :)

Everyone who is interested can track my progress by reading the commit messages (https://github.com/Kromtec/LegendsViewer/commits/develop) in my development branch on github.
Title: Re: Legends Viewer (Maintained Branch) 1.19.10 | DF 0.44.XX
Post by: PatrikLundell on February 08, 2020, 04:35:52 pm
:
Without making breakpoints in the code and cross-referencing already partially resolved IDs (to historical figures, entities, sites and so on) and dates with the exact lines in DF legends mode, you wont find the related events there. But thanks for asking!  :)
:
Well, it's possible to do at least some of it with DFHack tools, even though the mapping of the structures are still incomplete, and so can cause crashes (and definitely aren't ready for use during play).
- New history event collections: "Persecution" and "Entity Overthrown".
- New poetic form action: "beseech".
- New musical form style: "with feeling".
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 10, 2020, 01:14:10 pm
New Release 1.20.01!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Support for DF 0.47.xx content + timestamp accurate creature types + more charts
### Features
- timestamp accurate creature types in event descriptions
  - displayed race for turned creatures according to date in event descriptions
  - in event descriptions, a turned creature will show its new race not until it was turned
  - in events before the transformation the old race will be displayed
- population charts for entities and sites
- event chart on top of every event table
- event overview for entities, sites, historical figures, ...
- new DF 0.47.xx Events
  - remove hf hf link
  - holy city declaration
  - hf performed horrible experiments
  - entity incorporated
  - gamble
  - trade
  - hf equipment purchase
  - entity overthrown
  - failed frame attempt
  - hf convicted
  - failed intrigue corruption
  - hfs formed intrigue relationship
  - entity alliance formed
  - entity dissolved
  - add hf entity honor
  - entity breach feature layer
  - entity equipment purchase
  - hf ransomed
  - hf preach
  - modified building
  - hf interrogated
  - entity persecuted
  - building profile acquired
  - hf enslaved
  - hf asked about artifact
  - hf carouse
- new Event Collection
  - persecution
  - entity overthrown
- new structure types
  - tower
  - counting house
- new site types
  - monastery
  - fort
  - castle
- new site properties
  - ownership of houses and structures
- new entity honors
  - various honor titles in mercenary groups
  - based on requirements the historical figure has to fulfill

### Enhancements
- show moods in world overview
- connected some art forms with writtencontent
- article handling in various situations
- icons on every page title
- handling of zombies (race string, filter)
- updated various old events
  - merchant event - texts for lost value and hardship
- show structure subtype in navigation
- find civs more accurate if legends_plus is present

### Bugfixes
- fix for duplicated styles of written content
- fix for writtencontent with no name for example 'an untitled letter'
- fix for deity short names (reported by @Silverwing235 THX)
- nullreference fix when printing related artifacts
- SpottedLeavingSite event - nullreference fix
- Fixed a bug where Entity icons would appear regardless of current year. (fixed by @minalear THX)


**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data.
The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in Lazy Newb Pack for exporting the additional XML file!
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: PatrikLundell on February 10, 2020, 05:15:31 pm
Good stuff!

There's also a new Guildhall structure type, by the way.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Shonai_Dweller on February 10, 2020, 06:45:15 pm
Are "Relationships" and "Vague Relationships" the wrong way around?

Under vague relationships you've got definite new relationship types like "War Buddy" and "Childhood friend".
While under "relationships" you've got some pretty obscure stuff like "(Visual) Trust -50".
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: hertggf on February 10, 2020, 08:04:38 pm
Great news!  Each of the legends viewers is better at different things so I end up using all of them when I get deep into an adventure  :)
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 11, 2020, 02:19:12 am
Good stuff!

There's also a new Guildhall structure type, by the way.

Of course, the Guildhall is also in, I just missed to put it in the changelog.  :)

Are "Relationships" and "Vague Relationships" the wrong way around?

Under vague relationships you've got definite new relationship types like "War Buddy" and "Childhood friend".
While under "relationships" you've got some pretty obscure stuff like "(Visual) Trust -50".

The relationships section is based on the older RelationshipProfile properties of HistoricalFigures ("relationship_profile_hf", "relationship_profile_hf_visual" and "relationship_profile_hf_historical").
Vague relationships are called like the new property ("vague_relationship") that came with 0.47.01.
I went with the names Toady gave them in the export, but I am open for suggestions.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Shonai_Dweller on February 11, 2020, 03:35:19 am
Is the lack of Experiment names (Hfexp58691E Hum 1, etc.) something only DFhack can fix?
Also, Night Trolls (and I guess Bogeymen in there somewhere?) are referred to as "night creature" in the historical figures filter list. But experiments are "night creatures" too and they are listed separately (under code names mentioned above). Maybe want to rename this category?

Finally, "hired as a scout" is missing for historical figures (requires DFHack?).

Oh. did I mention, I think I did, that Legends Viewer is my absolute favorite DF util? Just thought I'd better mention that again as I start listing criticisms. :)
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 11, 2020, 03:55:27 am
Is the lack of Experiment names (Hfexp58691E Hum 1, etc.) something only DFhack can fix?
Also, Night Trolls (and I guess Bogeymen in there somewhere?) are referred to as "night creature" in the historical figures filter list. But experiments are "night creatures" too and they are listed separately (under code names mentioned above). Maybe want to rename this category?
I already filed an issue (http://www.bay12games.com/dwarves/mantisbt/view.php?id=11327) about that. DFHack definetly makes things with the races clearer, but I hope Toady exports race names (singular and plural) in a separate section of the XML.

Finally, "hired as a scout" is missing for historical figures (requires DFHack?).
I think that comes from the additions to the "battle" event collection. DF Legends Mode has event entries related to battles that are not exported as typical events.
But the information for these entries is in the collection, so I think I will implement some custom events that are not parsed from the XML but created directly from the "battle" event collection.

Oh. did I mention, I think I did, that Legends Viewer is my absolute favorite DF util? Just thought I'd better mention that again as I start listing criticisms. :)
Thanks! Always glad to hear that!  :D
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: BluarianKnight on February 11, 2020, 05:12:00 am
I believe viewing necromantic civilizations currently pops up an error, completely unable to squat about it.

I'm very excited to see this get up and running once the versions stabilize, and I'm glad you've gotten a 47 version up so fast!
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 11, 2020, 05:19:41 am
If you get an error/crash please upload your exported files as a ZIP to DFFD (http://dffd.bay12games.com/index.php).

The files that I need to test things are:
Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml (optional, as soon as DFHack is updated)
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: MaxTheFox on February 11, 2020, 08:27:08 am
Thanks for the update!
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: KittyTac on February 11, 2020, 10:15:11 am
What could cause my modded species to be displayed under "Other Populations" instead of "Civilized Populations" in their own civ screens? They have [INTELLIGENT] and [BENIGN] and all.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: PatrikLundell on February 11, 2020, 11:53:20 am
It used to be that only the civ building races showed up there, while animal peoples, gorlaks, etc. showed up under other. I haven't tried the later versions (because I haven't played at all), but assume that to remain the case.

Note that "I've modded stuff and now things don't work as I expect" questions are better asked to modders than to tool providers who may have enough trouble keeping up with vanilla, and then you'd presumably have to provide the whole modded part so they have a chance to find the mistake/issue.
Once you and/or your friendly modder support has figured out a probably reason for why it doesn't work and you think that's a tool bug/deficiency, you can come back to the tool provider with an exact description of what doesn't work (and why it ought to, if it isn't obvious to non modders as well).
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 11, 2020, 12:21:43 pm
What could cause my modded species to be displayed under "Other Populations" instead of "Civilized Populations" in their own civ screens? They have [INTELLIGENT] and [BENIGN] and all.
It used to be that only the civ building races showed up there, while animal peoples, gorlaks, etc. showed up under other. I haven't tried the later versions (because I haven't played at all), but assume that to remain the case.

Note that "I've modded stuff and now things don't work as I expect" questions are better asked to modders than to tool providers who may have enough trouble keeping up with vanilla, and then you'd presumably have to provide the whole modded part so they have a chance to find the mistake/issue.
Once you and/or your friendly modder support has figured out a probably reason for why it doesn't work and you think that's a tool bug/deficiency, you can come back to the tool provider with an exact description of what doesn't work (and why it ought to, if it isn't obvious to non modders as well).
It is exactly the same problem as stated in my reply to Shonai_Dweller. I have no reliable way to map the Civilized World Population list to the race identifiers in the XML file and I have no information about tags like [INTELLIGENT] or any others in the exported files.
For Example:
Quote
Civilized World Population

   9385 Dwarves
   17448 Humans
   11963 Elves
   75109 Goblins
   278 Kobolds

   Total: 114183

From this part of the export is my information about which races are "civilized".
The problem is that these race names are in plural and in the XML a definition of a historicalfigure looks like this:
Quote
   <historical_figure>
      <id>93</id>
      <name>etur</name>
      <race>DWARF</race>
      <caste>FEMALE</caste>
        ...
So i have to connect that DWARF is related to Dwarves, which is simple for a human but is not so trivial in code.
And as soon as there are races like CAMEL_1_HUMP_MAN, it is impossible to automatically connect to a human readable string (that is additionally in plural) without hardcoding every relation.
That is why I filed this issue (http://www.bay12games.com/dwarves/mantisbt/view.php?id=11327) in the bugtracker and hope that Toady puts the races with singular/plural and identifier somewhere in the exported XML.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Levity on February 11, 2020, 01:28:42 pm
Thank you very much for your work Kromtec!
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: PatrikLundell on February 11, 2020, 04:57:24 pm
Sounds like the set of races to be considered civilized and potentially civilized (i.e. in the entity_defaults and potential heroes [if I remember correctly], respectively) ought to be candidates for the DFHack plus XML set, which ought to contain both the singular term used in the regular XML and the plural needed for the summary (I believe both are easily available from the creature data structure, with the first being the creature_id and the second being the plural index of the name, and while at it I'd suggest exporting the singular string as well, for potential future use).
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 11, 2020, 05:42:17 pm
Sounds like the set of races to be considered civilized and potentially civilized (i.e. in the entity_defaults and potential heroes [if I remember correctly], respectively) ought to be candidates for the DFHack plus XML set, which ought to contain both the singular term used in the regular XML and the plural needed for the summary (I believe both are easily available from the creature data structure, with the first being the creature_id and the second being the plural index of the name, and while at it I'd suggest exporting the singular string as well, for potential future use).
Exactly, a combination of these three properties (identifier, singular and plural string) would be awesome!
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: PatrikLundell on February 13, 2020, 09:22:15 am
What do you think about this? I simply exported every creature_raw with id, names, and all flags ('cause it's easy to iterate over all of them, and it saves the task of picking the ones needed, and adding missed ones later).
I placed it before sites as the data is sort of world gen ("sort of", as I suspect failed experiments are actually generated during history).

Spoiler (click to show/hide)

The complete file is too large to be posted, so I just provide the section before (unchanged) and the proposed new stuff.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 13, 2020, 10:33:54 am
What do you think about this? I simply exported every creature_raw with id, names, and all flags ('cause it's easy to iterate over all of them, and it saves the task of picking the ones needed, and adding missed ones later).
I placed it before sites as the data is sort of world gen ("sort of", as I suspect failed experiments are actually generated during history).

Spoiler (click to show/hide)

The complete file is too large to be posted, so I just provide the section before (unchanged) and the proposed new stuff.

Wow, really cool! Is there already a version of the script that works with dfhack alpha0 and does not crash?
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: PatrikLundell on February 13, 2020, 11:45:03 am
Not yet... The script relies on a field that happened to get lost during mapping (and it has moved anyway), but has been recovered as the result of a bug report. The bug fix for that was accepted an hour ago or so, but with that fixed the script ran on my system, both with and without my addition. Thus, it should work with the next DFHack build.
I haven't made a pull request for the script change, as I wanted to hear your "review" comments first, and the script hasn't been modified for new things in 0.47.X. I'll make a pull request for a script change shortly, but adding new things is a bit beyond me, as I don't know what needs to be added and where the standard XML export is sufficient.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 13, 2020, 12:08:21 pm
Not yet... The script relies on a field that happened to get lost during mapping (and it has moved anyway), but has been recovered as the result of a bug report. The bug fix for that was accepted an hour ago or so, but with that fixed the script ran on my system, both with and without my addition. Thus, it should work with the next DFHack build.
I haven't made a pull request for the script change, as I wanted to hear your "review" comments first, and the script hasn't been modified for new things in 0.47.X. I'll make a pull request for a script change shortly, but adding new things is a bit beyond me, as I don't know what needs to be added and where the standard XML export is sufficient.

I am very exited to get my hands on your addition. Looks like this has everything in it I hoped for, and would solve a lot of issues.
I still hope Toady puts something similar into the vanilla export, because it will be a little tricky to simultaneously support a mechanism (that works at least as good as currently) for people that do not use DFHack.
But I already have an idea how to do it without maintaining a lot of redundant code.  :D
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: PatrikLundell on February 13, 2020, 12:23:23 pm
As you saw that addition was fairly trivial to make, so you shouldn't hesitate to suggest additions on github. The worst that can happen is a rejection, after all.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Urist McNecro on February 13, 2020, 04:50:29 pm
Hey I wanted to ask what the percentages after certain entries mean. For example stuff like Related Entities: The Holy Coal of  The Boat of Sweltering (Member 1%) or Worshipped Deities: the dwarf deity The Lavender Mother, Deity (99%). I assume it has something to do with the closeness of the relationship, but where is the percentage coming from exactly?
 
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 13, 2020, 05:06:46 pm
Hey I wanted to ask what the percentages after certain entries mean. For example stuff like Related Entities: The Holy Coal of  The Boat of Sweltering (Member 1%) or Worshipped Deities: the dwarf deity The Lavender Mother, Deity (99%). I assume it has something to do with the closeness of the relationship, but where is the percentage coming from exactly?

It is the strength of the relation, a value between 0-100.
Because of the range between 0 and 100, I chose to write the percentage symbol. Maybe not the best choice?
For worshipping deities, legends mode translates the value to a human readable string like "an ardent worshipper of The Lavender Mother", but I have not had the time to look into which subrange belongs to which string.
For membership in an entity, legends mode does not display the value at all.

What it exactly means and what the implications in the game are, you have to ask Toady.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Urist McNecro on February 13, 2020, 05:31:23 pm
The choice to display it as a percentage is fine. I pretty much assumed something like that after all. Just had hoped you maybe had more informations about its implications but I can ask a question in the FotF thread then.

Next question as I am exploring the new version with the Legends Viewer right now :D What does the Visual-Historical Distinction mean for relationships between two hfs? Are there other types than Visual and Historical? Is it another variable from the export you don't know the exact meaning of?

Also in case you maybe have made a FAQ or Manual somewhere about questions like this you can of course just send me there so that I won't keep bothering you with these questions :p
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 13, 2020, 05:43:58 pm
Is it another variable from the export you don't know the exact meaning of?
Exactly!  ;D

For now I only encountered these two distinctions with five new types (love, respect, trust, loyalty and fear) and the range of the strength for the new types is -100 to +100.
Older types like "friendly" or "information source" only have positiv values, if I remember correctly.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: KittyTac on February 17, 2020, 07:15:44 am
By the way, another modded species *does* appear as civilized and shows up normally.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: Kromtec on February 17, 2020, 07:41:11 am
By the way, another modded species *does* appear as civilized and shows up normally.

Have you read my previous answer to you?

It is exactly the same problem as stated in my reply to Shonai_Dweller. I have no reliable way to map the Civilized World Population list to the race identifiers in the XML file and I have no information about tags like [INTELLIGENT] or any others in the exported files.
For Example:
Code: [Select]
Civilized World Population

9385 Dwarves
17448 Humans
11963 Elves
75109 Goblins
278 Kobolds

Total: 114183

From this part of the export is my information about which races are "civilized".
The problem is that these race names are in plural and in the XML a definition of a historicalfigure looks like this:
Code: [Select]
<historical_figure>
<id>93</id>
<name>etur</name>
<race>DWARF</race>
<caste>FEMALE</caste>
        ...
So i have to connect that DWARF is related to Dwarves, which is simple for a human but is not so trivial in code.
And as soon as there are races like CAMEL_1_HUMP_MAN, it is impossible to automatically connect to a human readable string (that is additionally in plural) without hardcoding every relation.
That is why I filed this issue (http://www.bay12games.com/dwarves/mantisbt/view.php?id=11327) in the bugtracker and hope that Toady puts the races with singular/plural and identifier somewhere in the exported XML.

To clarify:
I have an algorithm that tries to connect the RaceId (CAMEL_1_HUMP) to the human readable plural string (one-humped camels).

This algrorithm succeeds in >90% of the cases if it can follow simple rules like in the case of humans:
HUMAN -> human -> humans (add an "s")
DWARF -> dwarf -> dwarves (if it ends with "f", replace with "ves")
ELF -> elf -> elves (same rule as with dwarves)

But if the RaceId can not be brought into the plural form with a simple rule, the algorithm fails.
CAMEL_1_HUMP -> camel one hump -> camel one humps (it replaces underscores with spaces and single numbers with the word for this number)

So it looks as if one of your modded species can easily be transformed to the correct plural form and the other not, given that both appear in the "Civilized World Population" list of the regionx-xxxxx-xx-xx-world_sites_and_pops.txt file.
Title: Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
Post by: KittyTac on February 17, 2020, 07:54:27 am
Ohhhhh, it makes more sense now. Thanks.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Kromtec on February 19, 2020, 11:14:01 am
New Release 1.20.02!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Support for new DFHack features: creature raws, secret identities, rivers
### Features
- read creature raws from legends_plus.xml (THX @PatrikLundell)
  - use creature raws for correct singular and plural names of races (like the new horrible experiments and various others)
- read secret identities of historical figures from legends_plus.xml
  - show identity in "assume identity" event
  - show list of secret identities on historical figure pages
- read information of rivers from legends_plus.xml
  - new tab in the Geography tab, with a list of the rivers of this world
  - a page for each river that shows its name and the location on the map
- new DF 0.47.xx Events
  - sabotage
  - battle fought
- new entity types
  - guild
  - militaryunit
  - merchantcompany

### Enhancements
- updated old events
  - artifact found
- added new "religious" link between entities

### Bugfixes
- updated README.md, start page and various other locations and removed a hyperlink that led previously to a site where the lazy newb pack was hosted and leads now to a phishing site :grimacing:


**Note:**
_Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in  the Lazy Newb Pack for exporting the additional XML file!_

@PatrikLundell Thanks for the creature_raw section in the legends_plus.xml. I only use creature_id, name_plural and name_singular for now, but I am sure all the other information will come handy in the future!  :D
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: PatrikLundell on February 19, 2020, 12:07:14 pm
It's still only a subset of the creature raws (the bulk being flags). It would be easy to dump the raw strings as well, although that would bloat the file.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Kromtec on February 19, 2020, 12:24:19 pm
Ups, the link to DFFD still pointed to the old 1.20.01 version.

Fixed now 1.20.02!
Download here! (http://dffd.bay12games.com/file.php?id=11455)
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Shonai_Dweller on February 20, 2020, 07:27:13 am
Huge list of errors loading my modded world (it does load eventually).
Couldn't Find Entity by Name and Race: The Shrieks of Dung
Couldn't Find Entity by Name and Race: The Shrieks of Dung, Parent civ of the Festive Flaxen Wildness
Couldn't Find Entity by Name and Race: The Shrieks of Dung, Parent civ of the Shrieks of Inching
Couldn't Find Entity by Name and Race: The Shrieks of Dung, Parent civ of the Savage of Galleries
Couldn't Find Entity by Name and Race: The Shrieks of Dung, Parent civ of the Wanderer of Hours
Couldn't Find Entity by Name and Race: The Shrieks of Dung, Parent civ of the Amazing Roar
etc, etc for every single entity in the dammed Shrieks of Dung Civ.

That's without DFhack.
With DFHack, it exported OK, but  I waited a long, long time and Legends Viewer never seemed to get past Event Collections. Might be an alpha DFHack issue, not sure.

Shrieks of Dung are a Minotaur civilization, but there's also a Minotaur bandit gang with the same name.
Like me to upload something to check?

--edit and just as I post, DFhack version finally gets past event collection and loads up, no errors.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Kromtec on February 20, 2020, 08:23:40 am
Was this world created with 0.47.03 or is it older?
I ask because there was a bug (http://www.bay12games.com/dwarves/mantisbt/view.php?id=11344) in the .01 and .02 versions that led to lots and lots of battles and huge amounts of deaths. Resolving all these events was a big performance issue when parsing the XMLs, especially the battle event collections.

Loading an export from 0.47.03 will be slower than from < 0.44.xx versions, because there is a lot more information now, but it should not be that drastically slower as you described.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Shonai_Dweller on February 20, 2020, 08:39:09 am
Was this world created with 0.47.03 or is it older?
I ask because there was a bug (http://www.bay12games.com/dwarves/mantisbt/view.php?id=11344) in the .01 and .02 versions that led to lots and lots of battles and huge amounts of deaths. Resolving all these events was a big performance issue when parsing the XMLs, especially the battle event collections.

Loading an export from 0.47.03 will be slower than from < 0.44.xx versions, because there is a lot more information now, but it should not be that drastically slower as you described.
47.03 world.
Up until this world I hadn't noticed much loading speed difference. I've made quite a few 47.03 worlds now. This was the first one I tried with Dfhack though since 44.12.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Kromtec on February 20, 2020, 08:44:05 am
47.03 world.
Up until this world I hadn't noticed much loading speed difference. I've made quite a few 47.03 worlds now. This was the first one I tried with Dfhack though since 44.12.

If you provide the zipped export files, I can try to look into what causes the long loading times.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Silverwing235 on February 22, 2020, 05:32:49 pm
Rather odd, this...Legends Plus being mentioned as being optional, when I try to validate that by deliberately leaving it out of the setup (a separate folder with all required files besides Legends Plus per se, which is elsewhere) this happens:
Code: [Select]
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.EventCollections.Battle.<>c__DisplayClass155_0.<.ctor>b__8(HistoricalFigure attacker) in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\EventCollections\Battle.cs:line 231
   at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
   at LegendsViewer.Legends.EventCollections.Battle..ctor(List`1 properties, World world) in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\EventCollections\Battle.cs:line 231
   at LegendsViewer.Legends.Parser.XmlParser.AddEventCollection(String type, List`1 properties) in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:line 746
   at LegendsViewer.Legends.Parser.XmlParser.AddItemToWorld(List`1 properties) in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:line 225
   at LegendsViewer.Legends.Parser.XmlParser.ParseSection() in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:line 139
   at LegendsViewer.Legends.Parser.XmlParser.Parse() in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:line 69
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile) in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\World.cs:line 93
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e) in C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\FileLoader.cs:line 437
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
..followed by a complete and utter stop while parsing Event Collections. No idea what's going on beyond that. EDIT:  Addendum. (http://dffd.bay12games.com/file.php?id=14854)
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Shonai_Dweller on February 22, 2020, 07:21:25 pm
47.03 world.
Up until this world I hadn't noticed much loading speed difference. I've made quite a few 47.03 worlds now. This was the first one I tried with Dfhack though since 44.12.

If you provide the zipped export files, I can try to look into what causes the long loading times.
Ah, thanks, but it was a pretty massive world. I may be misremembering how much longer Dfhack Legendsplus files take to load. If something weird comes up again I'll post some files.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Shonai_Dweller on February 23, 2020, 09:31:28 am
Legends mode "claimed artifact from afar" is currently called "made a family heirloom from afar" in Legends viewer. Which looks a little weird.
Title: Re: Legends Viewer (Maintained Branch) 1.20.02 | DF 0.47.XX
Post by: Evilguards on March 01, 2020, 06:05:38 am
Hello Failed to load world for the first time(launched it for about ten years every years or so), playing stable LNP 44.12 r08
Code: [Select]
************** Texte de l'exception **************
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
   à LegendsViewer.Legends.WorldObjects.Artifact..ctor(List`1 properties, World world) dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\WorldObjects\Artifact.cs:ligne 44
   à LegendsViewer.Legends.Parser.XmlParser.AddFromXmlSection(Section section, List`1 properties) dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:ligne 282
   à LegendsViewer.Legends.Parser.XmlParser.AddItemToWorld(List`1 properties) dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:ligne 221
   à LegendsViewer.Legends.Parser.XmlParser.ParseSection() dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:ligne 139
   à LegendsViewer.Legends.Parser.XmlParser.Parse() dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\Parser\XMLParser.cs:ligne 69
   à LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile) dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\Legends\World.cs:ligne 93
   à LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e) dans C:\Users\Thomas Svoboda\source\repos\Kromtec\LegendsViewer\LegendsViewer\FileLoader.cs:ligne 437
   à System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
https://drive.google.com/open?id=1vb9CbD4S4D-0d0NGSP4Rv-jYK-GMTwY2
put some extra-files in case you needs them
EDIT : if that's any help, legend browser seem to work fine on the sames XMLs
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on March 01, 2020, 04:31:12 pm
New Release 1.20.03!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Bugfixes + some updated event texts

### Enhancements
- updated "assume identity" event
- updated "hfs formed reputation relationship" event
- updated "artifact claim formed" (THX Shonai_Dweller)
- since 0.47.01 there are lots and lots of battles in every world, what causes long loading times
  - I started to clean up the code that parses this "battle" event collection data, so it should be at least a little bit faster

### Bugfixes
- crash fix for books with no author and site (THX Evilguards)
- crash fix when reading battle event collection data (THX clinodev and Silverwing235)

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in the Lazy Newb Pack for exporting the additional XML file!

@Evilguards The book that caused the crash is called "The Necronomicon" and has very incomplete data in the XML. Is this from a mod?  :o
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Evilguards on March 02, 2020, 02:55:03 pm
It's a dfhack script to spawn a necro book (not from me, manage to got a slab but dorf couldn't read it) didn't know it could corrupt the thingy, reloading a backup should fix it then thanks !
EDIT : just saw the changelog
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Shonai_Dweller on March 04, 2020, 07:05:50 am
Not sure if this happens in the Dfhack version, but under historical figures, if you click the "necromancer" box, it lists raised undead lieutenants.
They should probably be either "animated corpse" or a new category altogether.
(If this is already solved by opening Dfhack generated Legends then I guess t doesn't matter so much).

And also in my current world, a raised undead lieutenant's top description line says "born in 150, died in 180 (old age)".
But in fact, this character died of old age in 174 (it's a very short-lived race), was raised as an undead lieutenant, fought in various battles and was finally struck down by a mouse brute in 180.

So, it should either say "died in 174 (old age)" or "died in 180 (struck)" (or both).
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Conor891 on March 08, 2020, 05:28:42 pm
Newest version doesn't seem to be working.

Loading the xml file in gives a popup saying "There was an error loading this XML file! Do you wish to attempt a repair?"


Selecting yes gives a Microsoft .NET Framework Exception: https://pastebin.com/5eTxq3EQ


If you select continue the program does nothing and never loads the legends file.

The XML files I used along with my world gen parameters can be found here if you need them: http://dffd.bay12games.com/file.php?id=14913
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Deus_Vult on March 08, 2020, 09:07:33 pm
And also in my current world, a raised undead lieutenant's top description line says "born in 150, died in 180 (old age)".
But in fact, this character died of old age in 174 (it's a very short-lived race), was raised as an undead lieutenant, fought in various battles and was finally struck down by a mouse brute in 180.

So, it should either say "died in 174 (old age)" or "died in 180 (struck)" (or both).

I understand it's a bug but also I think it is kind of cool: imagine when one such necromancer\lieutenant is struck down, the spell is broken, and they immediately wither away, as all those missed years come crashing on
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on March 09, 2020, 04:32:59 am
Newest version doesn't seem to be working.

Loading the xml file in gives a popup saying "There was an error loading this XML file! Do you wish to attempt a repair?"


Selecting yes gives a Microsoft .NET Framework Exception: https://pastebin.com/5eTxq3EQ


If you select continue the program does nothing and never loads the legends file.

The XML files I used along with my world gen parameters can be found here if you need them: http://dffd.bay12games.com/file.php?id=14913

The ZIP you provided only includes the two XML files.
To look into your problem I need all of these files:

Code: [Select]
regionx-xxxxx-xx-xx-legends.xml
regionx-xxxxx-xx-xx-legends_plus.xml (if you have this file)
regionx-xxxxx-xx-xx-world_history.txt
regionx-xxxxx-xx-xx-world_map.bmp
regionx-xxxxx-xx-xx-world_sites_and_pops.txt

Did you give your dwarves custom names that include special characters? If that is the case, your problem could be this bug (http://www.bay12games.com/dwarves/mantisbt/view.php?id=11357).
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Nilsolm on March 09, 2020, 04:51:48 am
Newest version doesn't seem to be working.

Loading the xml file in gives a popup saying "There was an error loading this XML file! Do you wish to attempt a repair?"


Selecting yes gives a Microsoft .NET Framework Exception: https://pastebin.com/5eTxq3EQ


If you select continue the program does nothing and never loads the legends file.

The XML files I used along with my world gen parameters can be found here if you need them: http://dffd.bay12games.com/file.php?id=14913

There was a bug in some recent DFHack builds, where exportlegends produced invalid XML data. It looks like it's been fixed (https://github.com/DFHack/dfhack/issues/1512) already, so it should work if you try a newer build.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: PatrikLundell on March 09, 2020, 07:23:43 am
There is a couple of corrections of the exportlegends script in the pipeline awaiting acceptance.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on March 10, 2020, 05:24:51 am
Newest version doesn't seem to be working.

Loading the xml file in gives a popup saying "There was an error loading this XML file! Do you wish to attempt a repair?"


Selecting yes gives a Microsoft .NET Framework Exception: https://pastebin.com/5eTxq3EQ


If you select continue the program does nothing and never loads the legends file.

The XML files I used along with my world gen parameters can be found here if you need them: http://dffd.bay12games.com/file.php?id=14913

There was a bug in some recent DFHack builds, where exportlegends produced invalid XML data. It looks like it's been fixed (https://github.com/DFHack/dfhack/issues/1512) already, so it should work if you try a newer build.

Yeah, I debugged with @Conor891 files, and it is exactly this error:
Code: [Select]
<historical_event>
<id>1161</id>
<type>body_abused</type>
<bodies>359</bodies>
<bodies>363</bodies>
<bodies>365</bodies>
<bodies>366</bodies>
<bodies>469</bodies>
<bodies>471</bodies>
<bodies>476</bodies>
<bodies>617</bodies>
<bodies>648</bodies>
<civ>83</civ>
<histfig>-1</histfig>
<site>118</site>
<abuse_type>1</abuse_type>
        --> <abuse_data><history_event_body_abusedst.T_abuse_data: 0000024565093F40></abuse_data>
</historical_event>
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: PatrikLundell on March 11, 2020, 05:25:06 am
It seems Legends Viewer is rather unhappy with childhood friendships. Whenever I've tried to look at units having these there's an unhandled exception. It can be noted that war buddies work just fine. As an aside, DF itself has had issues with several such units (not this one, though), refusing to acknowledge the existence of that HF, while still showing the HF's name as a childhood friend of the other party.

Here's a snipped from the standard Legends export file from the section of one such HF. I suspect you have loads of these in the files you have available, but if not I can provide you with the files I've used (I don't think it matters, but I've also exported Legends_Plus).

Code: [Select]
<historical_figure>
<id>67445</id>
<name>usmok strifeplunge</name>
:
<vague_relationship>
<childhood_friend/>
<hfid>67666</hfid>
</vague_relationship>

Edit: Also issues with scholar_buddy:
Code: [Select]
<vague_relationship>
<scholar_buddy/>
<hfid>4195</hfid>
</vague_relationship>
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on March 11, 2020, 08:06:56 am
It seems Legends Viewer is rather unhappy with childhood friendships. Whenever I've tried to look at units having these there's an unhandled exception. It can be noted that war buddies work just fine. As an aside, DF itself has had issues with several such units (not this one, though), refusing to acknowledge the existence of that HF, while still showing the HF's name as a childhood friend of the other party.

Here's a snipped from the standard Legends export file from the section of one such HF. I suspect you have loads of these in the files you have available, but if not I can provide you with the files I've used (I don't think it matters, but I've also exported Legends_Plus).

Code: [Select]
<historical_figure>
<id>67445</id>
<name>usmok strifeplunge</name>
:
<vague_relationship>
<childhood_friend/>
<hfid>67666</hfid>
</vague_relationship>

Edit: Also issues with scholar_buddy:
Code: [Select]
<vague_relationship>
<scholar_buddy/>
<hfid>4195</hfid>
</vague_relationship>

I tried to reproduce your problem with vanilla DF and with the latest build (https://buildmaster.lubar.me/applications/3/builds/build?buildId=7282) I found from DFHack and I can load the pages of historical figures with childhood friends or scholar buddies or any other vague relationship without issues.

I used the Windows64 builds of DF and DFHack.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: PatrikLundell on March 11, 2020, 02:07:17 pm
Thanks for trying. I've zipped up the files here: https://www.dropbox.com/s/80taz9tl6dz108o/DF_47_04.zip?dl=0 (https://www.dropbox.com/s/80taz9tl6dz108o/DF_47_04.zip?dl=0). The files were produced using my version of exportlegends.lua, which I believe is the current one.

Edit:
An amusing entry (from the same export) :Look at Zan Gulfcloistered :) DF Legends Mode has the relations reversed...
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on March 11, 2020, 04:00:03 pm
Thanks for trying. I've zipped up the files here: https://www.dropbox.com/s/80taz9tl6dz108o/DF_47_04.zip?dl=0 (https://www.dropbox.com/s/80taz9tl6dz108o/DF_47_04.zip?dl=0). The files were produced using my version of exportlegends.lua, which I believe is the current one.

Edit:
An amusing entry (from the same export) :Look at Zan Gulfcloistered :) DF Legends Mode has the relations reversed...

Thanks, the problem were not the vague relationships but printing the race of culled unimportant historical figures in the nodes of family trees.
I don't use advanced world gen in my test worlds and therefore have never set [CULL_HISTORICAL_FIGURES:1]. There is often missing information in such worlds that lead to bugs.  :(

Haha, still have to look into the problem of the duck that became the owner of that dwarf.  ;D
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: GamingMasterAnthony on March 14, 2020, 03:32:38 pm
is there a way to look up unit ids with Legends Viewer? im playing adventure mode and i kinda want to teleport straight to my target (it doesnt help that its across an ocean)
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Bumber on March 15, 2020, 07:17:59 am
is there a way to look up unit ids with Legends Viewer? im playing adventure mode and i kinda want to teleport straight to my target (it doesnt help that its across an ocean)
I doubt that information is exported.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: lethosor on March 15, 2020, 10:02:17 am
is there a way to look up unit ids with Legends Viewer? im playing adventure mode and i kinda want to teleport straight to my target (it doesnt help that its across an ocean)
I doubt that information is exported.
Historical figure IDs are exported in the vanilla export - does that help?
Code: [Select]
<historical_figures>
        <historical_figure>
                <id>0</id>
My understanding is that unit IDs are only meaningful in an active game, so you might not be able to get them from legends mode.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: GamingMasterAnthony on March 15, 2020, 03:14:55 pm
is there a way to look up unit ids with Legends Viewer? im playing adventure mode and i kinda want to teleport straight to my target (it doesnt help that its across an ocean)
I doubt that information is exported.

is there a way to look up unit ids with Legends Viewer? im playing adventure mode and i kinda want to teleport straight to my target (it doesnt help that its across an ocean)
I doubt that information is exported.
Historical figure IDs are exported in the vanilla export - does that help?
Code: [Select]
<historical_figures>
        <historical_figure>
                <id>0</id>
My understanding is that unit IDs are only meaningful in an active game, so you might not be able to get them from legends mode.

Ah, well, thanks anyways
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Silverwing235 on March 27, 2020, 07:44:42 pm
And what looks to be a  rather obvious bug (http://dffd.bay12games.com/file.php?id=14971). Sorry for the lack of clear description - its one of those things you need to get up close and personal with, from my experience so far.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Ironlion on March 29, 2020, 03:21:05 pm
Is anyone else seeing crazy long load times?  Or possibly freezes.  It doesn't seem to get past "Event Collections".   This is with an exportlegends export, and the legends.xml is around 5 gigs.  Which is insane, but I am under the impression that Legends Viewer can handle this. 
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: PatrikLundell on March 29, 2020, 04:13:13 pm
Is anyone else seeing crazy long load times?  Or possibly freezes.  It doesn't seem to get past "Event Collections".   This is with an exportlegends export, and the legends.xml is around 5 gigs.  Which is insane, but I am under the impression that Legends Viewer can handle this. 
The larger the amount of text in the XML, the longer it takes to load, and then it takes time to sort out all the linkage (I assume that's what's happening). Use the task manager (or whatever your OS calls it) to see if the tool keeps allocating memory, in which case it's probably still working on it. Also note that if you're running low on physical memory the swap file will be used, at that one runs at hard disk speed, not memory speed.

The largest file I've got is about 3 GB, and it takes a fair while to load, but does get the job done.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Ironlion on March 29, 2020, 05:30:35 pm
That might be what is happening.  I have previously rarely had them larger than a couple gigs; with the newest version of DF I think I'm seeing a size significantly larger in the legends now.   
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Pillbo on March 29, 2020, 07:16:16 pm
Is anyone else seeing crazy long load times?  Or possibly freezes.  It doesn't seem to get past "Event Collections".   This is with an exportlegends export, and the legends.xml is around 5 gigs.  Which is insane, but I am under the impression that Legends Viewer can handle this.

I have the same issue, it's been unable to pass the Event Collections stage on a 107mg zip file. Same thing on the unzipped version which is about 2 gigs.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Shonai_Dweller on March 30, 2020, 03:43:43 am
Is anyone else seeing crazy long load times?  Or possibly freezes.  It doesn't seem to get past "Event Collections".   This is with an exportlegends export, and the legends.xml is around 5 gigs.  Which is insane, but I am under the impression that Legends Viewer can handle this.

I have the same issue, it's been unable to pass the Event Collections stage on a 107mg zip file. Same thing on the unzipped version which is about 2 gigs.
I'm finding regular Legends takes a fairly long time to load but does eventually, while Legends plus Dfhack extra takes so long I've forgotten what is was I was opening it up for by the time it eventually appears.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on March 30, 2020, 06:21:28 am
The next version should be faster at loading the "event collections" section.
Since DF 0.47.XX the "battle" event collections have a lot more information and happen a lot more frequently, thats why it takes so long to load.
Even with the loading performance fix I made for the next version, it will take longer than with exports of older DF versions, but I hope you will see a noticable improvement.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Shonai_Dweller on March 30, 2020, 06:54:13 am
The next version should be faster at loading the "event collections" section.
Since DF 0.47.XX the "battle" event collections have a lot more information and happen a lot more frequently, thats why it takes so long to load.
Even with the loading performance fix I made for the next version, it will take longer than with exports of older DF versions, but I hope you will see a noticable improvement.
Excellent news. Such a good util that I always I put up with the wait (even if I have finished my game and am watching TV by the time it shows up)  :)
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Pillbo on March 30, 2020, 10:31:58 am
Is anyone else seeing crazy long load times?  Or possibly freezes.  It doesn't seem to get past "Event Collections".   This is with an exportlegends export, and the legends.xml is around 5 gigs.  Which is insane, but I am under the impression that Legends Viewer can handle this.

I have the same issue, it's been unable to pass the Event Collections stage on a 107mg zip file. Same thing on the unzipped version which is about 2 gigs.
I'm finding regular Legends takes a fairly long time to load but does eventually, while Legends plus Dfhack extra takes so long I've forgotten what is was I was opening it up for by the time it eventually appears.

I let it go for 30 minutes yesterday. How long is a 'fairly long time' on your end?

Update: I started it to try again, it finished in 1704 secs (28.4 mins), so pretty significant wait, but not frozen. I must have stopped it right before it finished yesterday.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Nukesnipe on March 30, 2020, 03:48:29 pm
So I made a very old, very large world with a 2 gig xml file.  It takes a solid 10 minutes to load into the viewer, but after that everything tends to work... except for civilizations.  I can't view larger civilizations (like, say, my current fort's civilization) at all.  Looking in task manager, it's eating up like 3600 megs of RAM for like 20 minutes before it stops using much RAM at all, but it doesn't load anything, just keeps a blank screen.
Anything I can do to fix it?  I wanna make statues commemorating my civilization's great deeds and conflicts.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: PatrikLundell on March 31, 2020, 02:42:15 pm
A heads up: Yesterday the df.history.xml file was changed in a way that causes Legends Viewer to reject the plus file: The history event "hist_figure_wounded" field "part_lost" was changed from an integer to a boolean, and it appears the parser doesn't like when it's not a numeric value, but rather the text "true"/"false".

I verified the cause by changing the script (locally) to omit that field, and that change causes the tool to accept the file.
Title: Re: Legends Viewer (Maintained Branch) 1.20.03 | DF 0.47.XX
Post by: Kromtec on April 01, 2020, 03:11:47 am
So I made a very old, very large world with a 2 gig xml file.  It takes a solid 10 minutes to load into the viewer, but after that everything tends to work... except for civilizations.  I can't view larger civilizations (like, say, my current fort's civilization) at all.  Looking in task manager, it's eating up like 3600 megs of RAM for like 20 minutes before it stops using much RAM at all, but it doesn't load anything, just keeps a blank screen.
Anything I can do to fix it?  I wanna make statues commemorating my civilization's great deeds and conflicts.

Sadly, I think this is because of the sheer amount of events and is nothing that can be easily fixed.
But I think as a workaround you could open the "Civ and entities" Tab and there go to the "Events" Tab, click on "Deselect All"
(https://i.imgur.com/hnHLFEx.png)

Now you should be able to open the pages of the civilization. You can then selectively enable various event types to display their entries in the event log, but do not enable all events at the same time.

A heads up: Yesterday the df.history.xml file was changed in a way that causes Legends Viewer to reject the plus file: The history event "hist_figure_wounded" field "part_lost" was changed from an integer to a boolean, and it appears the parser doesn't like when it's not a numeric value, but rather the text "true"/"false".

I verified the cause by changing the script (locally) to omit that field, and that change causes the tool to accept the file.
Thanks, I updated the parser so it can handle integers and booleans for this property. Will be in the next version.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Kromtec on April 01, 2020, 03:34:15 am
New Release 1.20.04!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Bugfixes + Performance Improvements

### Performance
- parsing event collections should be faster
- parsing historical figures should be faster

### Enhancements
- updated hf_wounded event that it can handle integers and booleans for the part_lost property

### Bugfixes
- resurrected undead are no longer falsely classified as necromancers
- crash fix for culled unimportant historical figures in family tree
- corrected the race string in curse lineage trees
- fixed crash when opening battles where the attacker or defender entity has no site

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in the Lazy Newb Pack for exporting the additional XML file!
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Shonai_Dweller on April 01, 2020, 06:02:27 am
Oh, yes that seems to load pretty quickly (non dfhack legends).
Thanks!

--later edit
- Nice to see intelligent undead not listed as necromancers.
Spotted another incident of "died in 69 (old age)" whereas the truth is "died in 50 (old age), died again in 69 (struck)".
DFHack version also seems quick to load. :)
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Silverwing235 on April 01, 2020, 08:37:00 am
Generally okay, but.....anyone else discovered major problems in the Advanced Search UI? When you search by Race, the drop down and results are full of
Code: [Select]
LegendsViewer.Legends.CreatureInfo
rather than racial designations.

(the code section handtyped because copy pasting doesn't work at all, for some reason)
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Kromtec on April 01, 2020, 08:48:16 am
Generally okay, but.....anyone else discovered major problems in the Advanced Search UI? When you search by Race, the drop down and results are full of
Code: [Select]
LegendsViewer.Legends.CreatureInfo
rather than racial designations.

(the code section handtyped because copy pasting doesn't work at all, for some reason)

The code of the advanced search feature is nearly untouched since I took over the project, five years ago. It needs a bigger overhaul that I don't want to put in a small minor version release.
I currently don't have a lot of time, so bigger features have to wait, sorry!
I'll try to tackle some smaller urgent issues like the wrong race string for the next version.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: PatrikLundell on April 01, 2020, 09:15:04 am
Thanks for the new version! And, of course there are new bug reports...

System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Events.NewSiteLeader.Print(Boolean link, DwarfObject pov)
   at LegendsViewer.Controls.HTML.HtmlPrinter.PrintEventLog(World world, List`1 events, List`1 filters, DwarfObject dfo)
   at LegendsViewer.Controls.HTML.SitePrinter.Print()
   at LegendsViewer.Controls.HTML.HtmlPrinter.GetHtmlPage()
:

trying to display a two different sites (so far: most work correctly). I guess it's culling that's the culprit. I can provide the XML files if needed, but the main one weighs in at over 4 GB (so it's a wonder anything works at all).
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Kromtec on April 02, 2020, 12:59:13 am
Thanks for the new version! And, of course there are new bug reports...

System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Events.NewSiteLeader.Print(Boolean link, DwarfObject pov)
   at LegendsViewer.Controls.HTML.HtmlPrinter.PrintEventLog(World world, List`1 events, List`1 filters, DwarfObject dfo)
   at LegendsViewer.Controls.HTML.SitePrinter.Print()
   at LegendsViewer.Controls.HTML.HtmlPrinter.GetHtmlPage()
:

trying to display a two different sites (so far: most work correctly). I guess it's culling that's the culprit. I can provide the XML files if needed, but the main one weighs in at over 4 GB (so it's a wonder anything works at all).
Thanks, no need for uploading the XMLs in this case. I already found the problem thanks to your stack trace and fixed it for the next version.  :)
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Shonai_Dweller on April 07, 2020, 05:37:00 pm
Is it possible for Legends Viewer to get any of the new religion data?
Right now, each civ has its gods listed, and on the civs and entities tab I can get a list of religions in the world, but there's no link between them (that I can see).
Listing the associated religions with the gods and mentioning the gods on the religion info screens would be a good start.

Also, more advanced, there is crossover of religions between civs now. Is there any data available for how much influence religions have in each civ?
In modded games where you have a civ with no native gods especially, they pick up a bunch of religions from other civs. Would be nice to get an overview of the gods my migrants are likely to be worshiping.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: therahedwig on April 09, 2020, 09:37:08 am
From what I know from poking at Legends Browser, that would require extending legends_plus.xml, the regular legends.xml barely has anything on entities (hueristics, that is, automated guesswork, needs to be done to identify a lot of entity related stuff with vanilla legends.).
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Kromtec on April 10, 2020, 05:58:44 am
Is it possible for Legends Viewer to get any of the new religion data?
Right now, each civ has its gods listed, and on the civs and entities tab I can get a list of religions in the world, but there's no link between them (that I can see).
Listing the associated religions with the gods and mentioning the gods on the religion info screens would be a good start.

Also, more advanced, there is crossover of religions between civs now. Is there any data available for how much influence religions have in each civ?
In modded games where you have a civ with no native gods especially, they pick up a bunch of religions from other civs. Would be nice to get an overview of the gods my migrants are likely to be worshiping.
From what I know from poking at Legends Browser, that would require extending legends_plus.xml, the regular legends.xml barely has anything on entities (hueristics, that is, automated guesswork, needs to be done to identify a lot of entity related stuff with vanilla legends.).

Yeah, therahedwig is absolutely right. I looked into the code and I already have some "automated guesswork"  :D in place.

The temple structure had at some point the information of the worshipped deity and the religion that occupied it, so a connection was possible in some cases. But in all worlds I created with the new DF version, none of these properties "deity" or "worship_hfid" where in the "structure" nodes of the legends_plus.xml.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: PatrikLundell on April 11, 2020, 02:16:18 am
If you know which fields of which DF structures you need to make the connections desired and describe that in a DFHack issue (or a post here), it shouldn't be hard to add that to the exports. It doesn't seem like the current script does much in the way of "thinking" to generate info, but just dumps data from selected structures, but I don't think there's a ban on logic for the script. However, if logic is required, a request ought to describe it.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Kromtec on April 17, 2020, 04:02:31 am
If you know which fields of which DF structures you need to make the connections desired and describe that in a DFHack issue (or a post here), it shouldn't be hard to add that to the exports. It doesn't seem like the current script does much in the way of "thinking" to generate info, but just dumps data from selected structures, but I don't think there's a ban on logic for the script. However, if logic is required, a request ought to describe it.

Thanks, I will come back to that as soon as I have more time to work on LegendsViewer again.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: neo6633 on April 25, 2020, 07:22:24 pm
https://github.com/Kromtec/LegendsViewer/issues/52

How Can I see "Advanced Search" button #52
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Shonai_Dweller on April 25, 2020, 07:30:33 pm
https://github.com/Kromtec/LegendsViewer/issues/52

How Can I see "Advanced Search" button #52
Oh, yes, this is really annoying.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: PatrikLundell on May 13, 2020, 04:29:13 am
Legends Viewer seems to give up on parsing XML Plus when too much of its contents is unknown, giving a message indicating the file is missing rather than being rejected. This also has the side effect that the output indicating the things that couldn't be parsed gets discarded as well, which makes it hard to distinguish the reasonable "too much new stuff" case from the buggy "there are too many entries with garbage contents" case, where we'd want to investigate what went wrong. Would it be reasonable to produce some kind of log file listing the interpretation failures (up until the point of giving up)?

DF lists an extensive set of family relations when you view units on the unit relations screen, but as far as I can tell it only stores (and exports) immediate relations. This leads me to believe the rest ([half] siblings, cousins, nieces, aunts, grand parents, and their male counterparts when applicable) are gathered on the fly by scanning the relations of the set of immediate ones, plus the siblings' children. Personally I don't consider this info to be particularly important beyond the completeness aspect, but I suspect others may have other priorities, so I bring it up as a point of expansion to consider (and possible reject).
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: tranquilham on July 27, 2020, 11:33:38 am
is this still being worked on? id like to use it instead of Legends Browser because i prefer it being a normal app instead of some web thing. when i try to open it up, it gives me an error about an invalid field from hf_wounded, which is weird cause i downloaded the latest version and everything...
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Shonai_Dweller on July 27, 2020, 05:00:49 pm
is this still being worked on? id like to use it instead of Legends Browser because i prefer it being a normal app instead of some web thing. when i try to open it up, it gives me an error about an invalid field from hf_wounded, which is weird cause i downloaded the latest version and everything...
Last updated April 2020, a long time after the latest DF release. So, yes, it's up to date and working for most people.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: lethosor on July 27, 2020, 06:05:49 pm
is this still being worked on? id like to use it instead of Legends Browser because i prefer it being a normal app instead of some web thing. when i try to open it up, it gives me an error about an invalid field from hf_wounded, which is weird cause i downloaded the latest version and everything...
Can you confirm that it's version 1.20.04? Also, what DFHack version are you using? The most recent DFHack version (0.47.04, from April 24) is newer than the most recent Legends Viewer (from April 1), so it's possible that DFHack introduced some change that broke Legends Viewer.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: PatrikLundell on July 28, 2020, 02:16:33 am
is this still being worked on? id like to use it instead of Legends Browser because i prefer it being a normal app instead of some web thing. when i try to open it up, it gives me an error about an invalid field from hf_wounded, which is weird cause i downloaded the latest version and everything...
Is it a fatal error, or just a complaint? The latest exportlegends script (in the latest DFHack release) export a number of things that Legends Viewer doesn't recognize, but that normally doesn't prevent it from processing the exported file.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: tranquilham on July 29, 2020, 09:47:08 pm
well, i seem to be proved wrong once again. turns out that i didnt export everything needed because i quit DF before it finished. oh well, you live some, you learn some.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: rmblr on August 05, 2020, 01:22:46 pm
After loading an alternate map, how do I restore the original map?

Also, what sort of alternate maps can be loaded? I loaded up a site map, which didn't work well heh.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Weaselcake on August 09, 2020, 11:49:49 pm
is this still being worked on? id like to use it instead of Legends Browser because i prefer it being a normal app instead of some web thing. when i try to open it up, it gives me an error about an invalid field from hf_wounded, which is weird cause i downloaded the latest version and everything...

i'm getting this error even after finishing all my exports. :/ it prevents the program from loading anything.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: stingpie on August 17, 2020, 07:14:50 pm
So, I have been having trouble with this as well. Specifically, it displays an error saying there is an issue with input parsing. Here is a link to the dffd listing for the exported world: https://dffd.bay12games.com/file.php?id=15175
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: lethosor on August 17, 2020, 09:47:56 pm
Just want to remind people reporting issues that including the version numbers of the affected software is helpful, particularly to people who might see this a month or two later. In this case, the Legends Viewer version and the DFHack version are relevant. (A pack version is typically less useful, but depending on the pack, can sometimes be used to figure out both the LV and DFHack versions.)

In this case, I suspect the issue is with the exportlegends script included in DFHack 0.47.04-r2 (which was recently released, and is newer than the latest LV release, 1.20.04). There were some breaking changes that will likely require updates to this tool. PatrikLundell has a good writeup of the exact issue here (http://www.bay12forums.com/smf/index.php?topic=164123.msg8179462#msg8179462), for anyone interested.

Edit: the changelog here (https://docs.dfhack.org/en/0.47.04-r2/docs/NEWS.html#dfhack-0-47-04-r2) has some more details (note that exportlegends is mentioned under both "fixes" and "misc improvements"). I saw some confusion about whether this tool can handle exportlegends' new support of exporting to subfolders, so that may be worth investigating too.
Title: Re: Legends Viewer (Maintained Branch) 1.20.04 | DF 0.47.XX
Post by: Kromtec on August 18, 2020, 12:16:07 am
Thanks all for bringing this to my attention.

I already fixed a few things so that LegendsViewer is once again compatible with DFHack 0.47.04-r2.
While I am at it, I want to update some event texts and other stuff to use more of the new information DFHack provides by now.
I will try to release a new version this week.
Title: Re: Legends Viewer (Maintained Branch) 1.20.05 | DF 0.47.XX
Post by: Kromtec on August 23, 2020, 01:49:38 pm
New Release 1.20.05!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Compatiblity with DFHack 0.47.04-r2 + updates to events

### Added information
- added new 'historical event relationship' event
- added new 'historical event relationship supplements' information
- added type of moutain peak
- added evilness and local force to regions
- added profession to secret identities
- added summary to entity page

### Enhancements
- updated 'itemstolen' event
- updated 'body abused' event
- updated 'assume identity' event
- various smaller event updates

### Bugfixes
- compatibility with changed property export of DFHack 0.47.04-r2 #55
- added TitleRaceString and changed the ObjectListView to show the name of Race rather than the name of the object - THX @JakeTrans
- fixed a crash that could happen when there was no information about the new leader in the "new_site_leader" event due to hf culling

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually included in the Lazy Newb Pack for exporting the additional XML file!

I could load various test saves without problems, hopefully I got the majority of compatiblity issues with the new DFHack version.
If there are still crashes during loading or other bugs, please let me know here or on the Github Issues Page (https://github.com/Kromtec/LegendsViewer/issues) and include versions of DF and DFHack as well as the exported files or the save game.
Title: Re: Legends Viewer (Maintained Branch) 1.20.05 | DF 0.47.XX
Post by: Tournesol on August 23, 2020, 02:07:51 pm
Thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.20.05 | DF 0.47.XX
Post by: Luckyowl on August 25, 2020, 10:58:39 pm
I have a small request. Could you make a dark mode version? I like how easy it is to comb threw my world's history, but the white background strain my eyes. Focing me to use df's legend mode sometimes because the color scheme in df's legend mode feels more comforting.
Title: Re: Legends Viewer (Maintained Branch) 1.20.05 | DF 0.47.XX
Post by: Silverwing235 on August 26, 2020, 07:22:36 am

Code: [Select]
### Bugfixes
- added TitleRaceString and changed the ObjectListView to show the name of Race rather than the name of the object - THX @JakeTrans

There seems to be something of the kind still hanging around in the Advanced Search functionality specifically, however. When the Race parameter is combined with any other parameter - or left as default - this happens:
Code: [Select]
System.InvalidOperationException: The binary operator Equal is not defined for the types 'LegendsViewer.Legends.CreatureInfo' and 'System.String'.
   at System.Linq.Expressions.Expression.GetEqualityComparisonOperator(ExpressionType binaryType, String opName, Expression left, Expression right, Boolean liftToNull)
   at System.Linq.Expressions.Expression.Equal(Expression left, Expression right, Boolean liftToNull, MethodInfo method)
   at LegendsViewer.Controls.Query.SearchInfo`1.GetComparer(Expression property)
   at LegendsViewer.Controls.Query.SearchInfo`1.GetPredicate()
   at LegendsViewer.Controls.Query.SearchList`1.Search(List`1 searchCriteria)
   at LegendsViewer.Controls.Query.QueryControl.Search(CriteriaLine criteria)
   at LegendsViewer.Controls.Query.CriteriaLine.GetValueOptions()
   at LegendsViewer.Controls.Query.PropertyBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

File: https://dffd.bay12games.com/file.php?id=15186 (https://dffd.bay12games.com/file.php?id=15186)
Title: Re: Legends Viewer (Maintained Branch) 1.20.05 | DF 0.47.XX
Post by: Lemel on September 08, 2020, 12:44:12 pm
Nevermind, turns out PyLNP had an outdated version of legend viewer. Downloaded a new version and everything works now

Trying to use this app to check on my world (want to figure out why im not getting migrants or caravans) and i ran into a problem.

I used DFHack to export information from the game (i even used exportlegends all, but also tried using exportlegends info). When i press "..." button on the left of Legends XML / Archive i can see 2 files, one with the name "region3-00250-11-09-legends", and one with the name "region3-00250-11-09-legends_plus". I open the regular one, then everything below Legends XML / Archive things lights up green. After a couple seconds i get this pop up (https://i.gyazo.com/10bc2a967a55cd816fc2da778769584f.png).
Spoiler: details (click to show/hide)

If i click continue, programm behaves like i just opened it. Pressing any other buttons doesnt do anything and i can try opening legends files again
Looks like error occurs when loading Events (as seen on this screenshot (https://i.gyazo.com/b1fe31667e74e03160441f91b4a292e9.png))
Title: Re: Legends Viewer (Maintained Branch) 1.20.06 | DF 0.47.XX
Post by: Kromtec on September 27, 2020, 04:42:10 pm
New Release 1.20.06!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
# Advanced Search Overhaul

### Advanced Search
- the advanced search feature got an complete overhaul
- now works with property attributes and is far better maintainable
- button for the advanced search was added to the top of the content pages

### Enhancements
- added structures to advanced search
- added raids to advanced search
- added written content to advanced search
- included and changed lots of allowed search properties

### Bugfixes
- lots of crash fixes related to the advanced search

**Note:**
Use 'exportlegends info' or 'exportlegends all' of [DFHack](https://github.com/DFHack/dfhack/releases) to get lots and lots more info and
less UNKNOWN data. The new legends_plus.xml features require [DFHack](https://github.com/DFHack/dfhack/releases) which is usually
included in the Lazy Newb Pack for exporting the additional XML file!

@Silverwing235
I finally had time to take a closer look at the advanced search feature! Sorry it took so long.
There are still minor issues when nesting lots of conditions, but such things should no longer lead to crashes, instead will return no results.

@Lemel
Good to hear that everything worked out in the end.

@Luckyowl
Thanks, I'll make a note, but I fear that would be a lot of work because the whole Windows Forms part of the project is not very cooperative in that regard.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06 | DF 0.47.XX
Post by: garlicfiend on October 25, 2020, 08:08:59 pm
I'm getting the *EXACT* same issue as Lemel.

I downloaded 1.20.06, and the issue persists.

I've had the issue happen using both the native export function in DF and using DFHack.

I did get one export to load when I did it immediately after world gen but before starting a fortress. But later, when I had an active fortress, I used DFHack's open-legends to export, and got the LV error.

I uploaded both the working export and the one causing the error to DFFD here: https://dffd.bay12games.com/file.php?id=15275

I'm hoping there's a fix for this -- I love Legends Viewer and would really like to use it again!

Again, I'm not reposting the error text because Lemel already did that, and it's exactly the same.

Title: Re: Legends Viewer (Maintained Branch) 1.20.06b | DF 0.47.XX
Post by: Kromtec on October 28, 2020, 03:33:15 pm
New Release 1.20.06b!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
1.20.06b
# Hotfix

* supporting a changed data type of the newest DFHack that caused crashes in Legends Viewer

I'm getting the *EXACT* same issue as Lemel.

I downloaded 1.20.06, and the issue persists.

I've had the issue happen using both the native export function in DF and using DFHack.

I did get one export to load when I did it immediately after world gen but before starting a fortress. But later, when I had an active fortress, I used DFHack's open-legends to export, and got the LV error.

I uploaded both the working export and the one causing the error to DFFD here: https://dffd.bay12games.com/file.php?id=15275

I'm hoping there's a fix for this -- I love Legends Viewer and would really like to use it again!

Again, I'm not reposting the error text because Lemel already did that, and it's exactly the same.


Thanks for posting! It is not the exact same issue, only related and results in the same error message.
Looks like one more property that got changed by DFHack from a number to a text.

Here is the hotfix release that should hopefully get rid of the last of these issues.  ;D
Title: Re: Legends Viewer (Maintained Branch) 1.20.06b | DF 0.47.XX
Post by: point08 on October 29, 2020, 08:18:35 am
New Release 1.20.06b!

....

Here is the hotfix release that should hopefully get rid of the last of this issues.  ;D

I can confirm this worked for me on prior legends exports that were crashing during the "Events" portion.  Thanks!
Title: Re: Legends Viewer (Maintained Branch) 1.20.06b | DF 0.47.XX
Post by: Cathar on October 31, 2020, 10:27:52 am
I have a similar problem, the hotfix doesn't seem to help ; there might be still some issues.
Here's the debugging message

Spoiler (click to show/hide)
Title: Re: Legends Viewer (Maintained Branch) 1.20.06b | DF 0.47.XX
Post by: garlicfiend on October 31, 2020, 08:21:20 pm
Thank you so much for your quick response!

I downloaded the new version and it loaded successfully!!

Thank you for your work maintaining this addon -- seriously my favorite DF addon! You do Armok's work!
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on November 01, 2020, 06:29:55 am
New Release 1.20.06c!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
1.20.06c
# Hotfix

* found more places in rarer events where datatypes changed from int to string

I have a similar problem, the hotfix doesn't seem to help ; there might be still some issues.
Here's the debugging message

Spoiler (click to show/hide)

Thanks! Yeah, there still were rarer events like MasterpieceFood and MasterpieceDye that had similar problems and did not appear in my previous test games.  :(

If anyone stumbles over even more bugs, please post them here or on GitHub (https://github.com/Kromtec/LegendsViewer/issues).
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Cathar on November 01, 2020, 10:08:17 am
Aw man, thanks a lot for all your efforts, you're a life saver
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: khripunoff on November 11, 2020, 08:18:07 pm
I have a minor issue: when loading an xml file as per instructions, the Legends Viewer uses the first image file it finds in the directory for map image (looking in alphabetical order) rather than xxxxx-worldmap.png as it supposed to (i guess?). Also changing it manually by pressing the "..." button next to Map image text box, doesn't change the map file. My workaround is renaming the map image file to something like "!!xxxxxxx-worldmap.png", this way the Viewer sees it first, and selects it as intended. Any help?

I use the latest version (1.20.06c) that comes with the latest PeridexisErrant's Starter Pack.

Edit: This only happens with .png files, works fine with .bmp
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on November 13, 2020, 10:51:27 am
I have a minor issue: when loading an xml file as per instructions, the Legends Viewer uses the first image file it finds in the directory for map image (looking in alphabetical order) rather than xxxxx-worldmap.png as it supposed to (i guess?). Also changing it manually by pressing the "..." button next to Map image text box, doesn't change the map file. My workaround is renaming the map image file to something like "!!xxxxxxx-worldmap.png", this way the Viewer sees it first, and selects it as intended. Any help?

I use the latest version (1.20.06c) that comes with the latest PeridexisErrant's Starter Pack.

Edit: This only happens with .png files, works fine with .bmp

Thanks for reporting, I will look into it the next time I'll work on Legends Viewer.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: khripunoff on November 15, 2020, 11:46:46 am
A couple of minor issues:
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Pillbo on November 19, 2020, 06:04:13 pm
I was curious if anyone know why some known info in site's Beast Attacks get listed as unknown, for example:

Spoiler (click to show/hide)

It's not a big deal but it would be cool if it's fixable.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Silverwing235 on November 20, 2020, 08:52:03 am
I was curious if anyone know why some known info in site's Beast Attacks get listed as unknown, for example:

Spoiler (click to show/hide)

It's not a big deal but it would be cool if it's fixable.
OK, so, easy ones first: In advanced worldgen, you didn't just leave 'Cull unimportants' on, did you?
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Pillbo on November 20, 2020, 11:55:42 am
I have no idea, but I did use advanced world gen for the first time on this world. I wouldn't have left it if I saw the option but I don't remember seeing it, so it's possible. I checked the world_gen_param.txt and it doesn't have it mentioned.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Silverwing235 on November 20, 2020, 01:50:52 pm
I have no idea, but I did use advanced world gen for the first time on this world. I wouldn't have left it if I saw the option but I don't remember seeing it, so it's possible. I checked the world_gen_param.txt and it doesn't have it mentioned.

Just to be entirely clear, you are in fact (I may have been a little unclear with my original question) using a current version? I mean, switching or leaving on "cull unimportant histfigs" (https://dwarffortresswiki.org/index.php/DF2014:Advanced_world_generation#Cull_Unimportant_Historical_Figures (https://dwarffortresswiki.org/index.php/DF2014:Advanced_world_generation#Cull_Unimportant_Historical_Figures)) tends to bias things in that direction irregardless of whatever else might be done or not, in my experience.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Pillbo on November 20, 2020, 02:23:23 pm
I'm using the most current version of DF and DFHack for the export. I have no memory of that setting, if it's on by default there is a good chance I did not change that, is there any way to check? I updated the LNP after creating the world so I no longer have the settings I used saved. I popped back into Adv World Gen and saw it's a setting that's pretty noticeable so I doubt I left it as No.

If they are culled would it still show up in Legends like it does in my pic?
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: PatrikLundell on November 20, 2020, 05:04:18 pm
A character that's culled is shows as an unknown character in battle reports. However, they don't show up anywhere by name, and if I understood it correctly, there was some report that showed the name.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Pillbo on November 20, 2020, 05:57:10 pm
Yeah I can see the name of the FB in Legends and in Legends Viewer. In Legends Viewer it shows the event where the FB attacked my fort as "The rampage of an unknown creature". In Legends Mode it shows the event as "The rampage of the forgotten beast The Hog of Froths"
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: kocamazov on November 30, 2020, 07:40:55 am
Hi there complete newbie here.
I have a similar debugging screen report as I import the XML files.
The error message appears when the program is loading "... Sites" in "Parsing Sites and Populations..." section.
I tried with different versions of the game as well as dfhack including the newest ones and with several different savefiles all within the default settings.

I also tried using old versions of legends viewer but to no avail.

If you could aid this poor soul on this matter, I would greatly appreciate it!
Quote
System.NullReferenceException: Nesne başvurusu bir nesnenin örneğine ayarlanmadı.
   konum: LegendsViewer.Legends.Parser.SitesAndPopulationsParser.ReadParentCiv()
   konum: LegendsViewer.Legends.Parser.SitesAndPopulationsParser.Parse()
   konum: LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   konum: LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   konum: System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   konum: System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

edit: changing the time and date display language from native to UK in the Windows settings solved the issue because why the hell not. Also I've found out the most reliable way for the program to work is archiving the export and use that instead, for those of you still getting error messages.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Korgoth on December 23, 2020, 12:40:00 am
Hello, I'm running with a constant crash of the legend viewer, It was working absolutely fine two days ago, and I've never had problems with it, but now is displaying this message whenever I try do load a  legends xml file or a legends_plus xml file.
The error:
Code: [Select]
System.IO.IOException: The file already exists.

   em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   em System.IO.Path.InternalGetTempFileName(Boolean checkHost)
   em LegendsViewer.Controls.HTML.HtmlPrinter.BitmapToHtml(Bitmap image)
   em LegendsViewer.Controls.HTML.WorldStatsPrinter.PrintMap()
   em LegendsViewer.Controls.HTML.WorldStatsPrinter.PrintWorldInfo()
   em LegendsViewer.Controls.HTML.WorldStatsPrinter.Print()
   em LegendsViewer.Controls.HTML.HtmlPrinter.GetHtmlPage()
   em LegendsViewer.Controls.HTML.HtmlControl.GetControl()
   em LegendsViewer.Controls.DwarfTabPage.LoadPageControl()
   em LegendsViewer.Controls.DwarfTabControl.Navigate(ControlOption controlOption, Object navigateObject)
   em LegendsViewer.FrmLegendsViewer.AfterLoad(World loadedWorld)
   em LegendsViewer.FileLoader.BackgroundWorkerOnRunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
   em System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

Do you know what may be causing the issue?
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on February 04, 2021, 05:47:06 am
Sorry I was not around a lot in the last months, but I had a small project (http://www.bay12forums.com/smf/index.php?topic=178035.0) that took all of my attention.  :o

After releasing my project I definitely will try to fix any issues that arose during my absence.  :)
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: squamous on February 11, 2021, 08:27:35 pm
Got this bug, figure I may as well report it. I'm modding my game, is this due to something I messed up?

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.ReadParentCiv()
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.Parse()
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on February 12, 2021, 01:57:27 am
Got this bug, figure I may as well report it. I'm modding my game, is this due to something I messed up?

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.ReadParentCiv()
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.Parse()
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Can you provide me all your exported files?
Please zip them and upload them to DFFD (https://dffd.bay12games.com/category.php?id=6), so I can take a look what happens.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Shonai_Dweller on February 12, 2021, 06:16:18 am
In my current world (made in 47.05), Legends Viewer (with Dfhack) is showing me a monastery that was founded by a merchant company and another founded by a bowers guild. Seemed strange so I checked out Legends Mode and they give the correct religions which actually founded them.

Issue seems to be that the goblin who built the monastery for his religion is also a member of the merchant guild that Legends Viewer thinks founded the site. Same for the dwarf who built the second monastery.

Want to check the file?
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on February 12, 2021, 12:32:15 pm
In my current world (made in 47.05), Legends Viewer (with Dfhack) is showing me a monastery that was founded by a merchant company and another founded by a bowers guild. Seemed strange so I checked out Legends Mode and they give the correct religions which actually founded them.

Issue seems to be that the goblin who built the monastery for his religion is also a member of the merchant guild that Legends Viewer thinks founded the site. Same for the dwarf who built the second monastery.

Want to check the file?
Yes please, I'll try to look into it this weekend.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Shonai_Dweller on February 13, 2021, 01:35:36 am
In my current world (made in 47.05), Legends Viewer (with Dfhack) is showing me a monastery that was founded by a merchant company and another founded by a bowers guild. Seemed strange so I checked out Legends Mode and they give the correct religions which actually founded them.

Issue seems to be that the goblin who built the monastery for his religion is also a member of the merchant guild that Legends Viewer thinks founded the site. Same for the dwarf who built the second monastery.

Want to check the file?
Yes please, I'll try to look into it this weekend.
Here you go:
https://dffd.bay12games.com/file.php?id=15409

You'll find (according to Legends Viewer) monasteries, Lasthoisted founded by the Hall of Mists (a merchant company) and Treatyransacked founded by the Hall of Destiny (a bowers guild).
Whereas correctly Lasthoisted was constructed by the goblin Rosmic Manyflickered for the Denomination of Caverns, and Treatyransacked was founded by the Dwarf Bim Rainsilvers for the Luxurious Sect (both religions).

(Rosmic Manyflickered is however head of the Hall of Mists, and Bim Rainsilvers is Doyenne of the Hall of Destiny so it's likely easy to get the connections confused.)

(World has a bunch of raw tweaks, new civs, etc).
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: squamous on February 14, 2021, 12:33:15 am
Got this bug, figure I may as well report it. I'm modding my game, is this due to something I messed up?

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.ReadParentCiv()
   at LegendsViewer.Legends.Parser.SitesAndPopulationsParser.Parse()
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Can you provide me all your exported files?
Please zip them and upload them to DFFD (https://dffd.bay12games.com/category.php?id=6), so I can take a look what happens.

Sorry for the delay, here's the stuff.

https://dffd.bay12games.com/file.php?id=15416
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on February 15, 2021, 04:35:16 am
Here you go:
https://dffd.bay12games.com/file.php?id=15409

You'll find (according to Legends Viewer) monasteries, Lasthoisted founded by the Hall of Mists (a merchant company) and Treatyransacked founded by the Hall of Destiny (a bowers guild).
Whereas correctly Lasthoisted was constructed by the goblin Rosmic Manyflickered for the Denomination of Caverns, and Treatyransacked was founded by the Dwarf Bim Rainsilvers for the Luxurious Sect (both religions).

(Rosmic Manyflickered is however head of the Hall of Mists, and Bim Rainsilvers is Doyenne of the Hall of Destiny so it's likely easy to get the connections confused.)

(World has a bunch of raw tweaks, new civs, etc).

Thanks, I think I managed to get it right:

On the site page
(https://i.imgur.com/sWiWNEv.jpg)
On the entity page
(https://i.imgur.com/ejh2R4N.jpg)

(the entity page now also displays the link to the event)

Sorry for the delay, here's the stuff.

https://dffd.bay12games.com/file.php?id=15416

I found the issue and your world can now be loaded correctly:
Spoiler (click to show/hide)

I will wait with a new version (that will contain these fixes) until DFHack has a stable release for 0.47.05 and I had the time to check if Legends Viewer works with it too.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: DerSchlund on February 17, 2021, 09:01:57 am
Hi,

I often use Legends Viewer to understand what the World I've created is all about and its a great tool! So first of all, thank you :)

One thing that always confuses me is, when I see "SECRET_[Nr]" in the character description of someone. Here is an example:

Quote
Ugath

Is a deity that occurs in the myth of "The Fairy Crstal". Ugath is most often depicted es a male dwarf deity.
Caste: Male
Associated Spheres: death and blight
Interaction Knowledge: SECRET_1, SECRET_2, SECRET_4, SECRET_5 [...] SECRET_48 and SECRET_51

Can someone tell me what these SECRETs are?

Thanks for your help!
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: PatrikLundell on February 17, 2021, 11:50:03 am
Hi,

I often use Legends Viewer to understand what the World I've created is all about and its a great tool! So first of all, thank you :)

One thing that always confuses me is, when I see "SECRET_[Nr]" in the character description of someone. Here is an example:

Quote
Ugath

Is a deity that occurs in the myth of "The Fairy Crstal". Ugath is most often depicted es a male dwarf deity.
Caste: Male
Associated Spheres: death and blight
Interaction Knowledge: SECRET_1, SECRET_2, SECRET_4, SECRET_5 [...] SECRET_48 and SECRET_51

Can someone tell me what these SECRETs are?

Thanks for your help!

The question relates more to DF than to Legends Viewer itself, and so might have been better asked in the gameplay questions forum (where others who are interested but don't use this extremely useful tool may see it as well).

DF currently only has a single Secret, namely the Secret of Life and Death, so all of them are about that, although the framework would allow for other secrets in the future.

The number is simply the order in which world gen generated the secrets, and the deity in the quote apparently knew a lot of them.

What I'm not certain about is why there are different instances, but it could be that each slab bestowed upon a necro is tied to a secret and that slab "uses up" that secret (this is pure speculation on my part). Another speculation is that it might also be tied to which kind(s) of intelligent undead the secret allows you to raise. Apart from having different names, they can also have different magic powers, if I understand it correctly.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on February 18, 2021, 03:34:46 am
The question relates more to DF than to Legends Viewer itself, and so might have been better asked in the gameplay questions forum (where others who are interested but don't use this extremely useful tool may see it as well).

DF currently only has a single Secret, namely the Secret of Life and Death, so all of them are about that, although the framework would allow for other secrets in the future.

The number is simply the order in which world gen generated the secrets, and the deity in the quote apparently knew a lot of them.

What I'm not certain about is why there are different instances, but it could be that each slab bestowed upon a necro is tied to a secret and that slab "uses up" that secret (this is pure speculation on my part). Another speculation is that it might also be tied to which kind(s) of intelligent undead the secret allows you to raise. Apart from having different names, they can also have different magic powers, if I understand it correctly.

Thanks for the explanation, I always wondered myself whats up with all the secrets.
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: squamous on February 19, 2021, 12:07:57 am
Here you go:
https://dffd.bay12games.com/file.php?id=15409

You'll find (according to Legends Viewer) monasteries, Lasthoisted founded by the Hall of Mists (a merchant company) and Treatyransacked founded by the Hall of Destiny (a bowers guild).
Whereas correctly Lasthoisted was constructed by the goblin Rosmic Manyflickered for the Denomination of Caverns, and Treatyransacked was founded by the Dwarf Bim Rainsilvers for the Luxurious Sect (both religions).

(Rosmic Manyflickered is however head of the Hall of Mists, and Bim Rainsilvers is Doyenne of the Hall of Destiny so it's likely easy to get the connections confused.)

(World has a bunch of raw tweaks, new civs, etc).

Thanks, I think I managed to get it right:

On the site page
(https://i.imgur.com/sWiWNEv.jpg)
On the entity page
(https://i.imgur.com/ejh2R4N.jpg)

(the entity page now also displays the link to the event)

Sorry for the delay, here's the stuff.

https://dffd.bay12games.com/file.php?id=15416

I found the issue and your world can now be loaded correctly:
Spoiler (click to show/hide)

I will wait with a new version (that will contain these fixes) until DFHack has a stable release for 0.47.05 and I had the time to check if Legends Viewer works with it too.

Cool. On another note, I ran into a different bug while testing my mod, I think. With this save, legendsviewer CTDs with no error report upon trying to load the map.
https://dffd.bay12games.com/file.php?id=15425
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Silverwing235 on February 19, 2021, 07:07:17 pm
Anyone else having issues with occasional name formatting in lists - Main Summary, for ex - wherein the thing shits itself on special characters on occasion, typo-style? (My current world has none of that, so far as I can tell. The last one in 47.04 that I recall, however...)

@Kromtec: IIRC, the requirement for any sort of investigation is, basically, current-version DFhack exportlegends info, unless my memory's gone utterly astray on the subject? (It now has a feature that I myself helped prod into inclusion - the placing of output into a similarly-named folder as the region file, to cut down on messy root folders.)
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: Kromtec on February 22, 2021, 02:23:24 am
Cool. On another note, I ran into a different bug while testing my mod, I think. With this save, legendsviewer CTDs with no error report upon trying to load the map.
https://dffd.bay12games.com/file.php?id=15425

Thanks, I fixed that too. This world had two entities named the "The Kindled League" and they where both set to be the parent entity of each other, what led to some kind of parent-child-loop. :-)
Title: Re: Legends Viewer (Maintained Branch) 1.20.06c | DF 0.47.XX
Post by: squamous on February 22, 2021, 06:27:03 pm
Cool. On another note, I ran into a different bug while testing my mod, I think. With this save, legendsviewer CTDs with no error report upon trying to load the map.
https://dffd.bay12games.com/file.php?id=15425

Thanks, I fixed that too. This world had two entities named the "The Kindled League" and they where both set to be the parent entity of each other, what led to some kind of parent-child-loop. :-)

Huh, weird. I'm not sure if that was me or if it's a game bug, though it might be me. I'm experimenting with a mod where I'm aiming for a million+ NPCs per world to create huge armies (and huge battles), so I'm probably discovering all sorts of fun bugs as I push the game to its limits.
Title: Re: Legends Viewer (Maintained Branch) 1.20.07 | DF 0.47.XX
Post by: Kromtec on April 14, 2021, 04:47:15 am
New Release 1.20.07!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
1.20.07
# Bugfixes

- fix for truncated filenames THX @alxwrd
- enumerate files to find default files THX @alxwrd
- simplify file lookup THX @alxwrd
- correctly link site ownership
- made reading and setting the parent of an entity more robust
- fixed a crash that happened when no art forms where generated and the section was empty THX @piperlolot

Here is a smaller bugfix release, sorry it took so long.
Title: Re: Legends Viewer (Maintained Branch) 1.20.07 | DF 0.47.XX
Post by: Rappers on May 07, 2021, 08:58:03 am
When I try to load the XML I get an error message saying that the process cannot access the legends_plus.xml because it is being used by another process, if I click continue and go past it then some information is missing, such as every artefact having an unknown type. Does anyone know why this could be?
Title: Re: Legends Viewer (Maintained Branch) 1.20.07 | DF 0.47.XX
Post by: PatrikLundell on May 07, 2021, 12:25:51 pm
Not beyond the obvious, i.e. some other process is actually using it. Is the export complete when you try to open the export?

I'd try to first ensure the export is finished, then close DF and try again, and then reboot the computer if it still doesn't work. I know that killing DF from the task manager has had the effect of locking the .dll file DFHack generates, preventing that file from being deleted (to be replaced by a freshly generated one).

It could also be anti virus SW of Windoze indexing locking the file. With a bit of luck a reboot should allow you to read the file before those marauders lock you out of it.
Title: Re: Legends Viewer (Maintained Branch) 1.20.07 | DF 0.47.XX
Post by: AvolitionBrit on October 26, 2021, 07:38:08 am
Quote
System.NullReferenceException: Object reference not set to an instance of an object.
   at LegendsViewer.Legends.WorldObjects.Entity.SetParent(Entity parent)
   at LegendsViewer.Legends.Events.SiteTakenOver..ctor(List`1 properties, World world)
   at LegendsViewer.Legends.Parser.XmlParser.AddEvent(String type, List`1 properties)
   at LegendsViewer.Legends.Parser.XmlParser.AddItemToWorld(List`1 properties)
   at LegendsViewer.Legends.Parser.XmlParser.ParseSection()
   at LegendsViewer.Legends.Parser.XmlParser.Parse()
   at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile)
   at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

https://dffd.bay12games.com/file.php?id=15702 - The turn before that worked fine
https://dffd.bay12games.com/file.php?id=15715 - The turn it broke on

Been getting this error. In a community game. Trying to troubleshot it but its a big file.
Title: Re: Legends Viewer (Maintained Branch) 1.20.07 | DF 0.47.XX
Post by: Bralbaard on October 27, 2021, 03:27:46 pm
There are some clues being discussed over in the  museum game (http://www.bay12forums.com/smf/index.php?topic=175875.msg8324153#msg8324153) that the bug is caused by the conquest of a vault. (the save games are from this community game)
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Kromtec on November 01, 2021, 07:11:34 am
New Release 1.20.08!

Download here! (http://dffd.bay12games.com/file.php?id=11455)

Source! (https://github.com/Kromtec/Legends-Viewer/releases)

Changelog:
Code: [Select]
1.20.08
# Bugfixes + Performance

- fix for crash if a vault was conquered (parent of the vault entity was null)
- various performance tweaks


https://dffd.bay12games.com/file.php?id=15702 - The turn before that worked fine
https://dffd.bay12games.com/file.php?id=15715 - The turn it broke on

Been getting this error. In a community game. Trying to troubleshot it but its a big file.
"The Moist Closets" were the culprits of this bug, because they have no parents.  :D
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Bralbaard on November 01, 2021, 06:15:42 pm
Thanks for the fix, much appreciated!
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Promethium on November 10, 2021, 11:03:08 pm
Heyo! Just posted here: http://www.bay12forums.com/smf/index.php?topic=126076.5670 about this issue, but thought I'd put this here as well just in case.

Just thought I'd let the dev know, as well as people in general, the current release of this utility that is included in LazyNewbPack shows up as a critical detection on Virustotal, and describes certain behaviors of the program to be very similar to specific ransomware going around currently. Normally I'd write this off as a false positive, except I've never seen Virustotal show a critical threat on a false positive, along with a likelihood of false positive rating at an "unlikely".

Thought the dev would like to know as well, so they can check things on their side, or maybe modify the utility to not show this false positive.

Sorry for the bother, just a heads up, as this utility is one of my favorites!
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: RLS0812 on April 15, 2022, 07:03:04 am
As of April 15 2022 - version 1.20.08
I'm not sure this tool is maintained anymore, but there are multiple problems ...
1: "open in new tab" is greyed out for every in-link and not able to be used
2: "open in new window" opens a broken Internet Explorer window ... no way to change this ( and Internet Explorer is a major security risk for my system )
.
(https://i.postimg.cc/1z8SLrFN/broken.jpg)
.
(https://i.postimg.cc/2yKFXmNW/broken2.jpg)
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Paaaad on April 15, 2022, 08:36:39 am
As of April 15 2022 - version 1.20.08
I'm not sure this tool is maintained anymore, but there are multiple problems ...
1: "open in new tab" is greyed out for every in-link and not able to be used
2: "open in new window" opens a broken Internet Explorer window ... no way to change this ( and Internet Explorer is a major security risk for my system )
.
(https://i.postimg.cc/1z8SLrFN/broken.jpg)
.
(https://i.postimg.cc/2yKFXmNW/broken2.jpg)

It’s Ctrl+Click to open a new tab.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Silverwing235 on April 15, 2022, 10:32:44 am
As of April 15 2022 - version 1.20.08
I'm not sure this tool is maintained anymore, but there are multiple problems ...
1: "open in new tab" is greyed out for every in-link and not able to be used
2: "open in new window" opens a broken Internet Explorer window ... no way to change this ( and Internet Explorer is a major security risk for my system )
.
(https://i.postimg.cc/1z8SLrFN/broken.jpg)
.
(https://i.postimg.cc/2yKFXmNW/broken2.jpg)

@Kromtec: Adding #3: unwanted lower case, spreading as though it were digital Covid - started w/histfig skill titles, but has also gotten into book titles (cross-checking against Legends Mode to verify, obv)
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Kromtec on April 15, 2022, 01:17:53 pm
As of April 15 2022 - version 1.20.08
I'm not sure this tool is maintained anymore, but there are multiple problems ...
1: "open in new tab" is greyed out for every in-link and not able to be used
2: "open in new window" opens a broken Internet Explorer window ... no way to change this ( and Internet Explorer is a major security risk for my system )
That's due to the fact that there is a WebBrowser control embedded that sadly uses an IE under the hood and I do have very limited control over how the internal browser behaves.
The whole project is nearly 10 years old and I took over 2015. If I would start from scratch, Legends Viewer would be totally different, at least from a technology standpoint.  ;)

@Kromtec: Adding #3: unwanted lower case, spreading as though it were digital Covid - started w/histfig skill titles, but has also gotten into book titles (cross-checking against Legends Mode to verify, obv)
Thanks for reporting! I will look into it when I find time to make another release.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Silverwing235 on April 17, 2022, 04:46:25 pm
That's due to the fact that there is a WebBrowser control embedded that sadly uses an IE under the hood and I do have very limited control over how the internal browser behaves.
The whole project is nearly 10 years old and I took over 2015. If I would start from scratch, Legends Viewer would be totally different, at least from a technology standpoint.  ;)

You are aware that this is v. probably also a symptom of IE being generally  booted into the Great Redmond Recycle Bin, right? (https://docs.microsoft.com/en-us/lifecycle/announcements/internet-explorer-11-end-of-support)
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Kromtec on April 18, 2022, 02:43:34 pm
That's due to the fact that there is a WebBrowser control embedded that sadly uses an IE under the hood and I do have very limited control over how the internal browser behaves.
The whole project is nearly 10 years old and I took over 2015. If I would start from scratch, Legends Viewer would be totally different, at least from a technology standpoint.  ;)

You are aware that this is v. probably also a symptom of IE being generally  booted into the Great Redmond Recycle Bin, right? (https://docs.microsoft.com/en-us/lifecycle/announcements/internet-explorer-11-end-of-support)

Haha, yeah I know that. But sadly Microsoft still uses IE in the WPF/Forms WebBrowser control (https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.webbrowser?view=netframework-4.8) in .NET Framework. I can not easily switch to .NET Core because of various dependencies that only work in .NET Framework and would be a lot of work to replace.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Trabber Shir on June 08, 2022, 11:42:04 am
I have found a bug, but I am unsure which utility the bug is in. It may be in the exportlegends script or in legends viewer (or in legends browser if I am not parsing the legends XML correctly when I do it manually).

In this world I am looking at, an alliance formation event happened in the year 243. In legends.xml it is encoded with this tag:
Code: [Select]
<historical_event>
<id>409560</id>
<year>243</year>
<seconds72>8400</seconds72>
<type>entity alliance formed</type>
<initiating_enid>91</initiating_enid>
<joining_enid>67</joining_enid>
<joining_enid>85</joining_enid>
</historical_event>

In two applications display it like so:
(https://dffd.bay12games.com/download.php?id=15958&f=Legends+Browser-Viewer+Alliance+event+comparison.png)

At core, the bug is that Legends Viewer is only showing one of the supporters, but since I cannot find this event in legends_plus.xml I cannot know whether that is due to the export by the script or due to how legendsviewer is using the data.

A secondary bug is that the only civ which has this type of event in it's log in Legends Viewer is the initiating entity.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: ribchinski on August 15, 2022, 07:50:44 am
This is probably the umpteenth question regarding Linux and MacOS, but I've got to ask. So, I tried running Legends Viewer in wine, but many parts of the program end up broken that way (showing blank tabs and not letting me see some statistics, etc.). I was thinking - I know coding, so why not try to make a Legends Viewer clone or port?

However, I imagine that a project like this is relatively big. I don't know quite where to start. Is there any documentation on how the legends xml files work and do you have any tips on where to start?
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: OneDoesNotSimplyWork on August 21, 2022, 09:23:40 pm
My legend viewer shows this error whenever i try to open my world, does anyone know how to fix it ? thanks in advance!

System.NullReferenceException: Object reference not set to an instance of an object. at LegendsViewer.Legends.EventCollections.Battle..ctor(List`1 properties, World world) at LegendsViewer.Legends.Parser.XmlParser.AddEventCollection(String type, List`1 properties) at LegendsViewer.Legends.Parser.XmlParser.ParseSection() at LegendsViewer.Legends.Parser.XmlParser.Parse() at LegendsViewer.Legends.World..ctor(BackgroundWorker worker, String xmlFile, String historyFile, String sitesAndPopulationsFile, String mapFile, String xmlPlusFile) at LegendsViewer.FileLoader.BackgroundWorkerOnDoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: PatrikLundell on August 22, 2022, 01:42:20 am
If you zip up the exported Legends files and make them available it might be possible to determine the cause and possibly fix it.

It looks like the exported Legends info has some battle reference that isn't referencing something in a way Legends Viewer doesn't expect.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: OneDoesNotSimplyWork on August 22, 2022, 09:46:12 pm
If you zip up the exported Legends files and make them available it might be possible to determine the cause and possibly fix it.
Thanks for the advice

Here is the zipped file of my export https://dffd.bay12games.com/file.php?id=16042 (https://dffd.bay12games.com/file.php?id=16042)
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: AvolitionBrit on September 17, 2022, 02:38:03 pm
In the museum game we have run into issue. The player character Moldath Mournsaints the Ardents profile now results in a crash. Might be related to secrets learned.

Legends files - https://dffd.bay12games.com/file.php?id=16082
The Save - https://dffd.bay12games.com/file.php?id=16073


Spoiler: Exception Text (click to show/hide)

Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Silverwing235 on November 28, 2022, 07:38:21 am
@Kromtec

....so yeah, DFFD database went 'smash' recently, ergo, semi-urgent problem, at least as I understand it. (https://dffd.bay12games.com/file.php?id=11455 (https://dffd.bay12games.com/file.php?id=11455))
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: lethosor on November 28, 2022, 05:24:50 pm
@Kromtec

....so yeah, DFFD database went 'smash' recently, ergo, semi-urgent problem, at least as I understand it. (https://dffd.bay12games.com/file.php?id=11455 (https://dffd.bay12games.com/file.php?id=11455))
What is urgent about this? The file still exists. It doesn't have metadata, yeah, but it can still be downloaded.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Iamblichos on December 10, 2022, 08:32:30 pm
This may not be the place for this, but... is there an intention to release Legends Viewer as a mod for the Steam DF as well?  I would dearly love it if so  :)

Thanks for all you do!
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Shonai_Dweller on December 10, 2022, 11:55:09 pm
This may not be the place for this, but... is there an intention to release Legends Viewer as a mod for the Steam DF as well?  I would dearly love it if so  :)

Thanks for all you do!
Right now the export legends data function is missing in 50.0x.
I expect DfHack would be able to export usually, so it would have to wait until DfHack is ready (or Toady gives us the export data functions back).
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: TrippleFlipple on December 21, 2022, 09:28:58 pm
I'm loving the steam update in fortress mode. So much fun. But I feel like the world generating experience has become more cumbersome and less intuitive. You can't quickly abort and begin a new generation. You have to crawl back to the settings you were using. Also there is no way to zoom or explore the map with exports. I do hope The exports come back soon. Legends Viewer gives the world so much more depth with the graphs, charts, and family trees. I miss it so much. Thank you for your work!
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: pamelrabo on January 28, 2023, 07:04:44 am
Same here. I love the fortress game mode now, but I miss the family trees, the maps view and the way Legends Viewer presents the information of the whole world. I used it every time to check my kings' family history, check for interesting monsters I wanted to fight or personal dramas I wanted to draw.

I hope it becomes possible to use the viewer again, at some point (or similar). Thanks for all the work and the joy you gave me with it.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Shonai_Dweller on January 28, 2023, 08:38:10 pm
Same here. I love the fortress game mode now, but I miss the family trees, the maps view and the way Legends Viewer presents the information of the whole world. I used it every time to check my kings' family history, check for interesting monsters I wanted to fight or personal dramas I wanted to draw.

I hope it becomes possible to use the viewer again, at some point (or similar). Thanks for all the work and the joy you gave me with it.
Legends export was mentioned in Toady's last interview. The functionality is all there, just needs a button, and a display saying "please wait" (because freezing your computer for 10 minutes in the age of Steam isn't good apparently).

Five minute job, but he has a lot of five minute jobs to do...

Anyhow, when that's back (should be soon) we'll hopefully see Legends Viewer updated (although generally, despite errors, newer version's output XML tends to work OK in older versions anyhow, so might just be able to start using it right away).
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: xzaxza on April 24, 2023, 01:25:36 am
This is probably the umpteenth question regarding Linux and MacOS, but I've got to ask. So, I tried running Legends Viewer in wine, but many parts of the program end up broken that way (showing blank tabs and not letting me see some statistics, etc.). I was thinking - I know coding, so why not try to make a Legends Viewer clone or port?

However, I imagine that a project like this is relatively big. I don't know quite where to start. Is there any documentation on how the legends xml files work and do you have any tips on where to start?
I'm not the dev, but you know the source is out there on Github: https://github.com/Kromtec/LegendsViewer

Also, since it's apparently C#, it might be easy-ish to rewrite it to use Mono, which should provide compatibility.

However, there's also LegendsBrowser 2, which is already cross-platform: http://www.bay12forums.com/smf/index.php?topic=179848.0
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Sanchezsangros on May 02, 2023, 04:15:37 pm
XML export is back in legends mode!

I hope I can continue enjoying legends viewer
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Shonai_Dweller on May 03, 2023, 03:14:40 am
Since you can't export the pops, history or maps, then no, looks like it'll be a while before Legends Mode can be used.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Aerth on May 04, 2023, 02:46:34 am
The exportlegends info wouldn't work now they returned the function?

Correction - humm, nope.. 'exportlegends must be run from the main legends view' is the inevitable message. No cookie here either.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Shonai_Dweller on May 04, 2023, 03:08:28 am
The exportlegends info wouldn't work now they returned the function?

Correction - humm, nope.. 'exportlegends must be run from the main legends view' is the inevitable message. No cookie here either.
Even if it did work, that only exports extra XML doesn't it? Unless the DfHack crew spend time trying to recreate the export of the pops and history text files, but that'd likely be judged a waste of their time as it's a vanilla DF feature (normally).
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Aerth on May 04, 2023, 04:58:14 am

You are probably right. I didn't know if the exportlegends had its own code to extract data from memory, since it can provide more details, or if it relied on an already existing function (probably the same than the one behind the button).

I really miss the ability to consult Legends. DF is absolutely not the same for me without it.
And I want to know why the hell my dwarves insist in crafting Dingo statues.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: PatrikLundell on May 05, 2023, 02:00:19 am
@Aerth: Legends Viewer was able to use the vanilla Legends Mode exported files only for a limited view of the info, or that together with the information exported by the DFHack supplemental script for the more complete picture (but still not fully complete). The usage of past tense indicates it reflects the pre Premium release status, and doesn't indicate the future, in which I hope Legends Viewer will again be able to augment the game play.

As Shonai_Dweller said, it might be possible to modify the DFHack supplement to export some or all of the data DF hasn't yet restored, but it's likely a waste of effort for something that's likely to be restored before too long.

So, the DFHack export functionality triggers the vanilla one as well as adding additional info its own script collects (ideally DF itself would export that info as well, as the DF team is much less likely to misinterpret the data than the DFHack community is. I wouldn't be surprised if the vanilla exports would eventually grow to include things the DFHack supplement provided (and probably will provide again once things are back to normal)).
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: lethosor on May 07, 2023, 04:26:38 pm
The exportlegends info wouldn't work now they returned the function?

Correction - humm, nope.. 'exportlegends must be run from the main legends view' is the inevitable message. No cookie here either.
Where in DF are you running the script from? It needs to be run from legends mode.

Even if it did work, that only exports extra XML doesn't it? Unless the DfHack crew spend time trying to recreate the export of the pops and history text files, but that'd likely be judged a waste of their time as it's a vanilla DF feature (normally).
Right, we haven't attempted to recreate anything that DF pre-v50 exported, assuming the DF feature would come back in less time than it would take us to recreate those features.

Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: Salmeuk on June 02, 2023, 12:55:35 pm
with the newest DFhack the xml-plus file has returned, but it appears the latest version of Legends Viewer does not properly translate this file. I'm sad because legendsviewer has great graphs and that feature is very dear to me.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: lethosor on June 03, 2023, 10:37:00 am
What errors are you getting from legends viewer?
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: kesperan on June 17, 2023, 04:46:34 pm
In the museum game we have run into issue. The player character Moldath Mournsaints the Ardents profile now results in a crash. Might be related to secrets learned.

Legends files - https://dffd.bay12games.com/file.php?id=16082
The Save - https://dffd.bay12games.com/file.php?id=16073


Spoiler: Exception Text (click to show/hide)

I guess this is pretty much abandoned now since it is for 0.47 but this bug is creeping up more often in our 300+ year succession save with various entities and sites causing crashes. Does anyone still maintain this mod?
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: lethosor on June 17, 2023, 09:14:13 pm
I guess this is pretty much abandoned now since it is for 0.47 but this bug is creeping up more often in our 300+ year succession save with various entities and sites causing crashes. Does anyone still maintain this mod?
This tool (technically a utility, not a mod) could work with v50, although v50 does not export all of the required information yet (as mentioned above).

There is a proposed fix (https://github.com/Kromtec/LegendsViewer/pull/71) for what I think is the same issue on GitHub. However, the last activity (https://github.com/Kromtec/LegendsViewer/commits/master) by the author on GitHub was in Nov 2021. I'm not aware of someone else maintaining it currently.

There are a few other legends-related utilities listed at https://dwarffortresswiki.org/index.php/Utilities#Legends_tools that you may find useful.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: kesperan on June 18, 2023, 08:29:21 am
Thanks for taking the time to respond. The issues persist with the alternative utilities. I’m assuming it’s a quirk of a 300 year old game world which might not be fixable.
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: lethosor on June 20, 2023, 12:32:37 am
Interesting, I wouldn't expect all of them to have the same bug. I'd suggest posting in the threads for those utilities - some of them have more active work (e.g. LegendsBrowser 2 was released fairly recently).

My understanding is that, at least for the Legends Viewer issue, it's not a problem with your world, per se - it's an unusual case that the tool wasn't written to account for, which is probably more likely to come up in a world with a larger history (longer and/or from a larger world).
Title: Re: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX
Post by: kesperan on June 21, 2023, 03:19:27 am
I've posted in the LB2 thread. Thanks.

Getting the same error for every entity there, not just the one(s) that cause crashes in LV.