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

Roll20 Audio Master Not Working

1707774876
Bea H.
Pro
Marketplace Creator
I want to move a wall and have it make a grating sound. The movement part works fine using TokenMod. When I try to add the audio, Roll20 tells me that there's something wrong with the API scripts and disables both TokenMod and Roll20 Audio Master.
What is the command that you are using for Roll20AM?  What other scripts are you using?
1707782542
Bea H.
Pro
Marketplace Creator
Roll20 Audio Master !roll20AM --config,remove !roll20AM --config,import !roll20AM --audio,play|stone-push-37412 TokenMod !token-mod {{ --ids -NqTYNmDm3ExFR1NrFQH --ignore-selected --set --move =90|1u }} !token-mod {{ --ids  -NqTYtlCoZG-RT3ckyYC --ignore-selected --set --move =270|1u }} Second part works great until I try to add in the first part. Then it goes haywire.
1708062536
Bea H.
Pro
Marketplace Creator
Out of curiosity, is the lack of response because you're as baffled as me or because I did something so monumentally dumb that you just don't feel you can tell me? Either way is fine. 😅
So I cannot replicate the crashing behavior. The behavior that I get is the remove and import happen but the sound doesn't actually play and then the tokens move. Same results if I batch the commands with ZeroFrame mod. What does work for me however is leaving out the remove and import commands and just having the play with the 2 token-mod commands. So if you use: !roll20AM --audio,play|stone-push-37412 !token-mod --ignore-selected --ids -NqTYNmDm3ExFR1NrFQH --move =90|1u !token-mod --ignore-selected --ids -NqTYtlCoZG-RT3ckyYC --move =270|1u Does it crash with those? If so, can you post the error message in the sandbox? Maybe a screenshot of the sandbox to show the other scripts you have in play. That might help folks replicate this.
1708095176
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Brian! I think Joshua has hit on some good points. Cycling the database for Roll20AM has enough overhead that it is probably not complete by the time the other commands are received. Back when I used Roll20 AM, I had those two commands on their own macro, to be run after any fiddling with the Jukebox. And an empty --set command in Token Mod might not necessarily cause a crash (my faith in the Aaron is high), it is superfluous.
1708192284

Edited 1708192421
Bea H.
Pro
Marketplace Creator
So... it doesn't crash anymore, but it doesn't play the sound either. I also tried moving the remove and config portion to its own macro, ran that first, then ran the walls... still no sound.
But if you run the play on its own, it does play your sound? !roll20AM --audio,play|stone-push-37412 That works on its own but doesn't if you add the token-mod commands? if you do a track listing does it show up? !roll20AM --config,menu=tracks If it does show up in that list and you press the play button from the track list, you can up arrow in chat and see the audio,play command used to start that. I am unable to replicate the issue with just the play command and the two token-mod commands. My audio track plays and token-mod moves the tokens. 
1708279655

Edited 1708279865
Bea H.
Pro
Marketplace Creator
Okay. My bad. It looks like I removed the Audio Master script. I added it back in and now it's working. Thank you.