• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Inherited tags losing names

AndrewD2

Well-known member
So I have an IsAttr.? identity tag on my Attribute component.

then in my tags.1st file I have:

Code:
  <group
    id="IsAttr"
    dynamic="yes">
    </group>
    
  <group
    id="AttrPrim"
    dynamic="yes"
    inherit="IsAttr">
    </group>
    
  <group
    id="AttrSec"
    dynamic="yes"
    inherit="IsAttr">
    </group>

I did this to make copies of the IsAttr tag but I didn't want the tags on the attributes themselves.

After creating an editor tab for classes and assigning the tags to the class, testing, and reloading the system. When I went back into the tab to create a new class the names of the tags were replaced with just the id. Is there a way to get the names back?

attachment.php
 

Attachments

  • missing tags.JPG
    missing tags.JPG
    39.2 KB · Views: 17
Last edited:
Look for <tag group="IsAttr" tag="attrCon"/> among your thing entries - there's probably places that don't name them, or places that have name="attrCon" in them, and HL is finding that and using it for the tag name.
 
The only place IsAttr is named is via the Identity Tags. There is no place in any file I have that actually declares a copy of the IsAttr tag on anything.
 
That works, its just the purpose of doing the inherited tags is to not have to manually make every tag. Guess I'll just do that for now.
 
You've got a choice - either get the tag group name right by defining the tag group, or get the tag id names right by letting them be generated as identity tags. inherit="" is a lightweight mechanism, and doesn't copy everything in every circumstance.
 
Is it a viable idea to do an identity tag and then have a component script delete the tag really early if you don't want the tag on the thing all the time?
 
Wait for the next update of HL itself:

Code:
<identity group="Whatever">
  <match><![CDATA[
    !thing.showonly
    ]]></match>
  </identity>
 
Interesting. Does that mean only the matching items will get the tag assigned or only matching items will have the tags created?
 
Created - that'll be great for cleaning up the editor, since we can exclude lots of things that don't actually need those tags, like the way that the "Available to Classes" selection on the Custom Ability tab shows three options for every base class (which is actually the class, the secondary class, and the archetype header for that class), and we may also be able to clean out all the races, or at least most of them (I'll have to test that part). I think the races are only there in order to handle the option of making them monster classes.
 
Very nice. It would also be nice for something like a "noassign" attribute that would create a tag in memory but not assign it. I can see uses for that.
 
Back
Top