How to Set Up a Myth of Empires Dedicated Server on AnonVM Hosting

How to Set Up a Myth of Empires Dedicated Server on AnonVM Hosting

Introduction

Myth of Empires is a medieval-themed multiplayer game that involves crafting, combat, and large-scale battles. Setting up a dedicated server ensures you and your community can play on a persistent world, independently of official servers.

Prerequisites

  • An AnonVM VPS with at least 4GB of RAM and 2 CPU cores (recommended for smooth server performance).
  • SSH access to your VPS.
  • Basic knowledge of Linux command-line operations.
  • Myth of Empires server files (available through SteamCMD or an official distribution method from the developers).

Step 1: Access Your AnonVM VPS

  1. Log in to your AnonVM dashboard and access your VPS details.
  2. Use SSH to connect to your VPS:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with the actual IP address of your VPS.

Step 2: Install Required Dependencies

  1. Update your system: Make sure your system is up-to-date:

     
    apt-get update && apt-get upgrade -y
  2. Install required libraries: Myth of Empires may require certain libraries to run properly. For example:

     
    apt-get install lib32gcc1 -y

Step 3: Install SteamCMD

To install the Myth of Empires server, you’ll likely use SteamCMD, a tool that allows you to download and update games on a dedicated server.

  1. Install SteamCMD:

     
    mkdir -p /home/steam cd /home/steam wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
  2. Extract SteamCMD:

     
    tar -xvzf steamcmd_linux.tar.gz
  3. Run SteamCMD:

     
    ./steamcmd.sh

    After this, you can exit SteamCMD by typing quit.


Step 4: Download Myth of Empires Server Files

  1. Install the server files: Use SteamCMD to download the Myth of Empires server files:

     
    ./steamcmd.sh

    Inside SteamCMD, run the following commands:

     
    login anonymous force_install_dir /home/mythofempires app_update <app_id> validate quit

    Replace <app_id> with the actual app ID for Myth of Empires (this can usually be found on Steam’s database or from the game’s official sources).


Step 5: Configure the Server

  1. Navigate to the server configuration files: After the installation, you should have the necessary files in /home/mythofempires. You may find the main server configuration files in a directory like /home/mythofempires/server.

  2. Edit the server configuration: The server will have configuration files, such as ServerConfig.ini or GameSettings.ini, that you can edit to customize the server settings. Use a text editor to modify them:

     
    nano /home/mythofempires/server/ServerConfig.ini

    Common configuration settings to adjust:

    • Server Name: Set the server's display name.
    • Max Players: Adjust the maximum number of players allowed to join.
    • Server Password: Set a password if you want to restrict access to your server.
    • Game Mode: Choose between PvP or PvE mode.
    • Map: Set the map type or select a custom one.

    Example of a server configuration:

    ini
     
    ServerName="Myth of Empires Server" MaxPlayers=50 ServerPassword="mysecretpassword" GameMode="PvP"

Step 6: Open Required Ports on Your VPS

To allow players to connect to your server, you need to open the necessary ports in your VPS firewall.

  1. Find out the necessary ports for Myth of Empires. Commonly used ports can be found in the server documentation or community forums.

  2. Open the required ports using UFW (Uncomplicated Firewall):

     
    ufw allow 7777/udp ufw allow 27015/udp ufw reload

    This example assumes port 7777 and 27015 for game and query traffic. Adjust the ports as necessary for your specific configuration.


Step 7: Run the Server

  1. Start the server: After configuring everything, you can start the server with the following command:

     
    cd /home/mythofempires ./start_server.sh

    This command will start the server based on the configuration files you set up.

  2. Running in the background: To keep the server running even after you disconnect from your SSH session, use screen or tmux:

    • Install screen:

       
      apt-get install screen -y
    • Start a new screen session:

       
      screen -S mythofempires ./start_server.sh
    • To detach from the screen session, press Ctrl + A, then D. To reattach later:

       
      screen -r mythofempires

Step 8: Connect to Your Server

Once the server is running, players can connect by entering your VPS’s public IP address and the port it’s running on (e.g., your-vps-ip:7777).

  1. Launch Myth of Empires on your PC.
  2. Go to the Server Browser or Join IP section and enter the server details.
  3. If you set a password, players will be prompted to enter it.

Step 9: Update the Server

To keep your server up to date, periodically run SteamCMD to fetch any updates released by the developers.

  1. Stop the server by pressing Ctrl + C in the screen session.

  2. Run the following commands to update:

     
    ./steamcmd.sh login anonymous force_install_dir /home/mythofempires app_update <app_id> validate quit
  3. Restart the server by running ./start_server.sh again.


Conclusion

You’ve now successfully set up your Myth of Empires dedicated server on your AnonVM VPS. You can now host your own persistent world, where you and your friends can build, fight, and survive in this medieval sandbox. The flexibility of hosting a server gives you full control over the experience, from gameplay settings to world management.

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution