Mount & Blade II: Bannerlord is an action-RPG and strategy game that allows players to build armies, siege castles, and conquer lands in a medieval world. Hosting a dedicated server can enhance your multiplayer experience by providing a stable, custom environment for you and your friends. This guide will show you how to install and configure a Mount & Blade II: Bannerlord dedicated server on a VPS from AnonVM.
Prerequisites
Before starting, ensure you have the following:
- A VPS from AnonVM with at least 4 GB of RAM, 2 CPU cores, and 30 GB of disk space.
- SSH access to your VPS.
- Basic knowledge of Linux commands.
- A stable internet connection for downloading server files.
Step 1: Access Your AnonVM VPS
- Log in to your AnonVM account and navigate to your VPS.
- Use an SSH client (such as PuTTY) or your terminal to connect to your VPS:
your-vps-ip
with your actual VPS IP address and provide your password when prompted.
Replace
Step 2: Install Dependencies
You need a few packages installed to run the Mount & Blade II: Bannerlord server on your VPS.
-
Update your system:
-
Install necessary packages:
These packages will allow the game server to run smoothly on your VPS.
Step 3: Install SteamCMD
SteamCMD is used for downloading and updating the dedicated server files for Mount & Blade II: Bannerlord.
-
Create a directory for SteamCMD:
-
Download and extract SteamCMD:
-
Run SteamCMD to verify installation:
After the SteamCMD prompt appears, type
quit
to exit.
Step 4: Download the Bannerlord Server Files
Now that SteamCMD is installed, use it to download the Mount & Blade II: Bannerlord server files.
-
Login to SteamCMD:
-
Set the installation directory:
-
Download the server files:
This command will download the necessary server files for Mount & Blade II: Bannerlord. It may take some time depending on your internet speed.
Step 5: Configure the Server
After downloading the server files, you need to configure your server to your preferences.
-
Navigate to the server directory:
-
Edit the configuration file:
- The server configuration is done through the
server_config.xml
file located in the server directory. Open this file to configure settings such as server name, game mode, player limits, and more.
Use a text editor (e.g., nano) to edit the file:
Example configuration options you can change:
- Server Name: Set your server name to appear in the server browser.
- Max Players: Set the maximum number of players allowed on your server.
- Game Mode: Choose between different modes such as PvP or PvE.
- The server configuration is done through the
-
Save and exit the configuration: After making changes, save the file and exit the editor (
CTRL + X
, thenY
to confirm).
Step 6: Open Required Ports
To allow players to connect to your server, you must open the necessary ports.
Mount & Blade II: Bannerlord requires the following ports to be open:
- TCP/UDP 27015: Game server port
- TCP/UDP 27016: Query port (for server browser)
- TCP 27005: For client communication
-
Open the necessary ports:
If you use a different firewall tool, make sure the above ports are open.
Step 7: Start the Server
Now that everything is set up, you can start your server.
-
Run the server in a screen session: Running the server in a screen session allows it to run in the background even after disconnecting from the VPS.
-
Create a new screen session:
-
Start the server:
-
-
Detach from the screen session: To detach from the screen session and leave the server running in the background, press
CTRL + A
, thenD
. To reattach later, use the command: -
Monitor the server logs: You can check the server logs to monitor the server’s status or troubleshoot any issues by checking the log file:
Step 8: Connect to Your Server
Once your server is running, you can join it using Mount & Blade II: Bannerlord.
- Launch the game on your local machine.
- Go to Multiplayer, then Join Game.
- In the server browser, search for your server by name, or manually enter your server's IP address and port.
If you set a password, you will be prompted to enter it.
Step 9: Updating the Server
To keep your server up to date with the latest patches and improvements:
-
Run SteamCMD to check for updates:
This will check for updates and download any new files for the server.
Conclusion
You now have a dedicated Mount & Blade II: Bannerlord server running on your AnonVM VPS. With this setup, you can enjoy a stable, customizable multiplayer experience. Be sure to regularly update your server, adjust configurations to fit your preferences, and manage your players for the best experience. Happy gaming!