rangertheman / motw-for-pbta Goto Github PK
View Code? Open in Web Editor NEWMonster of the Week Playbooks and Moves for Asacolips' PbtA system
License: MIT License
Monster of the Week Playbooks and Moves for Asacolips' PbtA system
License: MIT License
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)
Whem I create a chosen and check for "The Chosen: Weapons", I can see that "Business-end: artifact" depends on "@uuid[Item.0LGKzof6dXx8GQyc]{magic}". Same with other weapons, 1-harm is an item and all.
Hey so im running MotW and one of my players is playing The Construct, and part of their initial move is they get more Harm Capacity.
Is there anyway to do this? I can't seem access the pbta basic to like make a second sheet type or anything cause its used by the module.
If you can't do extra harm capacity in some way currently, is there a way to update the mod to allow it, or something? Thanks!
Edit: Looking at a couple other playbooks, like the pararomantic and hardcase, have the ability to add some new tracks would be incredibly useful.
Implement functionality for Team Playbooks, and team moves.
If a user without the Modify Settings permission (i.e. Player, Trusted Player) tries to open a charsheet, it won't open, and in the console there will be an error like: "TypeError: An error occurred while rendering PbtaActorSheet 96. game.pbta.sheetConfig.actorTypes is undefined"
This issue occurs only inconsistently - my players had access to their sheets last night, for example, and then nothing changed and they suddenly don't have access to the sheets today. But when it does occur, giving my players the Modify Settings permission (obviously quite undesirable!) is the only fix I can find.
I've tested this with no other modules enabled but Compendium Folders and libWrapper, and also without both of those enabled, and it still occurs.
From inspecting motw-for-pbta.mjs and config-sheet.mjs it kind of seems like adding a permissions check in the Hooks.once blocks might help? It seems like it's tripping on the game.settings.set line (the player/trusted player wouldn't have permission to modify the indicated setting, presumably) and never getting to run configSheet() which is what sets game.pbta.sheetConfig.actorTypes. Of course, if the user needs Modify Settings to set game.pbta.sheetConfig also, then it seems like the code would need to temporarily elevate permissions to do that, if that's even possible. (I'm not a Foundry modder, just an occasional module tweaker.)
Or maybe there's a way game.pbta.sheetConfig can be set server-side instead?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.