Black Mesa

Black Mesa

Not enough ratings
Start SteamCMD Linux Server
By jetlennit
How to start a Linux SteamCMD server for Black Mesa.
   
Award
Favorite
Favorited
Unfavorite
Requirements
To make use of this guide, you will require:
  • A computer running Linux with a an internet connection (Ubuntu server is the only distro I have personally tested[www.ubuntu.com])
  • A keyboard plugged into said computer
  • At least a small understanding of Linux commands. (cd, ls, file systems, etc.)
  • An understanding of using vi
  • SteamCMD installed (Guide here)

For other people to connect to the server that aren't on your network, you must ready your computer for external connection. That is something I can not help you with, but a Google search should yield some results.
Log Into SteamCMD
Navigate to the directory you have SteamCMD installed, then enter the command
./steamcmd.sh
Once in steam, type in the command
login anonymous
This should log you in anonymously. If you can not log in anonymously, it is recommended for security reasons that you log into a new account.
Download Dedicated Server
Now that you are in SteamCMD and are logged in as anonymous, enter the command
force_install_dir ./bms/
This will set up the directory the dedicated server will be downloaded and installed to. Now that you have the directory set up, type in this command to begin downloading the game.
app_update 346680 validate
This could take quite some time. Once the download is finished hit ctrl+c.
Create Starting Script
Now that you have downloaded the server software, you must now create a startup file. Go into the
SteamCMD folder and enter the vi command. Once in the vi editor, hit "i" and type in everything that isn't in parenthesis
./bms/srcds_run -game bms +sv_pure 1 +map dm_gasworks (this can be any map you have in the map folder of your game) +maxplayer 16 (again, any number you would like)

Note:
For Debian 7 or 8 you need make your file this:
./srcds_run -game bms -strictportbind -ip yourip -port yourport +clientport yourclientport +tv_port yoursourcetvport +map defaultmap -maxplayers themaxnumberofplayersyouwant +sv_pure +exec server -tickrate 66
All credit to AvoidPaypal[forums.blackmesasource.com] for telling ToNiO this and ToNiO for telling me

Now hit the colon key and type in
write bms.sh
Now you should be back in the command line. Type in the command
chmod 755 ./bms.sh
Now you should be able to run it by entering the command
./bms.sh
You should now be able to connect to your server!
Further Customization
For further customization, you can edit the following files:
  • /steamcmd/bms/bms/cfg/mapcycle.txt
  • /steamcmd/bms/bms/cfg/server.cfg
Done!
Now you should be done making your server! Please let me know if there is anything I could improve on, or make clear. This is my first guide, so it may not be fully understandable.
1 Comments
ToNiO May 10, 2015 @ 11:52pm 
Thx you very much for this Tutorial :)