A VPS for a SA-MP, open.mp or CRMP server: what to choose and how to set it up
Multiplayer for GTA: San Andreas has been around for almost twenty years, and in the Russian-speaking community it is still kept alive by role-play projects. The server itself barely loads the hardware, but an RP gamemode with a player database, thousands of map objects and dozens of plugins quickly hits the limit of a single CPU core. Hence the main principle for choosing a VPS for SA-MP: a fast core, low ping to players and attack protection, not lots of memory.
SA-MP, open.mp or CRMP
- SA-MP is the original server (the 0.3.7 and 0.3.DL branches). Development stopped long ago and nobody is left to fix engine bugs, but most ready-made gamemodes are written for it.
- open.mp is an open-source replacement for the SA-MP server. Players connect to it with ordinary SA-MP clients, and Pawn scripts in most cases run without changes. The developers claim noticeably better performance and stability, and the project keeps being updated. Compatibility isn't complete: some old plugins and tricks that gamemodes used to work around the original server's bugs will need checking.
- CRMP is a SA-MP-based multiplayer with a map in a Russian setting. Its server requirements are of the same order, and choosing hosting for it follows the same rules.
If the project is new, it makes sense to start with open.mp right away. If you already have a SA-MP gamemode, it's better to test the move first on a test server next to the live one.
CPU and memory for an RP gamemode
The gamemode is executed by the Pawn virtual machine in a single thread. Every timer, zone check, vehicle sync and database query costs time on that thread. When it can't keep up, players see desync: cars jump and damage lands late. So the guideline is a core at 3 GHz or more, preferably higher, and KVM with fairly allocated resources. The VPS with high CPU clock speeds selection makes it easy to compare plans by clock speed.
In practice memory breaks down like this:
- the server itself with a small gamemode: tens of megabytes;
- an RP gamemode with the streamer plugin and thousands of objects: hundreds of megabytes;
- MySQL or MariaDB with accounts, houses and logs: another 512 MB or more, and more as the database grows.
Hence 1 GB as the minimum for the listing: it's enough to start, while for a project with hundreds of players online and the database on the same server, take 2–4 GB. On a large project the database is moved to a separate server so that its queries don't take CPU away from the game; more on the VPS for MySQL page.
Settings that affect the load
stream_distanceand the object streamer's range: the larger they are, the more data the server sends to each player;onfoot_rate,incar_rate,weapon_rate: the sync frequency; raise them only if you have CPU headroom;lagcompmode: lag compensation for shooting, which determines how damage feels at high ping;- debug output and verbose logs: turn them off on a live server, as on a small disk they take up space faster than you'd think.
Saving data is a separate topic. On an RP server the database is worth more than the gamemode itself: it holds accounts, property and the project's economy. Set up a daily database dump to another server or storage, and periodically check that you can actually restore from the copy.
The SA-MP and open.mp server files for Linux are 32-bit, so on a 64-bit system you need to install 32-bit libraries and build or download plugins of the same bitness.
Ping, attacks and ports
The main audience of SA-MP and CRMP is players from Russia and the CIS, so servers in Russia are selected in the listing by default. A data centre in Moscow gives the lowest latency for the central part of the country; if your players are mostly in the Urals or Siberia, choose a location closer to them. For a community elsewhere, pick a data centre near most of its players.
Open SA-MP servers are attacked often: by competitors, disgruntled players and bot operators. There are network floods on the UDP port, spoofed queries to the server and mass bot connections. Against the first you need filtering on the host's side, which is why the table shows plans with DDoS protection; against bots, limits on connections from one address in the gamemode or in open.mp help. The server listens on UDP 7777 by default; with several servers on one VPS each needs its own port. Close the panel, the forum site and the database to the outside world, allowing access only from the addresses you need.
If you are also planning a project on a newer platform, compare the requirements on the VPS for RAGE MP and FiveM page: the CPU and memory load there is several times higher.