espositos / fvtt-tokenactionhud

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

in D&D Spells not showing #287

Open rinnocenti opened 3 years ago

rinnocenti commented 3 years ago

With the latest update the tokens for D&D no longer show spells.

image

EvldoaTV commented 3 years ago

I am having the same issue, spell list is not showing

solistahoe commented 3 years ago

Screen Shot 2021-06-23 at 12 40 02 AM I have the same problem. It has been reported on the Foundry VVT's discord.

makhmud commented 3 years ago

So do "Skills" category I believe mistake is here: https://github.com/espositos/fvtt-tokenactionhud/blob/f0eb5f787f0c029e6b95d24caa4de898dc587369/scripts/actions/dnd5e/dnd5e-actions.js#L198 https://github.com/espositos/fvtt-tokenactionhud/blob/f0eb5f787f0c029e6b95d24caa4de898dc587369/scripts/actions/dnd5e/dnd5e-actions.js#L421 I think line if (actor.data.type !== 'vehicle') return; should be replaced with if (actor.data.type === 'vehicle') return;

vanderleitelesjr commented 3 years ago

So do "Skills" category I believe mistake is here:

https://github.com/espositos/fvtt-tokenactionhud/blob/f0eb5f787f0c029e6b95d24caa4de898dc587369/scripts/actions/dnd5e/dnd5e-actions.js#L198

https://github.com/espositos/fvtt-tokenactionhud/blob/f0eb5f787f0c029e6b95d24caa4de898dc587369/scripts/actions/dnd5e/dnd5e-actions.js#L421

I think line if (actor.data.type !== 'vehicle') return; should be replaced with if (actor.data.type === 'vehicle') return;

That's exactly it, manually changed the module code here as per described and it worked just fine.

SaintVidar commented 3 years ago

Is there a way for me to fix it on Forge? Or do I need to wait for an official fix?

Matt-BW commented 3 years ago

I have the same issue, the above has fixed it.

My group love this module so much.

benbarbour commented 3 years ago

See my apology on #289.

Avitale34 commented 3 years ago

Came here for same reason!

benbarbour commented 3 years ago

Until my PR is merged to fix this (or until @espositos releases his own fix) you could install Character Actions List and then click the "Group by Action Type" setting in this module's settings. You might also want to edit the Character Actions List settings to prevent sheet injection.

Spells and Skills will show up in this mode, even with the current version. But instead of all spells showing up under "Spells", they'll show up under "Actions", "Bonus Actions", or "Reactions" as appropriate, asking with other Actions, Bonus Actions, and Reactions that you might have. They'll still be grouped by level, need to be prepared and have spell slots to show up, etc.

I don't know if you'll like the grouping, but at least you'll be able to find the missing items in the HUD.

Fridan99 commented 3 years ago

How can i change that line?

benbarbour commented 3 years ago

If you host Foundry on your own computer or on a server where you can access the filesystem, then you need to go find your User Data Path. It's listed on the configuration menu (see this article: https://foundryvtt.com/article/configuration/). Inside there go to modules/token-action-hud/scripts/actions/dnd5e/ and open the files with a text editor like notepad on windows.

Before you edit a file you might want to make a copy of it - a backup, in case you accidently change the wrong thing or whatever.

benbarbour commented 3 years ago

Another thing you could do, again only with filesystem access, is to download an old release file and unzip it into your modules directory. To can find all the old releases from link on the right side of the main page of this repository.

fatigues65 commented 3 years ago

Note: the fix yesterday intended to address this issue works only for level 1-9 spells; the problem persists for Cantrips. See Issue#297.