Varsuuk
January 25th, 2020, 18:39
So, on my ruleset - I borrowed from several including 2E, 5E, etc.
I was just cleaning up the 3 stats I had for an npc sheet in prep to add saving throws. Decided to first add the saving throw description strings resource and decided to search on resource of prior control to find the spot in the file to add the next one. I searched on "npc_label_numberattacks"
from:
<label_column name="numberattacks_text_label">
<static textres="npc_label_numberattacks" />
</label_column>
<labelcontrol_columnh name="numberattacks_text" />
It appears in UI as "# Attacks"
Umm it wasn't in my strings... search whole ruleset - nope. Only in the .xml file.
Search CoreRPG. Nope.
It's in 2 rulesets 2E and AD&DCore (I kept the old one in my dev tree in case it had anything different that might be useful)
Huh...
OOOO - I probably put in my base.xml "strings_adnd.xml" and somehow it ... searches other directories?
Nope, I don't have it.
So, moving on and fixing it to include my own resources - BUT, if anyone has a clue how/why this occurred, let me know. Like some sort of thing like C++ template dependency injection? If you think it is impossible, it probably is and I made a mistake that didn't see and not providing all the info. Like said, I don't care about this because clearly I WANT to define my own string resources and will. Just curiosity if it is a thing where it looks in entire ruleset tree from /strings dir xml. Which I CANNOT actually credit as being the reason but hey...
I was just cleaning up the 3 stats I had for an npc sheet in prep to add saving throws. Decided to first add the saving throw description strings resource and decided to search on resource of prior control to find the spot in the file to add the next one. I searched on "npc_label_numberattacks"
from:
<label_column name="numberattacks_text_label">
<static textres="npc_label_numberattacks" />
</label_column>
<labelcontrol_columnh name="numberattacks_text" />
It appears in UI as "# Attacks"
Umm it wasn't in my strings... search whole ruleset - nope. Only in the .xml file.
Search CoreRPG. Nope.
It's in 2 rulesets 2E and AD&DCore (I kept the old one in my dev tree in case it had anything different that might be useful)
Huh...
OOOO - I probably put in my base.xml "strings_adnd.xml" and somehow it ... searches other directories?
Nope, I don't have it.
So, moving on and fixing it to include my own resources - BUT, if anyone has a clue how/why this occurred, let me know. Like some sort of thing like C++ template dependency injection? If you think it is impossible, it probably is and I made a mistake that didn't see and not providing all the info. Like said, I don't care about this because clearly I WANT to define my own string resources and will. Just curiosity if it is a thing where it looks in entire ruleset tree from /strings dir xml. Which I CANNOT actually credit as being the reason but hey...