-
February 8th, 2022, 08:59 #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.
-
February 8th, 2022, 14:51 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
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
-
February 8th, 2022, 15:32 #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" }, }, }, }, };
Code:_tDataModuleSets = { ["host"] = { { name = "Chronicle", modules = { { name = "Chronicle", displayname = "Chronicle" }, }, }, }, };
Last edited by Mephisto; February 8th, 2022 at 15:36.
-
February 8th, 2022, 15:52 #4
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!
-
February 8th, 2022, 16:03 #5
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks