SRCDS Steam group


Having troubles running my first game server
#1
Hey folks. I am attempting to get my first ever game server, TF2, running and I'm having a bunch of troubles. Although I am a Network Administrator by trade, my Linux experience is still pretty basic but I decided to run my server on Ubuntu anyway since I think Linux is probably superior in applications such as this. I have not yet been able to get my server to show up on the list to connect to so I'm not sure what I got going on. This is my server.sh file that I run first:

Code:
#!/bin/bash
echo "Starting TF:Source Server"
sleep 1
screen -A -m -d -S tf-server ./srcds_run -console -game tf +map ctf_2fort +maxplayers 24 -autoupdate -ip 192.168.0.34 -port 27015

I then receive this: Starting TF:Source Server

Next, I put in: screen -r tf

and I receive this:
Quote:Auto detecting CPU
Using SSE2 Optimised binary.
Server will auto-restart if there is a crash.
Could not locate steam binary:./steam, ignoring.

Console initialized.
Game.dll loaded for "Team Fortress"
Particles: Missing 'particles/error.pcf'
maxplayers set to 24
maxplayers set to 24
Unknown command "startupmenu"
Network: IP 192.168.0.34, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
ConVarRef room_type doesn't point to an existing ConVar
exec: couldn't exec skill1.cfg
Executing dedicated server config file
net.cpp (960) : Assertion Failed: 0 == iRet && iValLen == sizeof( iVal ) && cSendBufSize <= iVal
net.cpp (968) : Assertion Failed: 0 == iRet && iValLen == sizeof( iVal ) && cRecvBufSize <= iVal
Unknown command "mp_autoteambalance_delay"
Unknown command "mp_autoteambalance_warning_delay"
Unknown command "mp_friendlyfire"
Unknown command "sv_maxspeed"
--------------------------------------------------------
sv_pure set to 1.
Note: Changes to sv_pure take effect when the next map is loaded.
--------------------------------------------------------
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
Adding master server 72.165.61.189:27011
Adding master server 69.28.151.162:27011
Using 'steambeta1:27013' CSER server!
MasterRequestRestart
Your server will be restarted on map change.
Your server will be restarted on map change.
Could not establish connection to Steam servers.

I see a few errors in there but I'm not sure if any of them would stop everything from working. I have the following ports open on my firewall:

UDP 27014
TCP 27030
UDP 27011
TCP 27038
TCP 27015
UDP 27015

Not sure if this is overkill or if I'm missing any. After about 5 minutes, I get a message in my ssh session that says: [screen is terminating] and the I notice the process disappears.

Can anyone help me out or perhaps just push me in the right direction? I would appreciate the assistance.

Thanks
-Chris
Reply
#2
First of all, are you the administrator of the game server? Try copy the "steam" executable to the same directory where u launch so you don't get anymore "Could not locate steam binary:./steam" error message and see if it works. "screen is terminating" seemed like someone else killed your process?
Reply
#3
huffie Wrote:First of all, are you the administrator of the game server? Try copy the "steam" executable to the same directory where u launch so you don't get anymore "Could not locate steam binary:./steam" error message and see if it works. "screen is terminating" seemed like someone else killed your process?

Thanks for the info. I copied the steam executable to the same directory as the server.sh file. Also, no one else has access to or even knows about this server and I am indeed the only admin on the box. I am still getting the [screen is terminating] message after about 5 or 10 minutes of starting up the server. Also, my server is still not showing on the list. Here's what I see when I start it up:

Quote:"steam" must be run from the directory it is installed in.
You can ensure this by running: "./steam" from its installation directory.
Thu Nov 22 08:28:05 EST 2007: Steam Update failed, ignoring.

Console initialized.
Game.dll loaded for "Team Fortress"
Particles: Missing 'particles/error.pcf'
maxplayers set to 24
maxplayers set to 24
Unknown command "startupmenu"
Network: IP 192.168.0.34, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
ConVarRef room_type doesn't point to an existing ConVar
exec: couldn't exec skill1.cfg
Executing dedicated server config file
net.cpp (960) : Assertion Failed: 0 == iRet && iValLen == sizeof( iVal ) && cSendBufSize <= iVal
net.cpp (968) : Assertion Failed: 0 == iRet && iValLen == sizeof( iVal ) && cRecvBufSize <= iVal
Unknown command "mp_autoteambalance_delay"
Unknown command "mp_autoteambalance_warning_delay"
Unknown command "mp_friendlyfire"
Unknown command "sv_maxspeed"
--------------------------------------------------------
sv_pure set to 1.
Note: Changes to sv_pure take effect when the next map is loaded.
--------------------------------------------------------
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
Adding master server 72.165.61.189:27011
Adding master server 68.142.72.250:27011
Using 'steambeta1:27013' CSER server!
Connection to Steam servers successful.
MasterRequestRestart
Your server will be restarted on map change.
Your server will be restarted on map change.
MasterRequestRestart
Your server will be restarted on map change.
Your server will be restarted on map change.
VAC secure mode is activated.
MasterRequestRestart
Your server will be restarted on map change.
Your server will be restarted on map change.
MasterRequestRestart
Your server will be restarted on map change.
Your server will be restarted on map change.

Thanks again for the assistance. It's much appreciated.
Reply
#4
hmm..sorry, didn't really look at your bash script. I'm not familiar of the parameters of screen but normally I will manually type "screen" after initial login and proceed with whatever I want to do and detach prior to logout. Perhaps you can try and see if your screen process still gets killed instead of creating screen in ur script. Your steam needs to be in the same directory as the srcds_run, if so, am puzzled why you are getting "steam" must be run from the directory it is installed in. Perhaps someone else can enlighten? It doesn't appear in the list could it be because you didn't set sv_region in your server.cfg? hope this help. cheers!
Reply
#5
huffie Wrote:hmm..sorry, didn't really look at your bash script. I'm not familiar of the parameters of screen but normally I will manually type "screen" after initial login and proceed with whatever I want to do and detach prior to logout. Perhaps you can try and see if your screen process still gets killed instead of creating screen in ur script. Your steam needs to be in the same directory as the srcds_run, if so, am puzzled why you are getting "steam" must be run from the directory it is installed in. Perhaps someone else can enlighten? It doesn't appear in the list could it be because you didn't set sv_region in your server.cfg? hope this help. cheers!

How do I proceed after just typing screen? What do I need to enter next to get the server up and running?

I do have the steam program in /home/username/srcds_l/orangebox where the srcds_run program is. Not sure whats happening there.

My sv_region is set to 0 for east coast.

I'm stumped......

Thanks again for the info.
Reply
#6
try changing the map and see what happens, just type "map cp_well" in console.
Reply
#7
At the last line of code, try changing to
./srcdl_s/orangebox/srcds_run -console -game tf +map ctf_2fort +maxplayers 24 -autoupdate -ip 192.168.0.34 -port 27015
and it should be up and running after you typed screen and execute the script. I seriously don't know what's wrong with the steam not found, perhaps you might check the permission is set to read & executable and also that all the test*.so are in the same directory?
check that sv_region 0 sv_lan 0. Try to get the steam not found fixed and worry the rest later as I think your version of TF2 requires update (even if you're on the list, players are not able to play on your server).

Diggit2001 Wrote:
huffie Wrote:hmm..sorry, didn't really look at your bash script. I'm not familiar of the parameters of screen but normally I will manually type "screen" after initial login and proceed with whatever I want to do and detach prior to logout. Perhaps you can try and see if your screen process still gets killed instead of creating screen in ur script. Your steam needs to be in the same directory as the srcds_run, if so, am puzzled why you are getting "steam" must be run from the directory it is installed in. Perhaps someone else can enlighten? It doesn't appear in the list could it be because you didn't set sv_region in your server.cfg? hope this help. cheers!

How do I proceed after just typing screen? What do I need to enter next to get the server up and running?

I do have the steam program in /home/username/srcds_l/orangebox where the srcds_run program is. Not sure whats happening there.

My sv_region is set to 0 for east coast.

I'm stumped......

Thanks again for the info.
Reply
#8
Wooohooo!! It's working now. I'm not sure what the heck I had going on but I changed my server.sh script to:

Code:
#!/bin/bash
echo "Starting TF:Source Server"
sleep 1
./srcds_run -console -game tf +map ctf_2fort +maxplayers 24 -autoupdate -ip 192.168.0.34 -port 27015

and all is well now. The server updated itself and then started up. I now see it on the list. Thanks huffie and fqdn. If I had any children, I would most certainly give them to you.

I appreciate the help.
-Chris
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)