DICE PACKS BUNDLE
  1. #1
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384

    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!

  2. #2
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384

    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
    ...
    here the extension is marked as broken is dependences are not met. However, after that the broken state is never references in the launcher_campaignextensionentry windowclass's line 331-347 (onClickDown function) so its state can never change if it has anytime gone to that.

    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!

  3. #3
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    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!

  4. #4
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    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!

  5. #5
    Contacted you via forum mail to get more information.

    Regards,
    JPG

  6. #6
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    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!

  7. #7
    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 &gt;= dv.minversion) and
    	   (dv.maxrelease == 0 or reqext.version &lt;= dv.minversion) then
    else
    	failed = true;
    end
    Replace with these lines:

    Code:
    if (dv.minversion == 0 or reqext.version &gt;= dv.minversion) and
    	   (dv.maxversion == 0 or reqext.version &lt;= dv.maxversion) then
    else
    	failed = true;
    end
    I'll add to v2.7.5 patch list over the next couple days.

    Thanks,
    JPG

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
  •  
STAR TREK 2d20

Log in

Log in