Closed Stain27 closed 5 months ago
Hello, and thank you for this magnificent module!
I have the same problem. I believe the problem comes from the _getAbilityList
function (in my case in the dnd5e-actions.js
file).
I've got the following error in my console.
It seems name
variable is undefined here
_getAbilityList(tokenId, abilities, categoryId, categoryName, macroType) {
let result = this.initializeEmptyCategory(categoryId);
result.name = categoryName;
let abbr = settings.get("abbreviateSkills");
let actions = Object.entries(game.dnd5e.config.abilities).map((e) => {
if (abilities[e[0]].value === 0) return;
let name = abbr ? e[0] : e[1];
name = name.charAt(0).toUpperCase() + name.slice(1);
let encodedValue = [macroType, tokenId, e[0]].join(this.delimiter);
let icon;
if (categoryId === "checks") icon = "";
else icon = this._getProficiencyIcon(abilities[e[0]].proficient);
return { name: name, id: e[0], encodedValue: encodedValue, icon: icon };
});
I just fixed the problem locally by modifying this line let name = abbr ? e[0]: e[1].label;
I don't think I know the software enough to create a PR on this issue but I think it's a good base :)
I'm not an expert in VTT, but since I upgraded the Foundry Virtual Tabletop at the last version released the 7 november the HUD doesn't appear anymore. Thanks anyone for the help