Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
Phrll
Member
 
Join Date: Dec 2014
Location: Cincinnati, OH
Posts: 57

Old August 18th, 2020, 06:49 AM
I'm trying to set up an adjustment to a dataset and get the following error:

Quote:
The data files could not be loaded due to the following errors:

File: thing_adjustments.dat (line 74) - Unrecognized special token following '&'
One or more timing errors were identified. Please review the timing report and correct the errors. You can access the report under the 'Develop' menu or by clicking this link.
Here's my code, line 74 is the <fieldval field="adjCandid" line:

Code:
  <thing
    id="adjGood"
    name="Trait - Good"
    compset="Adjustment"
    description="Select this adjustment to add a Good Trait.">
    <fieldval field="adjUsePick" value="0"/>
    <fieldval field="adjCandid" value="TraitCat.Good & !TraitCat.Gadget"/>
    <tag group="AdjustShow" tag="Menu"/>
    <tag group="Helper" tag="UserAdjust"/>
    <tag group="InPlay" tag="PermOK"/>
    <tag group="InPlay" tag="TempOK"/>
    <eval phase="Setup" priority="8000">
      <before name="Calc trtFinal"/><![CDATA[
      if (tagis[Helper.Activated] <> 0) then
        endif
      ]]></eval>
    </thing>
According to the Wiki, the value= syntax should be ok. Both TraitCat.Good and TraitCat.Gadget are valid tags. If I remove "& !TraitCat.Gadget" it works fine.

http://hlkitwiki.wolflair.com/index....Require_Hiding

What am I not doing right?

Last edited by Phrll; August 18th, 2020 at 06:52 AM.
Phrll is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old August 18th, 2020, 07:32 AM
Inside a <![CDATA[[ ]]> block, you can use & by itself. In a text section you need to use "TraitCat.Good &amp; !TraitCat.Gadget".


This is why I prefer to use the editor to edit this sort of thing - there, you can type in what you want it to say, and HL will handle the details of how XML works for you.
Mathias is offline   #2 Reply With Quote
Phrll
Member
 
Join Date: Dec 2014
Location: Cincinnati, OH
Posts: 57

Old August 18th, 2020, 08:44 AM
Thanks Mathias! I've done enough XML at work that I should have caught that!
Phrll is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:46 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.