5E Product Walkthrough Playlist
  1. #1

    Issue with single word module name

    Hi there,
    I encountered a strange behavior when I tried to load a module automatically via the campaign setup. FGU reported the module as “Not installed”. Looking onto the code this was triggered as the record “info” always came up empty. Strangely the problem vanished once I renamed the module file name from “Chronicle” to “Chronicle Ruleset Data”. All modules I tested which consisted of more than one word seem to work fine. It might be a bug if the modules name only consists of one word only.

  2. #2
    You have to make sure that you are loading the value from the module "name" tag (which is the internal key used to reference the module data for links and activate/deactivate), not the module "displayname" tag.

    Regards,
    JPG

  3. #3
    I did. :-)

    This works, if filename is "Chronicle Ruleset Data.mod":
    Code:
    _tDataModuleSets = 
    {
    	["host"] =
    	{
    		{
    			name = "Chronicle Ruleset Data",
    			modules =
    			{
    				{ name = "Chronicle Ruleset Data", displayname = "Chronicle Ruleset Data" },
    			},
    		},
    	},
    };
    This doesn't, if filename is "Chronicle.mod":
    Code:
    _tDataModuleSets = 
    {
    	["host"] =
    	{
    		{
    			name = "Chronicle",
    			modules =
    			{
    				{ name = "Chronicle", displayname = "Chronicle" },
    			},
    		},
    	},
    };
    The mod file itself is identical, I just changed the file name.
    Last edited by Mephisto; February 8th, 2022 at 15:36.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    Look in the module definition.xml file - the <name> tag Moon Wizard is referring to is in that file - in the module, not the desktop LUA or the .mod filename.
    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
    Ah, thanks! I see. That's probably it.

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