Fantasy Grounds export
Export a campaign as Fantasy Grounds material and understand what maps into a module package or db.xml.
This is the reverse of Fantasy Grounds import: import reads a Fantasy Grounds db.xml; export writes one.
What exports
The Fantasy Grounds export packages four kinds of creation from the open campaign, plus images when you include them:
| Campaign Familiar Creation | Becomes | Notes |
|---|---|---|
| NPCs | Fantasy Grounds NPC records | Name, description, stats when present |
| Locations | Fantasy Grounds records | Name, description |
| Encounters | Fantasy Grounds records | Name, description, creatures |
| Items | Fantasy Grounds records | Name, description, properties |
| Images | Referenced in the export | When Include images is on |
All of this is written into a Fantasy Grounds db.xml, optionally wrapped in a .mod package.
Export options
When you pick Fantasy Grounds, the wizard adds an options step:
- Package format - choose one:
.modpackage (ready to drop into Fantasy Grounds) - builds an installable module.- Plain
db.xmlonly - writes just the raw campaign XML, no package.
- Module name - the name for the
.modpackage. Leave it blank to default to the campaign name. - Include images - include image references from your creations.
Export steps
- Open the campaign you want to export.
- In the campaign’s left navigation, choose Export Campaign.
- Select Fantasy Grounds.
- Set your options - Package format, Module name, Include images.
- Click Browse… and choose a destination folder.
- Click Export and wait for the summary. The Saved to: line shows the folder you picked.
Where the files land
Everything is written into the destination folder you choose:
db.xml- the campaign data as Fantasy Grounds XML. This is written every time.<module name>.mod- written only when you choose the.modpackage option. It’s a package that bundles adefinition.xmland thedb.xmltogether.
Pick .mod when you want a module you can install directly in Fantasy Grounds. Pick plain db.xml only when you just want the raw campaign data (for example, to inspect it or drop it into an existing campaign folder yourself).
Troubleshooting
Nothing was written
- Make sure you selected a destination folder in the Browse… step before clicking Export.
- Check that you have write permission for the folder you chose.
Where does Fantasy Grounds expect the module?
- Fantasy Grounds loads modules from its own
modulesdirectory. Copy the exported.modfile there (or export straight into it), then enable the module inside Fantasy Grounds.
The .mod file didn’t appear
- The
.modpackage is only created when you choose the.modpackage option. If you chose plaindb.xmlonly, that’s expected - you’ll find justdb.xmlin the folder.
Related
- Fantasy Grounds import - Import a Fantasy Grounds campaign into Campaign Familiar
- VTT export overview - Exporting a campaign to a VTT
- Export formats - The portable formats (JSON, Markdown, CSV)