Having trouble to get scripts loaded
Trying to make my first module and I have troubles getting anything loaded in Foundry. Here is what I have done so far:
1. Made the module using the Foundry admin UI view.
2. Added that module to one of my worlds.
3. Created a script to
scripts/
folder of the module (I edit these files directly in the module folder).
4. Added the script to the module.json
However, whatever I add to the test.js
file does not get loaded when I reload Foundry.
What could be the issue and how do I get started with module development?8 Replies
Exit the world and go back into it.
module.json
does not get updated on refresh.@Vauxs Thanks! Is that then the fastest way to do development? Do I always need to exit the world to test my changes?
@Nash gave :vote: LeaguePoints™ to @Vauxs (#227 • 3)
Although it still does not seem to work. Even when logging out and back in, I do not see those console logs :(
Solution
You dont want to log out, you want to shut off the world entirely.
module.json
is the only file that requires a full world reload, and you shouldn't have to modify it often.Ah yes, now I got it. It works!
Thanks!
You have a comma in your manifest where you shouldn't.