-
November 8th, 2020, 12:42 #1
Prevent extension from loading in Unity
Is there an xml tag or something to make Extensions unavailable in Unity?
I know I can prevent scripts from running but I'd ideally like to make it not show up at all or be greyed out.
Basically the minrelease/maxrelease options we have for ruleset version but for FG's version.bmos' extensions
he/them
-
November 8th, 2020, 15:21 #2
Not sure what you mean. If you don't have an extension .ext file in your "extensions" subdirectory (wherever you downloaded Fantasy Grounds Unity) you will not see the extension listed in the load campaign option. Otherwise, if you are talking about seeing or having it IN your campaign - you just uncheck the option for that particular extension when you are about to load the campaign.
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
November 8th, 2020, 15:55 #3
Last edited by bmos; November 8th, 2020 at 17:27.
bmos' extensions
he/them
-
November 8th, 2020, 16:33 #4Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
November 8th, 2020, 17:26 #5bmos' extensions
he/them
-
November 8th, 2020, 18:00 #6
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,548
You could add a message that gets added to the chat window on the onDesktopInit event that puts up an obnoxious message in the chat window (giant red X icon, or something similar) if it's not compatible using Interface.getVersion() function to check the client version.
There's no mechanism to limit an extension load based on client version.
Regards,
JPG
-
November 8th, 2020, 18:01 #7
I'm not aware of any extension.xml entry you can use by default - but I imagine you could make a function call to determine which you are in and put out a chat messages and disable any of your own code in your extension. I'm sure there is a function call i've seen/used in 5e.pak or CoreRPG.pak that does that sort of determination.
Edit: Sneaky Moon Wizard undercut me - but yeah what we said.Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
November 8th, 2020, 19:41 #8
Thank you both
I will take that approach.bmos' extensions
he/them
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks