5E Storm Kings Thunder Playlist
  1. #1

    Force Calandar load in ruleset.

    I am wanting to force the Calendars module to load automatically from within the ruleset with no need to manually activate it. (Ideally with the Gregorian calendar loaded but one thing at a time).

    I've tried adding the following to a lua script.

    Code:
    function onInit()
    	setModulePermissions("Calendars", true, true) 
    end
    https://www.fantasygrounds.com/refdoc/Module.xcp
    Ultimate License Holder
    Systems:Savage Worlds (SWADE + Companions, 50 Fathoms), Call of Cthulhu 6th, FIASCO, Realms of Cthulhu (SWADE), Paranoia XP

    FG Con 16 Fantasy Grounds Online RPG Convention - Friday April 24th to Sunday April 26th, 2020
    Register at www.fg-con.com for all the latest info.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    26,937
    I don’t think auto load works anymore (an argument within the setPermissions function). This was deprecated a few versions ago. Plus, setPermissions is used for setting module permissions for the players. Only the GM needs access to the calendar module.

    In theory Module.activate on the GM side should work, but I’m not sure how that would then link into the special calendar selection functionality.
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    Register at www.fg-con.com for all the latest info.

    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!

  3. #3
    Thanks, Trenloe for your response.
    Ultimate License Holder
    Systems:Savage Worlds (SWADE + Companions, 50 Fathoms), Call of Cthulhu 6th, FIASCO, Realms of Cthulhu (SWADE), Paranoia XP

    FG Con 16 Fantasy Grounds Online RPG Convention - Friday April 24th to Sunday April 26th, 2020
    Register at www.fg-con.com for all the latest info.

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
  •  
Starfinder Playlist

Log in

Log in