PDA

View Full Version : CS:Source server.cfg


noog
11-25-2004, 02:09 PM
finally, after trawling through these boards without the luxury of a search facility I have managed to get my source server up to date. now, where is the server.cfg? do i have to make one from scratch?

when i try to launch from commandline without a .cfg it just stops automatically


noog@dedicated6:~/source$ ./srcds_run -game cstrike +map de_dust -debug debug.log
Auto detecting CPU
Using SSE2 Optimised binary.
Enabling debug mode
Auto-restarting the server on crash
Thu Nov 25 22:06:57 GMT 2004: Server Quit

any clues?

showdax
11-25-2004, 02:29 PM
All configuration files go in: [sourcedirectory]/cstrike/cfg

Also take note that server.cfg will be executed every time a new map is loaded. If you have commands that you only want executed when you start the server, add them to autoexec.cfg (which goes in the aforementioned directory.)

noog
11-25-2004, 02:30 PM
do you have an example server.cfg I can edit?

showdax
11-25-2004, 02:57 PM
This is an edited version of my server's configuration file:

// Server
hostname "your server name" // Sets the hostname that you'll see in the
server browser
rcon_password yourpassword // Sets the password you'd use for rcon (change
this)
log 1 // Enables logging
// log_udp 1 // Enable this to enable remote logging (if you
enable this, add "log_addaddress [ip]:[port]"
to autoexec.cfg)
log_console 1 // Disable this to remove logging events from
your server console
log_level 1 // Sets log level to 1
sv_region 0 // 0 is US East

// Gameplay
cs_stacking_num_levels 20 // Allows 20 people to stack
mp_allowspectators 0 // Disables spectating
mp_autokick 1 // Kicks idle users
mp_autoteambalance 1 // Turns on automatic team balancing
mp_buytime 2 // Limits the amount of time you're allowed to
buy something after a round starts to 2
minutes
mp_chattime 15 // 15 second pause after a game ends
mp_flashlight 1 // Enables flashlight usage
mp_freezetime 6 // Players are frozen for 6 seconds on round
start (to buy weapons)
mp_friendlyfire 1 // Turns on friendly fire
mp_hostagepenalty 2 // Kicks a person who kills 2 hostages
mp_limitteams 1 // Limits the amount of players one team can have
over another to 1 player
mp_playerid 1 // Can only view teammates names when you aim at
them (instead of both your team and the
opposing team)
mp_roundtime 5 // Rounds last 5 minutes
mp_spawnprotectiontime 5 // Kills anyone who TKs within 5 seconds of the
round start
mp_timelimit 25 // Limits map/game time to 25 minutes
mp_tkpunish 1 // Kills a TKer the round after he/she TKs
sv_alltalk 0 // Disable voice communication between teams
sv_specspeed 4 // Faster camera movement in spectator mode
sv_voiceenable 0 // Disable voice communication

// Physics
// phys_timescale 0.25 // slow-motion physics
phys_timescale 1 // normal-motion physics
phys_pushscale 2.5 // Multiplier for physics push force

kennycom
11-25-2004, 03:01 PM
[quote]sv_region 0 // 0 is US East[/qoute]

What would be the setting for US Weast Coast?

noog
11-25-2004, 03:11 PM
bah, I've got the config in place but it still behaves the same way, the server dies as soon as it's forked. :(

also the definitions of sv_region are below:


0: US East coast, 1: US West coast, 2: South America, 3: Europe, 4: Asia, 5: Australia, 6: Middle East, 7: Africa.

kennycom
11-25-2004, 10:33 PM
Thanks On the region :)

I have 2 more qestions though..

mp_playerid 1 // Can only view teammates names when you aim at them...

I take it that with this setting at 1 you only get teammates names right?

and....

sv_voiceenable 0 // Disable voice communication...

With the above cvar set at 0 you cannot talk to the other team right???

crawlem
11-26-2004, 07:24 AM
I also have that problem noog... Nothing I do with the command line switches seems to work

[root@www:/games/srcds_l1]$ /games/srcds_l1/srcds_run -game cstrike +exec server.cfg +ip 192.168.0.5 +port 27015 +maxplayers 16 +map de_dust
Auto detecting CPU
Using AMD Optimised binary.
Auto-restarting the server on crash
Fri Nov 26 16:38:22 GMT 2004: Server Quit

[root@www:/games/srcds_l1]$

I'm using RedHat 7.2, and the -debug option doesn't give any more info.

Any other suggestions?

mortum
11-26-2004, 09:06 AM
Search forum for glibc 2.3 or just glibc

crawlem
11-26-2004, 09:09 AM
I would do but the search is disabled :) I'll have a look around... odd that there's no error message though.

noog
11-26-2004, 11:12 AM
silverbolt@dedicated6:~/source$ ./srcds_run -game cstrike +map de_dust
Auto detecting CPU
Using SSE2 Optimised binary.
Auto-restarting the server on crash
Fri Nov 26 19:10:48 GMT 2004: Server Quit

silverbolt@dedicated6:~/source$


that's after I installed glibc

Unpacking libg++2.8.1.3-glibc2.2 (from .../libg++2.8.1.3-glibc2.2_1%3a2.95.4-11woody1_i386.deb) ...
Setting up libg++2.8.1.3-glibc2.2 (2.95.4-11woody1) ...

dedicated6:~#


still no luck :<

crawlem
11-27-2004, 02:04 AM
I tried srcds on my RedHat 9 box (complete with glibc 2.3) and it worked great!

It looks like you were trying to install glibc 2.2 there noog..?

noog
11-27-2004, 02:31 AM
yep, I updated my version of debian from woody to sarge (stable to testing) and now it works fine!.

shame i had to upgrade to get source but thanks for your help :)