larkinabout / fvtt-token-action-hud-pf2e Goto Github PK
View Code? Open in Web Editor NEWToken Action HUD is a repositionable HUD of actions for a selected token.
Token Action HUD is a repositionable HUD of actions for a selected token.
Playing with Attributes and Skills I noticed that while Perception has such a value hint that helps reduce need to check with Character Sheet, the other options do not have it.
Would be great if options that are not items that can be renamed, edited or lost such as Skills and Attributes could have optional display or not of their metadata, in the case of Skills, Saves and Lores this metadata would be their value.
In addition, the value could use the colors for Trained, Expert, Master and Legendary. I have posted below the hex codes:
#424242
#171f67
#3c005e
#664400
#5e0000
The action-hud-pf2e works for me (DM) but my players are unable to use it. It does not show when they click their owned tokens no matter how I mess with the settings.
The regular action hud (not made for pf2e) works fine but I'd prefer to use this one because its clearer to read.
Just grabbed Token Action HUD PF2e -- delighted by it. Issue, though: the display for strikes and actions takes up a lot of space, even when using the compact style. For example, Melee and the weapons themselves being on their own lines take up too much space. And it would be great if one could toggle off the damage and critical buttons.
Steps to reproduce:
Expected Result: HUD will appear
Actual Result: Token HUD no longer functions until a refresh is done
FoundryVTT version: 11 Build 302
Pathfinder 5.0.2
Active Modules:
Notes:
Selecting the token for a PF2e Familiar Actor breaks the action HUD preventing it from updating when any future tokens are selected.
To reproduce: Create an actor for player character and an actor of the Familiar type. Select the Familiar token. Errors will appear in console. Then select the player character. Action HUD will not update to show the player character's HUD.
Errors from console:
_buildInitiative | @ | token-action-hud-pf2e.min.js:1 | |
---|---|---|---|
_buildFamiliarActions | @ | token-action-hud-pf2e.min.js:1 | |
await in _buildFamiliarActions (async) | |||
update | @ | token-action-hud-core.min.js:1 | |
(anonymous) | @ | token-action-hud-core.min.js:1 | |
#call | @ | foundry.js:724 | |
callAll | @ | foundry.js:681 | |
control | @ | foundry.js:25329 | |
_onClickLeft | @ | foundry.js:25551 | |
_onClickLeft | @ | foundry.js:47366 | |
callback | @ | foundry.js:27813 | |
_handleClickLeft | @ | foundry.js:28010 | |
_handleMouseDown | @ | foundry.js:27990 | |
a.emit | @ | index.js:181 | |
r.dispatchEvent | @ | interaction.min.mjs:8 | |
r.processPointerDown | @ | interaction.min.mjs:8 | |
t.recursiveFindHit | @ | interaction.min.mjs:8 | |
t.recursiveFindHit | @ | interaction.min.mjs:8 | |
t.recursiveFindHit | @ | interaction.min.mjs:8 | |
t.recursiveFindHit | @ | interaction.min.mjs:8 | |
t.recursiveFindHit | @ | interaction.min.mjs:8 | |
t.recursiveFindHit | @ | interaction.min.mjs:8 | |
t.findHit | @ | interaction.min.mjs:8 | |
r.processInteractive | @ | interaction.min.mjs:8 | |
r.onPointerDown | @ | interaction.min.mjs:8 |
I have that when falling unconscious PCs automatically drop their items, weapons with strike action have no issue but items that only show in the inventory (like a shield) don't have an option to be picked up from the HUD for me, I think they should still show in the Inventory tab with the options of 1h, 2h, worn
Foundry v10, PF2e HUD 1.4.8
When changing the selected token as a GM, the normal behavior is for the Token Action HUD to immediately change to reflect the selected token. However, if the token for an actor classified as a Familiar is selected by the GM the Token Action HUD will become stuck and will stop changing as new tokens are selected. This error always comes with an uncaught TypeError exception e is undefined
. This exception occurs after successful building of generic actions, compendium actions, and macro actions.
NPC selected, HUD shows for NPC
Familiar selected, HUD remains stuck on PC
Debug console shows that Building of System Actions for Familiar token has not returned, a TypeError has been thrown where e is undefined
following successful build of Macro actions and compendium actions for the Familiar token - while building Initiative for the Familiar Actions.
NPC selected, HUD remains stuck on PC
At this point, HUD will not change to reflect newly selected tokens until the page is refreshed.
Steps to reproduce
Versions:
All items inside the backpack of a character will not appear on the Inventory tab sections, thus being unable to eat a ration or light a torch from TAH unless they are removed manually from the backpack.
The setting to show or skip roll dialog is inverted for actions within the Attributes group. This s due to roll handler passing the event's shiftKey property directly into the skipDialog property. Instead the shiftKey needs to be inverted where showRollDialogs is set to false.
On one actor, I tried to remove some item names and subsection names.
When I edit the setup on another actor, I see that the options from one actor are passed to another actor, because they are probably local visibility options. But this will cause massive amount of leftover item subsubsection names and their subsubsubsections as well being forever junk in any actor being edited.
IMO visibility for Strikes should not allow per item visibility editing because this would cause problems in the long run with amount of exact name subsections being remembered.
In the screenshot below the actor doesn't have the dagger, the +1 Warhammer and Gauntlet. But because I edited those strings once on another actor who had them, now they appear forever as junk empty options. I also cannot remove these junk options anymore even if I go back to the actor who has them and edit back the options.
P.S.: I would appreciate a command that I can reset and forget these options, or a Reset to Defaults functionality in the settings.
I'm still trying to work out what module it is conflicting with, but I am unable to get to any settings to change the theme colors of the token action hud - right now, the text shows up as clear unless I scroll over the specific buttons, making it pretty difficult to read.
I confirmed that it is not the skin I'm using - the Pathfinder UI.
Update: I realized I didn't have the additional modules added to change the theme. I added and have tried all three, but while the colors change for the initial buttons (strikes, actions, etc) they are still not changing for the sub-buttons (unarmed attack, acrobatics, etc)
In PF2 setup there's Attacks section that never renders because it has content "Subcategory: Attacks" and PF2 does not have content for that section. The proper section hat should be there is "Subcategory:Strikes" and maybe the section should be called Strikes.
In fact, to make it work as it was in Legacy TAH, the best way would be:
As the title says, if an effect on a character is hidden (unidentified), it should not be displayed in the HUD.
Cannot seem to get the Shortsword weapon to show its Melee attacks, sheathe, draw, etc. Only option it gives while editing is to add Shortsword to it again and this goes on recursively, as if the module does not recognize the character has a Shortsword in their inventory. See pictures below. I tried it on several different characters.
@Larkinabout This has been discussed multiple times and is preventing me from moving my games to the new Core. Can we talk about paid commission for options allowing to replicate the same order of buttons with a few minor improvements over the legacy?
Please let me know (you can find me on Discord ApoApostolov#4622)
Thanks so much for this phenomenal module. It has completely changed the way my table has used Foundry.
One quick bug report: Heightened spells seem not to be working correctly. If I try to cast the 2nd level of a spell that has been heightened from a level 1 base version (by clicking on the HUD button under level 2), the level one version of the spell will be cast instead.
If there is any further information or testing I can provide, please let me know!
> > Heres another interesting one, two weapons, different names, but for some reason the HUD shows them as one(using the weapon id perhaps?) happens with ranged combat module, also happens without the module
It uses the slug currently, which I suspect is the same for these two items? Perhaps that happens when an item is added to an actor and then renamed. I should be able to change it to the name instead without too much issue. It can't use the item id as otherwise the GM's HUD gets filled up with empty groups of weapons for every monster they've clicked on.
changing to name will help a lot
_Originally posted by @roi007leaf in Larkinabout/fvtt-token-action-hud-core#67
[ ] Rename Attacks to Strikes
[ ] Add Saves back as core section, they used to be their own section -- people are used to this
[ ] Put Skills and Saves before Attributes
Describe the bug
When selecting multiple tokens, and one of them is a Loot actor (though I wouldn't be surprised if Hazard actors do the same thing) the HUD breaks, and stops rendering all together. It can be selected individually, it seems to just be when trying to calculate collected skills (as these actors don't have any). I thought this is more of a PF2e issue given the type of actors, but could just be simple error handling in core.
Steps to reproduce
Versions:
Error 1:
Uncaught (in promise) TypeError: this.actors is undefined
[Detected 2 packages: token-action-hud-pf2e, token-action-hud-core]
_getSharedSkills https://tehguitarist.chickenkiller.com/modules/token-action-hud-pf2e/scripts/token-action-hud-pf2e.min.js:1
_buildSkills https://tehguitarist.chickenkiller.com/modules/token-action-hud-pf2e/scripts/token-action-hud-pf2e.min.js:1
_buildMultipleTokenActions https://tehguitarist.chickenkiller.com/modules/token-action-hud-pf2e/scripts/token-action-hud-pf2e.min.js:1
buildSystemActions https://tehguitarist.chickenkiller.com/modules/token-action-hud-pf2e/scripts/token-action-hud-pf2e.min.js:1
_buildSystemActions https://tehguitarist.chickenkiller.com/modules/token-action-hud-core/scripts/token-action-hud-core.min.js:1
buildActionList https://tehguitarist.chickenkiller.com/modules/token-action-hud-core/scripts/token-action-hud-core.min.js:1
Error 2:
Uncaught (in promise) TypeError: this.actors is undefined
[Detected 3 packages: token-action-hud-pf2e, token-action-hud-core, lib-wrapper]
_getSharedSkills token-action-hud-pf2e.min.js:1
_buildSkills token-action-hud-pf2e.min.js:1
_buildMultipleTokenActions token-action-hud-pf2e.min.js:1
buildSystemActions token-action-hud-pf2e.min.js:1
_buildSystemActions token-action-hud-core.min.js:1
buildActionList token-action-hud-core.min.js:1
_updateHud token-action-hud-core.min.js:1
update token-action-hud-core.min.js:1
token-action-hud-core.min.js:1
#call foundry.js:724
callAll foundry.js:681
control foundry.js:25329
selectObjects foundry.js:31230
selectObjects foundry.js:31230
_onDragLeftDrop foundry.js:24458
callback foundry.js:27813
_handleDragDrop foundry.js:28214
_handleMouseUp foundry.js:28184
emit index.js:181
dispatchEvent interaction.min.mjs:8
processPointerUp interaction.min.mjs:8
recursiveFindHit interaction.min.mjs:8
findHit interaction.min.mjs:8
processInteractive interaction.min.mjs:8
onPointerComplete interaction.min.mjs:8
onPointerUp interaction.min.mjs:8
addEvents interaction.min.mjs:8
setTargetElement interaction.min.mjs:8
r interaction.min.mjs:8
initPlugins core.min.mjs:8
r core.min.mjs:8
create core.min.mjs:8
ro core.min.mjs:8
e app.min.mjs:8
#createApplication foundry.js:23356
initialize foundry.js:23258
initializeCanvas foundry.js:8094
setupGame foundry.js:7929
_initializeGameView foundry.js:8999
_initializeView foundry.js:8975
initialize foundry.js:7825
call_wrapped libWrapper-wrapper.js:507
libWrapperInit libWrapper-api.js:803
initialize#0 libWrapper-wrapper.js:187
foundry.js:79693
async* foundry.js:79675
token-action-hud-pf2e.min.js:1:12672
_updateHud token-action-hud-core.min.js:1
AsyncFunctionThrow self-hosted:814
(Async: async)
update token-action-hud-core.min.js:1
token-action-hud-core.min.js:1
#call foundry.js:724
callAll foundry.js:681
control foundry.js:25329
selectObjects foundry.js:31230
forEach self-hosted:203
selectObjects foundry.js:31230
_onDragLeftDrop foundry.js:24458
_onDragLeftDrop self-hosted:1359
callback foundry.js:27813
_handleDragDrop foundry.js:28214
_handleMouseUp foundry.js:28184
_handleMouseUp self-hosted:1359
emit index.js:181
dispatchEvent interaction.min.mjs:8
processPointerUp interaction.min.mjs:8
self-hosted:1359
recursiveFindHit interaction.min.mjs:8
findHit interaction.min.mjs:8
processInteractive interaction.min.mjs:8
onPointerComplete interaction.min.mjs:8
onPointerUp interaction.min.mjs:8
self-hosted:1359
(Async: EventListener.handleEvent)
addEvents interaction.min.mjs:8
setTargetElement interaction.min.mjs:8
r interaction.min.mjs:8
initPlugins core.min.mjs:8
r core.min.mjs:8
create core.min.mjs:8
ro core.min.mjs:8
e app.min.mjs:8
#createApplication foundry.js:23356
initialize foundry.js:23258
initializeCanvas foundry.js:8094
InterpretGeneratorResume self-hosted:1822
AsyncFunctionNext self-hosted:810
(Async: async)
setupGame foundry.js:7929
InterpretGeneratorResume self-hosted:1822
AsyncFunctionNext self-hosted:810
(Async: async)
_initializeGameView foundry.js:8999
_initializeView foundry.js:8975
initialize foundry.js:7825
InterpretGeneratorResume self-hosted:1822
AsyncFunctionNext self-hosted:810
(Async: async)
call_wrapped libWrapper-wrapper.js:507
call_wrapped self-hosted:1521
libWrapperInit libWrapper-api.js:803
AsyncFunctionNext self-hosted:810
(Async: async)
libWrapperInit self-hosted:1409
initialize#0 libWrapper-wrapper.js:187
foundry.js:79693
AsyncFunctionNext self-hosted:810
(Async: async)
foundry.js:79675
First, rename it from Attacks to Strikes, this is the proper PF2 term. In the screenshots below, I did it manually.
The default settings for that window and the excessive amount of low-relevance data is eating both horizontal and vertical space, and there's a lot of air between elements that makes players with 6+ weapons (a common sight in the game mid-tiers) to be right unusable.
The current situation
Compare this with old TAH PF2 (CSS is Dorako UI)
Here are the major issues:
Is it possible to get either the old setup possible by default, or the settings needed to replicate it? It was a very good setup that is now impossible and just adding 3-4 weapons causes my laptop vertical screen to show scrolling line.
Support to show hero actions from this module (toggleable in settings perhaps) https://foundryvtt.com/packages/pf2e-hero-actions
Spells | Error from clicking high spell slot |
---|---|
![]() |
![]() |
Currently Versatile weapons just don't have their toggles show up at all:
Whereas Modular produces a button next to the weapon that does nothing useful:
The Versatile stuff should be relatively simple to just mirror the buttons, since they're only changing damage type and can be represented properly by just an icon. Modular is usually just damage type, but there's Switchscythe complicating things, which is supposed to be able to modify traits but isn't implemented yet, so having the full text available will be important, even if it isn't currently.
For thrown weapons, the textual subcategory adds a bit of roughness to the otherwise pretty polished UI. I would love to see any solution that makes it invisible like it is for melee strikes and indicative in any other possible way.
For example, the icon for thrown <img class="alt-usage-icon" src="systems/pf2e/icons/mdi/thrown.svg" title="Thrown Usage">
can be integrated inside the MAP 0 button, or be shown before that button into the free area where the weapon icon is shown on an above row.
When rolling a Strike, the Damage and Critical buttons on the chat card don't work.
This appears to be because the altUsage parameter is always passed to the roll
function. When an altUsage is found on the chat card, the buttons' handler only looks in the altUsages array to find the Strike information. For the Strike's primary usage, that value will not be found in the altUsages and the buttons do not work.
This is the same bug that I reported on the old Token Action HUD Drental/fvtt-tokenactionhud#347 and was fixed in commit Drental/fvtt-tokenactionhud@8a229ca
I'm seeing the same bug appear once again in this new iteration of the module.
Ctrl + Click does not make blind chat cards for actions, as it does from the character sheet.
Core: v1.2.3
Pf2e: v0.1.1
Unlike Larkinabout/fvtt-token-action-hud-core#87 this bug seems exclusive to the effects tab.
Conditions are being listed twice in the effects tab. Occurs even in a fresh world with only Core / Pathfinder 2e / lib - Color Settings active.
Right now the actions for the strikes (Change grip, sheathe and drop) are in a different line that the attack and damage.
Could we get an option to have them all in one line, similar to how it was in HUD Classic?
That way it would make each different strike smaller, something needed if you have a lot of different strikes.
I was running the module just fine a week ago but something has changed. I've tried uninstalling all but the dependant modules and even this is not working. I've tried uninstalling and re-installing. I've tried restarting my Forge server. even cloning my world as well as creating a completely newly built world. Just refuses to work at all.
It's great to have the Conditions listed under the Effects tab, however I'm wondering if they could be sorted alphabetically. Alternatively, it would be helpful to have them sorted by Alphabetically, but also by grouping them. Meaning those affecting attitude could be grouped together, as well as those effecting whether or not someone is visible or not.
Add actions for each skill to the Initiative group.
It looks like, so far, the element replication has been addressed. However, now I cannot seem to add a ranged option for thrown weapons.
Originally posted by @Aragith in Larkinabout/fvtt-token-action-hud-core#64 (comment)
Items with multiple strikes only show the first strike on the HUD. This is because strikes currently use only the item id as the identifier and strikes do not have unique identifiers. A combination of the item id and the strike slug should resolve this issue.
Hi there.
I am having trouble hiding the titles of the strikes. None of the options, module setting or individual group, seem to help. I have tried this with only the base modules enabled, as well as uninstalling/resetting both the core and pf2e modules. No errors in the console exist.
This is what I am constantly seeing without the ability to turn off the titles of each item.
Any help would be appreciated.
In FVTT v11/PF2e v5.0.0-beta1 selecting a PC causes the Action HUD to crash, and it cannot be used again until refreshing the page. This behavior happens every time for both GMs and Players. I tested for module incompatibility in a new world with only Action HUD enabled and the crash still occurred.
pf2e-workbench recently subsumed all functionality from a discontinued mod called PF2e Skill Sheet Actions which adds all skill actions (and some feat actions) to a separate category on the character sheet. If you could make these entries also show up on the token action HUD that would be so incredibly nice.
Thanks in advance!
Right now, if you have an item in the Actions category, like for example Rapier, it spills over onto multiple lines, making everything look ugly and cluttered. Please consider going back to the old display for Token Action HUD, which was much more compact and easy on the eyes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.