VTTAssets / vtta-party

Provides an instant overview about vital stats of the players active in the current scene
MIT License
4 stars 12 forks source link

PF2e familiar actor token causes errors and stops party-overview from opening #27

Open bluesatin opened 3 years ago

bluesatin commented 3 years ago

Versions

Foundry: 0.6.6 Pathfinder 2nd Edition: 1.10.14.2141 Virtual Tabletop Assets - Party overview: 2.2.4

Issue

The PF2e system team recently added a familiar character-sheet and adding a familiar's token to a scene will cause errors in the console, and having the familiar token added to a scene will stop the party-overview from appearing. Removing the familiar's token will allow the party overview to appear.

Presumably same problem as issue #18 regarding hazard actor tokens.

Example Errors

foundry.js:2242 TypeError: Cannot read property 'value' of undefined
    at App.getActorDetails (index.js:197)
    at index.js:51
    at Array.map (<anonymous>)
    at App.update (index.js:49)
    at index.js:73
    at Function._call (foundry.js:2239)
    at Function.callAll (foundry.js:2199)
    at Game.setupGame (foundry.js:5838)
    at async Game._initializeGameView (foundry.js:6469)
    at async Game.initialize (foundry.js:5754)
foundry.js:2242 TypeError: Cannot read property 'value' of undefined
    at App.getActorDetails (index.js:208)
    at index.js:51
    at Array.map (<anonymous>)
    at App.update (index.js:49)
    at index.js:100
    at Function._call (foundry.js:2239)
    at Function.callAll (foundry.js:2199)
    at foundry.js:9912
    at Array.map (<anonymous>)
    at Function._handleUpdate (foundry.js:9903)

Discussion

It seems the issue is that the module is attempting to retrieve values that these types of actors do not have, like the languages they know etc.


Thanks for the hard-work! :)