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

AudioMaster error

Good morning, Got this message this morning from roll20 AM  ---- Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again.  More info...  If this script was installed from the Script Library, you might find help in the Community API Forum. For reference, the error message generated was:  TypeError: Cannot read property 'set' of undefined TypeError: Cannot read property 'set' of undefined at stopTrack (apiscript.js:5206:17) at apiscript.js:4954:17 at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore-umd.js:1335:9) at stopAll (apiscript.js:4949:11) at Timeout._onTimeout (apiscript.js:4469:25) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)
The most common problem with roll20AM is no playlists, it needs atleast 1 playlist made for some reason, it could have no purpose.  
I have a playlist set .. hmmmmm
1643936973
Victor B.
Pro
Sheet Author
API Scripter
Have you imported into Roll20AM?  Create your playlists.  Add your tracks.  Import into Roll20AM.  Whenever you make a lot of changes to your playlists, click remove, then import.  
>> Have you imported into Roll20AM?  Create your playlists.  Add your tracks.  Import into Roll20AM.  Whenever you make a lot of changes to your playlists, click remove, then import.   >> I have. The script starts failing almost seconds into being on: Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again.  More info...  If this script was installed from the Script Library, you might find help in the Community API Forum. For reference, the error message generated was:  TypeError: Cannot read property 'set' of undefined TypeError: Cannot read property 'set' of undefined at playTrack (apiscript.js:10954:17) at trackHandler (apiscript.js:10476:17) at apiscript.js:10231:25 at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore-umd.js:1330:9) at Timeout._onTimeout (apiscript.js:10230:23) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7)
More precisely, the notice I'm getting back looks like this: "Config Handler Action:config" "Importing Tracks" "Importing List:JSA" "Importing List:Tag1" "Importing List:Tag2" "Importing List:Tag3" "Importing List:Tag4" "Command Extract" "Command String:audio,play,nomenu|ThrownWeapon" "Command:audio,play,nomenu" "Command Tracks:ThrownWeapon" {"details":{"play":"play","nomenu":"nomenu","delay":0},"tracks":["ThrownWeapon"],"action":["audio"]} "Input Handler Action:audio" "Lists:" --- ...and then I get a bunch of timeout lines. 
For the solution, I copied the game and manually re-installed all of the APIs
1644168031
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Does your Jukebox have at least one playlist? (Not Roll20AM, the actual Jukebox). I seem to recall this being an issue.
In my experience, if you got one of those problems where the session is just janky as all hell, do not copy the game, make everything from scratch.  Also when you install api scripts give them time to like load and such, don't spam resetting the sandbox back to back to back.  
1644190060
Andreas J.
Forum Champion
Sheet Author
Translator
You could try switching to Simple Sound , it's much smaller simpler than Roll20AM, so less things that can go wrong with it as well. It's on it's way to be added to the API menu.
1644382814

Edited 1644386110
Victor B.
Pro
Sheet Author
API Scripter
Make sure 1) you have playlists in jukebox, 2) you've assigned tracks to at least one playlist IN JUKEBOX.  3) you've imported into Roll20AM. 4) open a playlist and start playing. Simple sound is great, but I like to see a menu of tracks under a playlist.  I like to choose or set the playlist to random or shuffle or choose a track in a playlist.  I like to fade out or fade in and start something else.  I'm not a fan of macro based commands.  Show it to me in chat.  That's just me.  There's way too many macros, etc as is.  I like UI based APIs. I have 1000 tracks plus on Roll20.  Macro commands aren't going to cut it