STAR TREK 2d20
  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244

    Module files and tags

    From what I understand if I create a module with the db.xml file inside then it is intended for the master, while if it
    contains the client.xml file it is intended for the players.

    Is it possible to create a module with both files or do I have to generate two separate modules?

    Second question: I'm not clear what the category tag is for. Can you help me?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,735
    No, you can't create a module with both a db and a client. And you are correct client.xml is for player modules (and default to such meaning they default to being shared); and db is for the GM.

    See here for details of the categories to use https://fantasygroundsunity.atlassia...les+-+Overview

    The category is a description of what the module is; Adventure, Core Rules, Supplement etc.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Ty Zaccheus.

    Is the category for descriptive purposes only? I see it being used in some modules and it's placed inside other tags.
    I tried to look in the guide, but I'm not clear what it takes to put it inside a tag. What's involved in putting it there?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    Category is used in two places. Which one are you referring to? Category in definition.xml or category in client.xml/db.xml?

    Category in definition.xml is the heading that the module will be listed under (when activated) in the left side of the Modules window - "Adventures", "Core Rules", etc.. As described here: https://fantasygroundsunity.atlassia...iew#Categories

    Category in client.xml/db.xml determines if the data is listed in the campaign data lists with a group name different from the name of the module.
    Last edited by Trenloe; November 20th, 2022 at 16:11.
    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
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Category in client.xml/db.xml
    For example in a module I find this:
    Code:
      <tables>
        <category name="D&amp;D Basic Rules - DM" baseicon="2" decalicon="1">
          <tab_ringofresistance>
    
    or 
    
        <imagedata>
          <category name="D&amp;D Basic Rules - DM" baseicon="2" decalicon="1">
            <img_banner_jpg>
    What do they do? Change the display name inthe list? In the definition.xml name and displayname are the same
    Code:
      <name>DD Basic Rules - DM</name>
     ...
      <displayname>D&amp;D Basic Rules - DM</displayname>
    I'm confused... I know, I'm slow to understand (but very willing )
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    Quote Originally Posted by Xarxus View Post
    Category in client.xml/db.xml
    For example in a module I find this:
    Code:
      <tables>
        <category name="D&D Basic Rules - DM" baseicon="2" decalicon="1">
          <tab_ringofresistance>
    
    or 
    
        <imagedata>
          <category name="D&D Basic Rules - DM" baseicon="2" decalicon="1">
            <img_banner_jpg>
    What do they do? Change the display name inthe list?
    This determines the Group name the data will be displayed within. If there is no category then the default group name will be used = the module name.

    https://fantasygroundsunity.atlassia...ies+...#Groups

    Quote Originally Posted by Xarxus View Post
    In the definition.xml name and displayname are the same
    Code:
      <name>DD Basic Rules - DM</name>
     ...
      <displayname>D&D Basic Rules - DM</displayname>
    I'm confused... I know, I'm slow to understand (but very willing )
    Refer to here: https://fantasygroundsunity.atlassia...File-Structure

    Name = the base module name that will be used for identifying data records - e.g. item.id-0001@<module name>
    Display Name = the name that will be displayed to the user in FG.
    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!

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
  •  
FG Spreadshirt Swag

Log in

Log in