Fantasy Grounds Fridays Pre
  1. #1

    Block a extension loading from ruleset?

    Is it possible to block a ruleset from loading an extension? I'm merging a extension into a ruleset and I want to make sure that the "extension" version of it cannot be loaded on top and cause issues. Is this possible?
    ---
    Fantasy Grounds AD&D Content Bundle (All The AD&D Content)
    Documentation for AD&D 2E ruleset.
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  2. #2
    No, there is no mechanism to block extensions.

    Regards,
    JPG

  3. #3
    You should be able to detect it on desktop initialization and display a warning though
    My creations: https://github.com/MeAndUnique/FantasyGrounds
    Discord: MeAndUnique#6805

  4. #4
    Good idea. You could add a big warning in the chat window that they should unload the extension from the ruleset code. The ruleset and extensions should be loaded and identifiable during global script initialization and onDesktopInit event.

    JPG

  5. #5
    Quote Originally Posted by Moon Wizard View Post
    Good idea. You could add a big warning in the chat window that they should unload the extension from the ruleset code. The ruleset and extensions should be loaded and identifiable during global script initialization and onDesktopInit event.

    JPG
    I'm good, I was hoping there was an API for it so I'd not have to write the functionality. I don't think it'll be that big of a issue but figured I'd check before I called it done.
    ---
    Fantasy Grounds AD&D Content Bundle (All The AD&D Content)
    Documentation for AD&D 2E ruleset.
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SWADE Playlist

Log in

Log in