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

Possible new group initative bug (TypeError: Cannot read properties of undefined (reading 'initiative_bonus'))

1753170300

Edited 1753170942
Hello, I've been using groupinitiative script in a game with experimental sandbox and 2024 beacon sheet as a deafult, using 2014 legacy sheet for monsters. Till yesterday, everything worked fine on default config (below). It computed int for PC from 2024 sheet and dex_mod for monsters from 2014 sheet. filter-sheet( dnd2024byroll20 ) computed( initiative_bonus ) computed( init_tiebreaker ) ⮙  ( dexterity_mod ) But today groupinitiative is crashing whole game/api sandbox and I am getting this raport: TypeError: Cannot read properties of undefined (reading 'initiative_bonus') TypeError: Cannot read properties of undefined (reading 'initiative_bonus') at getComputed (file:///home/node/d20-api-server/api.js:674:29) at getComputedProxy (apiscript.js:12530:29) at Object.func (apiscript.js:12925:22) at apiscript.js:13815:33 at Array.reduce (<anonymous>) at apiscript.js:13798:48 at Array.map (<anonymous>) at GetBonuses (apiscript.js:13784:31) at findInitiativeBonus (apiscript.js:13861:23) at apiscript.js:13903:35 Have you encountered similar problems? I am not proficent with macros/api and I don't know what caused this change. Why it sudenly can't read initiative bonus? Log is showing ""##########> Sandbox [EXPERIMENTAL 2025-04-09] : Ready fired after 7.31s, 226 objects."" so it is not a problem with sandbox. I am still using the script to roll for monsters init, but I had to delete filter-sheet( dnd2024byroll20 ) computed( initiative_bonus ) computed( init_tiebreaker ) line, because it causes the problem and instead I am asking players to roll manually, but it is not ideal.
1753173081

Edited 1753183152
I see that concentration script also stopped working correctly and source of the problem seems the same: TypeError: Cannot read properties of undefined (reading 'constitution_save_mod') TypeError: Cannot read properties of undefined (reading 'constitution_save_mod') at getComputed (file:///home/node/d20-api-server/api.js:674:29) at getSheetItem (file:///home/node/d20-api-server/api.js:778:20) at handleGraphicChange (apiscript.js:9254:47) at file:///home/node/d20-api-server/src/pubsub2.js:42:46 at Map.forEach (<anonymous>) at PubSub.publish (file:///home/node/d20-api-server/src/pubsub2.js:42:35) at graphic.set (file:///home/node/d20-api-server/src/objects/Roll20Object.js:410:18) at updateLocalCache (file:///home/node/d20-api-server/api.js:908:18) at file:///home/node/d20-api-server/api.js:1176:13 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
I have encountered the same issue, I was bale to get mine to work by doing the same as you but to agree, not ideal!