You can run a One Hour One Life server on your own VPS with ZapX. The One Hour One Life server is open source: you download the source code from the developer, build the server yourself, and run it on Linux. This guide explains what you need, how to build the server, and how your players can connect.
One Hour One Life is not included in the Game Server Installer and does not have a ready-made dedicated server available through SteamCMD. You set up the server manually, as described in this guide.
The developer builds and runs their servers on Linux. If your VPS runs Windows, install a Linux template via Settings > Reinstallation. This deletes all data on your VPS. For more information, see Server Reinstallation.
- Connect to your VPS via SSH and install the tools. On Debian and Ubuntu, for example, run
apt install git g++ make. It’s best to create a separate user for the server instead of running everything asroot. - Download the developer’s three repositories into an empty directory:
git clone https://github.com/jasonrohrer/minorGems.git
git clone https://github.com/jasonrohrer/OneLife.git
git clone https://github.com/jasonrohrer/OneLifeData7.git
- Build the server. The
1specifies Linux:
cd OneLife/server
./configure 1
make
- Link the game data to the server directory:
ln -s ../../OneLifeData7/categories .
ln -s ../../OneLifeData7/objects .
ln -s ../../OneLifeData7/transitions .
ln -s ../../OneLifeData7/tutorialMaps .
ln -s ../../OneLifeData7/contentSettings .
ln -s ../../OneLifeData7/dataVersionNumber.txt .
These steps match the scripts/pullAndBuildTestSystem.sh script that the developer uses to set up test systems.
Settings are stored as individual files in the OneLife/server/settings/ directory. Each file contains exactly one value. The most important ones are:
| File | Default | Description |
|---|---|---|
port.ini | 8005 | Server port |
maxPlayers.ini | 160 | Maximum number of players |
requireClientPassword.ini | 0 | Set to 1 to require a password to connect |
clientPassword.ini | testPassword | The password, if required |
requireTicketServerCheck.ini | 1 | Checks logins against the official ticket server |
For a private server, the developer sets requireTicketServerCheck.ini to 0 in their test script. If you set a password, be sure to change clientPassword.ini—the default value is publicly known.
Start the server from the OneLife/server directory with ./OneLifeServer. To keep it running after you disconnect from SSH, start it in a screen or tmux session. To start the server automatically when your VPS restarts, you can use a systemd service that runs OneLifeServer from this directory.
Players set up a custom server in the game. To do this, they edit these files in the settings directory of their game installation:
| File | Value |
|---|---|
useCustomServer.ini | 1 |
customServerAddress.ini | Your VPS IP address, shown under Overview in the ZapX dashboard |
customServerPort.ini | 8005 or the value in your port.ini |
serverPassword.ini | The password from clientPassword.ini, if you require one |
The server and game should be running the same version; otherwise, the connection may fail.
| Port | Protocol | Use |
|---|---|---|
| 8005 | TCP | Game (value from port.ini) |
If you use a system firewall, open the port there. For more information, see Firewall on Linux. If you use your VPS’s Network Firewall in the ZapX dashboard, open the port there as well.
Updates are not installed automatically. Stop the server, run git pull --tags in all three directories to get the latest version, then rebuild the server from the OneLife/server directory with make.
Before updating, back up the OneLife/server directory, especially the settings directory and your world files. Stop the server first.
Your entire VPS is also backed up automatically every day. With an active ZapX Pass, you can restore these backups yourself and create your own backups. For more information, see Daily Backups, Restoring Backups, and Locked Actions.
You can find the source code, scripts, and all settings files in the developer’s official GitHub repository. Find the latest game news at onehouronelife.com.
Your One Hour One Life server is now running on your VPS. If something isn’t working as expected, see One Hour One Life: Common Issues. If you have questions or need help, our support team is here for you every day! 🙂