Quickstart Guide
Get up and running with FG Character Extractor in just a few steps. This guide will walk you through extracting your first character sheet.Before starting, make sure you have installed FG Character Extractor.
Extract Your First Character
Locate Your Fantasy Grounds Campaign
Find your Fantasy Grounds campaign folder. The default locations are:macOS:Windows:Linux:Inside your campaign folder, you’ll find a file named
db.xml. This is the file you’ll extract from.Run the Extraction Command
Open a terminal and run the extractor, pointing it to your campaign’s Example:Running from the campaign directory:
db.xml file:If you run
fg-char-extract without arguments in a directory containing db.xml, it will automatically use that file.Review the Extracted Characters
The tool will extract all characters and display progress messages:Each character is saved as
character_<ID>_<Level>.xml in your current directory.File naming convention:character_id-00001_5.xml- Character with ID “id-00001” at level 5character_id-00002_3.xml- Character with ID “id-00002” at level 3character_id-00003_0.xml- Character with no level specified (defaults to 0)
What Gets Extracted?
The tool intelligently processes your character data:Included
- Character name, level, and class information
- Ability scores and bonuses
- Skills with auto-calculated totals
- Proficiency bonus
- Equipment and inventory
- Spells and features
- All custom character data
Filtered Out
<public>tags (visibility metadata)<holder>tags (ownership metadata)- Other Fantasy Grounds internal metadata
Understanding the Output
Filename Format
- ID: The Fantasy Grounds internal ID for the character (e.g.,
id-00001) - Level: The character’s current level (defaults to
0if not set)
Skill Calculation Enhancement
One of the key features is automatic skill total calculation:- Strength Bonus: +3
- Proficiency Bonus: +3
- Athletics Proficiency: 1 (proficient)
- Athletics Total = 3 + (1 × 3) = 6
<total> elements to each skill in the character sheet.
Common Usage Patterns
Extract from Current Directory
Extract to Specific Directory
Batch Process Multiple Campaigns
Troubleshooting
No Characters Extracted
Error: “opening db.xml: no such file or directory”
This means the tool can’t find thedb.xml file. Either:
- Provide the full path to your
db.xmlfile as an argument - Run the command from the directory containing
db.xml
Special Characters in Filenames
On Windows, use double quotes around paths with spaces:Permission Denied
On macOS/Linux, ensure you have read permissions:Next Steps
Now that you’ve extracted your first characters, explore more advanced usage:Command Reference
Learn all command-line options
Output Format
Understand the character XML structure
Usage Examples
See real-world usage patterns
Contribute
Contribute to the project on GitHub
Example Output
Here’s what a successful extraction looks like:Getting Help
If you run into issues:- Check the GitHub Issues for similar problems
- Review the source code for implementation details
- Open a new issue with:
- Your operating system and version
- The command you ran
- The error message (if any)
- A sample of your
db.xmlstructure (without sensitive data)