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

Roll20AM random selection glitch

I've got a macro set up to play a random sound effect track from a particular playlist. It works fine in GM mode, but when I switch to player mode to test it, it works normally once, then on the second attempt it plays both sound tracks back to back, then it stops working. But when I switch back to GM mode, it works properly. Has anyone else encountered this?
Update: Tried logging in with a player account. It seems to work intermittently, then stops completely. 
Does anyone have suggestions for what might be going on with this issue?
What is your macro?  Which version of Roll20AM are you using? Did you use the 'Add Script' feature to add it or did you import it and change anything?
The version is "Latest," added from the library. I didn't change anything. Again it works fine playing random sfx from the folder in GM mode, but not in player mode.
Here are the macro commands I'm using for Fear Check, followed by a random fear sound from a folder. If anyone can help figure out what might be going on, it would be appreciated. !pace --name:Willpower --type:unarmed --score:?{Current Willpower Score?|0} --defensecolumn:?{Defense Column?|0} !roll20AM --audio,play,nomenu|Fear Sounds 
My guess is bad syntax cause you are using a format prone to typos.  Remove the space, remove capitals ore use a uniform capitalization.  Furthermore, everytime you add any sound file to your media folder, you need to remove all sounds from roll20AM, then reimport all to the roll20am api.  If you are using a playlist designed to play 1 sound randomly once, it also needs to have that playlists replay setting set back to play 1 randomly or everytime you removeall/add all to get new sounds into the system, it will break.  Players need to have permissions set in roll20am to play sounds.  Also needs to be reset when you removeall/addall back.  
Pretty sure I just did all that and it's still glitching.
Changed the titles of the tracks to lowercase in the jukebox but it still displays with an uppercase in the config menu list. Do I need to re-upload them? Track Mode seems to be stuck on Loop, if that makes a difference. I can't set it to single from the menu. Access is set to full, Viewed by is set to all. Do I need to put this command in the macro? !roll20AM --edit,access|player
Update: Deleted the tracks, re-added them from the Audio Manager with lowercase spelling, and same issue. I find that when I try to capitalize the folder name to "Fearsounds" then nothing plays, but when I keep it all lowercase with no space ("fearsounds") it works fine, in GM mode that is.
your button would need to mimic the exact name of the playlist.  Furthermore if you want the sound to play one random sound from the playlist, everytime you removeall and add all, you have to set that playlist IN roll20am to do just that.  
1628615936

Edited 1628616346
The playlist would need to be set with an unlock icon like above for players to be able to play the sound via a key/command, and if you want that playlist to only ever play 1 random sound, it needs to have the 4 arrows in different directions to the left of that unlock icon, if those two settings are wrong after a removall/add all with roll20am, then that is your problem.  As for the renaming of the playlist and its failing to function, thats probably stilil just a syntax error with the key and the user.   EDIT:  Every.single.time you add a new sound to the session, you have to removeall, then import the entire sound system back into roll20am, and if you have any playlist you want setup different then default, you have to remember what you wanted each one set to and set them up every.single.damned.time.  Its so annoying but its the only way to get things to work, I notice you are hiding the menu when you play sounds, my bet is you haven't setup your playlists yet.   EDIT2:  You keep referring to GM mode, my guess is you are referring to regular roll20's audo tab, which does not even remotely save anything via roll20am and is a seperate animal that has nothing to do with it.  If the playlist inside roll20am is not setup, then roll20am commands will not function right.  You need to go into roll20am and change those settings, nothing on the roll20 audio tab changes anything other then filenames and playlist names.  
I'm pretty sure I have the playlist and tracks set as you describe. I deleted everything, then re-imported. I'll do everything again though, and I'll try taking the nomenu out of the macro and see if that changes anything.
Re-did everything, even deleted nomenu from the macro, and same glitch. In player mode, it plays one sound. Then if the macro is run again, it plays both sounds, then won't work anymore.  Just kind of hard to believe that no one else has run across this glitch. I guess no one has ever used a playlist for random sound effects before?
Yeti Spaghetti said: Re-did everything, even deleted nomenu from the macro, and same glitch. In player mode, it plays one sound. Then if the macro is run again, it plays both sounds, then won't work anymore.  Just kind of hard to believe that no one else has run across this glitch. I guess no one has ever used a playlist for random sound effects before? Does your playlist look like mine?  You keep using the phrase gm mode and player mode.  are you rejoining as a player in the same browser?  It sounds like you are conflating the roll20 default audo tab and folder with roll20am.  You have to go into the roll20am menu and set the playlist there or else it will not behave correctly.  Also if you rejoin as a player in the same session its using the media cached from the previous window so it may screw up locally on your machine.  You should always test with a seperate incognito browser or another browser altogether with a dummy account that doesn't have the permissions of the GM.  But all of that is just a massive extra amount of work when simply testing a macro like you have.  If the menu for your playlist looks identical to mine in the picture above, it should work...period.  If you can't find that menu in roll20am, then that is where you are messing up.  Run roll20am, click playlists, set the replay setting and unlock the playlist.  Every time you rename or add audio to roll20(note I'm not saying roll20am here) you need to then reset roll20am by removing all then adding all.  THEN go into any playlists that need new settings and reset all of them as you want, THEN try your button, and it doesn't matter if you try it on a player account or a dm account IF the lock is set to unlocked it will work, theres no need to confuse the situation by running multiple tabs to test media files.  
Yes I'm using the Roll20AM menu for everything that you say, not the regular Roll20 audio tab. I'll test the player mode again on another computer/browser.
I logged in on a different computer with my account, and same issue. Works in GM mode, but only works once or twice when I rejoin as a player. Also logged in under my wife's account (she's a player). Sound works once or twice and then not at all.
In case this helps: Another thing I'm noticing is that whenever the macro "clogs up" and doesn't play the sound, whenever I switch back to GM mode, it plays the sound right after the switch, without having to click the macro. It's almost as if the playlist/track(s) is/are getting "jammed" in player mode, if that makes sense.
Yeti Spaghetti said: In case this helps: Another thing I'm noticing is that whenever the macro "clogs up" and doesn't play the sound, whenever I switch back to GM mode, it plays the sound right after the switch, without having to click the macro. It's almost as if the playlist/track(s) is/are getting "jammed" in player mode, if that makes sense. I don't use Roll20AM, but I always strongly encourage GMs to use a  Dummy Account  for any testing of player-side capabilities. I've seen various posts/bugs about what a GM sees when logged in as 'Rejoin as Player'.  Often those issues do not occur when simply tested on a separate account in a separate browser window (one in Chrome, the other in Firefox; or using a regular browser window and the other as a private window).  It also means that you can add/change something logged in as GM and see the effect immediately on the Dummy Account without having to log in and out back and forth.  And there are definitely weird interactions when logged into two windows at the same time with one 'GM as GM' and the other as 'GM Rejoined as Player'. So just a suggestion that might hopefully resolve some of the issues you're having!
So strange...I effectively just did what you suggested by logging in as myself (GM) on one computer and at the same time logging in with a separate account on another computer, and apparently the macro works just fine on both ends. So the issue I'm encountering only happens when I switch from GM mode to playing as a player, I guess. Thank you both, though, for helping with this!