Skip to content

Python3 script to convert HeroLab Pathfinder characters to JSON to import into roll20

License

Notifications You must be signed in to change notification settings

Blesmol/herolab2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

herolab2json

Python3 script to convert HeroLab Pathfinder characters to JSON to import into roll20

Description

This script takes a HeroLab *.por file for Pathfinder 1st Edition and creates for each included character a JSON file that can be used on roll20 with the Pathfinder Community Character Sheet. Existing files with the same name will be overwritten.

Requirements

  • Python 3
  • Python 3 module xmltodict
    pip3 install xmltodict
    

Usage

hl2json.py [-h] [-j] [-x] [--html] [-t] [-d] file [file ...]

Extract Pathfinder characters from HeroLab files and store them locally in
various formats

positional arguments:
  file         HeroLab *.por file

optional arguments:
  -h, --help   show this help message and exit
  -j, --json   Extract JSON (Default if nothing else is selected)
  -x, --xml    Extract XML Statblock
  --html       Extract HTML Statblock
  -t, --text   Extract text statblock
  -d, --debug  Debug output

About

Python3 script to convert HeroLab Pathfinder characters to JSON to import into roll20

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages