Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Built-in "Pathfinder2ByRoll20.js" is throwing an error in the API sandbox

1694524608

Edited 1694527964
The built-in "Pathfinder2ByRoll20.js" is throwing the following error: Restarting sandbox by user request... detected currently running sandbox... restarting "Loading character sheet data..." "Starting webworker script..." "Loading 1498 translation strings to worker..." "Starting webworker script..." "Loading 1498 translation strings to worker..." "%cRoll20 Kingmaker Module log| kScaffold Loaded" "ReferenceError: $20 is not defined" "ReferenceError: $20 is not defined at eval (Pathfinder2ByRoll20.js:8538:5) at Array.forEach (<anonymous>) at eval (Pathfinder2ByRoll20.js:8439:77) at eval (<anonymous>) at messageHandler (evalmachine.<anonymous>:713:6) at process.<anonymous> (/home/node/d20-api-server/node_modules/tiny-worker/lib/worker.js:65:55) at process.emit (node:events:513:28) at emit (node:internal/child_process:937:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21)" To ensure this is not an issue with my own scripts, I replaced them with a simple Hello World: on('ready', function () { sendChat("myscript", "Hello World!"); }); And it's still throwing that error every time. My games are using the character sheet "Pathfinder Second Edition By Roll20". I believe this error has something to do with that character sheet. I created a test campaign, with the 5E sheet selected, and everything worked fine. Then I changed the character sheet to Pathfinder Second Edition By Roll20 (with literally nothing added to the campaign, no characters, tokens, etc.) and I get that same exact error again. Note: After extensive testing, this isn't interfering with my own scripts, but still worth pointing out the error
I have that error, too, but it is not stopping API from functioning. From what you posted, it does not appear that your API are stopped, either. Have you tested whether you still have functionality with an API call?
Seems like I jumped the gun here, my scripts DO still work, that error was just freaking me out
Just saw this same error with a brand new Pathfinder2 game. It doesn't seem to impact any scripts so not sure if there's any impact to sheet functions though.