League-of-Foundry-Developers / party-overview

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

Error on Load #11

Open jseaz73 opened 3 years ago

jseaz73 commented 3 years ago

I love this tool... keep so many important details @ my fingertips and keep the tempo going when I need info to RP elements of the world for the Players.

---Update, this is only happening on one SCENE...

So the issue is.... When I am using a Loot Sheet NPC like a chest ... then It breaks

localhost-1612701240261.log

TypeError: this.getTotalGP(...).toFixed is not a function at PartyOverviewApp.getActorDetails (index.js:200) at index.js:44 at Array.map () at PartyOverviewApp.update (index.js:42) at index.js:38 at Function._call (foundry.js:2496) at Function.callAll (foundry.js:2456) at Game.setupGame (foundry.js:6560) at async Game._initializeGameView (foundry.js:7319) at async Game.initialize (foundry.js:6471) _call @ foundry.js:2499 callAll @ foundry.js:2456 setupGame @ foundry.js:6560 async function (async) setupGame @ foundry.js:6539 _initializeGameView @ foundry.js:7319 initialize @ foundry.js:6471 async function (async) initialize @ foundry.js:6463 _call_wrapped @ wrapper.js:298 call_wrapper @ wrapper.js:389 o @ lib-wrapper.js:409 call_wrapper @ wrapper.js:421 🎁@handler0(Game.prototype.initialize) @ wrapper.js:133 window.addEventListener.once @ foundry.js:7449 async function (async) window.addEventListener.once @ foundry.js:7448

kaelad02 commented 3 years ago

I saw the same and was wondering what caused it. I too had a Loot Sheet on the scene. A quick test showed that if the players have Owner permission on the actor, the bug shows up. I changed it to Observer permission and the bug went away. Mine is a party actor so they can track party treasure for all to see and change but I can workaround it for now.