Thread: Load order of extensions
-
October 6th, 2019, 01:46 #1
Load order of extensions
Hi
I might have a question which is probably already asked before but I only found very old threads about that subject such that I do not know how actual the answers are
My problem is that some of my extensions for 3.5e/PF1 are incompatible with other ones, I normally then provided combined extensions to make them compatible but, although it is often straightforward to merge the code, it is tedious and when one is not careful then one copies some part of the code to the wrong file etc. Especially when there is a new bigger update for FG or when I make updates on my own extensions then I have to redo this merging more or less and I try to reduce this work. On one hand I could simply just make one big extension but not everyone does want to use all provided extensions and so I still want to provide the possibility to choose which extensions are loaded. Adding options in the option menu might clutter the options, so I am not sure if that would be suitable
I've seen in the enhanced images extension of Trenloe and Zeus that there is some loadorder tag. Is it "easy" to use or should one be careful when using it (when searching the forums I just found a lot of warnings about playing with the load order of extensions, but it were old threads and it was not really clear to me what the procedure is and where the problems are)? And is there information about how this tag is used? I would like to use it in such a way that my extensions are loaded at the end such that my changes are not overwritten and my code is then adjusted by if-clauses which measure if some other extension is loaded (and I hope that this is possible somehow); when the other extension is loaded then the code looks like the merged code, otherwise just the standard code with my adjustments. In that way I hope to avoid package-extensions in the future
Thanks in advance
Best,
KelrugemLast edited by Kelrugem; October 6th, 2019 at 01:57.
My extensions for 3.5e and Pathfinder
Bug reports please here
-
October 6th, 2019, 03:34 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
The loadorder tag simply specifies the order in which the extensions are loaded. Extensions with a lower number are always loaded before a higher number. If they have the same number (such as the default of zero), then there is no guaranteed load order.
It's a pretty simple feature, and there is no "standard" of what load order tags should be used. It's basically a mechanism to allow extension creators to work with others to fine tune load order.
Regards,
JPG
-
October 6th, 2019, 03:44 #3
And for the record, all of the DOEs have a LoadOrder of 50 (as per the DOE documentation) - except for the DOE:Base, which *must* be loaded first, and it has a LoadOrder of 40.
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
October 6th, 2019, 03:47 #4
Aaah, okay, thank you very much both for your answers, that sounds indeed simple I thought as such but I rather wanted to ask first, not that I miss something crucial
Thanks a lot, then I play with that a bitMy extensions for 3.5e and Pathfinder
Bug reports please here
-
October 6th, 2019, 23:32 #5
It seems to me that even a very rough recommended list would be helpful. Maybe something like;
Ruleset modifications 10-39
Enhanced functionality 40-79
Themes 80-99
Would that make sense in a majority (Not all!) cases?
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
October 7th, 2019, 03:04 #6
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
October 7th, 2019, 05:15 #7
Okay, I got that working with picking loadorder of 39 (for a loadorder of 5 I couldn't assure that my extension is loaded after some other extension for some reason; am I right that extensions without any loadorder are loaded first (in random order but before extensions with defined loadorder) or do they get a random loadorder in the range/interval of the number of loaded extensions?).
I then wanted to use this function here https://www.fantasygrounds.com/refdo...#getExtensions, but
Code:Extension.getExtensions();
Code:Script Error: [string "scripts/manager_action_attack.lua"]:24: attempt to index global 'Extension' (a nil value)
Last edited by Kelrugem; October 7th, 2019 at 05:32.
My extensions for 3.5e and Pathfinder
Bug reports please here
-
October 7th, 2019, 14:25 #8
The loadorder is really not based on the functionality, it's based on what gets modified, what other extensions that extension needs to override (if any) and what the likelihood of other extensions modifying that code will be. The extension that loads last overwrites earlier loaded extensions.
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!
-
October 7th, 2019, 17:59 #9
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
October 7th, 2019, 18:02 #10Private 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!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks