Dedicated Gaming Servers

Zomboid: how to change server settings

Zomboid: how to change server settings

Setting up and managing a Project Zomboid server can greatly enhance your multiplayer experience, allowing you to customize the game environment to your preferences. This guide will walk you through the essential steps to install, configure, and manage your Project Zomboid server, ensuring you have full control over your gameplay settings.

Key Takeaways

  • Understanding how to install and set up a Project Zomboid server is essential for customizing your multiplayer experience.
  • Properly configuring server settings, including ports and firewall rules, ensures smooth and secure gameplay.
  • Regularly updating server files and using admin commands can help maintain an optimal gaming environment.

Installing and Setting Up the Server

Setting up your Project Zomboid server involves a few key steps. Follow these instructions to get your server up and running smoothly.

Enabling Non-Free Repository

First, you need to enable the non-free repository on your system. This is essential for installing certain packages required for the server.

sudo apt-get install software-properties-common -y
sudo apt-add-repository non-free

Installing SteamCMD

Next, install SteamCMD, a command-line version of Steam, which is necessary for downloading the Project Zomboid server files.

sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install steamcmd -y

Creating a User for the Server

For security reasons, it’s best not to run the server as the root user. Create a new user specifically for running the server.

sudo adduser pzuser

Once the user is created, set up the directory where the server files will be installed and assign the appropriate permissions.

sudo mkdir /opt/pzserver
sudo chown pzuser:pzuser /opt/pzserver

Log in as the new user to proceed with the installation.

sudo -u pzuser -i

Note: By following these steps, you ensure that your Project Zomboid server is set up securely and efficiently.

Configuring Server Settings

Configuring your Project Zomboid server settings is crucial for tailoring the gameplay experience to your preferences. This section will guide you through accessing and editing the necessary configuration files, adjusting sandbox settings, and applying your changes effectively.

Managing Ports and Firewall

Required Ports for Project Zomboid

To ensure smooth gameplay experience, you need to open specific ports for your Project Zomboid server. The default ports are:

  • 16261 UDP: This is the main port for player data.
  • 16262 UDP: Used for direct connections.

These ports are essential for optimizing gameplay and ensuring that players can connect without issues.

Opening Ports on Linux

If you’re running your server on a Linux machine, you’ll likely use UFW (Uncomplicated Firewall) to manage your firewall settings. Here’s how you can open the required ports:

# Open the ports
sudo ufw allow 16261/udp
sudo ufw allow 16262/udp
# Reload the firewall to apply the changes
sudo ufw reload

This will allow the necessary traffic through your firewall, ensuring that your server is accessible to players.

Verifying Port Configuration

After opening the ports, it’s crucial to verify that they are correctly configured. You can use tools like netstat or ss to check if the ports are open and listening. Here’s a quick way to do it:

# Check if ports are open
sudo netstat -tuln | grep 16261
sudo netstat -tuln | grep 16262

If the ports are listed, your configuration is correct. If not, you may need to revisit your firewall settings or consult additional resources for troubleshooting.

Ensuring your ports are correctly configured is a key step in managing and customizing your server settings for optimal performance.

Running and Updating the Server

Starting the Server

To get your Project Zomboid server up and running, you’ll need to execute the appropriate start script. For Windows, navigate to your server’s installation directory and run the StartServer64.bat file. On Linux, use tmux to keep the server running even if your terminal session ends. Remember to set a password for the admin account on the first run.

Updating Server Files

Keeping your server updated is crucial for stability and access to new features. Use steamcmd to update your server files. Run the following command to ensure your server is up-to-date:

steamcmd +runscript $HOME/update_zomboid.txt

This script will log in anonymously and download the latest server files.

Using Admin Commands

Admin commands are essential for managing your server. You can execute these commands either in-game or through the server console. Here are some useful commands:

  • /additem "username" "module.item" count – Give an item to a player.
  • /banuser "username" -ip -r "reason" – Ban a user with an optional reason.
  • /godmode "username" -true – Make a player invincible.

Pro Tip: Use the /help command to get a full list of available admin commands and their usage.

Conclusion

Configuring and managing a Project Zomboid server can seem daunting at first, but with the right guidance, it becomes a straightforward process. By following the steps outlined in this article, you can successfully set up, customize, and maintain your server to provide the best multiplayer experience for you and your friends. Whether you are adjusting server settings through the in-game interface or manually editing configuration files, the flexibility offered by Project Zomboid ensures that you can tailor the gameplay to your preferences. Remember to regularly update your server and back up your configuration files to avoid any potential issues. Happy gaming!

More Project Zomboid Guides

Most Read Guides