Rangertheman / motw-for-pbta

Monster of the Week Playbooks and Moves for Asacolips' PbtA system
MIT License
1 stars 5 forks source link

Player can't open or create sheets after joining #5

Closed Pantus closed 1 year ago

Pantus commented 1 year ago

When a joined player want's to open a sheet, or create a new actor I get this error.

I'll try to debug it myself when I'll have the time, but you seem to be quick with the responses.

foundry.js:747 TypeError: An error occurred while rendering PbtaActorSheet 44. Cannot read properties of undefined (reading 'character')
[Detected 1 package: system:pbta]
    at PbtaActorSheet._prepareCharacterItems (actor-sheet.js:258:54)
    at PbtaActorSheet.getData (actor-sheet.js:87:16)
    at PbtaActorSheet._render (foundry.js:5108:29)
    at PbtaActorSheet._render (foundry.js:5822:17)
    at PbtaActorSheet.render (foundry.js:5067:10)
    at PbtaActorSheet.render (foundry.js:6394:18)
    at ActorDirectory._onClickDocumentName (foundry.js:60848:16)
    at HTMLOListElement.dispatch (jquery.min.js:2:43064)
    at y.handle (jquery.min.js:2:41048)
Rangertheman commented 1 year ago

I'll investigate the issue :)

May I ask what version of the PbtA system you're using?

Pantus commented 1 year ago

Thanks, sorry for not including it in the first place. PbtA version 0.7.1 motw-for-pbta version 0.1.3

Pantus commented 1 year ago

Seems like actorTypes array is undefined for the sheet.

Pantus commented 1 year ago

Latest PbtA system release has this line. "Fixed an issue where TOML sheet configurations provided by modules wouldn't apply successfully for non-GM users."

Since your module uses actorTypes seemingly correctly, I'm pretty sure it's PbtA's fault. In case you agree, feel free to close this issue.

Rangertheman commented 1 year ago

I agree with your assessment. It's most likely a system issue. I have asked asacolips to have a look at it.