SERVER / DEPLOYMENT

Game Server Setup Guide

A complete guide to server token requests, environment variables, server visibility, and launch examples.

This guide collects the environment variables, token request workflow, and lobby visibility rules most commonly used when launching a server. All content comes from the existing server configuration document and has been reformatted for the website.

1. Overview

This manual explains how to configure and launch your own game server through environment variables in a .env file. After startup, the server automatically registers with the official lobby, and your settings determine its visibility and server type.

Note: any GAME_ variable whose type is a presence flag is considered enabled as long as it exists, regardless of its value. To disable that feature, remove the line entirely or do not define the variable.

2. Prerequisites

  • Required: request a valid game authorization TOKEN (GAME_TOKEN) from the official team. Without a TOKEN, you cannot run a public server (authorized or official).
  • Prepare a server with a public IP, or a machine inside a LAN if you only need local network play.
  • Install Docker and Docker Compose (recommended), or make sure the runtime environment meets the game requirements.
  • Send your TOKEN request by email to team@nextindie.cn.

TOKEN request template

Subject: TOKEN Request - IP: 127.0.0.1 (replace with your public IP)
Body:
User UID: your game account user ID (must be accurate to speed up review)
Public IP: your public IP address (it must be pingable or the request will be rejected)
Purpose: describe what the server is for (for example: personal server, community server)
Server region: specify where the server is hosted (for example: Asia, North America)

Please make sure all information is accurate. After approval, the TOKEN will be sent to your email. Review usually takes 3 to 7 business days.
Requesting a server TOKEN means you agree to follow our server rules and accept necessary enforcement on violating servers, such as TOKEN deletion or lobby removal. Do not share your TOKEN with others, or your server may be abused or attacked.

3. All configurable parameters

3.1 Basics and authorization

VariableTypeDefaultDescription
GAME_NAMEStringThe MesozicServer name shown to players in the lobby list
GAME_TOKENStringEmptyGame authorization TOKEN. This must be requested from the official team. Without a valid TOKEN, the server cannot register as a public server (authorized or official). See Section 4 for details.
GAME_AUTO_RESTARTPresence flagNoneWhen enabled, the server automatically restarts once per day to improve long-running stability
GAME_ADMINSStringNoneAdministrator user IDs for the server, separated by commas, for example 100001,10002,100003.

3.2 Networking and connection type

VariableTypeDefaultDescription
GAME_IPString127.0.0.1The server's public IP address. Fill in the correct public IP or other players will not be able to connect
GAME_HOSTPresence flagNoneLAN mode only. When defined, the server automatically detects the machine's LAN IP and ignores GAME_IP. The server becomes a LAN server and will not appear in the public server list
GAME_PORTInteger26666Server listen port (UDP). Make sure your firewall allows it
GAME_MAX_PLAYERSInteger64Maximum number of players that can be online at the same time
GAME_GLOBALBooleantrueWhether to use the global matchmaking node. In most cases this should stay true
GAME_PUBLICPresence flagfalseControls whether the server is public. If undefined, the server stays private (password-protected or only visible to friends). If defined, it becomes public and appears in the lobby, provided TOKEN and link requirements are met
GAME_LINKPresence flagfalseForces the server to be a private server (PRIVACY). Define this if you want a password-protected private room. Private servers are usually not public or are only visible to a limited audience
GAME_NODEStringASRegion node shown to players for latency reference. Valid values: AS (Asia), CN (China), NA (North America), SA (South America), EU (Europe), ME (Middle East)

Connection type priority and combinations

If GAME_LINK is defined, the server is a private server (PRIVACY). Even if GAME_PUBLIC is also enabled, it still exists only as a password-protected private room.

If none of those special variables are defined, and GAME_PUBLIC is enabled with a valid GAME_TOKEN, the server is registered as an authorized server (AUTHORIZE). This is the main way regular players host public servers.

If GAME_PUBLIC is not defined, the server remains private regardless of TOKEN status and does not appear in the public list.

3.3 Game rules

VariableTypeDefaultDescription
GAME_DEAD_TIMEInteger (seconds)1800How long corpses remain before decaying away
GAME_START_GROWTHFloat0.1Initial growth value for a new character (0.0 ~ 1.0)
GAME_MAX_GROWTHFloat1.0Maximum growth value for a character
GAME_SPEED_GROWTHFloat1.0Growth speed multiplier
GAME_TEAMInteger6Maximum team size
GAME_CHILDInteger0How many offspring or followers a player can own at the same time. 0 disables offspring
GAME_SAFEInteger (seconds)0Spawn protection duration for new characters
GAME_TEAM_DAMAGEPresence flagEnabledEnables friendly fire. Remove this variable if you do not want teammates to damage each other
GAME_HATCHPresence flagEnabledAllows invited hatching and cooperative breeding with other players
GAME_EVOLPresence flagEnabledAllows egg evolution, enabling progression across stages through eggs
GAME_PKPresence flagDisabledEnables voluntary player-versus-player duels
GAME_ALT_TURNPresence flagEnabledAllows turning in place
GAME_MALE_REBIRTHPresence flagEnabledAllows rebirth using male characters
GAME_SINGLE_BREEDPresence flagDisabledAllows solo hatching without a mate
GAME_ERA_REBIRTHPresence flagDisabledAllows cross-era rebirth (generational rebirth)
GAME_DOWNGRADE_REBIRTHPresence flagDisabledAllows downgraded rebirth into a lower evolution stage
GAME_LEARNPresence flagEnabledAllows gene learning
GAME_CHILD_ATTRIBUTE_INHERITPresence flagDisabledWhether offspring inherit parent attributes (this may cause unlimited stat growth)

