PDA

View Full Version : Problems seeing entries in an library module



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.

Doswelk
March 6th, 2010, 14:40
Not having the ruleset in question this is just a guess but I think this line is the issue:

<source type="string">reference.classicspellist@Classic</source>
Try:

<source type="string">reference.classicspellist@Classic Magic</source>

peterb
March 6th, 2010, 15:08
Yep, that was the problem. Thanks for spotting it!

I thought you needed to use the name of the library entry (in my case "Classic" since the library entry tag is "<Classic static="true">"). Obviously I was wrong, you need to use the value of the name tag. Well, you learn something new everyday. My previous library modules all have the same name as the library entry tag, so this problem have never occurred until now.