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

Area of Affect Script

With the recent changes to Roll20 i have noticed html output for the Area of affect Script to chat by Stephen L seems to be broken. It displays as follows: This is happening in all game new and existing. Disabling/Re-enabling the script seems to have no affect  Upon further testing I disabled that script (Using the one click install) and load he Raw Directly from Roll20 Github  This works as expected here as shown below: I think its has something to do with the One click installer, both version are 1.6, the only difference is loading the script manually vs using the one click install.  Regards, Mark
1560824968
The Aaron
Roll20 Production Team
API Scripter
That looks like it's doing HTML expansions in the 1-click. I encode all my HTML entities to prevent a similar problem in some browsers. I'll try and pass this up the chain. 
1560826340

Edited 1560826403
Yeah i kinda figured it might be something like that. Didn't see anyone post about it, but thought Someone might like to know in case they run into later when someone uses the script.  Thanks Aaron oh Script-FU Master.
1560863535
Ada L.
Marketplace Creator
Sheet Author
API Scripter
The script uses unicode characters as icons in its chat menu. Looks like Roll20 decided to not support unicode anymore...
Stephen L. said: The script uses unicode characters as icons in its chat menu. Looks like Roll20 decided to not support unicode anymore... Ah that's unfortunate. For now I have a work around not using the one click install and the buttons seem to display for the moment so not to critical but the oneclick install version seems to have the issue with it.  Thought I'd give you a heads up so it can get fixed when you have time.  Mark
1560887760
The Aaron
Roll20 Production Team
API Scripter
Try putting the Unicode characters in as HTML Entities with the & separates until they are printed. It should work fine then.  Probably they are storing it in a database with a different character set which corrupts the multibyte characters. 
1561988300
Ada L.
Marketplace Creator
Sheet Author
API Scripter
I fixed this about a week ago, but forgot to inform the thread about it. Unicode characters should now display correctly for the script again. 
Thanks Stephen, looks like the oneclick adds splitargs which it did not before, so I was getting an error for that however removing and reinstalling it works as intended now. !!! Thanks for working on the script!!
1562095584
Pantoufle
Pro
Sheet Author
Translator
Hey :) I have an issue with the areas of effect script since last update. Disabling the script lets the other scripts work :) Is there a known solution ? in the chat : (From Areas of Effect): ERROR: bshields is not defined in the api log : "ReferenceError: bshields is not defined\n    at apiscript.js:12647:18\n    at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16)\n    at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8)\n    at /home/node/d20-api-server/api.js:1634:12\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560\n    at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)\n    at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)\n    at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)\n    at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400" "Areas Of Effect ERROR: bshields is not defined" "ReferenceError: bshields is not defined\n    at apiscript.js:12647:18\n    at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16)\n    at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8)\n    at /home/node/d20-api-server/api.js:1634:12\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560\n    at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)\n    at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)\n    at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)\n    at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400"
1562118712

Edited 1562118743
I believe that is happening because you are missing a dependent api script called split args. After the changes Stephen made the one click install version adds this if you did not have installed. I simply just added it to my other games that use it and that resolved that issue.  Splitargs can be found as part of the onclick installs.  Pantoufle said: Hey :) I have an issue with the areas of effect script since last update. Disabling the script lets the other scripts work :) Is there a known solution ? in the chat : (From Areas of Effect): ERROR: bshields is not defined in the api log : "ReferenceError: bshields is not defined\n    at apiscript.js:12647:18\n    at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16)\n    at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8)\n    at /home/node/d20-api-server/api.js:1634:12\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560\n    at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)\n    at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)\n    at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)\n    at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400" "Areas Of Effect ERROR: bshields is not defined" "ReferenceError: bshields is not defined\n    at apiscript.js:12647:18\n    at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16)\n    at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8)\n    at /home/node/d20-api-server/api.js:1634:12\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560\n    at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)\n    at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)\n    at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)\n    at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)\n    at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400"
1562129581
Pantoufle
Pro
Sheet Author
Translator
Ah ok! I'll try that this evening :)
1562176758
Ada L.
Marketplace Creator
Sheet Author
API Scripter
Huh... I'm surprised the One-Click library doesn't automagically check for new dependencies when a new script version is available.  On a slightly related note to this thread, unicode characters present in the chat menu for the Custom Status Markers script should also be working now. 
Good Deal Stephen, thanks for all the work you put in to your scripts !!!