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

HeroLab importer crashing on Barbarian ability

Discussion in 'Bug Reports & Installation Support' started by djc664, Aug 26, 2012.

  1. djc664

    djc664 Member

    Joined:
    Aug 25, 2010
    Messages:
    51
    Likes Received:
    0
    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: -28.


    This was due to a monster with a class ability (Enga Keckvia, a Kobold Barbarian from Rise of the Runelords). She has Increase Damage Reduction three times, and it throws this error during the import from d20 Pro. I tried leaving only one in there, but that errors the same as having three. Haven't tested a normal human barbarian yet. Here's the particular string:

    <special name="Increase Damage Reduction (Ex)">While raging, your DR increases by 1.</special>

    Seems to not like the name in particular - I changed "Increase Damage Reduction (Ex)" to "Increase Dmg Reduction (Ex)" and it stopped complaining. :)

    Additionally, the Notes page no longer shows any of the descriptions for these Specials. For instance, it lists "Increase Dmg Reduction (Ex):" but does not show "While raging, your DR increases by 1." Looks like the export tool got modified from Hero Lab and no longer appends <![CDATA[ ... ]]> to the description text... and hasn't for around 6 months it seems. Looking back at old exported characters, the formatting is now way sloppier as well... used to group and cleanly space all the XML. What happened?
     
  2. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    Yes, anything with "Damage Reduction" as part of the name will try to invoke a rule to set the creature's Damage Reduction, and if what follows is not what it is expecting will produce this error. (this is d20Pro's Importer needing updating)

    And you are absolutely correct, it seems that the d20Pro export from Hero Lab no longer includes formatting or the required <![CDATA[ ]]> tags so d20Pro can import the description. (this is Hero Lab's d20Pro Exporter needing updating)
     
  3. ogexam

    ogexam Member

    Joined:
    Jul 10, 2008
    Messages:
    526
    Likes Received:
    1
    Ahhhh... hmmmm

    Ok added to my list of things to fix.

    Thanks
     
  4. djc664

    djc664 Member

    Joined:
    Aug 25, 2010
    Messages:
    51
    Likes Received:
    0
    Posted this detail on Hero Lab's forum for their part.
     

Share This Page