Brainbread 2 is a first person zombie game. The dedicated server component can be run as a Windows service using FireDaemon Pro, which allows you to have the dedicated server start automatically at boot prior to login, start multiple instances of the dedicated server and more. This HOWTO will show you how to set it up. You can also use Fusion to manage FireDaemon and other Windows services via a web browser.
Note: Brainbread 2 is still under development, so these instructions may change as the game and server are developed.
Brainbread 2 Dedicated Server Setup Under FireDaemon
First download and extract SteamCMD. The download is small (< 2 MB).
Go to the directory where you installed SteamCMD and create a shortcut to "SteamCMD.exe". Next edit the properties of the shortcut and in the target box, at the end of it (with a space before the following), put:
+login anonymous +force_install_dir "C:\Brainbread 2" +app_update 475370 validate +quit
The target box should now look something like:
C:\SteamCMD\steamcmd.exe +login anonymous +force_install_dir "C:\Brainbread 2" +app_update 475370 validate +quit
Now click the shortcut you created and let it run to download the Brainbread 2 server files. It might take a few hours to update everything. You should also run the shortcut every week or so to grab the latest server updates. Make sure to stop your server first.
Brainbread 2 stores all of its configuration files in the brainbread2\cfg folder. Edit any of the .cfg files to your liking.
Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.
Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation.
The most important field on the tab is the Parameters. The Parameters define the initial setup of your server.
Executable: The path to your srcds.exe file. The path in this example is C:\Brainbread 2\srcds.exe.
Working Directory: The directory containing your srcds.exe file. The path in this example is C:\Brainbread 2.
Here’s the full parameter list you should have:
-console -game BrainBread2 -secure +map bbc_termoil +maxplayers 12 -port 27015 +ip 220.127.116.11 +exec server.cfg
- "-console” enables text base server display. The server can only be automatically restarted in text based mode.
- “-game” loads the mod.
- “-secure” enables VAC (Valve Anti Cheat) protection of your server. You can remove this command if you do not want to use VAC.
- “+map” loads a specified map on server startup. You can change “bbc_termoil” to whatever map you want. This command should never be removed.
- “+maxplayers 12” This controls the maximum of amount of players you want your server to run. You can only control the max players on server startup. This command should never be removed.
- “-port 27015” This is the default server port. You can change it to anywhere from 27015 to 27020. Changing it is generally used when you host multiple servers (as each server has to use its own port when using the same IP). This command should never be removed.
- “+ip” should be the IP of your computer (not 127.0.0.1, go here to get your IP). This command should never be removed.
- “+exec server.cfg” This simply executes your server.cfg file on server startup. If you run multiple servers from the same installation, you can specify other config files (eg. server2.cfg)
Note: If you're having trouble starting the dedicated server, removing the following lines from the brainbread2\gameinfo.txt file may help:
game+mod |gameinfo_path|../../../workshop/content/346330/* game+mod |gameinfo_path|../../steamapps/workshop/content/346330/*
Now click on the Settings tab. If you DON'T want to see your dedicated server running, uncheck the Interact with Desktop check box & select “Hidden” from the “Show Window” dropdown. You can optionally run Brainbread 2 as the user you installed it as. In the Logon Account field type your username (e.g. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which CPU or core the dedicated server will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).
Now click OK to finish setup and start your Brainbread 2 Dedicated Server!