PDA

View Full Version : Module files and tags



Xarxus
November 20th, 2022, 08:08
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?

Zacchaeus
November 20th, 2022, 08:58
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.atlassian.net/wiki/spaces/FGCP/pages/996644347/Building+Modules+-+Overview

The category is a description of what the module is; Adventure, Core Rules, Supplement etc.

Xarxus
November 20th, 2022, 09:55
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?

Trenloe
November 20th, 2022, 16:08
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.atlassian.net/wiki/spaces/FGCP/pages/996644347/Building+Modules+-+Overview#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.

Xarxus
November 20th, 2022, 17:27
Category in client.xml/db.xml
For example in a module I find this:
<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
<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 ;) )

Trenloe
November 20th, 2022, 18:00
Category in client.xml/db.xml
For example in a module I find this:
<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.atlassian.net/wiki/spaces/FGCP/pages/996640928/Managing+Campaign+Data+-+Stories+Tables+Categories+...#Groups


In the definition.xml name and displayname are the same
<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.atlassian.net/wiki/spaces/FGCP/pages/996644362/Module+Data+File+Overview#Module-Definition-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.