espositos / fvtt-tokenactionhud

Creating a token action HUD module for Foundry VTT
31 stars 38 forks source link

FVTT 0.8.6, PF2 2.0.0, HUD doesn't show up for PC and NPC #242

Open apoapostolov opened 3 years ago

apoapostolov commented 3 years ago

It works in my 5E worlds, but in my PF2 worlds the HUD doesn't show at all.

No changes done other than migrate from 0.7.10 to 0.8.6

gnlatgh commented 3 years ago

0.8.6 and PF2 2.0.2: It works for me except for characters with signature spells checked. Once I clear all signature spells it starts working.

Eregar43 commented 3 years ago

I have the same issue with Foundry 0.8.6 with PF2 2.0.3.5912 and TokenActionHud 1.0.22. The error when a Token is selected (or deselected) is: Uncaught (in promise) TypeError: Cannot read property 'buildActionList' of undefined at TokenActionHUD.updateHud (tokenactionhud.js:386)

dnotar commented 3 years ago

I have the same issue with Foundry 0.8.6 with PF2 2.0.3.5912 and TokenActionHud 1.0.22. The error when a Token is selected (or deselected) is: Uncaught (in promise) TypeError: Cannot read property 'buildActionList' of undefined at TokenActionHUD.updateHud (tokenactionhud.js:386)

This has been occurring for me as well. In my established world only NPC’s work and in new worlds no tokens work.

espositos commented 3 years ago

So I have posted a patch that should have fixed things, but as I understand it strikes have changed again and may not work.

gnlatgh commented 3 years ago

1.0.30 fixed issue regarding signature spells. HUD now appear for every token (PC and NPC) I have in my world.

Eregar43 commented 3 years ago

It is fixed in all world except for my oldest. (But it works for my players.) I get this error on the initial load when it tries to get the subcategory spells_damage for the category spells:

Uncaught (in promise) TypeError: game.macros.entries.filter is not a function
    at Function.getMacros (macroHelper.js:27)
    at Function.getMacrosForFilter (macroHelper.js:21)
    at MacroSubcategory.submitFilterSuggestions (macroSubcategory.js:13)
    at FilterCategory.addMacroSubcategory (filterCategory.js:95)
    at FilterCategory.selectSubcategories (filterCategory.js:59)
    at CategoryManager.init (categoryManager.js:36)
    at Pf2eSystemManager.getActionHandler (manager.js:25)
    at TokenActionHUD.init (tokenactionhud.js:21)
    at init.js:27
    at Function._call (foundry.js:194)

I removed the subcategory coding in categoryManager.js (33-37) and it works now. I'm wondering what this subcategory does. Is it something I created and that is stuck somewhere in the settings?

espositos commented 3 years ago

@Eregar43 sorry, I'm not sure at the moment. Can you let me know what your foundry version is?

Eregar43 commented 3 years ago

I'm on 0.8.6. I just updated the TAH to version 1.0.34 and everything works fine now!