Template:Plutonium:ModifyServer

From 5etools Community Wiki
Jump to: navigation, search


How to Modify the Backend

If you are NOT using Forge, or FoundryServer for your hosting platform, this unlocks additional feature(s).
If you are on theForge or FoundryServer this will not currently work for you, and you will likely want to disable backend detection

please note there is a script listed at the end of this portion which can do all this for you

Add Backend library;
Copy the plutonium-backend.js file from FoundryVTT\Data\modules\plutonium\server directory of your installed Plutonium Module to:
FOR Windows
  • If you installed "for current user only" on Windows: %appdata%\..\Local\Programs\FoundryVTT\resources\app
  • If you installed "for all users" on Windows: Program Files\FoundryVTT\resources\app
FOR UNIX
  • Look for one of the following directories (different flavors and systems may install to a different)
/home/$USER/.local/share/FoundryVTT/resources/app
/home/$USER/FoundryVTT/resources/app
/local/FoundryVTT/resources/app
MacOS.png
FOR MacOS
\Applications ▸ click Show Package Contents > Resources > app > main.js
or you can open a terminal and do a
find / -name main.js


In Windows:Right Mouse Click on App
Modify FoundryVTT's main.js
Locate the main.js file in your installation
IN Windows
Right Mouse click on the App in the taskbar and choose Browse Application Data and navigate to
%appdata%/../Local/Programs/FoundryVTT/resources/app/main.js
IN UNIX
IN MacOS/OSX
Go to the following directory
\Applications ▸ click Show Package Contents > Resources > app > main.js


Open the main.js as an adminstrator and locate the following line


for FoundryVTT core 0.7.3 or greater
require("init")(process.argv, global.paths, startupMessages);
changing it to...
require("init")(process.argv, global.paths, startupMessages)
	.then(() => {
		require("plutonium-backend.js").init();
	});
for FoundryVTT core 0.6.6 or less
require("init")(process.argv, global.paths, initLogging);
changing it to...
require("init")(process.argv, global.paths, initLogging)
	.then(() => {
		require("plutonium-backend.js").init();
	});


RESTART FOUNDRY SERVER
- The server MUST restart to load in the new library for the new backend.


⚠️ (These are Community Created) ⚠️


User Instructions for the script

SCRIPT
OR, if you are self hosting you may use the batch/bash script (again, run in adminstrative mode/sudo) found here
  • IN Windows ▸ you would use updateMain.bat
  • IN Unix/MacOS ▸ you would use updateMain.bash
(Several Hosted Environments CANNOT make use of this script)