Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 19 20 [21] 22 23 ... 31

Author Topic: Legends Viewer (Maintained Branch) 1.20.08 | DF 0.47.XX  (Read 228062 times)

KittyTac

  • Bay Watcher
  • Impending Catsplosion. [PREFSTRING:aloofness]
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #300 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.
« Last Edit: February 11, 2020, 10:18:14 am by KittyTac »
Logged
Don't trust this toaster that much, it could be a villain in disguise.
Mostly phone-posting, sorry for any typos or autocorrect hijinks.

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #301 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).
Logged

Kromtec

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #302 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 in the bugtracker and hope that Toady puts the races with singular/plural and identifier somewhere in the exported XML.

Levity

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #303 on: February 11, 2020, 01:28:42 pm »

Thank you very much for your work Kromtec!
Logged

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #304 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).
Logged

Kromtec

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #305 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!

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #306 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.
Logged

Kromtec

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #307 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?

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #308 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.
Logged

Kromtec

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #309 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

PatrikLundell

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #310 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.
Logged

Urist McNecro

  • Escaped Lunatic
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #311 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?
 
Logged

Kromtec

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #312 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.

Urist McNecro

  • Escaped Lunatic
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #313 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
« Last Edit: February 13, 2020, 05:43:57 pm by Urist McNecro »
Logged

Kromtec

  • Bay Watcher
    • View Profile
Re: Legends Viewer (Maintained Branch) 1.20.01 | DF 0.47.XX
« Reply #314 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.
Pages: 1 ... 19 20 [21] 22 23 ... 31