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

Script for exporting from Masterplan and importing into Roll20 (D&D 4E)

For running a 4th edition game I wrote an addon to Masterplan that allows me to extract the monster stat blocks from encounters, and then some API scripts that will import them into Roll20. If anyone is interested the Addon and Roll20 API scripts are all available on my github: <a href="https://github.com/draconas1/masterplan-json-export" rel="nofollow">https://github.com/draconas1/masterplan-json-export</a>
1603635100
Andreas J.
Forum Champion
Sheet Author
Translator
Christian B said: For running a 4th edition game I wrote an addon to Masterplan that allows me to extract the monster stat blocks from encounters, and then some API scripts that will import them into Roll20. API Github Readme says: As Masterplan is dead and gone, along with all its offial documentation, this project owes a huge amount to the blog: <a href="http://paigew.wordpress.com/2010/11/01/creating-a-masterplan-add-on-part-1/" rel="nofollow">http://paigew.wordpress.com/2010/11/01/creating-a-masterplan-add-on-part-1/</a> which is the last remaining documentation on how to write an AddIn and even more to the coder guillaumejay. Out of curiosity, is the MasterPlan program for 4E still used by people, or is it truly dead, gone and forgotten, apart from you making this script? I find it interesting to write compatibility tools for a program that is gone since at least 2016(according to Web Archives ), but I guess you did it for your own use, and shared about it here in the extremely rare case anyone might have use for it. Web Archive have saved a July 2016 version of the MasterPlan.zip , if anyone else intend to look into it. The Downloads page indicates other programs are needed to make it work I've intended to look into how APIs and sheetworkers that are made for importing stats to Roll20, and am considering creating one myself at some point. But haven't found yet any example of minimalist implementations yet, so haven't go around to try getting started, other than noting down API/scripts that already do so. Seems like json-based import would be the easiest to make, as long as you can have the content to be imported as .json
So from my experience of 4th Edition games (which are another thing that are another thing going the way of dinosaur) is that there are quite a few people that still use it and the masterplan installer is passed around by word of mouth.&nbsp;&nbsp; And you are correct, even with my current early days campaign the ease of being able to transfer monsters over with a few clicks instead of entering them by hand is more than making up for the time I invested in writing the 2 plugins.&nbsp; One of my players suggested that if I shared this there may be others interested so I spent Saturday morning making the code less hacky.&nbsp; (/less/ hacky.&nbsp; I am neither a javascript nor c# developer by trade and this code didn't need to pass review before merging to main)
As for the details, broadly that was my theory - I posted on the forum and Aaron linked me to some examples of where it had been done before and some of the limitations - can't access externally, can't make external connections, so it had a to be a "load it from the gm notes of a handout" job, it simply became a matter of stripping out the formatting crap from the gm notes and then using JSON.parse to get an object I could iterate easily.&nbsp; I do more heavy lifting in the c# and write it to the JSON as I am more comfortable there than with javascript. In terms of implementations I think the core of mine is a reasonable example, since at the end of the day, character sheets are just views on top of attributes, so while I have made mine play nice with the 4E charset, you can just use your own attributes instead.&nbsp;&nbsp;
Masterplan was the greatest.
Ravenknight said: Masterplan was the greatest. Much like the A-Team, it is still is, if you can find it.&nbsp; :)