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
Zedwimer
Junior Member
 
Join Date: Feb 2014
Location: Orange County, California, USA
Posts: 20

Old August 14th, 2014, 01:54 PM
Okay, I've gotten to the point that I want to allow users to check/uncheck several different options (sources) in my .user file, mainly so people can choose whether or not to use certain house rules I have made available, or if they just want to stick with the published canon stuff.

I'm only working with a single .user file right now, but I've seemed to make a mess of my custom sources in it. Is there an easier way to add/fix sources in a .user file?

I've seen somewhere that you can (or need to) use a .1st file to specify multiple sources in, but I haven't been able to find any other info on how to set up a .1st file. Can anyone point me in the right direction?
Zedwimer 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 August 15th, 2014, 10:51 AM
So .1st files are a little more advanced because you have to deal with RAW XML no editor. Though you can easily use notepad to open a .1st file and view and all the community packages have and use .1st files.

I would recommend using something better than notepad actually. Use textpad or notepadd++. Both work great and if you tell it that .1st files are XML file it will even color code for you.

Here is a simple example of a .1st file:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Structure">

<!--
8/15/2014 - Tim Shadow
-New .1st example.

-->

<!-- ============================================== -->
<!-- SOURCES                                        -->
<!-- ============================================== -->

  <!-- Shadow d20 Pathfinder PARENT that can not be selected -->
  <source
    id="pShadowd20"
    name="Shadow d20 Pathfinder v1.61"
    selectable="no"
    parent="UserParent"
    sortorder="0"
    description="http://shadowd20.pbworks.com/ - Shadow d20 wiki house rules for Pathfinder.">
    </source>

  <!-- Shadow d20 Pathfinder CHILD that can be selected -->
  <source
    id="s20PFCamp"
    name="Shadow d20 Campaign Rules"
    selectable="yes"
    parent="pShadowd20"
    sortorder="0"
    description="Shadow d20 Pathfinder campaign by Tim Shadow.">
    </source>
    
</document>
The above is a simple example of my house rules .1st file. Any section that starts with <!-- and ends with --> is a XML comment is not processed.

The important parts:
id= Is the 10 digit unique character that identifies your source.
selectable= Tells HL if you want the source to be selectable or not. A parent should be set to no.
parent = Tells HL which source id to place this new source ID under. You parent source should go under 'UserParent' and then your child source goes under your new parent source.

If you copy/paste the above into a text file and change the .txt to .1st it will work. You will need to "CTRL-R" at least to get HL to see any changes you make to a .1st file.

Here is what it will look like in HL:
Noname.jpg

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
Zedwimer
Junior Member
 
Join Date: Feb 2014
Location: Orange County, California, USA
Posts: 20

Old August 15th, 2014, 03:12 PM
Awesome! It's working like a charm. (And I always use EditPlus for HTML/XML editing, so I'm good there.) Thanks ShadowChemosh!
Zedwimer is offline   #3 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 10:18 PM.


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