DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #11
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,470
    Does the name "3.5E Custom Rules" match with the name in definition.xml?

  2. #12

    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>
    Also since you are using root version 2.0 I would suggest you use more unique names for some of your XML elements to avoid any combining problems. I would put your list under the reference node and change the name of the node to from reference to something unique like ref35Custom
    Last edited by Griogre; July 4th, 2012 at 08:36.

  3. #13
    Quote Originally Posted by markjlyon
    Can someone please point me to an example or instructions on how to make a module?
    https://www.fantasygrounds.com/forum...27&postcount=6

    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

    Quote Originally Posted by markjlyon
    Please don't "help" by telling me to look at mods that come with FGII. They include no examples or instructions and are worthless for creating your own modules.
    Well, that's exactly how I did it (along with the instructions linked above). I think the best way is to start with an existing module, then strip everything out that you don't need, and put your own stuff in.

    Quote Originally Posted by markjlyon
    I have custom record names, correctly named tags, have them in the correct hierarchies. There must be something you have to edit outside the module itself to instruct FGII to run modules. Whatever you have to do to instruct FGII to accept a module is completely undocumented.
    There isn't anything needed outside the module itself. If it won't work, there's probably something wrong in your custom tags or hierarchies.

  4. #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?

  5. #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?

  6. #16
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,704
    Blog Entries
    1
    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.

  7. #17
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,470
    Quote Originally Posted by markjlyon
    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?
    Or, how about posting your *full* module here (not just a snip from the code within the module) so that we can point you in the right direction?

  8. #18
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,470

    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.

    1. Renaming the name in definition.xml and client.xml from "3.5E Basic Rules" to "3.5E Example"
    2. Removing all other entries in client.xml except those relating to Barbarian.
    3. 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.

  9. #19
    Quote Originally Posted by markjlyon
    Thank you for posting the instructions but they must be for a different or older version of FGII as neither of them work.
    The "Merging new spells in with the d20 Spells module" instructions are for an earlier version of FG, where the default ruleset was called d20. This has been replaced by 3.5E in the more recent versions of FG. However, other than that name change, the instructions should work - I've used that process for making new 3.5E modules. Where exactly did it go wrong for you?

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
  •  
5E Product Walkthrough Playlist

Log in

Log in