SRCDS Steam group


SRCDS / server.cfg
#1
I am having a problem getting my server to run my server.cfg file when it starts. I am trying to setup a CS:S server for a LAN I am having this weekend. I found your tutorial after messing with this for 2 days. It is probably the best and easiest to follow tutorial I have come across and it has gotten me further in the process then any other tutorial I have tried. I downloaded hldsupdatetool.exe and installed it like the tutorial states. I then downloaded the CS:S files and the HL2DM files to the directory. The tutorial then states to modify or create a server.cfg file, I had to create one as there was no server.cfg. I placed the .cfg file I created in the folder stated in the tutorial: c:\srcds\cstrike\cfg\server.cfg.

My problem is, when I start the server it doesnt appear to be using my server.cfg file and loads what I am guessing is a default server setup.

[Image: server.jpg]

As you can see this server is set for 32 players, where as my .cfg file only has a max players of 20. I also cannot connect to the server when it is running, I time out, even if I go into the console and type "connect 192.168.1.110".

What am I doing wrong? Any input would be appreciated.
Reply
#2
Verify that you created server.cfg and not server.txt or server.cfg.txt.........it happens
Reply
#3
how do you get the server.cfg kuz thats what I think I did, and what are we suppose to put in the server.cfg? xD
Reply
#4
Here is a link that will create you a server.cfg file, or you can search here in the forums, several users have posted theirs....

Here is mine..


// server name
hostname "Jon's Playhouse"

// rcon passsword
rcon_password "*********"

// Advanced RCON
sv_rcon_banpenalty 10
sv_rcon_maxfailures 10
sv_rcon_minfailures 5
sv_rcon_minfailuretime 30

// server cvars
sv_password ""
mp_friendlyfire 1
mp_footsteps 1
mp_autoteambalance 1
mp_autokick 1
mp_flashlight 1
mp_tkpunish 1
mp_forcecamera 0
sv_alltalk 1
sv_pausable 0
sv_cheats 0
sv_consistency 1
sv_allowupload 1
sv_allowdownload 1
sv_maxspeed 320
mp_limitteams 2
mp_hostagepenalty 5
sv_voiceenable 1
mp_allowspectators 1
mp_timelimit 45
mp_chattime 10
sv_timeout 65

// round specific cvars
mp_freezetime 6
mp_roundtime 4
mp_startmoney 16000
mp_c4timer 35
mp_fraglimit 0
mp_maxrounds 0
mp_winlimit 0
mp_playerid 0

mp_spawnprotectiontime 5

r_sse 1
r_sse2 1
r_mmx 1

// bandwidth rates/settings
sv_minrate 5000
sv_maxrate 15000
decalfrequency 40
sv_maxupdaterate 80
sv_minupdaterate 15
sv_unlag 0
sv_maxunlag .25


// server logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

// bots
bot_add
bot_quota 4
bot_quota_mode fill
bot_difficulty 2
bot_chatter off
bot_auto_follow 0
bot_auto_vacate 1
bot_join_after_player 0
bot_defer_to_human 0
bot_prefix "[BOT]"
bot_allow_rogues 1
bot_walk 0
bot_join_team any
bot_eco_limit 2000
bot_allow_grenades 1
bot_all_weapons
bot_allow_grenades 1
bot_allow_pistols 1
bot_allow_sub_machine_guns 1
bot_allow_shotguns 1
bot_allow_rifles 1
bot_allow_snipers 0
bot_allow_machine_guns 1

// operation
sv_lan 0
sv_region 1


ma_unrestrictall
ma_restrict awp
ma_restrict g3sg1
ma_restrict d3au1
ma_restrict sg550
ma_restrict krieg550


// execute ban files
exec banned_user.cfg
exec banned_ip.cfg
exec mani_server.cfg

say "Server configs have been loaded."




Reply
#5
J.Christy Wrote:Verify that you created server.cfg and not server.txt or server.cfg.txt.........it happens
I have verified that it is server.cfg. I have setup all the folders on my PC to show thier file extensions, nothing is hidden.
Reply
#6
kaokenshin Wrote:how do you get the server.cfg kuz thats what I think I did, and what are we suppose to put in the server.cfg? xD
I had to use notepad and create the cfg file. I used one of the online cfg tools to create it. Then I cut and pasted it into notepad, saved it as server.cfg and the pasted the cfg file into this directory: C:\srcds\cstrike\cfg.

