Thread: Extension dependencies
-
February 9th, 2011, 12:24 #1
Extension dependencies
I am facing difficulties in getting extension dependencies to work. I have created two extension, first one is the for RPG rules and second is for RPG setting. Setting extension is dependent on rules but I haven't managed making this extension dependencies work. They do display in the extension list but there is this red mark (denied) over the setting extension, which I believe means that dependencies are not met. Below are the <property> tags of both extensions. I wonder what's wrong in them.
Code:Rules extension ... <properties> <name>rules Cinematic Unisystem</name> <version>2</version> <author>Eden Studios / Heikkinen</author> <description>Cinematic Unisystem rules for Unicore ruleset</description> <ruleset> <name>Unicore_dev</name> </ruleset> <ruleset> <name>Unicore</name> </ruleset> <exclusiongroup>Rules</exclusiongroup> </properties> ... Setting extension. This extension is dependednt to the rules extension. ... <properties> <name>setting Ghost of Albion</name> <version>2</version> <author>Eden Studios / Heikkinen</author> <description>Ghost of Albion setting for Unicore ruleset</description> <ruleset> <name>Unicore_dev</name> </ruleset> <ruleset> <name>Unicore</name> </ruleset> <exclusiongroup>Setting</exclusiongroup> <dependency> <name>rules Cinematic Unisystem</name> </dependency> </properties> ...
"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
February 9th, 2011, 17:52 #2
Problem in launcher?
I am starting to doubt very much that this issue is because FG does the extension dependency check wrong in launcher code. If I create brand new campaign these extension dependencies are displayed as "Broken" (red cross on them) and they cannot be selected anyhow. Not even if the master extension (to which this another extension is depended on) is enabled.
To have any progress I must hack the campaign data manually by adding this dependent extension to extensionstate.xml file. After that if I reopen FG I don't see the broken icon anymore, only faded checkicon if I have selected the dependent extension without enabling the master extension. However if I enable the master extension the faded checkicon changes to normal one.
When taking even more closer look at this issue it, I found the following from launcher.pak:
desktep_templates.xml lines 461-470
Code:... if rulesetok and dependenciesok then local w = createWindow(); w.name.setValue(k); w.name.setup(); elseif rulesetok then local w = createWindow(); w.name.setValue(k); w.name.setup(); w.checked.setState("extension_broken"); end ...
could someone on FG Staff side take alook on this? It's a blocker on my side as I want to avoid hacked all my campaign files's extensionstate.xmls"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
February 9th, 2011, 18:00 #3
I did a quicktest and commented out the line 469 on launcher.pak desktop_templates.xml file and it made the extension dependency work again. Still I don't know if there is more magic about removing this "broken state" from the launcher, but I know that that broken state is not referenced anywhere else in the launcher code
"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
February 19th, 2011, 14:04 #4
Is this bug going to be addressed? This temporary fix will fail on every FG update as the lancher's pak is downloaded again.
"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
February 20th, 2011, 01:27 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,598
Contacted you via forum mail to get more information.
Regards,
JPG
-
February 20th, 2011, 02:46 #6
I attached two very simply extension that have dependencies: Ext2 is dependent to Ext1. However when creating new campaign I can't select Ext2 anyhow because it's seen as broken extension.
Last edited by Ikael; January 31st, 2013 at 08:55.
"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
February 21st, 2011, 02:30 #7
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,598
OK, I found it. BTW, thanks for the nice simple examples.
The actual lines at issue are higher up in the code:
Code:if (dv.minversion == 0 or reqext.version >= dv.minversion) and (dv.maxrelease == 0 or reqext.version <= dv.minversion) then else failed = true; end
Code:if (dv.minversion == 0 or reqext.version >= dv.minversion) and (dv.maxversion == 0 or reqext.version <= dv.maxversion) then else failed = true; end
Thanks,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks