Hytale Advanced Server Configuration: Difference between revisions
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17) |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#seo:|title=Hytale Server Configuration: config.json Settings Explained|description=Hytale server settings in config.json and each world's config.json: what they do, recommended values, launch options and the UDP firewall port.}} | |||
'''Important:''' Always back up your server files before changing settings. Stop your server before editing any settings file. | |||
== Configuration file locations == | |||
== Configuration | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 15: | Line 14: | ||
| <code>bans.json</code> || Server root folder || Banned player list | | <code>bans.json</code> || Server root folder || Banned player list | ||
|- | |- | ||
| <code>whitelist.json</code> || Server root folder || | | <code>whitelist.json</code> || Server root folder || Old allowed players list. Hytale 0.6.6 and later read it once, turn it into join permissions and rename it <code>whitelist.json.migrated</code> | ||
|- | |- | ||
| <code>config.json</code> || <code>universe/worlds/[WorldName]/</code> || Per-world settings | | <code>config.json</code> || <code>universe/worlds/[WorldName]/</code> || Per-world settings | ||
|} | |} | ||
== | == Server configuration (config.json) == | ||
== | |||
The main <code>config.json</code> in your server root controls server-wide settings. This is the layout used by Hytale Update 7: | |||
<pre> | <pre> | ||
{ | { | ||
"ServerName": " | "Version": 4, | ||
"MOTD": " | "ServerName": "Hytale Server", | ||
" | "MOTD": "", | ||
" | "Password": "", | ||
" | "MaxPlayers": 100, | ||
" | "MaxViewRadius": 32, | ||
" | "LocalCompressionEnabled": false, | ||
"Defaults": { | |||
" | "World": "default", | ||
" | "GameMode": "Adventure", | ||
" | "HardcoreMode": "None", | ||
" | "CrashRecovery": {} | ||
" | }, | ||
" | "ConnectionTimeouts": {}, | ||
" | "RateLimit": {}, | ||
" | "Modules": {}, | ||
" | "LogLevels": {}, | ||
" | "Mods": {}, | ||
" | "DisplayTmpTagsInStrings": false, | ||
" | "PlayerStorage": { | ||
" | "Type": "Hytale" | ||
}, | |||
"DefaultModsEnabled": true, | |||
"RequireJoinPermission": false, | |||
"UniverseResourceStorage": { | |||
"Type": "Hytale" | |||
}, | |||
"BanStorage": { | |||
"Type": "Disk", | |||
"Path": "bans.json" | |||
}, | }, | ||
" | "AuthCredentialStore": { | ||
" | "Type": "Encrypted", | ||
" | "Path": "auth.enc" | ||
}, | |||
"Update": {}, | |||
"Backup": {}, | |||
"WorldMap": {} | |||
} | } | ||
</pre> | </pre> | ||
| Line 74: | Line 68: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Setting !! Description | ! Setting !! Description !! Recommended | ||
|- | |- | ||
| <code> | | <code>ServerName</code> || Display name shown to players || Your server name | ||
|- | |- | ||
| <code> | | <code>MOTD</code> || Message of the day || Short welcome message | ||
|- | |- | ||
| <code> | | <code>Password</code> || Server password (empty = no password) || Leave empty for public | ||
|- | |- | ||
| <code> | | <code>MaxPlayers</code> || Most players online at once || Based on RAM (20-50 typical) | ||
|- | |- | ||
| <code> | | <code>MaxViewRadius</code> || How far players can see (in chunks) || '''12''' for performance | ||
|- | |- | ||
| <code> | | <code>LocalCompressionEnabled</code> || Enable local network compression. Hytale 0.7.0 no longer reads it, so it does nothing || false | ||
|- | |- | ||
| <code> | | <code>Defaults.World</code> || Default world name players spawn in || "default" | ||
|- | |- | ||
| <code> | | <code>Defaults.GameMode</code> || Default game mode for new players || "Adventure" or "Creative" | ||
|- | |- | ||
| <code> | | <code>SentryDsn</code> || Sends the server's error reports to your own Sentry project, an error tracking service (Hytale 0.7.3 and later). A blank value turns error reporting off || Leave unset | ||
|} | |} | ||
== World | '''Performance tip:''' Limiting <code>MaxViewRadius</code> to '''12 chunks (384 blocks)''' helps both performance and gameplay. The default is 32, which is also the maximum since Update 7. A higher value in <code>config.json</code> is lowered to 32 with a warning when the server starts. | ||
== Editing configuration files == | |||
=== For Survival Servers customers === | |||
The quickest way is '''Server Config''' under '''TOOLS''': change the settings, choose '''Apply & Restart''' or '''Apply''', then click '''Save'''. | |||
# Log in to the [https://www.survivalservers.com/sspanel/ Command Center] | |||
# Click '''Stop''' to stop your server | |||
# Under '''TOOLS''', click '''config.json''' or '''world/config''', or use '''FTP Access''' | |||
# Edit the file and save | |||
# Click '''Start''' to start your server again | |||
=== For self-hosted servers === | |||
# Stop your server (type <code>stop</code> or press <code>Ctrl+C</code>) | |||
# Open the config file in a text editor | |||
# Make your changes and save | |||
# Start your server | |||
== World configuration (universe/worlds/[WorldName]/config.json) == | |||
Each world has its own configuration file. | |||
<pre> | <pre> | ||
| Line 126: | Line 139: | ||
"IsGameTimePaused": false, | "IsGameTimePaused": false, | ||
"GameTime": "0001-01-01T08:26:59.761606129Z", | "GameTime": "0001-01-01T08:26:59.761606129Z", | ||
"ClientEffects": { | |||
"SunHeightPercent": 100.0, | |||
"SunAngleDegrees": 0.0, | |||
"BloomIntensity": 0.30000001192092896, | |||
"BloomPower": 8.0, | |||
"SunIntensity": 0.25, | |||
"SunshaftIntensity": 0.30000001192092896, | |||
"SunshaftScaleFactor": 4.0 | |||
}, | |||
"RequiredPlugins": {}, | "RequiredPlugins": {}, | ||
"IsSpawningNPC": true, | "IsSpawningNPC": true, | ||
| Line 134: | Line 156: | ||
"IsSavingPlayers": true, | "IsSavingPlayers": true, | ||
"IsSavingChunks": true, | "IsSavingChunks": true, | ||
"SaveNewChunks": true, | |||
"IsUnloadingChunks": true, | "IsUnloadingChunks": true, | ||
"IsObjectiveMarkersEnabled": true, | "IsObjectiveMarkersEnabled": true, | ||
| Line 168: | Line 191: | ||
|- | |- | ||
| <code>IsSavingChunks</code> || Save world changes | | <code>IsSavingChunks</code> || Save world changes | ||
|- | |||
| <code>SaveNewChunks</code> || Save newly generated chunks to disk | |||
|- | |- | ||
| <code>IsUnloadingChunks</code> || Unload empty chunks | | <code>IsUnloadingChunks</code> || Unload empty chunks | ||
|- | |||
| <code>ClientEffects</code> || Visual effects settings (sun, bloom, sunshafts) | |||
|- | |- | ||
| <code>DeleteOnUniverseStart</code> || Delete world on server start | | <code>DeleteOnUniverseStart</code> || Delete world on server start | ||
| Line 176: | Line 203: | ||
|} | |} | ||
== | == World pre-generation == | ||
Pre-generating creates terrain ahead of time, reducing lag when players explore. | Pre-generating creates terrain ahead of time, reducing lag when players explore. | ||
'''Method 1: In- | '''Method 1: In-game exploration''' | ||
# Start your server and log in as admin | # Start your server and log in as admin | ||
# Fly around the map to generate chunks | # Fly around the map to generate chunks | ||
# The server saves chunks as you explore | # The server saves chunks as you explore | ||
'''Method 2: Pre- | '''Method 2: Pre-generation mods''' | ||
# Add a pre-gen mod to your <code>mods/</code> folder | # Add a pre-gen mod to your <code>mods/</code> folder | ||
# Configure the area size and center point | # Configure the area size and center point | ||
# Run the pre-generation command | # Run the pre-generation command | ||
'''Method 3: Command | '''Method 3: Command line''' | ||
<pre> | <pre> | ||
java -jar HytaleServer.jar --help | java -jar HytaleServer.jar --help | ||
| Line 282: | Line 223: | ||
Check for built-in pre-generation options. | Check for built-in pre-generation options. | ||
== Server | == Server mesh architecture (multi-server networks) == | ||
Hytale | Hytale can connect several servers together without outside proxies like BungeeCord. | ||
These features work through the server's Java API: | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Feature !! Description | ! Feature !! API method !! Description | ||
|- | |- | ||
| ''' | | '''Player Referral''' || <code>PlayerRef.referToServer(host, port, payload)</code> || Transfer players between servers with optional 4KB payload | ||
|- | |- | ||
| ''' | | '''Connection Redirect''' || <code>PlayerSetupConnectEvent.referToServer(host, port)</code> || Redirect during handshake before full connection | ||
|} | |} | ||
'''Security:''' Referral payloads pass through the client. | '''Security:''' Referral payloads pass through the client and can be tampered with. Sign payloads cryptographically (e.g., HMAC with a shared secret) so receiving servers can verify authenticity. | ||
'''Custom | '''Custom proxies:''' Build proxy servers using Netty QUIC. Packet definitions are in <code>HytaleServer.jar</code> at <code>com.hypixel.hytale.protocol.packets</code>. | ||
== Command- | == Command-line options == | ||
<pre> | <pre> | ||
| Line 358: | Line 248: | ||
</pre> | </pre> | ||
=== JVM | === JVM options === | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 373: | Line 263: | ||
|} | |} | ||
=== Server | === Server options === | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 379: | Line 269: | ||
! Option !! Description !! Default | ! Option !! Description !! Default | ||
|- | |- | ||
| <code>--assets <path></code> || Path to Assets.zip | | <code>--assets <path></code> || Path to Assets.zip || <code>..\HytaleAssets</code> | ||
|- | |- | ||
| <code>--bind <ip:port></code> || Address and port to listen on || 0.0.0.0:5520 | | <code>--bind <ip:port></code> || Address and port to listen on || 0.0.0.0:5520 | ||
| Line 387: | Line 277: | ||
| <code>--backup</code> || Enable automatic backups || Disabled | | <code>--backup</code> || Enable automatic backups || Disabled | ||
|- | |- | ||
| <code>--backup-dir <path></code> || Backup storage location || | | <code>--backup-dir <path></code> || Backup storage location || None | ||
|- | |- | ||
| <code>--backup-frequency <mins></code> || Backup interval || | | <code>--backup-frequency <mins></code> || Backup interval in minutes || 30 | ||
|- | |- | ||
| <code>--disable-sentry</code> || Disable crash reporting || Enabled | | <code>--disable-sentry</code> || Disable crash reporting || Enabled | ||
| Line 395: | Line 285: | ||
| <code>--allow-op</code> || Allow operator commands || Disabled | | <code>--allow-op</code> || Allow operator commands || Disabled | ||
|- | |- | ||
| <code>--accept-early-plugins</code> || Load experimental plugins || Disabled | | <code>--accept-early-plugins</code> || Load experimental plugins (unsupported) || Disabled | ||
|} | |} | ||
=== Example | === Example launch scripts === | ||
<pre>Production server (Windows - start.bat):</pre> | |||
<pre> | <pre> | ||
@echo off | @echo off | ||
| Line 407: | Line 297: | ||
</pre> | </pre> | ||
'''Production server (Linux | '''Production server (Linux, start.sh):''' | ||
<pre> | <pre> | ||
#!/bin/bash | #!/bin/bash | ||
| Line 418: | Line 308: | ||
</pre> | </pre> | ||
== See | == Firewall configuration == | ||
Hytale uses the QUIC protocol over UDP (not TCP). | |||
'''Windows PowerShell:''' | |||
<pre> | |||
New-NetFirewallRule -DisplayName "Hytale Server" -Direction Inbound -Protocol UDP -LocalPort 5520 -Action Allow | |||
</pre> | |||
'''Linux (iptables):''' | |||
<pre> | |||
sudo iptables -A INPUT -p udp --dport 5520 -j ACCEPT | |||
</pre> | |||
'''Linux (ufw):''' | |||
<pre> | |||
sudo ufw allow 5520/udp | |||
</pre> | |||
== See also == | |||
* [[How to Create a Hytale Server Guide]] | * [[How to Create a Hytale Server Guide]] | ||
* [[How to Join a Hytale Server]] | * [[How to Join a Hytale Server]] | ||
* [[How to Install Mods on a Hytale Server]] | * [[How to Install Mods on a Hytale Server]] | ||
* [[How to Update a Hytale Server]] | |||
* [https://hytale.com/ Official Hytale Website] | * [https://hytale.com/ Official Hytale Website] | ||
* [https://support.hytale.com/ Hytale Support & Documentation] | * [https://support.hytale.com/ Hytale Support & Documentation] | ||
* [https://www.survivalservers.com/services/game_servers/hytale/ Rent a Hytale | * [https://www.survivalservers.com/services/game_servers/hytale/ Rent a Hytale server from Survival Servers] | ||
__NOTOC__ | __NOTOC__ | ||
Latest revision as of 08:59, 17 November 2026
Important: Always back up your server files before changing settings. Stop your server before editing any settings file.
Configuration file locations
| File | Location | Purpose |
|---|---|---|
config.json |
Server root folder | Main server settings |
permissions.json |
Server root folder | Player roles and permissions |
bans.json |
Server root folder | Banned player list |
whitelist.json |
Server root folder | Old allowed players list. Hytale 0.6.6 and later read it once, turn it into join permissions and rename it whitelist.json.migrated
|
config.json |
universe/worlds/[WorldName]/ |
Per-world settings |
Server configuration (config.json)
The main config.json in your server root controls server-wide settings. This is the layout used by Hytale Update 7:
{
"Version": 4,
"ServerName": "Hytale Server",
"MOTD": "",
"Password": "",
"MaxPlayers": 100,
"MaxViewRadius": 32,
"LocalCompressionEnabled": false,
"Defaults": {
"World": "default",
"GameMode": "Adventure",
"HardcoreMode": "None",
"CrashRecovery": {}
},
"ConnectionTimeouts": {},
"RateLimit": {},
"Modules": {},
"LogLevels": {},
"Mods": {},
"DisplayTmpTagsInStrings": false,
"PlayerStorage": {
"Type": "Hytale"
},
"DefaultModsEnabled": true,
"RequireJoinPermission": false,
"UniverseResourceStorage": {
"Type": "Hytale"
},
"BanStorage": {
"Type": "Disk",
"Path": "bans.json"
},
"AuthCredentialStore": {
"Type": "Encrypted",
"Path": "auth.enc"
},
"Update": {},
"Backup": {},
"WorldMap": {}
}
| Setting | Description | Recommended |
|---|---|---|
ServerName |
Display name shown to players | Your server name |
MOTD |
Message of the day | Short welcome message |
Password |
Server password (empty = no password) | Leave empty for public |
MaxPlayers |
Most players online at once | Based on RAM (20-50 typical) |
MaxViewRadius |
How far players can see (in chunks) | 12 for performance |
LocalCompressionEnabled |
Enable local network compression. Hytale 0.7.0 no longer reads it, so it does nothing | false |
Defaults.World |
Default world name players spawn in | "default" |
Defaults.GameMode |
Default game mode for new players | "Adventure" or "Creative" |
SentryDsn |
Sends the server's error reports to your own Sentry project, an error tracking service (Hytale 0.7.3 and later). A blank value turns error reporting off | Leave unset |
Performance tip: Limiting MaxViewRadius to 12 chunks (384 blocks) helps both performance and gameplay. The default is 32, which is also the maximum since Update 7. A higher value in config.json is lowered to 32 with a warning when the server starts.
Editing configuration files
For Survival Servers customers
The quickest way is Server Config under TOOLS: change the settings, choose Apply & Restart or Apply, then click Save.
- Log in to the Command Center
- Click Stop to stop your server
- Under TOOLS, click config.json or world/config, or use FTP Access
- Edit the file and save
- Click Start to start your server again
For self-hosted servers
- Stop your server (type
stopor pressCtrl+C) - Open the config file in a text editor
- Make your changes and save
- Start your server
World configuration (universe/worlds/[WorldName]/config.json)
Each world has its own configuration file.
{
"Version": 4,
"UUID": {
"$binary": "j2x/idwTQpen24CDfH1+OQ==",
"$type": "04"
},
"Seed": 1767292261384,
"WorldGen": {
"Type": "Hytale",
"Name": "Default"
},
"WorldMap": {
"Type": "WorldGen"
},
"ChunkStorage": {
"Type": "Hytale"
},
"ChunkConfig": {},
"IsTicking": true,
"IsBlockTicking": true,
"IsPvpEnabled": false,
"IsFallDamageEnabled": true,
"IsGameTimePaused": false,
"GameTime": "0001-01-01T08:26:59.761606129Z",
"ClientEffects": {
"SunHeightPercent": 100.0,
"SunAngleDegrees": 0.0,
"BloomIntensity": 0.30000001192092896,
"BloomPower": 8.0,
"SunIntensity": 0.25,
"SunshaftIntensity": 0.30000001192092896,
"SunshaftScaleFactor": 4.0
},
"RequiredPlugins": {},
"IsSpawningNPC": true,
"IsSpawnMarkersEnabled": true,
"IsAllNPCFrozen": false,
"GameplayConfig": "Default",
"IsCompassUpdating": true,
"IsSavingPlayers": true,
"IsSavingChunks": true,
"SaveNewChunks": true,
"IsUnloadingChunks": true,
"IsObjectiveMarkersEnabled": true,
"DeleteOnUniverseStart": false,
"DeleteOnRemove": false,
"ResourceStorage": {
"Type": "Hytale"
},
"Plugin": {}
}
| Setting | Description |
|---|---|
Seed |
World generation seed |
IsPvpEnabled |
Allow player vs player combat |
IsFallDamageEnabled |
Players take fall damage |
IsGameTimePaused |
Freeze day/night cycle |
IsSpawningNPC |
Enable mob spawning |
IsAllNPCFrozen |
Freeze all NPCs in place |
IsTicking |
World simulation runs |
IsBlockTicking |
Block updates (crops, liquids) |
IsSavingPlayers |
Save player data |
IsSavingChunks |
Save world changes |
SaveNewChunks |
Save newly generated chunks to disk |
IsUnloadingChunks |
Unload empty chunks |
ClientEffects |
Visual effects settings (sun, bloom, sunshafts) |
DeleteOnUniverseStart |
Delete world on server start |
DeleteOnRemove |
Delete world files when removed |
World pre-generation
Pre-generating creates terrain ahead of time, reducing lag when players explore.
Method 1: In-game exploration
- Start your server and log in as admin
- Fly around the map to generate chunks
- The server saves chunks as you explore
Method 2: Pre-generation mods
- Add a pre-gen mod to your
mods/folder - Configure the area size and center point
- Run the pre-generation command
Method 3: Command line
java -jar HytaleServer.jar --help
Check for built-in pre-generation options.
Server mesh architecture (multi-server networks)
Hytale can connect several servers together without outside proxies like BungeeCord.
These features work through the server's Java API:
| Feature | API method | Description |
|---|---|---|
| Player Referral | PlayerRef.referToServer(host, port, payload) |
Transfer players between servers with optional 4KB payload |
| Connection Redirect | PlayerSetupConnectEvent.referToServer(host, port) |
Redirect during handshake before full connection |
Security: Referral payloads pass through the client and can be tampered with. Sign payloads cryptographically (e.g., HMAC with a shared secret) so receiving servers can verify authenticity.
Custom proxies: Build proxy servers using Netty QUIC. Packet definitions are in HytaleServer.jar at com.hypixel.hytale.protocol.packets.
Command-line options
java [JVM options] -jar HytaleServer.jar [server options]
JVM options
| Option | Description | Example |
|---|---|---|
-Xms |
Initial memory allocation | -Xms4G
|
-Xmx |
Maximum memory allocation | -Xmx4G
|
-XX:+UseG1GC |
Use G1 garbage collector | Recommended for 8GB+ |
-XX:AOTCache |
Use AOT cache for faster startup | -XX:AOTCache=HytaleServer.aot
|
Server options
| Option | Description | Default |
|---|---|---|
--assets <path> |
Path to Assets.zip | ..\HytaleAssets
|
--bind <ip:port> |
Address and port to listen on | 0.0.0.0:5520 |
--auth-mode <mode> |
authenticated or offline |
authenticated |
--backup |
Enable automatic backups | Disabled |
--backup-dir <path> |
Backup storage location | None |
--backup-frequency <mins> |
Backup interval in minutes | 30 |
--disable-sentry |
Disable crash reporting | Enabled |
--allow-op |
Allow operator commands | Disabled |
--accept-early-plugins |
Load experimental plugins (unsupported) | Disabled |
Example launch scripts
Production server (Windows - start.bat):
@echo off java -Xms6G -Xmx6G -XX:+UseG1GC -XX:AOTCache=HytaleServer.aot -jar HytaleServer.jar --assets Assets.zip --backup --backup-frequency 60 pause
Production server (Linux, start.sh):
#!/bin/bash java -Xms6G -Xmx6G -XX:+UseG1GC -XX:AOTCache=HytaleServer.aot -jar HytaleServer.jar --assets Assets.zip --backup --backup-frequency 60
Development server:
java -Xms4G -Xmx4G -jar HytaleServer.jar --assets Assets.zip --auth-mode offline --disable-sentry
Firewall configuration
Hytale uses the QUIC protocol over UDP (not TCP).
Windows PowerShell:
New-NetFirewallRule -DisplayName "Hytale Server" -Direction Inbound -Protocol UDP -LocalPort 5520 -Action Allow
Linux (iptables):
sudo iptables -A INPUT -p udp --dport 5520 -j ACCEPT
Linux (ufw):
sudo ufw allow 5520/udp
See also
- How to Create a Hytale Server Guide
- How to Join a Hytale Server
- How to Install Mods on a Hytale Server
- How to Update a Hytale Server
- Official Hytale Website
- Hytale Support & Documentation
- Rent a Hytale server from Survival Servers