Installing A Server - AllTheMods/ATM-6 GitHub Wiki
Installing A Server
This is not meant to be a comprehensive guide, just a general overview of the process.
This guide is targeted for Windows 10, if you are on a different OS you may need to adapt some parts of the process.
In general we do not provide server installation support for technical questions, but if you have specific questions about our pack installer, or comments about this guide, feel free to ask them in the ATM Discord.
Prerequisites
- Install Java 11 from the links found here and uninstall any other versions of Java (JRE/JDK)
- This is the recommended version, but anything between JDK 8-14 should work.
- This is the recommended vendor, other options include Eclipse Adoptium OpenJDK or Oracle JDK.
- Ensure any third-party antivirus programs are disabled or uninstalled.
- Avast, AVG, and Bitdefender are known to interfere with the process - others are also likely to cause problems.
Installation
IMPORTANT: This section is deprecated for ATM6, as we now supply a full server pack instead of the installer.
- Go to the CurseForge page for the pack version you want to install, and download the SIMPLE-SERVER-FILES.
- Unzip these to an empty folder.
- Make sure you do not have this in OneDrive or another synced folder, as those can lock up the installer.
- Run
startserver.bat
and wait for it to complete. When the installation is complete, you should see a prompt to accept the EULA.- Some guides will tell you to run this as admin. DO NOT do this. This is never necessary, and this can break the installation or worse.
- Once you accept the EULA, the server will start running. Startup will typically take 3-5 minutes.
- When the server has started fully, close the window.
- You should see
[tombstone/]: The list of contributors has been loaded successfully
when the loading is complete. - This works around a known issue where you cannot type in the console the first time you start the server.
- You should see
- Make any changes needed to server.properties or configs, and run
startserver.bat
again to start the server.- Many guides tell you to edit
server-ip
orserver-port
. In most cases you DO NOT need to edit these, and this can prevent your server from starting. Make sure you know what these do, before you edit them. - If you want to import a single player world, you can do this now before starting the server.
- Many guides tell you to edit
Other Stuff
-
RAM settings
- These are managed by the MAX_RAM and MIN_RAM settings at the top of the start script. For best performance, keep MIN_RAM and MAX_RAM the same.
- You can use
/spark healthreport
to see how much of the assigned ram is actually being used at any given point. - The default setting for servers is 5gb. This should be fine for 2-3 players. 10gb is typically about the most you'll need. This should be fine for 6-8 players, at which point you will usually be bottlenecked by CPU.
- For clients, the minimum ram is 8GB, and 10GB is recommended.
-
Importing a single player world
- Shut off the server.
- Delete
world
from the server. - Copy your save into the server directory, and rename it to
world
. - Delete
world/icon.png
(single player worlds can sometimes generate icons that are too large for the server)
-
Uploading to a server host
- If your server host uses the
startserver
script, upload all files. - If your server host uses a custom jar, upload all files EXCEPT:
startserver.bat
startserver.sh
server-setup-config.yaml
serverstarter-*.jar
modpack-download.zip
- You may need to rename the
forge-1.16.5-*.jar
to whatever your hosting provider expects.
- If your server host uses the