Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
DMG
Senior Member
 
Join Date: Jun 2007
Location: Queensland, Australia
Posts: 195

Old May 4th, 2013, 05:41 PM
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.
DMG is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old 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.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #2 Reply With Quote
DMG
Senior Member
 
Join Date: Jun 2007
Location: Queensland, Australia
Posts: 195

Old 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.
DMG is offline   #3 Reply With Quote
Dracones
Junior Member
 
Join Date: Jan 2012
Posts: 26

Old 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.
Dracones is offline   #4 Reply With Quote
DMG
Senior Member
 
Join Date: Jun 2007
Location: Queensland, Australia
Posts: 195

Old 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.
DMG is offline   #5 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:08 AM.


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