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

[BUG] Crash when a non token is selected and a chat message is parsed

Add this API which just listens to all the chat commands on('chat:message', function (msg) { } ); Create a shape and select it. just add a dummy command in chat !Test you will get this error TypeError: Cannot call method 'get' of undefined at Sandbox.<anonymous> (evalmachine.<anonymous>:7:14) at eval (
1395351701
Gauss
Forum Champion
Moved to the API forum.
1395364593
Lithl
Pro
Sheet Author
API Scripter
Do you have any other scripts running?
1395366317

Edited 1395366437
Weird all the other scripts are disabled, but I just deleted all the other scripts and the bug went away. Nope now it is back again. Will do some more narrowing down to see if I can see what is up.
Issue found, you can have an unnamed script. So after you save it goes into the tab but basically is invisible. You have to mouse over to see it highlight otherwise it just looks like a little bit of white space in front of the first tab. This script was the issue. So wish list would be to add more debug info to errors ie which script is actually hanging.
1395373025
Lithl
Pro
Sheet Author
API Scripter
Peter W. said: So wish list would be to add more debug info to errors ie which script is actually hanging. Unfortunately, once the sandbox starts, all the scripts are one single script; the separate tabs thing is just an organization scheme for us. A better (or at least much quicker) fix would be to prevent nameless scripts or use a default name if none is set.