ardittristan / 5eSheet-resourcesPlus

A module that allows you to add more resources to 5e character sheets
GNU General Public License v3.0
9 stars 5 forks source link

[V11] Key for resources doesn't appear on token properties #32

Closed megahead11 closed 8 months ago

megahead11 commented 1 year ago

While the resources appear to be visible in v11 and can be edited (used as normal), they cannot be pulled up in the token's resource bar configuration. You cannot select "resources.fourth.max" or above on the dropdown list.

image

Bryn1701 commented 1 year ago

Was looking into updating to V11 but this is a must for my party, they have so many resources they want to keep track of. 3 just doesn't cut it for me.

megahead11 commented 1 year ago

As of DnD 2.2.2, it appears the resources are now further nonfunctional -- they appear on the sheet, but editing them doesn't do anything, as they will revert to the previous value upon re-opening -- alongside a number of other oddities by being absent in module interactions and 5esheet references.

DJ4ddi commented 8 months ago

Newer versions no longer traverse the template to find attributes and instead use the CONFIG.Actor.trackableAttributes global. The structure looks like this:

{
  character: {
    bar: [ "path.to.res1", "path.to.res2" ],
    value: [ "path.to.attr1", "path.to.attr2" ],
  },
  npc: { bar: [], value: [] },
  vehicle: { bar: [], value: [] },
  group: { bar: [], value: [] },
}

The new resources must be added to this in order to be globally accessible as a resource.

ardittristan commented 8 months ago

I'll take a look at it this weekend!