5E Product Walkthrough Playlist
Page 1 of 2 12 Last
  1. #1

    Module creation - links, etc.

    It's been a while since I worked on creating a module in FG, and recent updates have made some changes to the interface that I'm attempting to familiarize myself with.

    The reference library XML is fine, and I have no issues with that, but what I'm not quite finding the solution for is how to link specific sections of the interface directly in the Library section, as the newer modules are doing. For example, in the CoC 7E ruleset - using the Amidst the Ancient Trees scenario as my reference - when one opens up the Library button there are links directly to the Story, Chases, Images, NPCs, and Tables sections:



    According to the Campaign and Module Data File Overview on the Wiki, it appears that this (maybe?) is done via the <storytemplate> tag (or <reference.storytemplate> tag), but so far I'm not having any luck with this - primarily because I can't find any syntax associated with it for reference. Does anyone know of any other places I can look to find the necessary info I need on this?

    Ultimate License Holder!
    Anyone can play!
    Timzone:
    US Central (-6 GMT)

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Export the module with the "Read Only" option will create these links in the library.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    Hi Trenloe -

    Thanks, that worked, and gave me the XML code I needed. However, is it possible by chance to organize the entries a bit better? In my test MOD, the list order in the Library follows an alphabetical structure according to the name of the <entry> label... for example:

    Code:
    <library>
            <test1 static="true">
                <categoryname type="string">Scenario</categoryname>
                <name type="string">test1</name>
                <entries>
                    <section-00>
                        <librarylink type="windowreference">
                            <class>referencetextwide</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">01. Example Library Entry</name>
                        <text type="formattedtext">
                            <h>Example Heading</h>
                            <p>----------------------------------------</p>
                        </text>
                    </section-00>
                    <section-01>
                        <librarylink type="windowreference">
                            <class>referencetextwide</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">02. Example Library Entry Two</name>
                        <text type="formattedtext">
                            <h>Example Heading</h>
                            <p>----------------------------------------</p>
                        </text>
                    </section-01>
                    <battle>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">3. Encounters</name>
                        <recordtype type="string">battle</recordtype>
                    </battle>
                    <image>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">4. Images</name>
                        <recordtype type="string">image</recordtype>
                    </image>
                    <item>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">5. Items</name>
                        <recordtype type="string">item</recordtype>
                    </item>
                    <npc>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">6. NPCs</name>
                        <recordtype type="string">npc</recordtype>
                    </npc>
                    <story>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">7. Story</name>
                        <recordtype type="string">story</recordtype>
                    </story>
                </entries>
            </test1>
    </library>
    When this is displayed in the Library section of FG, instead of the order structure in the code above, the order instead comes out like this:

    Code:
    3. Encounters
    4. Images
    5. Items
    6. NPCs
    1. Example Library Entry
    2. Example Library Entry Two
    7. Story
    Last edited by Casimir; February 27th, 2018 at 14:37. Reason: Fixed code entriy

    Ultimate License Holder!
    Anyone can play!
    Timzone:
    US Central (-6 GMT)

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Quote Originally Posted by Casimir View Post
    However, is it possible by chance to organize the entries a bit better? In my test MOD, the list order in the Library follows an alphabetical structure according to the name of the <entry> label..
    Manually edit the tag names, but don't change any of the other data.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5
    If you are referring to the <name type="string"></name> tag, I tried that in the example above with unsuccessful results. FG seems to order the Library <entry> objects according to their tag entry name and ignores (or, it has with me so far) the <name type="string"></name> tag when it orders the list.

    If you aren't referring to that specific tag, I'm not sure which one you are referring to.

    Also, for reference, I'm working with the Call of Cthulhu 7th Edition ruleset with this.
    Last edited by Casimir; February 27th, 2018 at 15:52. Reason: CoC 7th Ed. notation

    Ultimate License Holder!
    Anyone can play!
    Timzone:
    US Central (-6 GMT)

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Sorry, I was referring to the names within the XML tag for each section - not the "name" tag.

    Change the names of the tags (both start and finish) of the highlighted tags below:

    Code:
    <library>
            <test1 static="true">
                <categoryname type="string">Scenario</categoryname>
                <name type="string">test1</name>
                <entries>
                    <section-00>
                        <librarylink type="windowreference">
                            <class>referencetextwide</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">01. Example Library Entry</name>
                        <text type="formattedtext">
                            <h>Example Heading</h>
                            <p>----------------------------------------</p>
                        </text>
                    </section-00>
                    <section-01>
                        <librarylink type="windowreference">
                            <class>referencetextwide</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">02. Example Library Entry Two</name>
                        <text type="formattedtext">
                            <h>Example Heading</h>
                            <p>----------------------------------------</p>
                        </text>
                    </section-01>
                    <battle>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">3. Encounters</name>
                        <recordtype type="string">battle</recordtype>
                    </battle>
                    <image>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">4. Images</name>
                        <recordtype type="string">image</recordtype>
                    </image>
                    <item>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">5. Items</name>
                        <recordtype type="string">item</recordtype>
                    </item>
                    <npc>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">6. NPCs</name>
                        <recordtype type="string">npc</recordtype>
                    </npc>
                    <story>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">7. Story</name>
                        <recordtype type="string">story</recordtype>
                    </story>
                </entries>
            </test1>
    </library>
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  7. #7
    Great, that worked perfectly - thanks!

    I thought about that before, but didn't edit those particular tags as I thought they were specific and couldn't be changed.

    Ultimate License Holder!
    Anyone can play!
    Timzone:
    US Central (-6 GMT)

  8. #8
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    Quote Originally Posted by Trenloe View Post
    Sorry, I was referring to the names within the XML tag for each section - not the "name" tag.

    Change the names of the tags (both start and finish) of the highlighted tags below:

    Code:
    <library>
            <test1 static="true">
                <categoryname type="string">Scenario</categoryname>
                <name type="string">test1</name>
                <entries>
                    <section-00>
                        <librarylink type="windowreference">
                            <class>referencetextwide</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">01. Example Library Entry</name>
                        <text type="formattedtext">
                            <h>Example Heading</h>
                            <p>----------------------------------------</p>
                        </text>
                    </section-00>
                    <section-01>
                        <librarylink type="windowreference">
                            <class>referencetextwide</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">02. Example Library Entry Two</name>
                        <text type="formattedtext">
                            <h>Example Heading</h>
                            <p>----------------------------------------</p>
                        </text>
                    </section-01>
                    <battle>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">3. Encounters</name>
                        <recordtype type="string">battle</recordtype>
                    </battle>
                    <image>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">4. Images</name>
                        <recordtype type="string">image</recordtype>
                    </image>
                    <item>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">5. Items</name>
                        <recordtype type="string">item</recordtype>
                    </item>
                    <npc>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">6. NPCs</name>
                        <recordtype type="string">npc</recordtype>
                    </npc>
                    <story>
                        <librarylink type="windowreference">
                            <class>reference_list</class>
                            <recordname>..</recordname>
                        </librarylink>
                        <name type="string">7. Story</name>
                        <recordtype type="string">story</recordtype>
                    </story>
                </entries>
            </test1>
    </library>

    Hey Trenloe, is there a place describing the new reference list syntax/entries?


    Like, if I made it thus:

    Code:
    				<x03classes>
    					<librarylink type="windowreference">
    						<class>reference_list</class>
    						<recordname>..</recordname>
    					</librarylink>
    					<name type="string">Classes</name>
    					<recordtype type="string">class</recordtype>
    				</x03classes>
    (or however it needs to be, if I did it wrong)

    ... what would I need to also have in the file? Could you give me a tiny skeleton?


    Simply putting the following in does not populate "Classes" button if click it, but if I did the prior way I knew using:
    <lists><classes><byletter>... ... </byletter></classes></lists>

    It does show up in Classes popup.

    Code:
    ...
    <reference>
    		<classes>
    			<fighter>
    				<!-- #Replace fighter with the name of the class wherever you see it -->
    				<name type="string">Fighter</name>
    				<text type="formattedtext">
    					<!-- #Following the class format of the PHB, the following sections are for the 
    						 description sections and advice for making a character -->
    					<h>Fighter</h>
    					<p>xxDescriptionIntro</p>
    ...
    			</fighter>
    		</classes>
    </reference>


    Hopefully I expressed myself clear enough, I find it hard without back and forth talking

  9. #9
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    @Varsuuk I recommend you create a few classes in a campaign then export to a module with the "Read only" option selected. This will create the <library> entries for you and the appropriate data hanging off there.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  10. #10
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    Will do, in bed now so will try tomorrow. Previously only did classes with parse and hand postprocessing if needed. But that was for 5e, now it’s for one I am trying to do layered off CoreRPG. Don’t recall seeing a way to add classes in CoreRPG but will look again, since wasn’t trying to do that may have missed it.

    Otherwise, I can try in 5e. But, as I said, I can get it to work with the older colindex etc way, I was trying to understand how to do with the <recordname>..</recordname> does exporting use the newer way? Like said, I can get it to work if I do the manual byletter xml.

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
  •  
Starfinder Playlist

Log in

Log in