Starfinder Playlist
  1. #1

    Adding New XML Files

    Well, I was working on my Arcana Evolved rules set for a private group I am planning to run a game for. So, I started out with the idea that I'd work by modifying the d20 set.

    So, I copied all the files to my Arcana Evolved rules set folder, then started changing all the info for the character classes in classes.xml, when I found this line:

    [code]<linklist><link class="spelllist" recordname="bard">Bard spell list</link></linklist>[/cpde]

    So, I thought, this must be how one creates that linkage nested within the windows opened by the links in the class window of the srd. So, I examined the results in the d20 set in FG, then went back and examined the spelllists.xml file.

    Here is what I saw:

    Code:
    <node name="spells">
    		<node name="bard">
    			<stringvalue name="description" value="Bard Spells" />
    			<node name="spell">
    				<node name="dancinglights">
    					<stringvalue name="name" value="Dancing Lights" />
    					<intvalue name="level" value="0" />
    					<stringvalue name="shortdescription" value="Creates torches or other lights." />
    				</node>
    etc etc

    So, I thought, AHA! There it is! I wanted to start by creating a link within the Champion character class info to the subclasses that class has. So, I created a file called: ClassInfo.txt, and put in the following node:

    Code:
    <root>
    	<node name="Class_Specs">
    		<node name="Champion">
    			<stringvalue name="information" value="Champion Subclasses"/>
    				<node name="SubChampions">
    				<node name="Light">
    					<stringvalue name="name" value="Champion of Light"/>
    					<stringvalue name="shortdescription" value="Avatar for truth and justice"/>
    				</node>
    			</node>
    		</node>
    	</node>
    </root>
    Just adding in the champion of light to see if it would work. I hadn't done anything else, such as add any reference to this file. All I did was add it into base.xml.

    As long as that reference is there, its causing FG to crash during loading, every single time. I don't see why it would, unless there is a class name conflict or something?

    Or does it need to be referenced in some fashion by the rest of the xml?

    I could probably eventually figure it out, by going through and reading ALL the xml, but I thought it would be a LOT faster and easier to ask those who already know the xml files intimately.

  2. #2
    Stuart's Avatar
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    741
    Digital Adventures are working on an official Arcana Evolved ruleset - Thore will make an announcement some time soon but I would expect something to hit the virtual shelves after 2-3 weeks, save yourself some pain !

  3. #3
    NO! I like programming too! :P

    I mean, if its done quickly, thats fine. But still, I want to learn how to do it with the easy stuff because, eventually, I have some really hard stuff I'm going to be working on.

    :P

  4. #4
    I tried your code and didn't get any errors.

    Are you sure you have right reference in base.xml?
    It should be:
    <staticdata source="rulesets\YourRuleset\database\ClassInfo.tx t" />

    If it points to wrong file (or null file), error occurs.

  5. #5
    txt or xml? Yours says txt, but its an xml file.

  6. #6
    Quote Originally Posted by Morfedel
    So, I created a file called: ClassInfo.txt...
    So does your example. Theoritcally it would work either way as long as both were declared in the right place and located where it thinks it is supposed to be.

  7. #7
    Oops, you're right, I did call it .txt in the example. Well, its .xml here on the computer. Or I thought it was.

    And that was my problem. I had thought I'd saved it as .xml, and instead saved it as .txt, while referring to it in base.xml as .xml. It couldn't thus find the right file, heh.

    So... now the code isn't crashing. Next step is to try and get it to display....

  8. #8
    Stuart's Avatar
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    741
    The answer to getting it to display is to check your link class and window class references and the file d20_Reference.xml.

  9. #9
    Yeah, I figgered Doing that tonight.

  10. #10
    BUMP!

    Not because I need an answer, but I ended up moving, and didn't want this to get too buried. I'm actually looking at this tomorrow night.

    I'll reply to this either way tomorrow night or the night after!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in