Skip to content

Running a server

Ashen edited this page Dec 6, 2026 · 1 revision

Running a server

← Home · Español

For a group or community that wants its own always-on server, for example on a VPS. To play with friends now and then, Host a game in the launcher is enough.

Setup

  1. On your PC, with the game installed: python tools/extract_keys.py "<game folder>". This creates server/keys.json with the keys from your copy. Upload it to the server together with the server/ folder.
  2. On the server (Python 3.10+): pip install aiohttp pycryptodome and python server.py --password A_PASSWORD (port 18080; open it in the firewall).
  3. Players use "Custom server" with IP_OR_DOMAIN:18080 and the password.
  4. Optional: --mods-dir FOLDER offers players the mods in that folder (same layout as the launcher's mods folder; needs pip install pillow).
  5. Optional: --stages-dir FOLDER offers players the Scenario Creator scenarios in that folder (the .json files from %APPDATA%\CrimeSightRevival\mods\stages).
  6. Async matches are on by default; --no-async turns them off. They're kept in memory: restarting the server ends them.
  7. Optional, Discord pings for async matches: --discord FILE, a JSON file kept on the server (never share it): {"webhook": "...", "client_id": "...", "client_secret": "..."}. The webhook is your channel's (Channel settings → Integrations → Webhooks). The client ID and secret come from an application in the Discord Developer Portal (OAuth2), with http://localhost:18089/discord added as a redirect. Players only share their Discord account ID and name with your server.

The password protects profile sync: the game only identifies itself with its Steam ID, so a server without a password would let anyone pretend to be another player.

Clone this wiki locally