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

5th Edition OGL by Roll20 Companion and the "!autonpctoken" command

Hi all. To start, I am completely new at using APIs, although I have used basic macros in the past. I'm running a SKT game with the module from roll20, and am trying to get the above script to work for me. When I use it for a sheet I uploaded a pic for, say a PC's familiar, it works perfectly. It does not for the pre-gen tokens that came with the module however. I found a previous thread where if you buy a token you can download and re-upload it and it will then work. Do I have to do that for every sheet, or is there a work around? I've purchased the MM, Volo's, and SKT so that would be a LOT of tokens. Thank you for your help, and the great website.
I reported the same problem nearly 2 months ago:&nbsp;&nbsp; <a href="https://app.roll20.net/forum/post/5562757/game-add" rel="nofollow">https://app.roll20.net/forum/post/5562757/game-add</a>... It's not just a problem with the !autonpctoken, there's a problem accessing any purchased asset via the API unless it is re-uploaded to your library.
that is by design from what i understand&nbsp; imgsrc and avatar property restrictions While you can now edit the imgsrc and avatar properties, in order to provide safety to all Roll20's users we have put the following restrictions in place for those properties: You must use an image file that has been uploaded to your Roll20 Library -- not an external site (such as Imgur), and not the Roll20 Marketplace. It will begin with ' <a href="https://s3.amazonaws.com/files.d20.io/images/" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/</a>' for images uploaded to the Main server, or ' <a href="https://s3.amazonaws.com/files.staging.d20.io/images/" rel="nofollow">https://s3.amazonaws.com/files.staging.d20.io/images/</a>' for images uploaded to the Dev Server. You can view an image's source URL using the developer tools of your browser. You must include the query string in the URL -- for example ' <a href="https://s3.amazonaws.com/files.staging.d20.io/images/123456/med.png?12345678" rel="nofollow">https://s3.amazonaws.com/files.staging.d20.io/images/123456/med.png?12345678</a>' , not just ' <a href="https://s3.amazonaws.com/files.staging.d20.io/images/123456/med.png" rel="nofollow">https://s3.amazonaws.com/files.staging.d20.io/images/123456/med.png</a>' For Graphic objects (tokens), you must use the "thumb" size of the image. It should look like ' <a href="https://s3.amazonaws.com/files.staging.d20.io/images/123456/thumb.png?12345678" rel="nofollow">https://s3.amazonaws.com/files.staging.d20.io/images/123456/thumb.png?12345678</a>' . In the future we may add a tool so that images can be uploaded specifically for use with API scripts, but for now just use images uploaded to your own library. Note that if you delete an image from your library, it will be removed from all Games which use that image, including Games using your API scripts.