League-of-Foundry-Developers / torch

Simple torch module for Foundry VTT
10 stars 16 forks source link

Supply Exhausted even though I have >1 torch in inventory #80

Closed brennanmuir closed 1 month ago

brennanmuir commented 2 months ago

Testing with two different torches I had imported from separate compendiums, but I am receiving a "Supply Exhausted" error when I try to activate a player's torch.

I have deactivated and reactivated the module and refreshed my foundry instance both with/without cache.

image

lupestro commented 2 months ago

You have two things called Torch, which might conceivably confuse things. Even so, the worst that can happen is you get the wrong one, and both have inventory.

I haven't seen anything like this before. This is clearly D&D5e - Can you send me an export of your character? Also, what version of Foundry, the system, the module, etc. so I can reproduce the situation. I'd like to look into it.

brennanmuir commented 1 month ago

fvtt-Actor-beer-qtZt75jWUDCvPu88.json

My apologies for the late reply. I think the duplicates were one item imported from 5e.tools via Plutonium and the other was SRD or DND Beyond.

Foundry v11.315 System 5e 3.2 Module 2.13.1

Please let me know if there's anything else you need. Again, sorry for the delay

brennanmuir commented 1 month ago

After taking a quick look at the JSON, it looks like there are two torch items. One with an inventory of zero. I removed that and it resolved the issue. Sorry for the trouble but thank you for responding and ultimately guiding me to the solution.