-
May 23rd, 2018, 21:08 #1
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?
-
May 23rd, 2018, 21:20 #2
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);
---
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.
-
May 23rd, 2018, 21:38 #3
- Join Date
- Jun 2013
- Location
- Isanti, MN
- Posts
- 2,922
"/reload" in the chat box reloads the ruleset and all extensions.
-
May 23rd, 2018, 21:45 #4
Yep, use /reload
Some info here: https://www.fantasygrounds.com/wiki/..._and_DebuggingPrivate 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!
-
May 23rd, 2018, 21:47 #5---
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.
-
May 23rd, 2018, 22:14 #6
-
May 24th, 2018, 01:26 #7
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,540
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
-
May 24th, 2018, 04:43 #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