Raised This Month: $12 Target: $400
 3% 

Server.cfg not executing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-13-2017 , 15:18   Server.cfg not executing
Reply With Quote #1

Code:
// server name
hostname "Black Sun Studios ZombieXR"

//RconStuff
rcon_password 

//Loggin
log on
log 1

//Fast Download
sv_allowdownload "1"
sv_allowupload "1"
sv_downloadurl 

//MP Cvars
mp_autoteambalance "0"
mp_teams_unbalance_limit "31"
mp_allowspectators "0"
mp_forceautoteam "1"
mp_defaultteam "3"
tf_sentrygun_damage "5"
mp_waitingforplayers_cancel "1"

//SM Cvars
sm_tidychat_on "1"
sm_tidychat_class "1"
sm_tidychat_team "1"
sm_tidychat_connect "1"
sm_tidychat_disconnect "1"

// Ban Files
exec banned_user.cfg 
exec banned_ip.cfg
All this is in my server.cfg but none of these values in my server match what I displayed above. Like the server.cfg isn't executing on map start/server start. Any clues?

Last edited by Halt; 09-13-2017 at 15:18.
Halt is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 09-13-2017 , 17:10   Re: Server.cfg not executing
Reply With Quote #2

I wonder what game this is for?
__________________
Neuro Toxin is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-13-2017 , 18:01   Re: Server.cfg not executing
Reply With Quote #3

Sorry I didn't specify but it does include a tf cvar

Team Fortress 2
Halt is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 09-13-2017 , 23:31   Re: Server.cfg not executing
Reply With Quote #4

add +servercfgfile server.cfg to your tf2 start commandline.
asdfxD is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-14-2017 , 01:08   Re: Server.cfg not executing
Reply With Quote #5

Don't know your server OS, but
If you have config file in Unix format, windows version of srcds can't handle that file same way.
There is difference between Unix and Win "new line" characters.

So try copy any other cfg file than server.cfg from server, and rename copied file to server.cfg.
And copy your cvar settings example from here forum post than inside your old server.cfg

If that not help, re-check file is not server.cfg.txt
Edit file and convert file to ANSI format (notepad++)
With notepad++ you can also check is it unix format.

To test that cfg file work, add bottom of file
say "server.cfg"
echo "server.cfg"
Then execute file while you are in game, if you can't see server console.
Rcon exec server.cfg
sm_exec server.cfg
__________________
Do not Private Message @me

Last edited by Bacardi; 09-14-2017 at 01:10.
Bacardi is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-14-2017 , 10:24   Re: Server.cfg not executing
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
Don't know your server OS, but
If you have config file in Unix format, windows version of srcds can't handle that file same way.
There is difference between Unix and Win "new line" characters.

So try copy any other cfg file than server.cfg from server, and rename copied file to server.cfg.
And copy your cvar settings example from here forum post than inside your old server.cfg

If that not help, re-check file is not server.cfg.txt
Edit file and convert file to ANSI format (notepad++)
With notepad++ you can also check is it unix format.

To test that cfg file work, add bottom of file
say "server.cfg"
echo "server.cfg"
Then execute file while you are in game, if you can't see server console.
Rcon exec server.cfg
sm_exec server.cfg
I've checked to ensure that its in fact a config file not a text document. Also I'm running Nix. Stupid question but does server.cfg run every map change? Or just server restart? Because I noticed my downloadurl is as set in the cfg which means its running but my other cvars are failing to set.
Halt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-14-2017 , 14:23   Re: Server.cfg not executing
Reply With Quote #7

Every map change

You can check cvars current value
Sm_cvar cvar_name
__________________
Do not Private Message @me

Last edited by Bacardi; 09-14-2017 at 14:25.
Bacardi is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-14-2017 , 15:13   Re: Server.cfg not executing
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
Every map change

You can check cvars current value
Sm_cvar cvar_name
That is how I originally discovered that cvars were not set as displayed in the server.cfg. Also my server.cfg is the only file in my tf/cfg dir. A buddy told me I should have more stock configs.
Halt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-14-2017 , 16:25   Re: Server.cfg not executing
Reply With Quote #9

nonsense


Maybe you have map configs

Code:
L 09/14/2017 - 23:47:57: -------- Mapchange to cp_dustbowl --------
L 09/14/2017 - 23:47:57: Error log file session closed.
Applying new item schema, version 055C2E86
**WARNING** Item schema mismatch after update!
GC told us to expect 055C2E86, we got E9B9CAD5
Executing dedicated server config file server.cfg
Set motd from file 'cfg/motd_default.txt'.  ('cfg/motd.txt' was not found.)
Set motd_text from file 'cfg/motd_text_default.txt'.  ('cfg/motd_text.txt' was n
ot found.)
SV_ActivateServer: setting tickrate to 66.7
---                    "exec server.cfg"
'server.cfg' not present; not executing.
---                    "exec "cp_dustbowl.cfg""
'cp_dustbowl.cfg' not present; not executing.
---                    "exec sourcemod/sourcemod.cfg"
---                    "exec sourcemod\funcommands.cfg"
---                    "sm_internal 1"
L 09/14/2017 - 23:48:01: [nextmap.smx] FATAL: Cannot load map cycle. Nextmap not
 loaded.
L 09/14/2017 - 23:48:01: [SM] Exception reported: Mapcycle Not Found
__________________
Do not Private Message @me

Last edited by Bacardi; 09-14-2017 at 16:50.
Bacardi is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 09-15-2017 , 04:05   Re: Server.cfg not executing
Reply With Quote #10

Quote:
Originally Posted by Halt View Post
I've checked to ensure that its in fact a config file not a text document. Also I'm running Nix. Stupid question but does server.cfg run every map change? Or just server restart? Because I noticed my downloadurl is as set in the cfg which means its running but my other cvars are failing to set.
If you think the file isn't executing type /rcon exec server.cfg

or do it via /admin or use the same command in a terminal. You should see a wall of text in game when you exec it.
__________________
Phaiz is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode