Comments (30)
I've posted asking for input, so maybe we just leave this open for a while and see if anything comes in.
from fvtt-token-action-hud-pf2e.
I cannot view Discord.
from fvtt-token-action-hud-pf2e.
All tests that I performed with shields work without issue. Will need more details.
from fvtt-token-action-hud-pf2e.
From what I can glean it's related to Shield Ally and Shield Block. I'll ask anyone that has issues to post more info and hopefully error messages here.
from fvtt-token-action-hud-pf2e.
Thanks.
The only thing you can do from the HUD is raise the shield or change grip, sheathe, drop, etc. Blocking is done via the chat options. I created a Champion with Shield Ally and do not see any obvious issues.
from fvtt-token-action-hud-pf2e.
I run 2 servers.
On one server, the person has shield ally received at a higher level.. And I'm not able to replicate on there.. But, the one I run for PFS2e, that was the one where I had a person with a broken shield ally.. I dropped character to level 0, then back to level 7. And chose shield ally.. Drop a new shield on him. The moment I edit the shield HP, it drops to 0, and won't let me change it from 0. Turn off TAH-PF2e, and the shield behaves.. I haven't checked the differences between the 2 servers yet, since I'm at work to see what modules are selected in both.. But, I did test his character just now in the other world and it's working fine..
NotWorkingPackageList.json
WorksFinePackageList.json
fvtt-Actor-sapphire-acacia-root-lliQ3g8gZYSDt0Xd.json
from fvtt-token-action-hud-pf2e.
Thanks for the additional information.
I am unable to reproduce using the basic steps outlined.
If you can double-check the following:
Does this happen with the latest versions of PF2e System, Token Action HUD Core, and token Action HUD PF2e and no other modules enabled?
from fvtt-token-action-hud-pf2e.
No.. But, I get an error about Socketlib..
The moment I enable socketlib -- the failure of shield ally kicks back in..
socketlib 1.0.13 -- Yet, verified on my other server that it's the same version..
from fvtt-token-action-hud-pf2e.
When able, please provide the full error trace messages from the browser's console (F12 -> Console) and I can look further.
from fvtt-token-action-hud-pf2e.
I don't have errors in the console, nor do I have a problem where the HUD stops working, but I can reproduce the issue where the shield HP drops to 0 after adjusting the shield HP value.
The problem is with this Rule Element:
{"itemType":"shield","key":"ItemAlteration","mode":"multiply","predicate":["item:equipped"],"property":"hp-max","value":1.5}
However, since no error is thrown, and because I have no immediate idea as to why this would cause a problem with Token Action HUD PF2e, I am not sure where to start looking.
I can confirm that disabling Token Action HUD PF2e resolves the issue of editing the HP, but I am not sure as to why this happens.
Even more confusingly, the issue does not happen with a test character that I created that is also a level 7 Champion with Shield Ally.
from fvtt-token-action-hud-pf2e.
https://share.firefox.dev/3OLqgNL
console-export-2024-2-14_9-52-24.txt
from fvtt-token-action-hud-pf2e.
@Silvertower -- If you leave TAH PF2e on, but turn off Socketlib -- for me the shield works like one expects.. What about for you?
And, I still don't know why on one server it works and the other it doesn't.
from fvtt-token-action-hud-pf2e.
Something is very, very wrong with Saphire's character, as best as I can find.
I created an identical character and everything works fine.
I would recommend re-building the character from scratch.
Attached is my export. Can you test importing this when able?
fvtt-Actor-sapphire-acacia-root-(new)-lakkPpUhMQU5S7Dm.json
My guess is that this character was exported and imported from different versions of PF2e system or other modules and something in JSON is bad or didn't get migrated correctly.
from fvtt-token-action-hud-pf2e.
Hmm, I suspect, my export might have fixed it.. Since I exported to a different server and it works there.. Your import also works fine.. So, I don't have an original of his file.. So, I'm going to have to agree with you, there is something very wrong with his import of the character..
from fvtt-token-action-hud-pf2e.
@Silvertower I imported the one you linked above, and the shield is still broken.. But not on my other server.
May have to wait till I have some free time.. Take a look at my settings for socketlib and TAH. Maybe one has something selected the other does not.
from fvtt-token-action-hud-pf2e.
Also, here's the original json:
fvtt-Actor-sapphire-level-7.json
from fvtt-token-action-hud-pf2e.
It looks like I spoke too soon. I tried importing my exported version again and the shield is messed up again on the new character as well. The multiplier rule element is being applied multiple times or is multiplying the wrong number, etc. This didn't happen after fresh character creation, however. Very odd.
from fvtt-token-action-hud-pf2e.
Every time the character is dragged onto a scene, the shield modifiers are multiplied, cumulatively.
from fvtt-token-action-hud-pf2e.
Strangely, I have isolated the issue to the buildSpells() function in TAH2e. Investigating further.
from fvtt-token-action-hud-pf2e.
Going down the rabbit-hole, the problem is from getTooltipData().
from fvtt-token-action-hud-pf2e.
The issue is the following statement in getTooltipData() in action-handler.js:
await entity.getChatData()
As soon as the above is called, even if the data is not used in any way (e.g. just assigning the result to a variable), then shields become corrupted.
This is beyond my skillset to resolve, as I have tried several potential solutions, and nothing works for me.
@Larkinabout perhaps you have an idea.
from fvtt-token-action-hud-pf2e.
As an interesting aside to the above, the section of code that triggers this is buildSpells(), which has nothing to do with shields.
The section of buildSpells() that calls getTooltipData() is contained in a rather strange (to me) construct of multiple types of maps:
const items = new Map(activeSpells.map(spell => [spell.id, spell]))
const actions = await Promise.all(
[...items].map(async ([itemId, itemData]) => {
...
const tooltipData = await this.#getTooltipData(actionType, itemData)
})
from fvtt-token-action-hud-pf2e.
Oh just wanted to give an update.. My shield ally user in the other game on the other server, was working fine, until he tried to repair it back to full, then it went to 0 and effed up.. So, turning off the module so I can continue running
from fvtt-token-action-hud-pf2e.
Also, I wonder if the 'Shield Ally' feat uses the 'spell effect' to apply the changes to shields.
from fvtt-token-action-hud-pf2e.
Looking at shield ally:
{"itemType":"shield","key":"ItemAlteration","mode":"multiply","predicate":["item:equipped"],"property":"hp-max","value":1.5}
{"itemType":"shield","key":"ItemAlteration","mode":"add","predicate":["item:equipped"],"property":"hardness","value":2}
from fvtt-token-action-hud-pf2e.
I have developed an ugly workaround for this issue. I will publish the fix sometime tomorrow, but I am going to leave this issue open until the root cause can be found and a permanent fix can be issued.
from fvtt-token-action-hud-pf2e.
Having a similar issue; as a workaround for GMs, you can do the following with the rule elements for Shield Ally:
- Apply priorities 110 and 111 to the hardness and HP ItemAlteration rule elements.
- Add a RollOption rule element with priority 112 that adds an option to predicate off of, e.g.
shield-ally-applied
. - Predicate the Hardness and HP item alterations on the roll option not being present.
Example:
{
"key": "ItemAlteration",
"itemType": "shield",
"mode": "multiply",
"predicate": ["item:equipped", {
"not": "shield-ally-applied"
}],
"property": "hp-max",
"value": 1.5,
"priority": 110
}
{
"key": "ItemAlteration",
"itemType": "shield",
"mode": "add",
"predicate": ["item:equipped", {
"not": "shield-ally-applied"
}],
"property": "hardness",
"value": 2,
"priority": 111
}
{ "key": "RollOption", "option": "shield-ally-applied", "priority": 112 }
Might not help you fix the bug in the addon but it'll at least let GMs keep the addon loaded.
from fvtt-token-action-hud-pf2e.
Thanks for sharing. At this point in time, I do not believe the bug is with TAH2e. But I don't have the time or knowledge to troubleshoot the root cause on the PF2e system side.
from fvtt-token-action-hud-pf2e.
This issue is resolved in PF2e System 5.14.0 and later. The workaround mentioned above will be removed from Token Action HUD PF2e in the next release.
from fvtt-token-action-hud-pf2e.
Fixed in Token Action HUD PF2e version 1.5.11.
from fvtt-token-action-hud-pf2e.
Related Issues (20)
- 5.10.0 Weapon and Shield Support HOT 2
- Comparisons against 5.* system versions provide incorrect results in version 5.10.* HOT 3
- Incorrect labels & missing kineticist impulses following 2e system update HOT 6
- '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
- 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
- Equipment tags aren't being shown on the actor sheet HOT 7
- 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
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.