1 Attachment(s)
Pathfinder Creature Parser - FULL release V1.0.0.15 - Updated 3rd January
New v2 beta test available here: https://www.fantasygrounds.com/forum...2-Beta-Version
UPDATE - 3rd January 2012. Full Version 1.0.0.15
Attachment 2247
New features/items fixed:
- Modified to be able to read stat blocks from the Combat Manager application - https://www.combatmanager.com/. See readme.txt file and below.
- logging disabled by default. Parsing is much faster without logging!
- added custom xp tag to each create - XP is not used by Fantasy Grounds at present.
- Added a token reference for each creature - see readme.txt and below.
Note: This is just a creature parser, it will not parse traps or vehicles. Do not include stats for traps or vehicles in the statblock file you parse as they will break the parser!
Combat Manager
https://www.combatmanager.com/
Check this thread for more details.
NOTE: Minor text formatting is still needed with statblocks copied from the monster statblock within combat Manager:
1) Move description to the beginning of the statblock.
2) Next line after description must be <NAME> CR <CR Value> all on one line. For example: Ghoul CR 2.
NOTE: When doing a "Select All" and copy from Combat Manager, the CR entry will be placed on the line before the name - move this to the end of the name line.
3) Remove all blank lines in the statblock.
4) Leave a blank line between each creature statblock.
Token Reference
A token reference has been added for each creature - referencing the creature display name in the tokens directory in the module - with a .png extension. For example:
Creature: Archon, Shield
Token: tokens/Archon, Shield.png@Bestiary2
Note: this needs the manual addition of the image to the "tokens" directory in the module and any required tokens - named <creature name>.png
GOTCHAS
Pathfinder Society - creatures in PFS modules don't have XP values. The Parser relies completely on the XP line between creature Name/CR and Type to be able to split these lines up.
Workaround: PFS creatures, add a new line: "XP 1" (without the quotes) between the Name/CR line and the type line/s.
Stat block titles
The Parser mainly relies on the stat block main titles to correctly read the data correctly. Make sure that when you copy/paste the creature that the main titles are one a line by themselves, no space in front and no spaces in the title (I've seen spaces appear when copying some creatures). The titles are:
Defense
Offense
Tactics (if present)
Statistics
Ecology (if present)
Special Abilities (if present)
Frog God Games Statblocks: Frog God Games products (Slumbering Tsar, Rappan Athuk, Razor Coast, etc.) usually adhere to the Paizo statblock format - with one exception: the "Stat block titles" are not present, the books contain separator lines instead - so you must enter the relevant "Stat block titles" as listed above in place of the separator lines.
HeroLab statblock output
In HeroLab go to File -> Output Active Hero Statblock -> Plain Text -> Save to File and the output parses fine with some minor changes to the HeroLab exported file:
- Add an XP line between the Name/CR line and Type line.
- Remove the --------- lines around the section titles. (remove the whole line)
- Remove any blank lines within each individual statblock.
- Remove the HeroLab notice at the bottom.
-------------------------------------------------------------
Hi everyone,
For a while I've been slowly developing an application that allows parsing of Pathfinder creature stat blocks from a text file into a Fantasy Grounds mod file.
I've tried to design this so that stat blocks can just be copied from PF material (start with the description and end with the special abilities) into a text file and then the text file can be parsed into a creature module for loading in FG.
See the files in the attachment. Extract to a folder. Run setup.exe.
Follow the instructions in readme.txt.
Please let me know if it works and if you have any issues... A good place to look to see how the parsing is going is a temporary file created during parsing - it is the same name as your text file with an extension of .fpf; or check the logfile (same name as your text file + .log). The .fpf file contains formatted stat block info - it might help you to spot formatting errors in the original text file (I've seen a few from copy/paste from the Bestiary 2) and allow you to fix them yourselves and get some creatures parsed!
If you do have issues, please PM me with details of:
1) The error raised.
2) The text stat block for the creature you're parsing. (The one that caused the error may be indicated in the text line output).
3) The .fpf file entry for this creature and the logfile.
HeroLab "Output Active Hero Statblock" parsing
I've done some testing with the HeroLab statblock output (File -> Output Active Hero Statblock -> Plain Text -> Save to File) and this parses fine with a couple of minor changes to the HeroLab exported file:
- Add an XP line between the Name/CR line and Type line.
- Remove the --------- lines around the section titles. (remove the whole line)
- Remove the HeroLab notice at the bottom.
New FULL version 1.0.0.10
New version now available in post #1.
I've been doing a lot of work behind the scenes ironing out a few wrinkles. I now feel that this is ready to be called a full release (not an Alpha release) - I've jumped straight past any Beta releases! :D
See post #1 for new features - and the changelog in the readme.txt in the installation zip file.
Also - get the updated Bestiary 2 module here. It's been created with the latest parser (and a bug fixed statblock file) so this should be much nicer and more accurate to use.
UPDATE - 16th November 2011. Full Version 1.0.0.12
New features/items fixed:
- Multiple attacks formatted into single attacks - full implementation.
- Cancel parse button.
- Massively increased logging.
- Disable logging option (handy on slow PCs or when parsing large creature lists).
- Will process if no HD entry pressent on HP line.
- Processing of saves with ; seperator (Tome of Horrors). Standard seperator is a comma (,).
- Process headings with a colon at the end of the label.
- Handle saves with additional multipliers - e.g. +4 vs. fear.
- Handle parsing of "Spell-like" abilities - Tome of Horrors.
- Process weaknesses line and place in Special Qualities (SQ).
- Rename "vulnerable" weaknesses to "vulnerability" - Fantasy Grounds will not recognise "vulnerable".
- Much better formatting of special abilities in the "other" tab.
Hope, Hope Hope one can have hope
I was just wondering no that you have worked through doing the Monster Parser, Is there any chance for a spell parser (PLEASE) Feat Parser (Please)
Would it be Worth it to do.
Just curious, Thank You For everything you have done so far.
P.S. and thanks for the cool stuff to come(as I know it will)
Madman
Chris