3.4 AI and ecosystem

VariableTypeDefaultDescription
GAME_MAX_AIPresence flagEnabledWhether AI ecosystem dinosaurs are spawned. If disabled, only players will exist on the map
GAME_AI_MATEPresence flagDisabledWhether an AI mate is allowed to follow and assist the player

3.5 Genes and proficiency

VariableTypeDefaultDescription
GAME_CRAZYPresence flagEnabledAllows berserk genes to appear
GAME_GENE_SKILLFULPresence flagEnabledEnables the gene proficiency system
GAME_KILL_SKILLFULPresence flagDisabledWhether killing other players grants proficiency

3.6 Game modes (choose one)

VariableTypeDescription
GAME_MODE_SANDBOXPresence flagSandbox mode: players can freely choose species and berserk genes are disabled
GAME_MODE_EVOLPresence flagEvolution mode: initial species choices are restricted, egg evolution is forced on, and stronger creatures are unlocked step by step
GAME_MODE_PRIMEVALPresence flagPrimeval mode: berserk genes, downgraded rebirth, and solo hatching are forced on, while gene proficiency is disabled

Enable only one mode. If multiple modes are defined, the one defined later overrides the earlier one.

3.7 Difficulty settings

VariableTypeDefaultDescription
GAME_SIMPLEPresence flagDisabledEnables simple difficulty (generational rebirth, downgraded rebirth, and solo hatching on; invited hatching off)
GAME_NORMALPresence flagDisabledEnables normal difficulty (only generational rebirth is enabled)
GAME_HARDInteger0Directly sets the difficulty level and overrides the previous two flags. Valid values: 0=normal, 1=simple, 2=very easy, 3=hard, 4=hardcore

3.8 PVP / PVE (choose one)

VariableTypeDescription
GAME_PVPPresence flagEnables PVP mode (players can attack each other)
GAME_PVEPresence flagEnables PVE mode (player damage is disabled, but duels are still allowed)

Choose one of these modes. It is not recommended to define both.

3.9 Map

VariableTypeDefaultDescription
GAME_MAPStringTag of the first built-in mapMap identifier, for example Oasis. Refer to the official map list for available values

3.10 MOD loading

VariableTypeDefaultDescription
GAME_MODSStringNoneComma-separated MOD names to load, for example ModA,ModB. Make sure those MODs are correctly installed in the server's Data/Mods directory

4. Server types and lobby visibility

Server typeRequired environment variablesCharacteristics
LAN server (LAN)Define GAME_HOSTOnly players inside the same LAN can connect. The server does not appear in the public lobby
Private server (PRIVACY)Define GAME_LINK. No TOKEN requiredJoining requires a password. The server remains private by default, though friends can still connect directly through other means. It does not appear in the public lobby list
Authorized server (AUTHORIZE)Define GAME_PUBLIC and provide a valid GAME_TOKEN. Do not define GAME_HOST, GAME_LINK, or GAME_OFFICIALThis is how most players host public servers. The server appears in the lobby and is marked as an authorized server, ranked just below official servers

Key reminders

  • If you want your server to appear in the lobby and be searchable by all players, all three conditions must be met: 1) enable GAME_PUBLIC, 2) provide a valid GAME_TOKEN, and 3) do not enable GAME_HOST or GAME_LINK.
  • A public server without a valid TOKEN will be blocked during registration and will report that the server TOKEN is invalid or expired.
  • After startup, the server sends a heartbeat to the lobby every 90 seconds to remain listed. If heartbeats stop, the server is removed from the list, but connected players are not disconnected.

5. Configuration example

5.1 Public authorized server (recommended for personal hosting)

# Basics
GAME_TOKEN=TOKEN_REQUESTED_FROM_THE_OFFICIAL_TEAM
GAME_NAME=The Mesozoic Dawn
GAME_AUTO_RESTART=1
GAME_ADMINS=100001,100002

# Networking: public IP and port
GAME_IP=203.0.113.10
GAME_PORT=26666
GAME_MAX_PLAYERS=100
GAME_PUBLIC=1
GAME_NODE=AS

# Rules (adjust as needed)
GAME_CHILD=2
GAME_SAFE=30
GAME_TEAM=4
GAME_DEAD_TIME=1200
GAME_EVOL=1
GAME_AI_MATE=1

# Mode: sandbox
GAME_MODE_SANDBOX=1

# Map
GAME_MAP=Oasis