Parsing Descriptions - HeroesToolChest/HeroesDataParser GitHub Wiki

Tips

  • All new lines are <n/>
  • All color tags are <c val=""></c> or <s val=""></s>
  • Image tags <img path="" ... /> all start with <image path= and are self-closing
  • There are no nested tags
    • A nested tag, for example, is <c val="FFFFFF"><c val="AAAAAA"></c></c>
  • Error tags ##ERROR##only appear in raw descriptions (0)
    • The error tag means the number left of the tag is incorrect as it was not parsed correctly
    • For example <c val=\"#TooltipNumbers\">0##ERROR##</c>
  • <sp/> tags are simply a space

Color values

The val attribute for <c> and <s> tags sometimes contains a color hex value and other times a text variable.

Internally the c ones signifies that it's a constant with a hex value while the s is a style and contains other things such a height, template, font style, etc...

The file with all the constants and styles is located at \core.stormmod\base.stormdata\ui\fontstyles.stormstyle. This file can be extracted using the extract command.

Image tags

The path attribute value determines the image icon to use.

Here is a list of current path values and their icons:

Path value Icon
@UI/StormTalentInTextQuestIcon storm_ui_ingame_talentpanel_upgrade_quest_icon.dds
@UI/StormTalentInTextArmorIcon storm_ui_ingame_status_resistshieldc3.dds

For the ArmorIcon, there are three different colors to determine if it is for Spell, Physical, or Both Armor. The color attribute values are listed below:

Color value Type
e12bfc Spell
ff6600 Physical
BBBBBB Both

There is a also a height and width attribute to determine the size of the icon.

⚠️ **GitHub.com Fallback** ⚠️