A set of scripts for converting data from the D&D 4e Portable Compendium into Fantasy Grounds modules.
The original "4E Module Generator - Portable Compendium" package was provided by VegaFontana on the Fantasy Grounds 4e Forums under a GNU GPL-3.0 License. This repository modifies and builds off of that package to improve how it parses Portable Compendium data and generates Fantasy Grounds modules from that data.
**THIS PACKAGE DOES NOT INCLUDE D&D 4E COMPENDIUM DATA.**
It is designed to work with .sql data files from the Beta 30 version of the 4e Portable Compendium.
-
Copy the
ddiFeat.sql,ddiPower.sql,ddiItem.sql, andddiMonster.sqlfiles from/path/to/portablecompendium/sql/. -
Paste the
.sqlfiles inside thesourcesfolder of the generator located at "4E Module Generator - Portable Compendium/sources/". -
Execute the
_run_all.batfile (double click should be fine). Then three executable will be launched and three consoles should appear (one per module generated) with live status updates. Once finished, they will each ask you to press "Enter" to close them.- Alternatively, if you have Python 3.8 or greater installed on your computer, you can instead run each script via Python.
-
Check the
exportfolder in each directory for the newly-created mod files (e.g.4e_NPC_PortableCompendium.modinexport/npc) -
Copy these 3 modules from their export folders into your FG modules folder (default should be
.../Fantasy Gounds/Data/modules) and load them in your campaign! -
Don't forget to grant your players access to the basic items / feats / powers modules to ease character creation.
Install the required packages and begin to develop!
pip install -r requirements.txtTo package each script in its own .exe file, run the following command for each python script within the root folder (feat.py, npc.py, power.py, etc.):
pyinstaller ${script_name} --onefile --distpath .