Comments (7)
Thanks for the report. Will investigate when back from vacation.
from fvtt-token-action-hud-pf2e.
I can reproduce this issue. However, I do not yet know why it might happen.
from fvtt-token-action-hud-pf2e.
@Larkinabout This issue is somehow related to static registerHandlebars ()
in Token Action HUD Core. This does not appear to be a TAH2e bug.
from fvtt-token-action-hud-pf2e.
Specifically, commenting out the following Handlebar helper makes the issue go away: or: function () { return reduceOp(arguments, (a, b) => a || b) },
from fvtt-token-action-hud-pf2e.
I don't really know what this means, but adding logging to "or", gives this when viewing a Breastplate (without any additional traits):
{ "0": null, "1": [], "2": [ "PF2E.ArmorTypeMedium", "+4 AC Bonus", "1 Dex Modifier Cap", "-2 Check Penalty", "-5 Speed Penalty" ], "3": { "name": "or", "hash": {}, "data": { "root": { "item": { "img": "icons/equipment/chest/breastplate-collared-steel.webp", "name": "Breastplate", "system": { "description": { "gm": "", "value": "<p>Though referred to as a breastplate, this type of armor consists of several pieces of plate or @UUID[Compendium.pf2e.equipment-srd.Item.pRoikbRo5HFW6YUB]{Half Plate} armor that protect the torso, chest, neck, and sometimes the hips and lower legs. It strategically grants some of the protection of plate while allowing greater flexibility and speed.</p>" }, "rules": [], "slug": "breastplate", "_migration": { "version": 0.925, "lastMigration": null, "previous": { "schema": 0.917, "foundry": "11.315", "system": "5.14.1" } }, "traits": { "otherTags": [], "value": [], "rarity": "common" }, "publication": { "title": "Pathfinder Player Core", "authors": "", "license": "ORC", "remaster": true }, "level": { "value": 0 }, "quantity": 1, "baseItem": "breastplate", "bulk": { "value": 2 }, "hp": { "value": 0, "max": 0 }, "hardness": 0, "price": { "value": { "gp": 8 } }, "equipped": { "carryType": "worn", "invested": null, "inSlot": true, "handsHeld": 0 }, "containerId": null, "size": "med", "material": { "type": null, "grade": null }, "identification": { "status": "identified", "unidentified": { "name": "Unusual Breastplate", "img": "systems/pf2e/icons/unidentified_item_icons/armor.webp", "data": { "description": { "value": "" } } }, "misidentified": {} }, "category": "medium", "group": "plate", "acBonus": 4, "strength": 3, "dexCap": 1, "checkPenalty": -2, "speedPenalty": -5, "runes": { "potency": 0, "resilient": 0, "property": [] }, "subitems": [], "specific": null }, "type": "armor", "flags": { "core": { "sourceId": "Compendium.pf2e.equipment-srd.Item.r0ifJfoz8aqf0mwk" } }, "effects": [], "folder": null, "sort": 0, "ownership": { "default": 0, "gd5uUSqED0vnZDop": 3 }, "_stats": { "systemId": "pf2e", "systemVersion": "5.14.3", "coreVersion": "11.315", "createdTime": 1704177749253, "modifiedTime": 1710477354108, "lastModifiedBy": "sH6NmMsgyYgpP1oQ" }, "_id": "WbqQMGW9cUmnNtUD" }, "description": "<p>Though referred to as a breastplate, this type of armor consists of several pieces of plate or <a class=\"content-link\" draggable=\"true\" data-uuid=\"Compendium.pf2e.equipment-srd.Item.pRoikbRo5HFW6YUB\" data-id=\"pRoikbRo5HFW6YUB\" data-type=\"Item\" data-pack=\"pf2e.equipment-srd\" data-tooltip=\"Armor Item\"><i class=\"fa-solid fa-shirt-long-sleeve\"></i>Half Plate</a> armor that protect the torso, chest, neck, and sometimes the hips and lower legs. It strategically grants some of the protection of plate while allowing greater flexibility and speed.</p>", "identified": true, "isCreature": true, "chatData": { "rarity": null, "description": { "gm": "", "value": "<p>Though referred to as a breastplate, this type of armor consists of several pieces of plate or <a class=\"content-link\" draggable=\"true\" data-uuid=\"Compendium.pf2e.equipment-srd.Item.pRoikbRo5HFW6YUB\" data-id=\"pRoikbRo5HFW6YUB\" data-type=\"Item\" data-pack=\"pf2e.equipment-srd\" data-tooltip=\"Armor Item\"><i class=\"fa-solid fa-shirt-long-sleeve\"></i>Half Plate</a> armor that protect the torso, chest, neck, and sometimes the hips and lower legs. It strategically grants some of the protection of plate while allowing greater flexibility and speed.</p>", "addenda": [], "override": null }, "material": null, "traits": [], "properties": [ "PF2E.ArmorTypeMedium", "+4 AC Bonus", "1 Dex Modifier Cap", "-2 Check Penalty", "-5 Speed Penalty" ] }, "selfEffect": null } }, "blockParams": [ null ], "loc": { "start": { "line": 2, "column": 10 }, "end": { "line": 2, "column": 66 } } } }
from fvtt-token-action-hud-pf2e.
In the above, element 3 of the collection objects has a "name" of "or":
"3": { "name": "or", ...
from fvtt-token-action-hud-pf2e.
I'd suspect that either Foundry or PF2e has its own or
handler that TAH Core is overriding with its own. When I first created the module I hadn't considered the uniqueness of handlebar helper function names. I'll have a look at renaming them when I'm back in a few days.
from fvtt-token-action-hud-pf2e.
Related Issues (20)
- 'Blank ARMY' when no token selected HOT 2
- [Enhancement] Disallow Initiative Rolls After Combat Start HOT 1
- [FEATURE] Call hook when hovering over and action HOT 3
- Spell casting does not use the proper rank as of PF2e 5.12.0
- Rolling initiative from the Attributes menu does not honor the roll dialog option as of PF2e 5.12.3 HOT 2
- Bug : Unable to cast spell from HUD since 5.12.x HOT 4
- Missing Toggles for various abilities HOT 16
- Versatile Unarmed strikes cannot have their damage types toggled. HOT 5
- HUD working for some PC's but not for others (PF2E) HOT 3
- [BUG] Shields Causing HUD to Stop Working HOT 30
- Token Action Hud won't open for players or NPCs - Console error: TypeError: Cannot read properties of undefined HOT 3
- Recovery Check opens perception check popup HOT 4
- Cannot read properties of undefined (reading 'filter') for Monster Tokens HOT 9
- Kineticist toggles no longer show up under Strike HOT 4
- Rolling initiative from Attributes rolls default skill instead of skill clicked. HOT 1
- Shift + Click does not change roll dialog behavior HOT 3
- Perception Numbers Don't Match HOT 4
- Feature request: Cast rituals and activations from spellcasting tab
- InternalError: too much recursion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fvtt-token-action-hud-pf2e.