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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Enable uploading arbitrary files for scripts

I have recently had the idea of making a tool for Pokérole. One of the components would be possibly generating encounters. I could try going the way of the Walls Svg importer script and parse what the user pasted, but this may include images that that would be a nightmare to put into a text box. I propose that scripts be able to install "File handlers". When an unknown file is encountered, Roll20 goes through the list of registered file handlers, feeding them the first N bytes of the file (or for an XML file, maybe the starting element of the root), and then passes the file stream to the one that claims the file (possibly throwing a fit if two handlers claim the same file). Then the script reads the file as it comes in and does its stuff while reading the file. It should probably have a mechanism for adding images to the user's library since that may be part of the input.
1610014099
Roll20 Dev Team
Pro
Marketplace Creator
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .