Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Mnooseman/TestServerInstall: Difference between revisions

From Vault Hunters Official Wiki
Created page with "This guide will walk you through installing and configuring a dedicated server for '''Vault Hunters 3rd Edition v3.18.3''' running on Minecraft 1.18.2 with Forge. == System Requirements == === Minimum Requirements === '''RAM''': 6 GB base + 2 GB per concurrent player ** Example: 10 GB total for 2 players, 12 GB for 3 players, etc. '''Java Version''': Java 17 (required) '''Minecraft Version''': 1.18.2 '''Mod Loader''': Forge '''Storage''': At least 5 GB free disk space '..."
 
No edit summary
 
Line 1: Line 1:
This guide will walk you through installing and configuring a dedicated server for '''Vault Hunters 3rd Edition v3.18.3''' running on Minecraft 1.18.2 with Forge.
This guide will walk you through installing and configuring a dedicated server for '''Vault Hunters 3rd Edition v3.18.3''' running on Minecraft 1.18.2 with Forge.
== System Requirements ==
== System Requirements ==
=== Minimum Requirements ===
=== Minimum Requirements ===
 
* '''RAM''': 6 GB base + 2 GB per concurrent player
'''RAM''': 6 GB base + 2 GB per concurrent player
** Example: 10 GB total for 2 players, 12 GB for 3 players, etc.
** Example: 10 GB total for 2 players, 12 GB for 3 players, etc.
'''Java Version''': Java 17 (required)
* '''Java Version''': Java 17 (required)
'''Minecraft Version''': 1.18.2
* '''Minecraft Version''': 1.18.2
'''Mod Loader''': Forge
* '''Mod Loader''': Forge
'''Storage''': At least 5 GB free disk space
* '''Storage''': At least 5 GB free disk space
'''Network''': Standard Minecraft port (25565)
* '''Network''': Standard Minecraft port (25565)


=== Recommended Specifications ===
=== Recommended Specifications ===
* '''CPU''': Modern multi-core processor
* '''RAM''': 8 GB base + 2 GB per player (for optimal performance)
* '''Storage''': SSD for better world loading performance


'''CPU''': Modern multi-core processor
== Manual Install ==
'''RAM''': 8 GB base + 2 GB per player (for optimal performance)
'''Storage''': SSD for better world loading performance


== Pre-Installation Setup ==
=== Windows ===
=== 1. Install Java 17 ===
Ensure you have Java 17 installed on your server. You can download it from:


[https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html Oracle JDK 17]
==== Step 1: Install Java 17 ====
[https://openjdk.org/projects/jdk/17/ OpenJDK 17]
# Download Java 17 from [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html Oracle JDK 17] or [https://openjdk.org/projects/jdk/17/ OpenJDK 17]
# Install Java 17 following the installer prompts
# Verify installation by opening Command Prompt and running:
java -version
# You should see output indicating Java 17


Verify your installation:
==== Step 2: Create Server Directory ====
java -version
# Create a new folder for your server (e.g., <code>C:\VaultHunters-Server</code>)
You should see output indicating Java 17.
# Navigate to this folder
=== 2. Create Server Directory ===
Create a dedicated folder for your Vault Hunters server:
mkdir VaultHunters-Server
cd VaultHunters-Server
== Download Server Files ==
Navigate to the [https://www.curseforge.com/minecraft/modpacks/vault-hunters-1-18-2 Vault Hunters CurseForge page]
Go to the "Files" tab
Find version '''3.18.3'''
Click on the version to view details
In the "Additional Files" section, download the '''Server Pack'''
Extract the server files to your server directory
== Server Configuration ==
=== 1. Initial Setup ===
After extracting the server files, you should see:


<code>forge-[version].jar</code> (the Forge server jar)
==== Step 3: Download Server Files ====
<code>mods/</code> folder containing all mod files
# Navigate to the [https://www.curseforge.com/minecraft/modpacks/vault-hunters-1-18-2 Vault Hunters CurseForge page]
<code>config/</code> folder with configuration files
# Go to the "Files" tab
Various other folders and files
# Find version '''3.18.3'''
# Click on the version to view details
# In the "Additional Files" section, download the '''Server Pack'''
# Extract the server files to your server directory
 
==== Step 4: Create Start Script ====
Create a file named <code>start.bat</code> in your server directory with the following content:
 
@echo off
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar forge-[version].jar nogui
pause


=== 2. Create Start Script ===
==== Option A: Using Aikar's JVM Flags (Recommended) ====
Create a start script with Aikar's optimized JVM arguments:
'''For Windows (start.bat):'''
@echo off
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar forge-[version].jar nogui
pause
'''For Linux/Mac (start.sh):'''
#!/bin/bash
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar forge-[version].jar nogui
Make the script executable (Linux/Mac):
chmod +x start.sh
==== Option B: Using GraalVM ====
If you prefer GraalVM, install GraalVM JDK 17 and use similar flags with the GraalVM java executable.
'''Important''': Replace <code>[version]</code> in the jar filename with the actual Forge version number from your downloaded files.
'''Important''': Replace <code>[version]</code> in the jar filename with the actual Forge version number from your downloaded files.
'''Memory Allocation Note''': Adjust <code>-Xms</code> and <code>-Xmx</code> values based on your expected player count:


2-3 players: <code>-Xms6G -Xmx10G</code>
==== Step 5: Initial Server Setup ====
4-5 players: <code>-Xms8G -Xmx14G</code>
# Double-click <code>start.bat</code> to run the server for the first time
6+ players: <code>-Xms10G -Xmx16G</code> or higher
# The server will create necessary files and then stop
 
# Edit <code>eula.txt</code> and change <code>eula=false</code> to <code>eula=true</code>
=== 3. First Run ===
# Optionally, edit <code>server.properties</code> to configure server settings:
Run your start script to initialize the server
The server will create necessary files and then stop
Edit <code>eula.txt</code> and change <code>eula=false</code> to <code>eula=true</code>
Optionally, edit <code>server.properties</code> to configure:
#* <code>server-port=25565</code> (or your preferred port)
#* <code>server-port=25565</code> (or your preferred port)
#* <code>max-players=20</code> (or your preferred limit)
#* <code>max-players=20</code> (or your preferred limit)
#* <code>difficulty=normal</code>
#* <code>difficulty=normal</code>
#* Other settings as needed
 
==== Step 6: Start Your Server ====
Double-click <code>start.bat</code> to start your server. First startup may take several minutes as Forge loads all mods.
 
=== Linux/MacOS/BSD ===
 
==== Step 1: Install Java 17 ====
'''For Ubuntu/Debian:'''
sudo apt update
sudo apt install openjdk-17-jdk
 
'''For CentOS/RHEL/Fedora:'''
sudo dnf install java-17-openjdk-devel
 
'''For macOS (using Homebrew):'''
brew install openjdk@17
 
'''For BSD systems:'''
pkg install openjdk17
 
Verify installation:
java -version
 
==== Step 2: Create Server Directory ====
mkdir ~/VaultHunters-Server
cd ~/VaultHunters-Server
 
==== Step 3: Download Server Files ====
# Navigate to the [https://www.curseforge.com/minecraft/modpacks/vault-hunters-1-18-2 Vault Hunters CurseForge page]
# Go to the "Files" tab
# Find version '''3.18.3'''
# Click on the version to view details
# In the "Additional Files" section, download the '''Server Pack'''
# Extract the server files to your server directory
 
==== Step 4: Create Start Script ====
Create a file named <code>start.sh</code> in your server directory:
 
#!/bin/bash
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar forge-[version].jar nogui
 
Make the script executable:
chmod +x start.sh
 
'''Important''': Replace <code>[version]</code> in the jar filename with the actual Forge version number from your downloaded files.
 
==== Step 5: Initial Server Setup ====
# Run the server for the first time:
  ./start.sh
# The server will create necessary files and then stop
# Edit <code>eula.txt</code> and change <code>eula=false</code> to <code>eula=true</code>:
  nano eula.txt
# Optionally, edit <code>server.properties</code> to configure server settings:
  nano server.properties
 
==== Step 6: Start Your Server ====
Execute <code>./start.sh</code> to start your server. First startup may take several minutes as Forge loads all mods.
 
== Scripted Install ==
 
{{Note|The scripts provided below are offered AS-IS and may not work in all cases. They are provided for convenience but may require modification for your specific system configuration.}}
 
=== Windows ===
 
Create a file named <code>install-vh-server.bat</code> and run it as Administrator:
 
@echo off
echo Installing Vault Hunters 3rd Edition Server...
REM Create server directory
mkdir "C:\VaultHunters-Server"
cd /d "C:\VaultHunters-Server"
REM Check for Java 17
java -version 2>&1 | find "17" >nul
if errorlevel 1 (
    echo Java 17 not found. Please install Java 17 first.
    pause
    exit /b 1
)
echo Java 17 detected.
echo Please download the server pack from CurseForge and extract it to this directory.
echo Press any key once you've extracted the files...
pause
REM Find the forge jar file
for %%f in (forge-*.jar) do set FORGE_JAR=%%f
if not defined FORGE_JAR (
    echo Forge jar file not found. Please ensure you extracted the server pack.
    pause
    exit /b 1
)
REM Create start script
echo @echo off > start.bat
echo java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar %FORGE_JAR% nogui >> start.bat
echo pause >> start.bat
echo Installation complete!
echo Run start.bat to start your server.
pause
 
=== Linux/MacOS/BSD ===
 
Create a file named <code>install-vh-server.sh</code> and make it executable:
 
#!/bin/bash
echo "Installing Vault Hunters 3rd Edition Server..."
# Check for Java 17
if ! java -version 2>&1 | grep -q "17"; then
    echo "Java 17 not found. Please install Java 17 first."
   
    # Attempt to install on common systems
    if command -v apt &> /dev/null; then
        echo "Detected apt package manager. Install with: sudo apt install openjdk-17-jdk"
    elif command -v dnf &> /dev/null; then
        echo "Detected dnf package manager. Install with: sudo dnf install java-17-openjdk-devel"
    elif command -v brew &> /dev/null; then
        echo "Detected Homebrew. Install with: brew install openjdk@17"
    elif command -v pkg &> /dev/null; then
        echo "Detected pkg package manager. Install with: pkg install openjdk17"
    fi
   
    exit 1
fi
echo "Java 17 detected."
# Create server directory
SERVER_DIR="$HOME/VaultHunters-Server"
mkdir -p "$SERVER_DIR"
cd "$SERVER_DIR"
echo "Please download the server pack from CurseForge and extract it to: $SERVER_DIR"
echo "Press Enter once you've extracted the files..."
read -r
# Find the forge jar file
FORGE_JAR=$(find . -name "forge-*.jar" | head -n 1)
if [ -z "$FORGE_JAR" ]; then
    echo "Forge jar file not found. Please ensure you extracted the server pack."
    exit 1
fi
# Create start script
cat > start.sh << EOF
#!/bin/bash
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar $FORGE_JAR nogui
EOF
chmod +x start.sh
echo "Installation complete!"
echo "Server installed in: $SERVER_DIR"
echo "Run ./start.sh to start your server."
 
Make it executable and run:
chmod +x install-vh-server.sh
./install-vh-server.sh
 
== Memory Allocation Guidelines ==
 
Adjust <code>-Xms</code> and <code>-Xmx</code> values based on your expected player count:
* '''2-3 players''': <code>-Xms6G -Xmx10G</code>
* '''4-5 players''': <code>-Xms8G -Xmx14G</code>
* '''6+ players''': <code>-Xms10G -Xmx16G</code> or higher
 
== Performance Optimization ==
== Performance Optimization ==
=== Performance Mods ===
=== Performance Mods ===
The Vault Hunters community maintains a list of compatible performance mods. Visit the [https://discord.com/channels/889424759018901514/1276979846215372830 Discord performance thread] for the latest recommendations.
The Vault Hunters community maintains a list of compatible performance mods. Visit the [https://discord.com/channels/889424759018901514/1276979846215372830 Discord performance thread] for the latest recommendations.
'''Important''': Some performance mods overlap in functionality. Carefully review compatibility and avoid conflicting mods that modify the same game systems.
'''Important''': Some performance mods overlap in functionality. Carefully review compatibility and avoid conflicting mods that modify the same game systems.
=== Server.properties Optimizations ===
=== Server.properties Optimizations ===
Consider these additional server.properties settings for better performance:
Consider these additional server.properties settings for better performance:
view-distance=10
view-distance=10
simulation-distance=10
simulation-distance=10
entity-broadcast-range-percentage=100
entity-broadcast-range-percentage=100
== Starting Your Server ==
Run your start script:


'''Windows''': Double-click <code>start.bat</code> or run it from command prompt
=== Alternative JVM Options ===
'''Linux/Mac''': Execute <code>./start.sh</code> in terminal
If you prefer '''GraalVM''', install GraalVM JDK 17 and use similar flags with the GraalVM java executable for potentially better performance.


The server will start up and generate the world. First startup may take several minutes as Forge loads all mods.
== Troubleshooting ==
== Troubleshooting ==
=== Common Issues ===
=== Common Issues ===
==== 1. Insufficient RAM ====
==== 1. Insufficient RAM ====
'''Problem''': Server crashes with OutOfMemoryError or runs extremely slowly
'''Problem''': Server crashes with OutOfMemoryError or runs extremely slowly
'''Solutions''':
'''Solutions''':
* Increase <code>-Xmx</code> value in your start script
* Ensure your system has enough available RAM
* Check that <code>-Xms</code> and <code>-Xmx</code> are set appropriately for your player count
* Verify no other memory-intensive applications are running


Increase <code>-Xmx</code> value in your start script
'''Example Error''':
Ensure your system has enough available RAM
java.lang.OutOfMemoryError: Java heap space
Check that <code>-Xms</code> and <code>-Xmx</code> are set appropriately for your player count
Verify no other memory-intensive applications are running


'''Example Error''':
java.lang.OutOfMemoryError: Java heap space
==== 2. Java Version Issues ====
==== 2. Java Version Issues ====
'''Problem''': Server fails to start with Java-related errors
'''Problem''': Server fails to start with Java-related errors
'''Solutions''':
'''Solutions''':
 
* Confirm you're using Java 17 (not Java 8, 11, or newer versions)
Confirm you're using Java 17 (not Java 8, 11, or newer versions)
* Update your PATH environment variable if needed
Update your PATH environment variable if needed
* Use the full path to Java 17 in your start script
Use the full path to Java 17 in your start script


==== 3. Port Already in Use ====
==== 3. Port Already in Use ====
'''Problem''': Server can't bind to port 25565
'''Problem''': Server can't bind to port 25565
'''Solutions''':
'''Solutions''':
 
* Change <code>server-port</code> in <code>server.properties</code>
Change <code>server-port</code> in <code>server.properties</code>
* Stop other Minecraft servers using the same port
Stop other Minecraft servers using the same port
* Check for other applications using port 25565
Check for other applications using port 25565


==== 4. Mod Loading Errors ====
==== 4. Mod Loading Errors ====
'''Problem''': Server crashes during mod loading
'''Problem''': Server crashes during mod loading
'''Solutions''':
'''Solutions''':
 
* Ensure all mod files are properly downloaded
Ensure all mod files are properly downloaded
* Verify you're using the correct server pack version
Verify you're using the correct server pack version
* Check that no mods were corrupted during download
Check that no mods were corrupted during download
* Re-download the server pack if necessary
Re-download the server pack if necessary


=== Log Files ===
=== Log Files ===
Server logs are located in:
Server logs are located in:
* '''Main log''': <code>logs/latest.log</code>
* '''Crash reports''': <code>crash-reports/</code> folder


'''Main log''': <code>logs/latest.log</code>
When seeking help, always provide relevant log snippets showing the error.
'''Crash reports''': <code>crash-reports/</code> folder


When seeking help, always provide relevant log snippets showing the error.
== Server Management ==
== Server Management ==
=== Regular Maintenance ===
=== Regular Maintenance ===
 
* '''Backups''': Regularly backup your <code>world/</code> folder and server files
'''Backups''': Regularly backup your <code>world/</code> folder and server files
* '''Updates''': Check for new Vault Hunters versions periodically
'''Updates''': Check for new Vault Hunters versions periodically
* '''Monitoring''': Keep an eye on RAM usage and server performance
'''Monitoring''': Keep an eye on RAM usage and server performance
* '''Restart Schedule''': Consider automatic restarts every 6-12 hours for optimal performance
'''Restart Schedule''': Consider automatic restarts every 6-12 hours for optimal performance


=== Commands ===
=== Commands ===
Use standard Minecraft server commands:
Use standard Minecraft server commands:
* <code>/op <player></code> - Give operator permissions
* <code>/whitelist add <player></code> - Add to whitelist
* <code>/save-all</code> - Force save the world
* <code>/stop</code> - Safely stop the server


<code>/op <player></code> - Give operator permissions
== Getting Help ==
<code>/whitelist add <player></code> - Add to whitelist
<code>/save-all</code> - Force save the world
<code>/stop</code> - Safely stop the server


== Getting Help ==
If you encounter issues not covered in this guide:
If you encounter issues not covered in this guide:
'''Check logs''' for specific error messages
 
'''Visit the Vault Hunters Discord''' for community support
# '''Check logs''' for specific error messages
'''Search existing discussions''' for similar problems
# '''Visit the Vault Hunters Discord''' for community support
'''Provide detailed information''' when asking for help:
# '''Search existing discussions''' for similar problems
# '''Provide detailed information''' when asking for help:
#* Server specifications
#* Server specifications
#* Java version
#* Java version
#* Exact error messages
#* Exact error messages
#* Relevant log excerpts
#* Relevant log excerpts
== Additional Resources ==
== Additional Resources ==


[https://www.curseforge.com/minecraft/modpacks/vault-hunters-1-18-2 Vault Hunters CurseForge Page]
* [https://www.curseforge.com/minecraft/modpacks/vault-hunters-1-18-2 Vault Hunters CurseForge Page]
[https://discord.gg/vaulthunters Vault Hunters Discord Community]
* [https://discord.gg/vaulthunters Vault Hunters Discord Community]
[https://docs.papermc.io/paper/aikars-flags Aikar's Flags Documentation]
* [https://docs.papermc.io/paper/aikars-flags Aikar's Flags Documentation]
[https://discord.com/channels/889424759018901514/1276979846215372830 Discord Performance Mods Thread]
* [https://discord.com/channels/889424759018901514/1276979846215372830 Discord Performance Mods Thread]


----


''Last updated for Vault Hunters 3rd Edition v3.18.3''
''Last updated for Vault Hunters 3rd Edition v3.18.3''

Latest revision as of 23:51, 20 July 2025

This guide will walk you through installing and configuring a dedicated server for Vault Hunters 3rd Edition v3.18.3 running on Minecraft 1.18.2 with Forge.

System Requirements

Minimum Requirements

  • RAM: 6 GB base + 2 GB per concurrent player
    • Example: 10 GB total for 2 players, 12 GB for 3 players, etc.
  • Java Version: Java 17 (required)
  • Minecraft Version: 1.18.2
  • Mod Loader: Forge
  • Storage: At least 5 GB free disk space
  • Network: Standard Minecraft port (25565)

Recommended Specifications

  • CPU: Modern multi-core processor
  • RAM: 8 GB base + 2 GB per player (for optimal performance)
  • Storage: SSD for better world loading performance

Manual Install

Windows

Step 1: Install Java 17

  1. Download Java 17 from Oracle JDK 17 or OpenJDK 17
  2. Install Java 17 following the installer prompts
  3. Verify installation by opening Command Prompt and running:
java -version
  1. You should see output indicating Java 17

Step 2: Create Server Directory

  1. Create a new folder for your server (e.g., C:\VaultHunters-Server)
  2. Navigate to this folder

Step 3: Download Server Files

  1. Navigate to the Vault Hunters CurseForge page
  2. Go to the "Files" tab
  3. Find version 3.18.3
  4. Click on the version to view details
  5. In the "Additional Files" section, download the Server Pack
  6. Extract the server files to your server directory

Step 4: Create Start Script

Create a file named start.bat in your server directory with the following content:

@echo off
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar forge-[version].jar nogui
pause

Important: Replace [version] in the jar filename with the actual Forge version number from your downloaded files.

Step 5: Initial Server Setup

  1. Double-click start.bat to run the server for the first time
  2. The server will create necessary files and then stop
  3. Edit eula.txt and change eula=false to eula=true
  4. Optionally, edit server.properties to configure server settings:
    • server-port=25565 (or your preferred port)
    • max-players=20 (or your preferred limit)
    • difficulty=normal

Step 6: Start Your Server

Double-click start.bat to start your server. First startup may take several minutes as Forge loads all mods.

Linux/MacOS/BSD

Step 1: Install Java 17

For Ubuntu/Debian:

sudo apt update
sudo apt install openjdk-17-jdk

For CentOS/RHEL/Fedora:

sudo dnf install java-17-openjdk-devel

For macOS (using Homebrew):

brew install openjdk@17

For BSD systems:

pkg install openjdk17

Verify installation:

java -version

Step 2: Create Server Directory

mkdir ~/VaultHunters-Server
cd ~/VaultHunters-Server

Step 3: Download Server Files

  1. Navigate to the Vault Hunters CurseForge page
  2. Go to the "Files" tab
  3. Find version 3.18.3
  4. Click on the version to view details
  5. In the "Additional Files" section, download the Server Pack
  6. Extract the server files to your server directory

Step 4: Create Start Script

Create a file named start.sh in your server directory:

#!/bin/bash
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar forge-[version].jar nogui

Make the script executable:

chmod +x start.sh

Important: Replace [version] in the jar filename with the actual Forge version number from your downloaded files.

Step 5: Initial Server Setup

  1. Run the server for the first time:
 ./start.sh
  1. The server will create necessary files and then stop
  2. Edit eula.txt and change eula=false to eula=true:
 nano eula.txt
  1. Optionally, edit server.properties to configure server settings:
 nano server.properties

Step 6: Start Your Server

Execute ./start.sh to start your server. First startup may take several minutes as Forge loads all mods.

Scripted Install

Template:Note

Windows

Create a file named install-vh-server.bat and run it as Administrator:

@echo off
echo Installing Vault Hunters 3rd Edition Server...

REM Create server directory
mkdir "C:\VaultHunters-Server"
cd /d "C:\VaultHunters-Server"

REM Check for Java 17
java -version 2>&1 | find "17" >nul
if errorlevel 1 (
    echo Java 17 not found. Please install Java 17 first.
    pause
    exit /b 1
)

echo Java 17 detected.
echo Please download the server pack from CurseForge and extract it to this directory.
echo Press any key once you've extracted the files...
pause

REM Find the forge jar file
for %%f in (forge-*.jar) do set FORGE_JAR=%%f

if not defined FORGE_JAR (
    echo Forge jar file not found. Please ensure you extracted the server pack.
    pause
    exit /b 1
)

REM Create start script
echo @echo off > start.bat
echo java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar %FORGE_JAR% nogui >> start.bat
echo pause >> start.bat

echo Installation complete!
echo Run start.bat to start your server.
pause

Linux/MacOS/BSD

Create a file named install-vh-server.sh and make it executable:

#!/bin/bash

echo "Installing Vault Hunters 3rd Edition Server..."

# Check for Java 17
if ! java -version 2>&1 | grep -q "17"; then
    echo "Java 17 not found. Please install Java 17 first."
    
    # Attempt to install on common systems
    if command -v apt &> /dev/null; then
        echo "Detected apt package manager. Install with: sudo apt install openjdk-17-jdk"
    elif command -v dnf &> /dev/null; then
        echo "Detected dnf package manager. Install with: sudo dnf install java-17-openjdk-devel"
    elif command -v brew &> /dev/null; then
        echo "Detected Homebrew. Install with: brew install openjdk@17"
    elif command -v pkg &> /dev/null; then
        echo "Detected pkg package manager. Install with: pkg install openjdk17"
    fi
    
    exit 1
fi

echo "Java 17 detected."

# Create server directory
SERVER_DIR="$HOME/VaultHunters-Server"
mkdir -p "$SERVER_DIR"
cd "$SERVER_DIR"

echo "Please download the server pack from CurseForge and extract it to: $SERVER_DIR"
echo "Press Enter once you've extracted the files..."
read -r

# Find the forge jar file
FORGE_JAR=$(find . -name "forge-*.jar" | head -n 1)

if [ -z "$FORGE_JAR" ]; then
    echo "Forge jar file not found. Please ensure you extracted the server pack."
    exit 1
fi

# Create start script
cat > start.sh << EOF
#!/bin/bash
java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar $FORGE_JAR nogui
EOF

chmod +x start.sh

echo "Installation complete!"
echo "Server installed in: $SERVER_DIR"
echo "Run ./start.sh to start your server."

Make it executable and run:

chmod +x install-vh-server.sh
./install-vh-server.sh

Memory Allocation Guidelines

Adjust -Xms and -Xmx values based on your expected player count:

  • 2-3 players: -Xms6G -Xmx10G
  • 4-5 players: -Xms8G -Xmx14G
  • 6+ players: -Xms10G -Xmx16G or higher

Performance Optimization

Performance Mods

The Vault Hunters community maintains a list of compatible performance mods. Visit the Discord performance thread for the latest recommendations.

Important: Some performance mods overlap in functionality. Carefully review compatibility and avoid conflicting mods that modify the same game systems.

Server.properties Optimizations

Consider these additional server.properties settings for better performance:

view-distance=10
simulation-distance=10
entity-broadcast-range-percentage=100

Alternative JVM Options

If you prefer GraalVM, install GraalVM JDK 17 and use similar flags with the GraalVM java executable for potentially better performance.

Troubleshooting

Common Issues

1. Insufficient RAM

Problem: Server crashes with OutOfMemoryError or runs extremely slowly

Solutions:

  • Increase -Xmx value in your start script
  • Ensure your system has enough available RAM
  • Check that -Xms and -Xmx are set appropriately for your player count
  • Verify no other memory-intensive applications are running

Example Error:

java.lang.OutOfMemoryError: Java heap space

2. Java Version Issues

Problem: Server fails to start with Java-related errors

Solutions:

  • Confirm you're using Java 17 (not Java 8, 11, or newer versions)
  • Update your PATH environment variable if needed
  • Use the full path to Java 17 in your start script

3. Port Already in Use

Problem: Server can't bind to port 25565

Solutions:

  • Change server-port in server.properties
  • Stop other Minecraft servers using the same port
  • Check for other applications using port 25565

4. Mod Loading Errors

Problem: Server crashes during mod loading

Solutions:

  • Ensure all mod files are properly downloaded
  • Verify you're using the correct server pack version
  • Check that no mods were corrupted during download
  • Re-download the server pack if necessary

Log Files

Server logs are located in:

  • Main log: logs/latest.log
  • Crash reports: crash-reports/ folder

When seeking help, always provide relevant log snippets showing the error.

Server Management

Regular Maintenance

  • Backups: Regularly backup your world/ folder and server files
  • Updates: Check for new Vault Hunters versions periodically
  • Monitoring: Keep an eye on RAM usage and server performance
  • Restart Schedule: Consider automatic restarts every 6-12 hours for optimal performance

Commands

Use standard Minecraft server commands:

  • /op <player> - Give operator permissions
  • /whitelist add <player> - Add to whitelist
  • /save-all - Force save the world
  • /stop - Safely stop the server

Getting Help

If you encounter issues not covered in this guide:

  1. Check logs for specific error messages
  2. Visit the Vault Hunters Discord for community support
  3. Search existing discussions for similar problems
  4. Provide detailed information when asking for help:
    • Server specifications
    • Java version
    • Exact error messages
    • Relevant log excerpts

Additional Resources


Last updated for Vault Hunters 3rd Edition v3.18.3