XaiJu
kakaroto
kakaroto

patreon


Update to R20Exporter and R20Converter (v0.2)

Hi,

I have an update to the R20 Exporter and Converter. Now more stable and with more options!

The main changes to the exporter is that it is now much more stable and it doesn't crash the page on those big multi-GB campaigns. I also made the chat log appear as a separate json file to make it easier to peruse if need be and fixed issues it had working as a Tampermonkey script.

The converter got the bigger update. I've fixed some of the issues with the rendering of multiline text, added the proper fonts, and I added a bunch of new options. When converting your game, you can now set a default password for the GM and players, you can also tell it the minimum wall length and maximum wall angle in order for it to automatically decrease the number of walls in a map. Archived handouts and characters now go in their own directory and you can disable that with the --disable-archived option. It can be very useful in those huge cave maps that Roll20 creates very detailed walls for where you end up with over a thousand walls for example. 

You can download the update from here : https://www.dropbox.com/s/s856v7n72ddy30a/R20Exporter_R20Converter_v0.2.zip?dl=0

I've updated the README instructions so I suggest you read them, and I changed the script name from "tofvtt" to "R20Converter". The windows executable is bundled in the 'windows' subdirectory of that same file and source files are under the 'src' directory.

Here's the output of R20Converter --help :

windows\R20Converter.exe --help
usage: R20Converter.exe [-h] [--campaign-title CAMPAIGN_TITLE]
                        [--description DESCRIPTION] [-r] [--enable-fog]
                        [--disable-fog] [--interactive]
                        [--use-original-image-urls] [--auto-doors]
                        [--player-password PLAYER_PASSWORD]
                        [--gm-password GM_PASSWORD] [--disable-archived]
                        [--minimum-wall-length MINIMUM_WALL_LENGTH]
                        [--maximum-wall-angle MAXIMUM_WALL_ANGLE]
                        [--debug-page DEBUG_PAGE]
                        destination-directory exported.zip

R20Converter

positional arguments:
  destination-directory
                        The destination directory in public/worlds/
  exported.zip          The exported ZIP file from R20Exporter

optional arguments:
  -h, --help            show this help message and exit
  --campaign-title CAMPAIGN_TITLE
                        Override the Campaign title
  --description DESCRIPTION
                        World Desription
  -r, --restrict-movement
                        Force all walls to restrict movement
  --enable-fog          Enable Fog Exploration on all Scenes with Dynamic
                        Lighting regardless of Advanced Fog of War setting
  --disable-fog         Disable Fog Exploration on all Scenes with Dynamic
                        Lighting regardless of Advanced Fog of War setting
  --interactive         Ask questions about decisions to be made during the
                        conversion process.
  --use-original-image-urls
                        Do not copy images to the world folder but use Roll20
                        URL instead. (NOT recommended)
  --auto-doors          Automatically detect doors and set them as such.
  --player-password PLAYER_PASSWORD
                        Default player password
  --gm-password GM_PASSWORD
                        Default GM password
  --disable-archived    Disable the automatic move of archived
                        scenes/handouts/characters to an Archived folder.
  --minimum-wall-length MINIMUM_WALL_LENGTH
                        Minimum distance for walls (in pixels). If a wall is
                        smaller and part of a longer chain of walls, it will
                        get merged with the adjacent wall. This is useful if
                        there are a lot of small/jagged walls or freehand-
                        drawn walls (Default: 0 (disabled))
  --maximum-wall-angle MAXIMUM_WALL_ANGLE
                        Maximum angle (in degrees) between walls before they
                        are merged (when using --minimum-wall-distance
                        option). This is to prevent small walls at high angles
                        (a small triangle or U shape) from being merged and
                        becoming a line that cuts through the map. The angle
                        is calculated with every point in the wall that is
                        skipped, so a circle drawn with small lines and small
                        angles will not be removed. Note that the angle here
                        is related to a straight line, so a maximum angle of
                        30 means an angle between 150 and 210 degrees between
                        the 3 points (Default: 30)
  --debug-page DEBUG_PAGE
                        Only convert a specific page. Useful for debugging

Convert Roll20 campaigns into Foundry VTT worlds.


More Creators