Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Exporting CR via XML? (http://forums.wolflair.com/showthread.php?t=43892)

DMG May 4th, 2013 05:41 PM

Exporting CR via XML?
 
Hi Folks,

Is it possible to export the CR of a character when exporting via XML?

I can't seem to find it anywhere & I haven't played around with customising anything, so I wouldn't know where to start.

Cheers,
Jim.

ShadowChemosh May 4th, 2013 05:51 PM

File->Save Custom Output... then select "Generate XML File" and press "Output". IE will open and you can see everything that HL just outputted in the XML.

Easiest way to see what you got.

DMG May 4th, 2013 05:56 PM

Already managed that much! :) But it looks like the XML data doesn't contain the CR of the character. I've searched for "CR" & "Challenge Rating" in the xml & can't find anything.

Dracones May 5th, 2013 04:50 AM

Yeah, it doesn't have the CR in the creature XML. If you parse the raw POR file(which is just a zip), you can get the CR from the index.xml file. For example:

Quote:

Archive: Thelvin.por
inflating: index.xml
inflating: statblocks_html/1_Thelvin.htm
inflating: statblocks_text/1_Thelvin.txt
inflating: statblocks_xml/1_Thelvin.xml
inflating: herolab/portfolio.xml
inflating: herolab/lead1.xml
In index.xml:

Quote:

<character name="Thelvin" summary="Elf Rog 8 – CR 7" isally="yes" playername="">
There's also an index entry that'll point to the character XML in the POR file:
Quote:

<statblock format="xml" folder="statblocks_xml" filename="1_Thelvin.xml"/>
This is the same as the export XML.

However if a character has minions and so on, it doesn't look like they get their own XML entry. Their XML will still be in the character XML. They do get a character block with text and html file links though and have a listed CR.

DMG May 6th, 2013 04:01 PM

I have a bit more time for a reply now. I was rather rushed with my previous reply...

Thanks for the replies ShadowChemosh & Dracones.

I've written an iPad app for our Kingmaker campaign which imports characters using XML. The app then displays my own version of the statblocks with links to spells etc from the SRD. I also auto-extract minions as separate characters.

I didn't realise the .por files were just zip files, so I could only go on what was in the xml output.

Looks like I may have to change things to accept the .por, but I'm not sure how dealing with zip files will impact on the iPad. The best bet would be to open the .por file, extract what I need & save the xml locally.


Thanks again for your help.

Cheers,
Jim.


All times are GMT -8. The time now is 02:56 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.