Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[PF] PCGen Output to Pathfinder Character Sheet

1446740045

Edited 1447626008
Greetings, I'm a new subscriber to Roll20.&nbsp; I was hoping after going Pro I'd be able to find a script already made to import character sheets from PCGen output.&nbsp; I haven't been able to find anything on the forums about it though, the closest thing I could find was a stat block importer that could get me by, but it's missing a few things I'd like to have (spells in particular).&nbsp; If another option exists I'd appreciate it if someone pointed me in the direction of it. Since I couldn't find anything that met all my needs that already existed, I started coding up a python script last night that takes the .xml output of PCGen and formats it in plain text in such a way that's I can use a really simple JS script to import almost all of the character fields within the character sheet.&nbsp; There are still a few hiccups that I need to work out of it (for some reason I can't figure out how the attribute values for weapons None/Melee/Ranged field work quite yet, but it'll get there).&nbsp; Would these scripts be something people would be interested in?&nbsp; If there's interest I'll upload the python script to github tonight after finishing up the remaining attributes and post the .js file here. Thanks, Noe3 EDIT:&nbsp; Woops, forgot to tag as [PF] and can't seem to change the title, sorry about that! EDIT2:&nbsp; So here is the pair of scripts I made last night: <a href="https://gist.github.com/gatesnp/14bad4acca76b3cf51" rel="nofollow">https://gist.github.com/gatesnp/14bad4acca76b3cf51</a>... UPDATE 11/12/2015 So I decided to nix the python go-between script and write my own ouput sheet for PCGen.&nbsp; I've updated the github gist with this script.&nbsp; The file is csheet_pathfinder_roll20.txt.ftl. All you have to do is navigate to PCGen's root directory and drop that bad boy into ./outputsheets/d20/fantasy/htmlxml/ and it should show up as an option when you export.&nbsp; Take the file that you export, paste it into the GM notes of the desired token and run the js script using "!PCGenPFImport" and it should handle the rest.&nbsp; Since I switched over to using the output sheets I've added Feats, Racial Traits and Class Abilities. Full disclosure, I don't know Javascript at all and used Jason P.'s statblock parser as a basis for creating the .js file, and straight up used a bunch of his code for 99% of what I'm doing. This thing still has a lot of limitations, here are the ones I can think of off the top of my head: HP is just bunched up on the first class for now.&nbsp; There wasn't a good output format from PCGen that had everything I needed to perfectly fill out the character sheet, but what I have now should fill out everything "Good Enough" for NPC's.&nbsp; For PC's you'll have to make some edits after importing, but it does a lot of the work for you. Attacks aren't perfect right now.&nbsp; The output sheet tokens don't have good variables for me to use for everything.&nbsp; It would be a lot of work to get them perfect, but it's probably possible (even if I have to go to the level of (if hasfeat weapon finesse etc.) Attacks Weapon Proficiencies are always set to Yes right now Iterative attacks aren't in, I just forgot to add them, they're pretty easy to add. I haven't tried this script on a monster yet, so I'm not sure how it will work, I imagine it should be fine though. Spells caster attribute is actually possible, but not in yet. A lot more I'm forgetting I'm sure, but it's a good start, I'm to a point where I think it's usable, let me know if there is anything you'd like me to add. If anyone finds any problems with either script, I'd appreciate it if you posted your issue here. UPDATE (11/15) Updated the PCGen output sheet fixing some errors to class feature output, also added items and traits.
1446741955

Edited 1446742086
Ziechael
Forum Champion
Sheet Author
API Scripter
As this is only going to be truly available via the API i shall move this thread to that forum for the attention of the Scriptomancers who lurk therein. For the record I can see people being interested in this, you won't be wasting your time ;)
Thanks for the move, wasn't sure which of the two forums would be appropriate!
After doing a little research on how PCGen outputs data, I think I'm going to can the python script when I get back after this weekend and create a custom output sheet in PCGen.&nbsp; I might be able to get around some of the limitations that the XML sheet I'm using has this way.&nbsp; Will update when I either create the output sheet or just decide to update the python script.
Now using an output sheet for PCGen to make the text you throw into the token GM notes.&nbsp; Also added Feats, racial traits, and class abilities.
I lack the scripting knowledge to do much more than make general observations, but this is something I was looking for from the moment I learned about API.
1447396134
vÍnce
Pro
Sheet Author
Norman, does this only work with the pcgen formatted output text, or would it also import a statblock of text from the PRD? &nbsp;Thanks for sharing BTW. &nbsp;Much appreciated.
This contains a custom output sheet for PCGen that basically will cause PCGen to output a text file with an output like the following: CharacterSheetAttribute0:Value(:optional max value) CharacterSheetAttribute1:Value(:optional max value) etc. All the API script does is take the GM Notes section of the selected Token and split each line on colons, creating a character sheet attribute for each line.&nbsp; It won't work on a statblock from the PRD.&nbsp; Interestingly I got most of the general API code and code for adding attributes to character sheets from Jason P.s script which does import statblock text from the PRD: <a href="https://app.roll20.net/forum/post/1517881/pathfind" rel="nofollow">https://app.roll20.net/forum/post/1517881/pathfind</a>... I was using his script for my needs, I just happened to also start using PCGen for NPCs in my campaign and figured this might save a bunch of time since I wasn't having much success outputting statblocks from PCGen and then using Jason's script. No problem for sharing, I don't know how many others use PCGen, but this has already payed for itself in the amount of time I've saved not having to manually input into the Roll20 character sheet.
This is based on a sample size of 1, so I may be wrong, but the imported class skills (the checked boxes on the skills page) didn't include the craft, knowledge or profession skills. The ranks in these skills were also not present.
1447702566

Edited 1447702662
The Mystic said: This is based on a sample size of 1, so I may be wrong, but the imported class skills (the checked boxes on the skills page) didn't include the craft, knowledge or profession skills. The ranks in these skills were also not present. You're right!&nbsp; Those skills don't line up with what PCGen outputs normally.&nbsp; I just hadn't had any NPCs take those skills yet so I hadn't noticed.&nbsp; I've updated the PCGen output sheet to import these correctly (Perform was also not importing).&nbsp; Thanks for letting me know! EDIT:&nbsp; Skills that aren't naturally on the skill list in roll20 (due to being third party or something like Knowledge (Psionics)) still won't import properly.&nbsp; Everything that you wouldn't have to put into the misc skills manually should be fine now.