Thread: How Do I Create Modules?
-
July 4th, 2012, 03:55 #11
Does the name "3.5E Custom Rules" match with the name in definition.xml?
-
July 4th, 2012, 08:31 #12
Lesser Deity
- Join Date
- Mar 2006
- Location
- Arkansas
- Posts
- 7,412
In the code above you path over to @3.5E Basic Rules twice you have to change it in both places (in red).
Code:<?xml version="1.0" encoding="ISO-8859-1"?> <root version="2.0"> <library static="true"> <d20basicrules> <name type="string">3.5E Custom Rules</name> <categoryname type="string">3.5E Custom Rules</categoryname> <entries> <test> <librarylink type="windowreference"> <class>referencetext</class> <recordname>..</recordname> </librarylink> <name type="string">Test</name> <text type="formattedtext"> </text> </test> <customclasses> <librarylink type="windowreference"> <class>referenceindex</class> <recordname>[email protected] Basic Rules</recordname> </librarylink> <name type="string">Classes</name> </customclasses> </entries> </d20basicrules> </library> <reference> <customclasses> <warlock> <name type="string">Warlock (Collaborator)</name> <text type="formattedtext"> <h>Warlock</h> <p> This is where the warlock text should go. </p> <name type="string">Warlock</name> </text> </warlock> </customclasses> </reference> <lists> <customclasses> <name type="string">Classes</name> <index> <warlock> <listlink type="windowreference"> <class>referencetextwide</class> <recordname>[email protected] Basic Rules</recordname> </listlink> <name type="string">Warlock</name> </warlock> </index> </customclasses> </lists> </root>
Last edited by Griogre; July 4th, 2012 at 08:36.
-
July 4th, 2012, 16:03 #13Originally Posted by markjlyon
This is Griogre's description of how to create your own module where you want to merge the lists with an existing module. For one where list merging isn't required, it's even simpler - just miss out the steps that relate to that aspect.
There's also SoulOfTheReaver's guide, which is rather more involved:
www.fantasygrounds.com/forums/showthread.php?t=12948
Originally Posted by markjlyon
Originally Posted by markjlyon
-
July 4th, 2012, 23:53 #14
Failed
I changed all the tags to be unique and now it doesn't load at all.
Can someone please point me to an example that actually works?
-
July 4th, 2012, 23:55 #15
Two links with instructions failed
Thank you for posting the instructions but they must be for a different or older version of FGII as neither of them work.
Again, can someone please post a working example?
-
July 5th, 2012, 00:42 #16
try callums suggestion of stripping everything out of an existing module.
check it still loads.
then load in your data bit by bit and see what happens.
-
July 5th, 2012, 05:08 #17Originally Posted by markjlyon
-
July 5th, 2012, 05:25 #18
Basic Module Example
Here is an example module: Attachment 2685
This only has the Barbarian class and was created by taking the 3.5E Basic Rules module and doing the following.
- Renaming the name in definition.xml and client.xml from "3.5E Basic Rules" to "3.5E Example"
- Removing all other entries in client.xml except those relating to Barbarian.
- Doing a search for "@3.5E Basic Rules" and replacing with "@3.5E Example".
This is basically what Callum and damned suggested earlier in this thread.
This now results in a top level (<entries>) of only Classes and License. If you click the "Classes" link (<recordname>[email protected] Example</recordname>) this will open the lists.classes index entry in the module 3.5E Example (this module) - which has only 1 entry, "Barbarian" with a link attached - <recordname>[email protected] Example</recordname>. Which, when you select will open the references.classes.barabarian entry in the 3.5E Example module (this module).
Hope this helps.
-
July 5th, 2012, 12:57 #19Originally Posted by markjlyon
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks