SteamCmd
Contents
Configure TCAdmin to use SteamCmd
Configure the game
- Go to General Settings > Games > Select the game > Select the Steam Settings tab.
- Select "Enabled (steamcmd)"
- Enter the steam app id of the game's dedicated server. If you enter the app id of the full version of the game the steam account needs to own the game. You can find a list of application ids here: http://developer.valvesoftware.com/wiki/Steam_Application_IDs
- Select the Feature Permissions tab
- Enable Steam Update for all user types.
- Save
Configure the Steam Account used by TCAdmin
- Go to General Settings > Default Steam Account
- Enter your Steam account user and password. It is recommended that you set the user to "anonymous" with a blank password.
- Save
Download the Game Files
You can download the game's files by going to General Settings > Game Tools. Select the Steam Game Downloader tool. Select the game and the server where the files will be downloaded, then execute the task. The first time steamcmd is used TCAdmin will attempt to install it. For troubleshooting follow the instructions below.
Updating a service
After following the previous instructions you should be able to select a game server and click on Steam Update to update the game files.
Activate your account with Steam Guard
If you have Steam Guard enabled on your account, the first time you use the SteamCmd features in TCAdmin you will receive an email with the Steam Guard code. Follow these instructions to use that code.
- Go to General Settings > Game Tools. Select the Steam Game Downloader tool.
- Select a game that uses steamcmd.
- Select the server.
- Enter the steam guard code and execute.
- If you don't get a login error it worked correctly.
Errors
Windows
Steam needs to be online to update. Please confirm your network connection and try again.
Log in to remote desktop. Go to Program Files\TCAdmin2\Monitor\Tools\SteamCmd. Right click on steamcmd.exe and select Run as Administrator. After the update is complete close the console window and try again from TCAdmin.
If this doesn't work open Internet Explorer, go to Internet Options and set your Proxy Settings to Automatic. Then run steamcmd.exe again.
Linux
Steam downloader does not download any files with steamcmd
Run these commands from ssh.
cd /home/tcadmin/Monitor/Tools/SteamCmd STEAMEXE=steamcmd ./steam.sh
If you see an error similar to "libstdc++.so.6: version `GLIBCXX_3.4.9' not found" download File:Libstdcplusplus.zip and save to /home/tcadmin/Monitor/Tools/SteamCmd/linux32 . Unzip itand execute the commands again.
If you get any other errors search for them in Google to find a solution.
If all else fails delete the folders /root/Steam and /home/tcadmin/Monitor/Tools/SteamCmd and try again from TCAdmin.
steamcmd: No such file or directory
You are running 64bit Ubuntu or Debian. Execute this command to install missing 32bit libraries:
apt-get install ia32-libs
A Steam Engine Instance already exists
Steamcmd on Linux does not allow multiple instances like it does on Windows. Wait until the other update has completed and try again.
Failed to create directory /steam/SteamApps
Rename /Steam/SteamApps to /steam/SteamApps
Linux Alternative
If for some reason you can't get SteamCmd to work on Linux you can use this alternative: http://didrole.com/UpdateTool/
To configure TCAdmin to use this tool:
- Delete the contents of /home/tcadmin/Monitor/Tools/SteamCmd
- Download UpdateTool-0.4.tar.bz2 (download a newer version if available).
- Extract to /home/tcadmin/Monitor/Tools/SteamCmd
- Rename UpdateTool.sh to steamcmd.sh
You can find a script that replaces SteamCmd with the alternative automatically here: http://www.clanwarz.com/payments/knowledgebase/385/How-To-Install-Alternate-Steam-Tool-For-Linux-in-Tcadmin.html
Custom SteamCmd Scripts
Windows
Create a script for the custom icon event with the following configuration. Change the steamcmd command line as needed.
- Icon URL
- ~/App_Themes/Default/Images/ControlPanel/MenuIcons/GameHosting/Steam.png
- Script Engine
- Batch/shell script
- Script
@echo off "%TCAdminFolder%\Monitor\Tools\SteamCmd\steamcmd.exe" +login anonymous +force_install_dir %ThisService_RootDirectory% +app_update "90 -beta beta" validate +quit
Linux
Create a script for the custom icon event with the following configuration. Change the steamcmd command line as needed.
- Icon URL
- ~/App_Themes/Default/Images/ControlPanel/MenuIcons/GameHosting/Steam.png
- Script Engine
- Batch/shell script
- Script
#!/bin/bash cd ${TCAdminFolder}/Monitor/Tools/SteamCmd/ ./steamcmd.sh +login anonymous +force_install_dir ${ThisService_RootDirectory} +app_update "90 -beta beta" validate +quit
chown --recursive tcagame ${ThisService_RootDirectory}