How to Set Up a Squad Server on AnonVM Hosting

Squad is a tactical first-person shooter game focused on teamwork, strategy, and large-scale battles. Setting up a dedicated Squad server on your AnonVM VPS allows you to create your own custom game world, manage player activities, and control game settings. This guide will take you step-by-step through installing and configuring your own Squad server, ensuring a seamless multiplayer experience.

Prerequisites

Before you begin, make sure you have the following:

  • An AnonVM VPS account with sufficient resources (recommend at least 4 GB RAM, 2 CPU cores, and 20 GB of disk space).
  • SSH access to your VPS.
  • Basic knowledge of Linux commands.
  • A stable internet connection to download and update server files.

Step 1: Access Your AnonVM VPS

  1. Log into your AnonVM account and access the VPS through the control panel.
  2. Open a terminal (or use PuTTY on Windows) and connect to your VPS via SSH:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with your actual VPS IP address. Enter your password when prompted.

Step 2: Install Dependencies

To run the Squad server, you’ll need to install a few dependencies on your VPS:

  1. Update your system:

     
    apt-get update && apt-get upgrade -y
  2. Install required libraries:

     
    apt-get install wget curl screen lib32gcc1 -y

These are necessary libraries for running the Squad server and managing the server process in the background.

Step 3: Install SteamCMD

SteamCMD is a command-line tool that allows you to download and update dedicated game servers, including Squad.

  1. Create a directory for SteamCMD:

     
    mkdir -p /home/steam cd /home/steam
  2. Download SteamCMD:

     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xvzf steamcmd_linux.tar.gz
  3. Run SteamCMD to verify installation:

     
    ./steamcmd.sh

    If everything is installed correctly, you’ll be taken into the SteamCMD prompt. Type quit to exit.

Step 4: Download Squad Server Files

With SteamCMD installed, you can now download the Squad server files.

  1. Log in anonymously:

     
    ./steamcmd.sh login anonymous
  2. Set the installation directory for Squad server:

     
    force_install_dir ./squad_server
  3. Download the Squad server files:

     
    app_update 403360 validate

    This command will download and validate the server files. The download size is about 20 GB, so it may take some time depending on your connection.

Step 5: Configure the Squad Server

After downloading the necessary files, it's time to configure the server settings.

  1. Navigate to the server directory:

     
    cd /home/steam/squad_server
  2. Edit the configuration files: Squad’s server settings are managed through a few files in the SquadGame/Config directory. The main files to configure are:

    • ServerSettings.ini: This file controls the general game settings such as server name, max players, and more.
    • MapRotation.ini: This file allows you to configure the maps and rotations for your server.

    To edit these files, use a text editor like nano:

     
    nano SquadGame/Config/ServerSettings.ini

    In ServerSettings.ini, you can adjust settings like:

    • Server Name: Change the name that will appear in the server list.
    • Max Players: Set the maximum number of players allowed on your server.
    • Game Mode: Set whether the server will run in normal, hardcore, or other modes.
    • Password: If you want to restrict access, you can set a password here.

    After editing, save and close the file (in nano, press CTRL + X, then Y to confirm).

Step 6: Open Required Ports

To allow players to join your Squad server, you need to open specific ports in your VPS firewall.

The default ports for Squad are:

  • TCP/UDP Port 7787 (Game Server)
  • UDP Port 27015 (Steam Query)
  • UDP Port 15000 (Voice Communication)

To open these ports using ufw (Uncomplicated Firewall), run the following commands:

 
ufw allow 7787/tcp ufw allow 7787/udp ufw allow 27015/udp ufw allow 15000/udp ufw reload

If you use a different firewall management tool, ensure the necessary ports are opened for proper multiplayer functionality.

Step 7: Start the Squad Server

Now that the server is configured, it's time to start the server.

  1. Start the server by running the following command in the squad_server directory:

     
    ./SquadServer.sh
  2. Run the server in the background (recommended): To ensure the server continues running even if you disconnect from the terminal, use screen:

    • Start a new screen session:

       
      screen -S squad_server
    • Start the server:

       
      ./SquadServer.sh
    • To detach from the session, press CTRL + A and then D. To reattach later, use:

       
      screen -r squad_server

Step 8: Connect to Your Squad Server

After the server starts, it will begin accepting connections from players.

  1. Launch Squad on your local machine.
  2. Go to the "Server Browser" and search for your server name or IP address.
  3. Join the server. If you set a password, enter it when prompted.

Step 9: Update the Squad Server

To keep your server up to date with the latest features and patches, you’ll need to run updates periodically.

  1. Update the server using SteamCMD:

     
    ./steamcmd.sh login anonymous force_install_dir ./squad_server app_update 403360 validate

    This command will update the server with any new patches or content updates.

Conclusion

Setting up a Squad server on AnonVM Hosting gives you full control over your multiplayer experience, allowing you to customize your game world, manage player activity, and create a lag-free environment. By following these steps, you'll be able to enjoy a seamless multiplayer experience with your friends and squadmates.

By using the proper server settings, optimizing your VPS for performance, and keeping your server up to date, you can provide an enjoyable and stable experience for all players on your server.

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

Powered by WHMCompleteSolution