FantasyGrounded (PhantasY) is a project that helps utilize and explore data from the Fantasy Grounds application. Currently campaign data is supported including data available from previous sessions. As a DM and as a player I prefer to backup my character sheet after each session -- the first goal of this project is to automate character backups after each session.
I will be working on merging FGModGen with this project to make a uniform module editor that can import and export data from existing sources. Once FGModGen is consolidated and the data folder is entirely accessible, other development resources will be implemented: rulesets, extensions, and distribution
- Clone or download this repository into any Python-accessible location.
- Setup
run.pyto either search or read campaigns as below.
- Pull data using the
datahelper.pymethods, or by directly accessing it throughcampaign.py. - Use the included utils to convert the data from XML→Dict→🌈
- Render the data usable for FGModGen or readable by other processes.
Search through existing campaigns:
from phantasy import datahelper
data = datahelper.DataHelper()
for campaign in x.campaigns:
print(campaign)
Get metadata and data from a specific campaign:
campaign = data.getCampaign('Basic Campaign')
print(campaign.metadata, campaign.getData())
The other forms of data in the root folder, some of which are listed here, will be implemented similarly.
Documentation
-
- FGModGen is currently ruleset agnostic although it can generate modules for specific rulesets. It is necessary to allow a larger scripting platform for the Lua implementation that SmiteWork's provides.
-
- Simple integration into the forum for posting and updating.