A personal FoundryVTT module containing homebrew items.
- Open the setup page in Foundry VTT.
- Click on the Add-on Modules tab.
- Click the Install Module button.
- Copy the Manifest URL to the bottom of the dialog.
- Click on the Install button.
The compendium pack "My Homebrew" contains the main content of this module. This content can be directly added to your world from the compendium without having to import them first.
The macros are available under the global variable MyHomebrew.Macros
. You can open the Developer tab of your browser (usually by pressing F12) and explore the code through the console.
- Clone this repository to your machine.
- Run
npm install
to setup the environment for JavaScript development. - Create a new world for testing this module.
- Edit
./link_vtt.py
and run it in Python to create symbolic links between this repository and Foundry VTT.- On Windows, you may need administrator privileges to create symbolic links.
- If you are using WSL, make sure to execute this in the same operating system as the one Foundry VTT is installed on.
- Open the test world.
- For compendium content:
- Right-click the compendium pack and remove the edit lock.
- Edit the content of the compendium directly in the world.
- Any changes are automatically reflected in this repository.
- For macros:
- Update the code in this repository.
- Run
npm run lint
to check the code.- Since TypeScript is unable to ignore errors in external packages while providing type information, it is not run in the
lint
step. To type check the code in this package only, use the filter feature in IDEs such as VSCode to ignore errors originating elsewhere.
- Since TypeScript is unable to ignore errors in external packages while providing type information, it is not run in the
- Reload the web page to use the updated code.
- If the code is somehow not updated, you may have to fully reload the world.
- For compendium content:
- Increment the version number in
package.json
. - Run
npm run build
to generate the bundled files for other users to download the module. - Release the new version by pushing the commit to the remote repository.