AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Server.cfg not executing (https://forums.alliedmods.net/showthread.php?t=301255)

Halt 09-13-2017 15:18

Server.cfg not executing
 
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?

Neuro Toxin 09-13-2017 17:10

Re: Server.cfg not executing
 
I wonder what game this is for?

Halt 09-13-2017 18:01

Re: Server.cfg not executing
 
Sorry I didn't specify but it does include a tf cvar :P

Team Fortress 2

asdfxD 09-13-2017 23:31

Re: Server.cfg not executing
 
add +servercfgfile server.cfg to your tf2 start commandline.

Bacardi 09-14-2017 01:08

Re: Server.cfg not executing
 
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

Halt 09-14-2017 10:24

Re: Server.cfg not executing
 
Quote:

Originally Posted by Bacardi (Post 2548678)
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.

Bacardi 09-14-2017 14:23

Re: Server.cfg not executing
 
Every map change

You can check cvars current value
Sm_cvar cvar_name

Halt 09-14-2017 15:13

Re: Server.cfg not executing
 
Quote:

Originally Posted by Bacardi (Post 2548785)
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.

Bacardi 09-14-2017 16:25

Re: Server.cfg not executing
 
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


Phaiz 09-15-2017 04:05

Re: Server.cfg not executing
 
Quote:

Originally Posted by Halt (Post 2548735)
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.


All times are GMT -4. The time now is 19:46.

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