Reply
#7
Here is what my cfg file looks like:

// server name
hostname "CG CS:S LAN Server"

// rcon passsword
rcon_password "**********"

// server cvars
mp_friendlyfire 1
mp_footsteps 1
mp_autoteambalance 1
mp_autokick 0
mp_flashlight 1
mp_tkpunish 1
mp_forcecamera 1
sv_alltalk 0
sv_pausable 0
sv_cheats 0
sv_consistency 1
sv_allowupload 1
sv_allowdownload 1
sv_maxspeed 320
mp_limitteams 2
mp_hostagepenalty 5
sv_voiceenable 0
mp_allowspectators 0
mp_timelimit 20
mp_chattime 10
sv_timeout 30

// round specific cvars
mp_freezetime 5
mp_roundtime 5
mp_startmoney 800
mp_c4timer 45
mp_fraglimit 0
mp_maxrounds 0
mp_winlimit 0
mp_playerid 0
mp_spawnprotectiontime 5

// bandwidth rates/settings
sv_minrate 0
sv_maxrate 0
decalfrequency 10
sv_maxupdaterate 100
sv_minupdaterate 20

// server logging
log off
sv_logbans 0
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

// bots
bot_add
bot_quota 10
bot_quota_mode fill
bot_difficulty 1
bot_chatter minimal
bot_auto_follow 1
bot_auto_vacate 1
bot_join_after_player 0
bot_defer_to_human 1
bot_prefix "~BoT~"
bot_allow_rogues 0
bot_walk 0
bot_join_team any
bot_eco_limit 2000
bot_allow_grenades 1
bot_all_weapons
bot_allow_grenades 1
bot_allow_pistols 1
bot_allow_sub_machine_guns 1
bot_allow_shotguns 1
bot_allow_rifles 1
bot_allow_snipers 1
bot_allow_machine_guns 1

// operation
sv_lan 1
sv_region 0

// execute ban files
exec banned_user.cfg
exec banned_ip.cfg

say "Server.cfg has been loaded."

Is my problem occuring because I am trying to run a LAN server as opposed to an internet server? This is getting really frustrating. Sad
Reply
#8
kegaro,
I think your problem is with your command line for launching your server.

Maxplayers is set from the command line, not the server.cfg.

here's my command line I use to launch my server:
srcds.exe -console -game cstrike -port 27015 +map cs_office +maxplayers 20 -heapsize 1048576 -tickrate 66

Hope that helps.

Reply
#9
gf_edge Wrote:kegaro,
I think your problem is with your command line for launching your server.

Maxplayers is set from the command line, not the server.cfg.

here's my command line I use to launch my server:
srcds.exe -console -game cstrike -port 27015 +map cs_office +maxplayers 20 -heapsize 1048576 -tickrate 66

Hope that helps.

Thanks for the input, I'll give it a shot when I get home tonight. I have been using C:\srcds\srcds.exe -console -game cstrike to launch the server.
Reply
#10
Keg,
I think i see the problem. Your picture does not show any map running. It should say the map name on that top line.

Try the command line I said, and I think you will be in business!
Reply
#11
gf_edge Wrote:Keg,
I think i see the problem. Your picture does not show any map running. It should say the map name on that top line.

Try the command line I said, and I think you will be in business!
Yea, I see that now, after looking through the forums and seeing a few other images that are floating around here. It definetly is the command line. I was using an abbreviated command line just to test the server to see if it would run. C:\srcds\srcds.exe -console -game cstrike, which doesn't have the port #, map name, max players, nothing. I think once I get home tonight I should be able to have it up and running in no time.

Thanks for the help.
Reply
#12
Got it working!

I created a shortcut on my desktop and added all the needed switches to it:
C:\SRCDS\srcds.exe -exec server.cfg -console -game cstrike -nomaster -insecure -port 27015 +maxplayers 20 +map cs_assault -autoupdate -tickrate 100

Thanks for all the help guys, I know it had to be something simple I was overlooking.
Reply
#13
can any 1 tell me the cammand line to update my srcds and any 1 that has problem i can help them if i get past it
Reply
#14
http://planethalflife.gamespy.com/View.php?view=HL2Guides.Detail&id=4&game=3
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)