Alien Swarm: Reactive Drop

Alien Swarm: Reactive Drop

Not enough ratings
Running a dedicated server on Linux using Wine
By Ben Lubar
Even though Alien Swarm: Reactive Drop is currently only available for Windows, the dedicated server can be run on Linux using Wine.
   
Award
Favorite
Favorited
Unfavorite
Wine and SteamCMD
Install Wine using your distribution's package manager. There are many guides on the internet for how to install Wine, so I won't go into more detail here.

Download the Windows version of SteamCMD. The zip contains a single file: steamcmd.exe.

Make a folder for SteamCMD on Wine's virtual filesystem using the following command:

wine cmd /c mkdir C:\\steamcmd

This will create some folders in $HOME/.wine/drive_c. Extract steamcmd.exe from the zip to $HOME/.wine/drive_c/steamcmd.

Start up SteamCMD for the first time:

wine C:\\steamcmd\\steamcmd.exe

This will update SteamCMD to the latest version, just like what happens when you start Steam for the first time. When it finishes, it will show a prompt: Steam>

Type login anonymous to log into the anonymous dedicated server account.

When you're done with SteamCMD, type quit. If your console isn't showing what you type after you quit, type stty sane.
Installing and running the dedicated server
To download or update Reactive Drop, run the following command inside SteamCMD:

app_update 563560

Run this command if you want to verify game cache:

app_update 563560 validate

The server will be installed in C:\steamcmd\steamapps\common\Alien Swarm Reactive Drop.

I use these commands in a shell script to start my server:

cd "$HOME/.wine/drive_c/steamcmd/steamapps/common/Alien Swarm Reactive Drop" wine start srcds.exe -game reactivedrop -console -port 27015 +exec server +map lobby

If your computer has multiple network cards, you need to specify -ip [server's LAN IP address] when you start the server. Mine is 192.168.1.79, but this will almost definitely be different on your computer.

+exec server runs server.cfg when the server starts up. Here's a simple server.cfg:

hostname "My Cool Reactive Drop Server" asw_default_campaign jacob

This sets the name of the server to My Cool Reactive Drop Server and sets the default campaign when the server is empty to Jacob's Rest.

If you have a Steam group with players who want to play on your server, you can add sv_steamgroup with the number from the group's admin page.
Making workshop content available
You can make public workshop addons available on your server by creating a workshop.cfg file. Here's mine at the time of writing this tutorial:

rd_enable_workshop_item 848260335 rd_enable_workshop_item 848331447 rd_enable_workshop_item 848935191 rd_enable_workshop_item 856807495 rd_enable_workshop_item 856979922 rd_enable_workshop_item 861497042

This config will be executed once when the server is ready to connect to the workshop. You can put any number of rd_enable_workshop_item commands here, and each one can have any number of Steam Workshop file IDs. You can get the file ID from the URL of the workshop page.

If your server is empty when it finishes downloading a workshop addon, it will reload the first map of the default campaign, so it is possible to set a workshop campaign as the default campaign.
< >
11 Comments
spjoe Apr 24, 2020 @ 3:25am 
Thanks for the tutorial.

If you have already steamCMD installed for linux, there is no need to install windows steamCMD.
You can force steamCMD to download the windows version by adding "+@sSteamCmdForcePlatformType windows" as command line option for steamCMD.

Example:
[code]/usr/bin/steamcmd +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir ./alienswarm_reactivedrop +app_update 563560 +quit[/code]
spjoe Apr 24, 2020 @ 3:25am 
Thanks for the tutorial.

If you have already steamCMD installed for linux, there is no need to install windows steamCMD.
You can force steamCMD to download the windows version by adding "+@sSteamCmdForcePlatformType windows" as command line option for steamCMD.

Example:
[code]/usr/bin/steamcmd +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir ./alienswarm_reactivedrop +app_update 563560 +quit[code]
Ross May 11, 2017 @ 5:01pm 
The latest Windows version. Note that the Admin Menu doesn't work on this game, only the console commands.
闲月疏云 May 11, 2017 @ 6:25am 
Which version of SourceMod can I use on the "Linux" server?
Ross May 3, 2017 @ 5:56pm 
Use xpra to set different X server instances and run multiple srcds consoles.
Snack-tacular Apr 27, 2017 @ 12:43am 
Is there any way to run multiple servers using wine? Every time I tried running a second one only the first one I started was running, tried running on different users too, no effect.
VYRNACH GAMING Apr 22, 2017 @ 11:56pm 
for saving others the headache that I just got trying to get this work. You must login to an account and not used anonymous otherwise you won't get the actual files
Ross Apr 22, 2017 @ 11:58am 
Use the -conosle parameter and it'll be 8 players by default.
Johnson Apr 21, 2017 @ 9:05pm 
anyone know how to set 8 player dedicated server(windows) ?
Mithrand Feb 15, 2017 @ 2:10am 
In addition to this, most linux servers do *not* run a gui on it. "srcds.exe -console" however, requires a gui.

To work around this, you can create a virtual framebuffer using the Xvfb command and set "DISPLAY=:0" before starting the dedicated server. Attaching to this virtual framebuffer can be done using x11vnc.