peterb
March 6th, 2010, 13:35
I'm having some annoying problems with a library module.
I'm trying to create a spell list. I've parsed a BRP pdf and extracted the info about a lot of spells from it.
The module shows upp in FG. I can open it. I can see it in the library. I can open it in the library and I can click on the link to the index "All spells", but no spells show up. I've reduced the common.xml to but one entry with just a minimum of text - the spell still doesnt show up.
I the error is probably an stupid one but I can't see it.
The definition.xml looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<name>Classic Magic</name>
<author>Peter Brink</author>
<ruleset>BRP</ruleset>
</root>
My very short common.xml looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">
<library>
<Classic static="true">
<name type="string">Classic Magic</name>
<categoryname type="string">BRP Essentials</categoryname>
<entries>
<section-001>
<librarylink type="windowreference">
<class>referenceindex</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Classic Fantasy Spells</name>
<index>
<id-00000>
<listlink type="windowreference">
<class>referencespells</class>
<recordname>..</recordname>
</listlink>
<name type="string">All Spells</name>
<type type="string">Sorcery</type>
<source type="string">reference.classicspellist@Classic</source>
</id-00000>
</index>
</section-001>
</entries>
</Classic>
</library>
<reference>
<classicspellist>
<id-001>
<name type="string">Acid Fog</name>
<type type="string">Sorcery</type>
<text type="formattedtext">
<p>Class: Magic-user</p>
</text>
</id-001>
</classicspellist>
</reference>
</root>
What could possibly be wrong?
ps. I'be attached a screenshot ds.
I'm trying to create a spell list. I've parsed a BRP pdf and extracted the info about a lot of spells from it.
The module shows upp in FG. I can open it. I can see it in the library. I can open it in the library and I can click on the link to the index "All spells", but no spells show up. I've reduced the common.xml to but one entry with just a minimum of text - the spell still doesnt show up.
I the error is probably an stupid one but I can't see it.
The definition.xml looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<name>Classic Magic</name>
<author>Peter Brink</author>
<ruleset>BRP</ruleset>
</root>
My very short common.xml looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">
<library>
<Classic static="true">
<name type="string">Classic Magic</name>
<categoryname type="string">BRP Essentials</categoryname>
<entries>
<section-001>
<librarylink type="windowreference">
<class>referenceindex</class>
<recordname>..</recordname>
</librarylink>
<name type="string">Classic Fantasy Spells</name>
<index>
<id-00000>
<listlink type="windowreference">
<class>referencespells</class>
<recordname>..</recordname>
</listlink>
<name type="string">All Spells</name>
<type type="string">Sorcery</type>
<source type="string">reference.classicspellist@Classic</source>
</id-00000>
</index>
</section-001>
</entries>
</Classic>
</library>
<reference>
<classicspellist>
<id-001>
<name type="string">Acid Fog</name>
<type type="string">Sorcery</type>
<text type="formattedtext">
<p>Class: Magic-user</p>
</text>
</id-001>
</classicspellist>
</reference>
</root>
What could possibly be wrong?
ps. I'be attached a screenshot ds.