PDA

View Full Version : PC XML export



bluedreamer
May 28th, 2016, 06:04
Hi FG devs,

I am working on some tools to show off FG and create proper char sheets, and I need you help. My main project is creating a xslt for the PC XML export. I've seen https://www.alonlinetools.net/FGCharacterSheet.aspx and the and https://www.fantasygrounds.com/forums/showthread.php?27390-Universal-Character-Sheet-Printer-for-FG

Both of which do not meet my needs.

So apart from the bad design decision of encoding data into tag names (yeah you know id-00001 was a bad tag name which should have been an attribute) how do you decide spell casting abilities - in all the character I created I find nothing in the XML.

I've got near on 1500LOCs for a RelaxNG compact validator and I can't figure out how you coded the spell casting DC's or Attacks unless you hard coded them. Can you let me know what you did, I hate hardcoding but will do it if it makes my life better

[Oh what I get right will be Open Source on github once I get something useable]

Adrian

Zacchaeus
May 28th, 2016, 08:58
Spell DCs and Attacks are calculated by Fantasy Grounds from information in the character sheet. If the character is a Cleric then FG knows that the ability will be Wisdom so uses that to calculate the Spell Save DC and/or attacks. When the Cleric class is dragged into the sheet the Actions tab is automatically updated with the information. Then when a spell is dragged in the Save and attacks are calculated. I presume that is hard coded into FG rather than anything to do with the character sheet.

LordEntrails
October 12th, 2016, 01:05
Anything ever come of this?

JohnD
October 12th, 2016, 05:21
Anything ever come of this?

Must have been the amiable approach.

bluedreamer
October 12th, 2016, 14:39
Arrrgh - work got in the way, and what I have is messy. Please feel free to fork, continue or whatever :-)

https://github.com/bluedreamer/fg_characters_sheet

LordEntrails
October 12th, 2016, 16:55
No problem. I know about work & life :)

I was just looking for a way to make pdfs of all my pre-gens for FG Con to distribute before the sessions actually start. I ended up using the Adventure League Online tool, but wanted something ... non-AL.
alonlinetools.net/FGCharacterSheet.aspx