• 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

Mechanic Issue

Frodie

Well-known member
I'm not sure if it's a bug or not (if it is I'll just report in the right spot), but has something changed with how a mechanic works now.

The error I get when a saved character is opened is -

Pick 'trMPSGGVCB' has been orphaned as it can no longer be added to the portfolio
Pick 'trMPWlthBn' has been orphaned as it can no longer be added to the portfolio

It seems to reset the trait choice that was chosen. The mechanic bootstraps a free trait.

Is there something new that we have to do now for the mechanic to work?

Thanks for any ideas.
 
I'll need more information in order to diagnose your issue. How are you adding those two traits to a character?

What sources and containerreqs are on each of the items involved in getting those items added to a character?
 
It's just a basic mechanic with 2 bootstrapped traits (it would give the traits to everyone).

The traits have the user pick a skill. That works (and previously did) well. But once you save and re-open the character, the skill that was chosen is lost and the trait re-sets (the user has to pick the skill again).

Thanks
 
Yes, they are in the Modern data sets. I'll take the source off and see if that helps, thanks.

I un-checked the source box on the mechanics and the traits, but same error, the trait seems to forget what was chosen.

IDK, it used to work with NP. Was there something new we need to do now to a mechanic?
 
Last edited:
IDK, it used to work with NP. Was there something new we need to do now to a mechanic?
Nothing has changed that I am aware of. I had a load issue like this in the Psionics stuff and I ended up putting a dummy script on the "Thing" causing the issue that ran earlier. I think it was a dummy script like "tagcount[thingid.?" or something. Anything to get the script to fire will causes HL to load the "Thing" at that timing.

Sorry best I got.... :(
 
I made a test file so you can see what I am talking about. But also here is the test code:

<?xml version="1.0" encoding="UTF-8"?>
<document signature="Hero Lab Data">
<thing id="trTest" name="Test" compset="Trait" uniqueness="useronce" isshowonly="yes">
<comment>The Modern Path - Heroes of the Modern World

Game Room Creations
WWW.GAMEROOMCREATIONS.COM</comment>
<fieldval field="usrCandid1" value="component.BaseSkill & Helper.SkCatProf"/>
<tag group="Helper" tag="ShowSpec" name="Show Spec" abbrev="Show Spec"/>
<tag group="User" tag="NoAutoName" name="NoAutoName" abbrev="NoAutoName"/>
<tag group="Custom" tag="GRCMPWealt" name="Wealth" abbrev="Wealth"/>
<eval phase="Final" priority="30000" index="2"><![CDATA[if (field[usrChosen1].ischosen <> 0) then
field[livename].text = "Wealth Bonus +" & field[usrChosen1].chosen.field[skTotal].value
field[abSumm].text = "+" & field[usrChosen1].chosen.field[skTotal].value & " - Wealth Bonus"
endif]]></eval>
<eval phase="PostAttr" priority="10000"><![CDATA[if (field[usrChosen1].ischosen <> 0) then
field[usrChosen1].chosen.field[Bonus].value += field[trkMax].value
endif]]></eval>
</thing>
<thing id="mechTest" name="Test" compset="Mechanics">
<bootstrap thing="trTest"></bootstrap>
</thing>
</document>


Basically it all works fine until you save the character and then re-open it.
 

Attachments

I made a test file so you can see what I am talking about. But also here is the test code:

<?xml version="1.0" encoding="UTF-8"?>
<document signature="Hero Lab Data">
<thing id="trTest" name="Test" compset="Trait" uniqueness="useronce" isshowonly="yes">
<comment>The Modern Path - Heroes of the Modern World

Game Room Creations
WWW.GAMEROOMCREATIONS.COM</comment>
<fieldval field="usrCandid1" value="component.BaseSkill & Helper.SkCatProf"/>
<tag group="Helper" tag="ShowSpec" name="Show Spec" abbrev="Show Spec"/>
<tag group="User" tag="NoAutoName" name="NoAutoName" abbrev="NoAutoName"/>
<tag group="Custom" tag="GRCMPWealt" name="Wealth" abbrev="Wealth"/>
<eval phase="Final" priority="30000" index="2"><![CDATA[if (field[usrChosen1].ischosen <> 0) then
field[livename].text = "Wealth Bonus +" & field[usrChosen1].chosen.field[skTotal].value
field[abSumm].text = "+" & field[usrChosen1].chosen.field[skTotal].value & " - Wealth Bonus"
endif]]></eval>
<eval phase="PostAttr" priority="10000"><![CDATA[if (field[usrChosen1].ischosen <> 0) then
field[usrChosen1].chosen.field[Bonus].value += field[trkMax].value
endif]]></eval>
</thing>
<thing id="mechTest" name="Test" compset="Mechanics">
<bootstrap thing="trTest"></bootstrap>
</thing>
</document>


Basically it all works fine until you save the character and then re-open it.
Show "only" is the issue. Go to the "Trait" and uncheck "Show Only?" under the blue buttons on the RIGHT side. "Show Only?" is telling HL that this is used as a Separator in Traits so its loaded Late I think.

Do that and restart HL and your issue goes away. :)
 
Back
Top