Giter Site home page Giter Site logo

foundrytoencounter's Introduction

FoundryToEncounter

Utility to convert Foundry modules/worlds to an EncounterPlus module.

  • Scenes are converted to maps with an encounter for assinged tokens.
  • Journal entries and Roll tables are converted to pages.
  • Playlists are also converted into pages.
  • Optionally, actors and items can be converted into compendium content.
  • The follow features require FFmpeg to be installed on your system
    • Convert video maps to a compatible format
    • Convert video tiles to sprite sheets
    • Convert sounds to a compatible format

App Version

Download the latest release for macOS or Windows

Commandline Version

Install required modules

pip install -r requirements.txt

Usage

usage: foundrytoencounter.py [-h] [-o OUTPUT] [srcfile] [-gui]

Converts Foundry Modules/Worlds to EncounterPlus Modules

positional arguments:
  srcfile     foundry file to convert

optional arguments:
  -h, --help  show this help message and exit
  -o OUTPUT   output into given output (default: [name].module)
  -c          create compendium content with actors and items
  -j          convert WebP to JPG instead of PNG
  -gui        use graphical interface

Examples

Convert a foundry module/world to an EncounterPlus module:

python3 foundrytoencounter.py foundrymodule.zip

Or to include an compendium content from Actors and Items:

python3 foundrytoencounter.py -c foundrymodule.zip

Support

If you enjoy this project, please consider Sponsoring Me

foundrytoencounter's People

Contributors

rrgeorge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

foundrytoencounter's Issues

Error when executing conversion using Mac Terminal

Error:

Creating Folders [4/4] 100%Traceback (most recent call last):
File "/Users/robertboston/Downloads/foundrytoencounter.py", line 3936, in
convert()
File "/Users/robertboston/Downloads/foundrytoencounter.py", line 2417, in convert
if not j["content"] and ("img" not in j or not j["img"]):
KeyError: 'content'

UnicodeEncodeError while converting

Converting folders
Converting journal
Converting playlists
Converting roll tables
Converting maps
Generating cover image
Traceback (most recent call last):
File "foundrytoencounter.py", line 3352, in run
File "foundrytoencounter.py", line 2651, in convert
File "foundrytoencounter.py", line 1305, in createMap
File "PIL\ImageDraw.py", line 497, in multiline_textsize
File "PIL\ImageDraw.py", line 479, in textsize
File "PIL\ImageFont.py", line 128, in getsize
UnicodeEncodeError: 'latin-1' codec can't encode character '\u25bc' in position 0: ordinal not in range(256)

More Debug Data can be provided

KeyError while converting

Converting folders
Converting journal
Converting playlists
Converting roll tables
Converting maps
Generating cover image
Traceback (most recent call last):
File "foundrytoencounter.py", line 3352, in run
File "foundrytoencounter.py", line 2651, in convert
File "foundrytoencounter.py", line 1112, in createMap
KeyError: 'name'

Additional debug info can be provided

Are Encounters / Tokens added to maps as well?

I did not find much information except for "Scenes are converted to maps with an encounter for assinged tokens.".
For the module I exported (adding the -c flag) there are no tokens on the map.
Is this something that's not yet implemented or did I do something wrong here?

Requirement not found (Linux)

Hi, thanks for the great work!
If running linux python-magic-bin can not be install, but you need to install python-magic instead ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.