Hidden Element?

Discuss Lone Wolf's Hero Lab, the official licensed Mutants & Masterminds superhero creation and advancement tool.
User avatar
Roman Virtue
Hero
Hero
Posts: 1715
Joined: Sun May 30, 2004 4:34 pm
Location: Modesto
Contact:

Hidden Element?

Postby Roman Virtue » Tue Jan 26, 2010 11:37 pm

Ok, so in my quest to get my house rules in place, it seems I need to copy the M&M game system so that updates won't reset my house rules, and for removing skills I don't want I need to use the "Hidden Element". I got the wiki page on it (as therefore the code), but I have no idea where to input this! I'm assuming I still use the editor, but where does this go?
Legends Never Die!!!
Roman Virtues Facebook

User avatar
Colen
Daredevil
Daredevil
Posts: 795
Joined: Mon Mar 17, 2008 8:03 pm

Re: Hidden Element?

Postby Colen » Mon Feb 01, 2010 5:50 pm

Hidden elements unfortunately aren't supported in the editor yet. Here's how you can add them yourself.

1. First, create a new (blank) file in the editor. Save it as whatever you want. Close the editor.
2. Using Notepad, or another text editor, open the file.
3. For each thing you want to hide, add the following line to the file:

Code: Select all

<hidden type="thing" id="thingid"/>


Where "thingid" is the unique id of the thing.

4. Save the file, and reload the game system in Hero Lab. The things you designated as "hidden" should now be gone. :)

Hope this helps!
Try Hero Lab for free! http://www.wolflair.com/hero_lab/

User avatar
Roman Virtue
Hero
Hero
Posts: 1715
Joined: Sun May 30, 2004 4:34 pm
Location: Modesto
Contact:

Re: Hidden Element?

Postby Roman Virtue » Tue Feb 09, 2010 7:23 pm

Ok, so I open the HL file in notepad? Here I was looking for something on the editor itself! Ok, so now I just have to wait for the update for the skill cost adjustment! Thanks again Colen!
Legends Never Die!!!
Roman Virtues Facebook

User avatar
Roman Virtue
Hero
Hero
Posts: 1715
Joined: Sun May 30, 2004 4:34 pm
Location: Modesto
Contact:

Re: Hidden Element?

Postby Roman Virtue » Tue Feb 09, 2010 8:43 pm

Ok, so I opened up the file and I saw this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data" ></document>

after I added my hidden elements here's what I had:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data" ></document>
<hidden type="Acrobatics" id="skAcrobat"/>
<hidden type="Bluff" id="skBluff"/>
<hidden type="Climb" id="skClimb"/>
<hidden type="Computers" id="skComputer"/>
<hidden type="Concentration" id="skConcent"/>
<hidden type="Craft" id="skCrafOth"/>
<hidden type="Diplomacy" id="skDiplo"/>
<hidden type="Disable Device" id="skDisable"/>
<hidden type="Disguise" id="skDisguise"/>
<hidden type="Gather Information" id="skGather"/>
<hidden type="Handle Animal" id="skHandle"/>
<hidden type="Intimidate" id="skIntim"/>
<hidden type="Investigate" id="skInvest"/>
<hidden type="Knowledge" id="skKnowOth"/>
<hidden type="Language" id="skLanguage"/>
<hidden type="Medicine" id="skMedicine"/>
<hidden type="Notice" id="skNotice"/>
<hidden type="Perform" id="skPerfOth"/>
<hidden type="Pilot" id="skPilot"/>
<hidden type="Profession" id="skProfOth"/>
<hidden type="Ride" id="skRide"/>
<hidden type="Search" id="skSearch"/>
<hidden type="Sense Motive" id="skSense"/>
<hidden type="Sleight of Hand" id="skSleight"/>
<hidden type="Stealth" id="skStealth"/>
<hidden type="Survival" id="skSurvival"/>
<hidden type="Swim" id="skSwim"/>

after I did that, I saved the file and opened HL and was greeted by this message:

"The data files could not be loaded due to errors. Hero Lab will now attept to load them in recovery mode. Once loaded, you can access the editor as normal to correct any errors.

The following errors occurred:

File: AdventureComics.user (line 3)- Extraneous data encountered past end of top-level element"

What am I doing wrong?
Legends Never Die!!!
Roman Virtues Facebook

User avatar
Colen
Daredevil
Daredevil
Posts: 795
Joined: Mon Mar 17, 2008 8:03 pm

Re: Hidden Element?

Postby Colen » Wed Feb 17, 2010 7:07 pm

Roman Virtue wrote:after I added my hidden elements here's what I had:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data" ></document>
<hidden type="Acrobatics" id="skAcrobat"/>

...


The "</document>" tag needs to be after everything else in the document. Basically, take the </document> on the 2nd line of the file, and move it to the end. So the file should look like:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data" >
<hidden type="Acrobatics" id="skAcrobat"/>
... other skills here ...
<hidden type="Swim" id="skSwim"/>
</document>


That way the document opens, everything is inside it, and the document then closes. Does that make sense?
Try Hero Lab for free! http://www.wolflair.com/hero_lab/

User avatar
Roman Virtue
Hero
Hero
Posts: 1715
Joined: Sun May 30, 2004 4:34 pm
Location: Modesto
Contact:

Re: Hidden Element?

Postby Roman Virtue » Wed Feb 17, 2010 7:35 pm

Ah, yeah that does make sense! Thanks a bunch!
Legends Never Die!!!
Roman Virtues Facebook

User avatar
Roman Virtue
Hero
Hero
Posts: 1715
Joined: Sun May 30, 2004 4:34 pm
Location: Modesto
Contact:

Re: Hidden Element?

Postby Roman Virtue » Wed Feb 17, 2010 8:13 pm

Now I get this:

File: AdventureComics.user (line 3)- Attribute 'type' vale does not match the specified set of valid values

Here's what it looks like now:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
<hidden type="Acrobatics" id="skAcrobat"/>
<hidden type="Bluff" id="skBluff"/>
<hidden type="Climb" id="skClimb"/>
<hidden type="Computers" id="skComputer"/>
<hidden type="Concentration" id="skConcent"/>
<hidden type="Craft" id="skCrafOth"/>
<hidden type="Diplomacy" id="skDiplo"/>
<hidden type="Disable Device" id="skDisable"/>
<hidden type="Disguise" id="skDisguise"/>
<hidden type="Gather Information" id="skGather"/>
<hidden type="Handle Animal" id="skHandle"/>
<hidden type="Intimidate" id="skIntim"/>
<hidden type="Investigate" id="skInvest"/>
<hidden type="Knowledge" id="skKnowOth"/>
<hidden type="Language" id="skLanguage"/>
<hidden type="Medicine" id="skMedicine"/>
<hidden type="Notice" id="skNotice"/>
<hidden type="Perform" id="skPerfOth"/>
<hidden type="Pilot" id="skPilot"/>
<hidden type="Profession" id="skProfOth"/>
<hidden type="Ride" id="skRide"/>
<hidden type="Search" id="skSearch"/>
<hidden type="Sense Motive" id="skSense"/>
<hidden type="Sleight of Hand" id="skSleight"/>
<hidden type="Stealth" id="skStealth"/>
<hidden type="Survival" id="skSurvival"/>
<hidden type="Swim" id="skSwim"/>
</document>
Legends Never Die!!!
Roman Virtues Facebook

User avatar
Colen
Daredevil
Daredevil
Posts: 795
Joined: Mon Mar 17, 2008 8:03 pm

Re: Hidden Element?

Postby Colen » Fri Mar 19, 2010 1:47 pm

You don't need to include a type - just the id of the thing. :)

Also, good news - Hero Lab 3.6 allows you to edit hidden elements in the editor, instead of having to meddle with text files like this, so it should be much easier for you now. :)
Try Hero Lab for free! http://www.wolflair.com/hero_lab/

User avatar
Roman Virtue
Hero
Hero
Posts: 1715
Joined: Sun May 30, 2004 4:34 pm
Location: Modesto
Contact:

Re: Hidden Element?

Postby Roman Virtue » Fri Mar 19, 2010 4:26 pm

Yay!!! 8)
Legends Never Die!!!
Roman Virtues Facebook


Return to “Hero Lab”



Who is online

Users browsing this forum: No registered users and 2 guests