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

API and copying games

Sorry if I am late to the party but I added the !roll20AM API to my game recently, however since a recent complete wipe of one of my games I regularly copy my games as back up.  Is it normal that the API scripts don't get copied over? 
1615483469
The Aaron
Roll20 Production Team
API Scripter
That has always been the behavior.  There are some problems with managing scripts across games from an infrastructure standpoint which would have to be handled in order for that to be a feature.
WOW! I am relieved that I only use one API script.  I suppose I could just keep using the main game and back up all the time and if I get a similar situation and lose everything off the main game, I just need to add the API script to the back up.  Got any other hints and/or tips? 
1615485414
The Aaron
Roll20 Production Team
API Scripter
Not specifically.  If you knew you were going to be migrating a bunch of scripts between games, you could concatenate them into a single file to make it easier, but that's not generally necessary...
It says you are an API Scripter, thank you for your help so far. However I have just created a copy of my game, the original game had the API script and was working perfectly well. I opened the copy and added the API and tested it and it worked perfectly well. SO I go back to the original game and now !roll20AM just isn't working. Why does it have to be so difficult? I made absolutely no changes at all to the original game, ran config and nothing. Came out of the game to check the API scripts and it is there. For us lay folk who just want to run a fun game it really is frustrating sometimes, especially when we are told how simple it is and great it can be. I understand if you don't have the answers and for the record I have been a Pro member for some time now and for the majority of the time it has been a good experience.  I get excited and tell my players that something exciting is going to happen in the next session and I can just see me having virtual egg on my face. 
1615487173
The Aaron
Roll20 Production Team
API Scripter
Roll20AM seems to have been plagued with issues of late.  Some of it might be subtle issues in the API support for Audio.  Can you detail out what you had set up, how you activated it, and how it failed?  We might be able to figure out a work around or something that you're missing.  I've never actually used Roll20AM, but I know the developer and the maintainer, so I feel like we can get some eyes on this with some detail. =D
Yeah sure and thank you. It seems pretty simple really, I added Roll20AM script, then wrote in the chat !roll20AM --config and then I made all the adjustments and they worked. Added sounds to macros, they worked perfectly well.  Went to the copied game and did the same thing. Went back to the original and tested some of the macros that I assigned some of the sounds to and they didn't work, so I typed in !roll20 --config and nothing happened. Logged out to see if the API script was still there and it was. Went back in and tried again and nothing again. :-( 
UPDATE: logged out and then back in and it seems to be working again. Not sure why?
1615488798
Kraynic
Pro
Sheet Author
Instead of logging out to check on the api sandbox, I would recommend simply opening it in another tab.  You can restart the api sandbox without logging out of your active game session that way (and also see any error messages that crop up from specific commands).
1615488942
The Aaron
Roll20 Production Team
API Scripter
Hmm.  Weird.  Next time you're having the issue, try opening up the developer console for your browser and see if it has any errors.  This being client audio, errors might show up in the local client rather than the api console.
1615488970
The Aaron
Roll20 Production Team
API Scripter
Oh, good point, Kraynic!
Excellent Kraynic, I will give that a go. :-) 
1615491920
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just checking: in the new game, did you import your Jukebox? Roll20AM cannot play natively from the Jukebox, but must make its own internal DB. The DB must be updated every time you change the Jukebox.
Hi Keith,  I just copied the game, when I was setting up the API in the copied game I checked the jukebox and they had all copied over ok. There was just no API script for the copied game, which I rectified before the weird situation with the original game.