1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

Hero labs import fails

Discussion in 'General Discussion' started by ROB_IN_MN, Aug 21, 2011.

  1. ROB_IN_MN

    ROB_IN_MN New Member

    Joined:
    Aug 19, 2011
    Messages:
    22
    Likes Received:
    0
    I am trying to import a hero labs file and am getting the following error:

    This plugin is invalid. Please recompile it using the latest API and try again.
    Caused by: Unexpected exception
    Caused by: String index out of range: -1.

    I am trying to import a file that used the vampire template from hero labs along with some wizard levels and am guessing that is what caused the problem.
    I can provide the xml file if it would help troubleshooting, but I'm hoping someone just says "this is how to fix it" :)
     
  2. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    hmm...

    To get the basics out of the way..
    Verify you are using the latest version of Hero Lab (v3.8)
    Verify that the output from Hero Lab you are using has the file extension ".hld20pro"

    Yes, please attach the file, or use the "code" feature and copy-paste the xml inside. And, I'll see if I can replicate the issue or if there is something in the code that is making it act this way.

    Also, if I can take a look at the Hero Lab portfolio for this creature would help too, I'd like to see if I can recreate the issue.
     
  3. ROB_IN_MN

    ROB_IN_MN New Member

    Joined:
    Aug 19, 2011
    Messages:
    22
    Likes Received:
    0
    I just bought hero labs on Friday, so I'm pretty sure it's the latest version :)

    here's the xml. at first I thought the problem was that the con score is "-", so I tried manually changing that to 1, but that didn't solve the problem. thanks for the help!

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <document signature="d20Pro Import File"><importer version="2" game="d20"/><hero active="yes" heroname="Strahd Von Zarovich"><keyvalue id="Size" value="Medium"/><keyvalue id="Space" value="5"/><keyvalue id="Reach" value="5"/><keyvalue id="Speed" value="30 / 20"/><keyvalue id="NumHands" name="Number of Hands" value="2"/><keyvalue id="Class" value="Wizard 10"/><keyvalue id="Race" value="- Custom Race -"/><keyvalue id="Alignment" value="Chaotic Evil"/><keyvalue id="CurrentHP" name="Current Hit Points" value="70"/><keyvalue id="MaxHP" name="Maximum Hit Points" value="70"/><keyvalue id="ACTotal" name="Total Armor Class" value="25"/><keyvalue id="ACArmor" name="AC from Armor" value="+6"/><keyvalue id="ACShield" name="AC from Shield"/><keyvalue id="ACDexMod" name="AC from Dexterity Modifier" value="+1"/><keyvalue id="ACNatural" name="AC from Natural" value="+6"/><keyvalue id="ACDeflect" name="AC from Deflection" value="+2"/><keyvalue id="ACDodge" name="AC from Dodge"/><keyvalue id="ACMisc" name="AC from Miscellaneous"/><keyvalue id="PP" name="Total PP" value="0"/><keyvalue id="GP" name="Total GP" value="0"/><keyvalue id="SP" name="Total SP" value="0"/><keyvalue id="CP" name="Total CP" value="0"/><background gender="male" age="0" height="6' 3&quot;" weight="200lb." hair="" eyes="" skin=""></background><attributes><keyvalue id="aSTR" name="Strength" value="18"/><keyvalue id="aDEX" name="Dexterity" value="16"/><keyvalue id="aCON" name="Constitution" value="-"/><keyvalue id="aINT" name="Intelligence" value="20"/><keyvalue id="aWIS" name="Wisdom" value="17"/><keyvalue id="aCHA" name="Charisma" value="16"/></attributes><saves><keyvalue id="vFort" name="Fortitude Save" value="6"/><keyvalue id="vRef" name="Reflex Save" value="11"/><keyvalue id="vWill" name="Will Save" value="13"/></saves><attacks><attack id="wGauntArm" name="Gauntlet (from Armor)" attack="-4" damage="1d3" critical="20/x2" multiattacks="no" class="light" equipped="" melee="false" ranged="false" thrown="false" finesse="false" damagetype="B"/><attack id="wSlam" name="Slam (Vampire Template)" attack="0" damage="1d6" critical="20/x2" multiattacks="no" class="light" equipped="" melee="true" ranged="false" thrown="false" finesse="false" damagetype="B"/><attack id="wUnarmed" name="Unarmed Strike" attack="-4" damage="1d3" critical="20/x2" multiattacks="no" class="light" equipped="" melee="true" ranged="false" thrown="false" finesse="false" damagetype="B"/></attacks><feats><keyvalue id="fAlertness" name="Alertness"/><keyvalue id="fArmHeavy" name="Armor Proficiency (Heavy)"/><keyvalue id="fArmLight" name="Armor Proficiency (Light)"/><keyvalue id="fArmMedium" name="Armor Proficiency (Medium)"/><keyvalue id="fComRef" name="Combat Reflexes"/><keyvalue id="fDodge" name="Dodge"/><keyvalue id="fExtSpell" name="Extend Spell"/><keyvalue id="fImpInit" name="Improved Initiative"/><keyvalue id="fLightRef" name="Lightning Reflexes"/><keyvalue id="fQuickSpl" name="Quicken Spell"/><keyvalue id="fScribeS" name="Scribe Scroll"/><keyvalue id="fWepWiz" name="Wizard Weapon Proficiencies"/></feats><skills><skill id="kAppraise" name="Appraise" ranks="0" misc="0"/><skill id="kAutohypno" name="Autohypnosis" ranks="0" misc="2"/><skill id="kBalance" name="Balance" ranks="0" misc="-6"/><skill id="kBluff" name="Bluff" ranks="6" misc="8"/><skill id="kClimb" name="Climb" ranks="0" misc="-6"/><skill id="kConcent" name="Concentration" ranks="16" misc="0"/><skill id="kDecScript" name="Decipher Script" ranks="0" misc="0"/><skill id="kDiplomacy" name="Diplomacy" ranks="2" misc="4"/><skill id="kDisable" name="Disable Device" ranks="0" misc="0"/><skill id="kDisguise" name="Disguise" ranks="1" misc="0"/><skill id="kEscape" name="Escape Artist" ranks="0" misc="-6"/><skill id="kForgery" name="Forgery" ranks="0" misc="0"/><skill id="kGatherInf" name="Gather Information" ranks="0" misc="0"/><skill id="kHandleAnm" name="Handle Animal" ranks="0" misc="0"/><skill id="kHeal" name="Heal" ranks="0" misc="0"/><skill id="kHide" name="Hide" ranks="1" misc="2"/><skill id="kIntim" name="Intimidate" ranks="6" misc="2"/><skill id="kJump" name="Jump" ranks="0" misc="-6"/><skill id="kKnowArcan" name="Knowledge: Arcana" ranks="13" misc="0"/><skill id="kKnowRel" name="Knowledge: Religion" ranks="13" misc="0"/><skill id="kListen" name="Listen" ranks="0" misc="10"/><skill id="kMoveSil" name="Move Silently" ranks="6" misc="2"/><skill id="kOpenLock" name="Open Lock" ranks="0" misc="0"/><skill id="kPsicraft" name="Psicraft" ranks="0" misc="0"/><skill id="kRide" name="Ride" ranks="0" misc="0"/><skill id="kSearch" name="Search" ranks="0" misc="8"/><skill id="kSenseMot" name="Sense Motive" ranks="6" misc="8"/><skill id="kSleight" name="Sleight of Hand" ranks="0" misc="-4"/><skill id="kSpellcr" name="Spellcraft" ranks="13" misc="2"/><skill id="kSpot" name="Spot" ranks="0" misc="10"/><skill id="kSurvival" name="Survival" ranks="0" misc="0"/><skill id="kSwim" name="Swim" ranks="0" misc="-12"/><skill id="kTumble" name="Tumble" ranks="0" misc="-6"/><skill id="kUseMagic" name="Use Magic Device" ranks="0" misc="0"/><skill id="kUsePsion" name="Use Psionic Device" ranks="0" misc="0"/><skill id="kUseRope" name="Use Rope" ranks="0" misc="0"/><skill id="lCommon" name="Speak Common" ranks="1" misc="0"/></skills><gear><item id="mBanded" name="Banded Mail" weight="35lbs" quantity="1"/><item id="ioClRes3" name="Cloak of Resistance, +3" weight="1lb" quantity="1"/><item id="gGround" name="Dropped to Ground (empty)" quantity="1"/><item id="irProtect2" name="Ring of Protection, +2" quantity="1"/></gear><spellsknown><spellclass class="Wizard"><spell id="sWiz00000" name="Acid Splash" castsleft="0" level="0"/><spell id="sWiz00001" name="Arcane Mark" castsleft="0" level="0"/><spell id="sWiz00002" name="Dancing Lights" castsleft="0" level="0"/><spell id="sWiz00003" name="Daze" castsleft="0" level="0"/><spell id="sWiz00004" name="Detect Magic" castsleft="0" level="0"/><spell id="sWiz00005" name="Detect Poison" castsleft="0" level="0"/><spell id="sWiz00006" name="Disrupt Undead" castsleft="0" level="0"/><spell id="sWiz00007" name="Flare" castsleft="0" level="0"/><spell id="sWiz00008" name="Ghost Sound" castsleft="0" level="0"/><spell id="sWiz00009" name="Light" castsleft="0" level="0"/><spell id="sWiz00010" name="Mage Hand" castsleft="0" level="0"/><spell id="sWiz00011" name="Mending" castsleft="0" level="0"/><spell id="sWiz00012" name="Message" castsleft="0" level="0"/><spell id="sWiz00013" name="Open/Close" castsleft="0" level="0"/><spell id="sWiz00014" name="Prestidigitation" castsleft="0" level="0"/><spell id="sWiz00015" name="Ray of Frost" castsleft="0" level="0"/><spell id="sWiz00016" name="Read Magic" castsleft="0" level="0"/><spell id="sWiz00017" name="Resistance" castsleft="0" level="0"/><spell id="sWiz00018" name="Touch of Fatigue" castsleft="0" level="0"/><spell id="sWiz10005" name="Chill Touch" castsleft="0" level="1"/><spell id="sWiz10014" name="Expeditious Retreat" castsleft="0" level="1"/><spell id="sWiz10022" name="Mage Armor" castsleft="0" level="1"/><spell id="sWiz10024" name="Magic Missile" castsleft="0" level="1"/><spell id="sWiz10032" name="Ray of Enfeeblement" castsleft="0" level="1"/><spell id="sWiz10039" name="True Strike" castsleft="0" level="1"/><spell id="sWiz20004" name="Blindness/Deafness" castsleft="0" level="2"/><spell id="sWiz20015" name="False Life" castsleft="0" level="2"/><spell id="sWiz20017" name="Fog Cloud" castsleft="0" level="2"/><spell id="sWiz20039" name="Scorching Ray" castsleft="0" level="2"/><spell id="sWiz20040" name="See Invisibility" castsleft="0" level="2"/><spell id="sWiz20042" name="Spectral Hand" castsleft="0" level="2"/><spell id="sWiz30004" name="Deep Slumber" castsleft="0" level="3"/><spell id="sWiz30008" name="Fireball" castsleft="0" level="3"/><spell id="sWiz30014" name="Haste" castsleft="0" level="3"/><spell id="sWiz30031" name="Ray of Exhaustion" castsleft="0" level="3"/><spell id="sWiz40009" name="Dimension Door" castsleft="0" level="4"/><spell id="sWiz40011" name="Enervation" castsleft="0" level="4"/><spell id="sWiz40013" name="Fear" castsleft="0" level="4"/><spell id="sWiz40014" name="Fire Shield" castsleft="0" level="4"/><spell id="sWiz40031" name="Scrying" castsleft="0" level="4"/><spell id="sWiz50004" name="Cloudkill" castsleft="0" level="5"/><spell id="sWiz50019" name="Mind Fog" castsleft="0" level="5"/><spell id="sWiz50042" name="Waves of Fatigue" castsleft="0" level="5"/></spellclass></spellsknown><spellsmemorized><spellclass class="Wizard"><spell id="sWiz00004" name="Detect Magic" castsleft="1" level="0"/><spell id="sWiz00004" name="Detect Magic" castsleft="1" level="0"/><spell id="sWiz00012" name="Message" castsleft="1" level="0"/><spell id="sWiz00018" name="Touch of Fatigue" castsleft="1" level="0"/><spell id="sWiz10005" name="Chill Touch" castsleft="1" level="1"/><spell id="sWiz10014" name="Expeditious Retreat" castsleft="1" level="1"/><spell id="sWiz10022" name="Mage Armor" castsleft="1" level="1"/><spell id="sWiz10024" name="Magic Missile" castsleft="1" level="1"/><spell id="sWiz10032" name="Ray of Enfeeblement" castsleft="1" level="1"/><spell id="sWiz10039" name="True Strike" castsleft="1" level="1"/><spell id="sWiz20004" name="Blindness/Deafness" castsleft="1" level="2"/><spell id="sWiz20017" name="Fog Cloud" castsleft="1" level="2"/><spell id="sWiz20039" name="Scorching Ray" castsleft="1" level="2"/><spell id="sWiz20040" name="See Invisibility" castsleft="1" level="2"/><spell id="sWiz20042" name="Spectral Hand" castsleft="1" level="2"/><spell id="sWiz30004" name="Deep Slumber" castsleft="1" level="3"/><spell id="sWiz30008" name="Fireball" castsleft="1" level="3"/><spell id="sWiz30014" name="Haste" castsleft="1" level="3"/><spell id="sWiz30031" name="Ray of Exhaustion" castsleft="1" level="3"/><spell id="sWiz40009" name="Dimension Door" castsleft="1" level="4"/><spell id="sWiz40011" name="Enervation" castsleft="1" level="4"/><spell id="sWiz40011" name="Enervation" castsleft="1" level="4"/><spell id="sWiz40031" name="Scrying" castsleft="1" level="4"/><spell id="sWiz50004" name="Cloudkill" castsleft="1" level="5"/><spell id="sWiz50019" name="Mind Fog" castsleft="1" level="5"/><spell id="sWiz50042" name="Waves of Fatigue" castsleft="1" level="5"/></spellclass></spellsmemorized><specialabilities><special name="Abjuration">You may not cast spells from the Abjuration school.</special><special name="Alternate Form (Su)">You can assume the form of a bat, dire bat, wolf or dire wolf.</special><special name="Blood Drain (Ex)">Suck blood with a Grapple check (1d4 CON drain) to gain 5 HP.</special><special name="Children of the Night (Su)" uses="1">Call forth rats, bats or wolves as a standard action.</special><special name="Combat Reflexes">You can make extra attacks of opportunity.</special><special name="Create Spawn (Ex)">Opponents killed by Energy Drain rise 1d4 days after burial.</special><special name="Damage Reduction (10/magic)">You have Damage Reduction against all except Magic attacks.</special><special name="Damage Reduction (10/silver)">You have Damage Reduction against all except Silver attacks.</special><special name="Damage Resistance, Cold (10)">You have the specified Damage Resistance against Cold attacks.</special><special name="Damage Resistance, Electricity (10)">You have the specified Damage Resistance against Electricity attacks.</special><special name="Dodge">+1 to AC vs attacks from one opponent.</special><special name="Dominate (Ex)">As Dominate Person spell, takes standard action.</special><special name="Energy Drain (Ex)">Your Slam attack also causes 2 negative levels of damage.</special><special name="Extend Spell">Spell duration lasts twice as normal. +1 Level.</special><special name="Fast Healing (Ex)">You heal 5 points of damage per round if you have &gt; 1 HP.</special><special name="Gaseous Form (Su)">Assume Gaseous Form at will (as the spell).</special><special name="Illusion">You may not cast spells from the Illusion school.</special><special name="Necromancy">You are specialized in casting spells from the Necromancy school.</special><special name="Quicken Spell">Cast another spell in the same round you cast this one. +4 Levels.</special><special name="Spider Climb (Ex)">You can climb sheer surfaces as with a Spider Climb spell.</special><special name="Turn Resistance (4)">You have Turn Resistance.</special></specialabilities><userimages/></hero></document>
    
    
     
  4. ROB_IN_MN

    ROB_IN_MN New Member

    Joined:
    Aug 19, 2011
    Messages:
    22
    Likes Received:
    0
    forgot to put the hero labs profile in.
    it said the extension .por is not allowed, so I changed it to .txt. it is the actual por file though.
    yes, it's the imfamous Strahd Von Zaravich :oops:
     

    Attached Files:

  5. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    Hello,

    Found out the issue

    Issue
    Code:
    <special name="Fast Healing (Ex)">You heal 5 points of damage per round if you have &gt; 1 HP.</special>

    To Fix
    Replace with...
    Code:
    <special name="Fast Healing 5 (Ex)">You heal 5 points of damage per round if you have more than 1 HP.</special>
    Looks like the current export feature on Hero Lab is neglecting to enter the appropriate number of fast healing. The d20Pro Hero Lab importer is looking for the amount of Fast Healing inside the special name field. Note: the flavor text is always ignored.
     
  6. ROB_IN_MN

    ROB_IN_MN New Member

    Joined:
    Aug 19, 2011
    Messages:
    22
    Likes Received:
    0
    wow, that was super speedy. I am very grateful, thanks!
     

Share This Page