
UniversalVTTImporter Update v0.1.4 -- Fixed a bug where changing the exported scale of a map would cause the alignment of the objects created to be incorrect. (Thanks Dudemic ) Update v0.1.3 -- New --clear command and configurations options. (Thanks Jesse , Stephen C. ) Added --clear command that removes all the lines and lights created for graphic. Configuration options for Wall Width, Wall Color, Door Width, Door Color, Light Color (aura on the DL layer), and creating open portals (generally, windows) on the GM layer. All configuration options are available in the help from: !uvtt --help or directly from: !uvtt-config Update v0.1.2 -- Added UDL support. Note that if you are using UDL, the UDL gets toggled off and on causing the map to be revealed briefly. This is a bug in the way UDL lights are supported with the API. I've reported it and will fix it when a fix becomes available. (Thanks Elias. Ö. S. , Ben M. ) Update v0.1.1 -- Added trimming of non breaking spaces to fix FireFox use. Created and documented companion website ( <a href="http://roll20api.net/uvtti.html" rel="nofollow">http://roll20api.net/uvtti.html</a> ) for preprocessing file for easier use. (Thanks Ryexandra , Casey D. , Justin S. ) UniversalVTTImporter provides a way to setup Dynamic Lighting lines and Lights stored in Universal VTT format, ala Dungeondraft. Commands !uvtt [--help] --help -- Displays this help Import Process The process for importing is pretty straight forward, but there are several steps, as follows: From your Universal VTT supporting mapping program, such as Dungeondraft, export your map as a .png or .jpg file. The API cannot create images from the Universal VTT, so you will need to upload it manually. Next export the Universal VTT version into a .dd2vtt file. Drop your map image file onto a page and scale it as desired. Open the properties by double clicking the image. Visit <a href="http://roll20api.net/uvtti.html" rel="nofollow">http://roll20api.net/uvtti.html</a> and sanitize and copy your .dd2vtt contents. Load the Universal VTT file in a text editor and copy the contents. Paste the contents into the GM Notes section of the map graphic and save changes. With the graphic selected, run !uvtt Your map should now have dynamic lighting lines, lines for doors and windows, and light sources from the original. View before: Adding .dd2vtt contents to the GM Notes: After selecting the graphic and running !uvtt: (Note: the red line is an open portal on the GM layer) View of the DL Layer, showing created light sources (purple aura), walls (brown) and doors (red). Next up I'll be adding commands to change the colors, selectively create open portals on the GM layer, clear the created walls, etc. Let me know if you have other feature requests or any issues! This should be in the 1-click on Tuesday. Github: <a href="https://github.com/shdwjk/Roll20API/blob/master/UniversalVTTImporter/UniversalVTTImporter.js" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/UniversalVTTImporter/UniversalVTTImporter.js</a> Support my work on If you use my scripts, want to contribute, and have the spare bucks to do so , go right ahead. However, please don't feel like you must contribute just to use them! I'd much rather have happy Roll20 users armed with my scripts than people not using them out of some sense of shame. Use them and be happy, completely guilt-free! Disclaimer: This Patreon campaign is not affiliated with Roll20; as such, contributions are voluntary and Roll20 cannot provide support or refunds for contributions.