5E Character Create Playlist
  1. #1
    sturtus's Avatar
    Join Date
    Feb 2010
    Location
    New Jersey, NYC
    Posts
    201

    Extension build tools or code listeners

    In web dev, I have build tools and compilers that listen for file changes and compile then refresh the web page I'm working on. These are super valuable to doing front end design. Is there any equiv here for extension dev? Ideally it would:

    - reload the extension in the campaign when files are saved/updated
    - flush any extension caches
    - perform any build scripts defined in the build tool

    Is there anything like this, or do we have to quit a campaign and relaunch each time to see updates to extensions as we dev?

  2. #2
    Quote Originally Posted by sturtus View Post
    In web dev, I have build tools and compilers that listen for file changes and compile then refresh the web page I'm working on. These are super valuable to doing front end design. Is there any equiv here for extension dev? Ideally it would:

    - reload the extension in the campaign when files are saved/updated
    - flush any extension caches
    - perform any build scripts defined in the build tool

    Is there anything like this, or do we have to quit a campaign and relaunch each time to see updates to extensions as we dev?
    Look in the code for "addHandler". The examples you find from that should get you where you need.

    Something like this.

    Code:
    DB.addHandler(DB.getPath(nodeChar, "defenses.ac.temporary"), "onUpdate", onSourceUpdate);
    Whenever defenses.ac.temporary is changed the function onSourceUpdate() is run.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    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.

  3. #3

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,922
    "/reload" in the chat box reloads the ruleset and all extensions.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    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!

  5. #5
    Quote Originally Posted by Andraax View Post
    "/reload" in the chat box reloads the ruleset and all extensions.
    Oh, duh, yeah. That one. I totally mis-read what he was asking.

    I actually make keyslots "F5" /reload, "F6" /console.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    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.

  6. #6
    sturtus's Avatar
    Join Date
    Feb 2010
    Location
    New Jersey, NYC
    Posts
    201
    Yes, that! Thank you!

  7. #7
    I usually assign reload to the F12 hot key in all my test campaigns. Just type /reload in the chat box, and drag to hot key before hitting Enter.

    Cheers,
    JPG

  8. #8
    for me its F2 = /save, F3 = /console and F4 = /reload
    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

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
  •  
5E Product Walkthrough Playlist

Log in

Log in