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 .
×

Group-Check error

I used group check with no problems in a 2014 game, but in the 2024 game, I get this error in my mod library when I try to use it:  Your Mod Scripts are currently disabled due to an error that was detected. Please make appropriate changes to your Mod Script's code and click the "Save Mod Script" button. We will then attempt to start running the Mod Scripts again. More info... If this Mod Script was installed from the Mod Script Library, you might find help in the Community API Forum. For reference, the error message generated was: TypeError: attrValue.match is not a function TypeError: attrValue.match is not a function at 1-CLICK: GroupCheck [Tab 2]:1040:29 at String.replace (<anonymous>) at processFormula (1-CLICK: GroupCheck [Tab 2]:1034:27) at processTokenRollData (1-CLICK: GroupCheck [Tab 2]:1066:46) at 1-CLICK: GroupCheck [Tab 2]:1321:24 at Array.map (<anonymous>) at handleRolls (1-CLICK: GroupCheck [Tab 2]:1320:45) at handleInput (1-CLICK: GroupCheck [Tab 2]:1360:63) at file:///home/node/d20-api-server/src/pubsub2.js:68:9 at Map.forEach (<anonymous>) This is what Scriptinfo gives me, but I don't know how to read it: Script Information SCRIPT NAME START / LINES GroupCheck (1.15) 14 / (1377) GroupInitiative (0.9.42) 1390 / (2310) PathMath (1.7.1) 12250 / (1667) TokenCollisions (1.7) 13917 / (902) ScriptInfo (0.0.3) 15440 / (143)
Hi BobbyD, ScriptInfo confirms you’re running GroupCheck 1.15. The 14 / (1377) entry shows the script’s starting line and line count. The stack trace points to GroupCheck’s formula processing. For D&D 5E 2024, open the game’s Mod Scripts page and confirm the output console shows Sandbox v1.5 on startup. If it shows v1.0, switch to v1.5 and restart the sandbox. Then run !group-check-config --show as GM. Copy any custom formulas that share names with built-in checks, since the import replaces matching entries. Run !group-check-config --import 5E-OGL , select a token linked to a 2024 character, and try !group-check --Dexterity Save . Compare the modifier with the sheet. If the test works but your original macro still crashes, paste the exact macro command and the corresponding row from --show . The import leaves differently named checks in place, so the macro may still be calling a check marked shaped in the Special column.
1795457475
The Aaron
Roll20 Production Team
API Scripter
What character sheet are you using?  I'm assuming the DnD5.5e (DnD 2024/Beacon) sheet?  GroupCheck doesn't look like it has been updated to work with Beacon sheets.  It's using getAttrByName(), which only looks for attribute objects, the unit of information for traditional (2014, etc) character sheets.  When you attempt to find that attribute on a Beacon sheet, it is going to fail, and failure will return the special value undefined .  That value is not a string , so .match() is not a defined function on its interface, and you get the "TypeError: attrValue.match is not a function" error.
1795460488

Edited 1795460553
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
1.15, the latest version says it was updated to use getSheetItem(). I've been using it regularly for the Beacon sheet without issue. The numbering on the repo is really wonky, but the script.json says 1.15 is the version being served. But make sure you are using the latest Mod Script Server, not the legacy one.