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

New to SRCDS, on server start, What happens before server.cfg?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lapres_3
New Member
Join Date: Jul 2009
Old 07-15-2009 , 20:06   New to SRCDS, on server start, What happens before server.cfg?
Reply With Quote #1

Pretty much as my title states. Im trying to set up a lan server for 16 player superversus. I am picking up info here and there, but am still lost. It seems like my server is running some config file before server.cfg. And on top of that, server.cfg doesnt seem to work properly when its started with the server. I cant get the 16 player thing going unless i manually enter "exec server.cfg" in the console. It will work for one map, Then ::IF:: it loads the next map, it will be back to normal mode. i say ::IF:: because it seems to crash a lot, but i think i have two seperate problems here. Please give me some insight as to what my server is doing on startup. Im not looking for handouts (well i am) but if there are some hardcore resources out there, let me know. I find lots of simplistic turtorials, and still have not going stuff working.

Console output on startup, before anyone joins (few of my comments are in parentheses)

Quote:
10.2 fps 0/18 on map l4d_hospital01_apartment
#Console initialized.
#Unable to remove c:\srcds\l4d\left4dead\addonlist.txt!
#Game.dll loaded for "L4D - Co-op - Normal"
Server is hibernating
ConVarRef test_progression_loop doesn't point to an existing ConVar
Queuing heartbeat send to legacy master server.
Game supporting (2) split screen players
maxplayers set to 18 (WHY, I DIDNT SET THIS?)
Unknown command "r_decal_cullsize"
maxplayers set to 18 (AGAIN, WHERE IS THIS COMING FROM?)
You must be a server admin to use mp_disable_autokick
Unknown command "sv_allow_color_correction" (HUH?)
NET_GetBindAddresses found 192.168.2.123: 'Intel(R) PRO/100 VE Network Connectio
n - Packet Scheduler Miniport'
Network: IP 192.168.2.123, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvat" (WHAT ARE THESE COMMANDS?)
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Adding master at 68.142.72.250:27011
Adding master at 72.165.61.189:27011
Unknown command "mat_bloom_scalefactor_scalar"
---- Host_NewGame ----
Compact released 131072 bytes to the backing store
Host_NewGame on map l4d_hospital01_apartment
L 07/15/2009 - 19:50:28: -------- Mapchange to l4d_hospital01_apartment --------

Executing dedicated server config file (SERVER SITS HERE FOR MAYBE 5 SECONDS)
Commentary: Loading commentary data from maps/l4d_hospital01_apartment_commentar
y.txt.
Queuing heartbeat send to steam master server updater.
Unknown command "sv_allow_color_correction"
Queuing heartbeat send to steam master server updater.
Network: IP 192.168.2.123, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
[SM] Changed cvar "sv_visiblemaxplayers" to "16".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "sv_visiblemaxplayers") (value "16")
[SM] Changed cvar "l4d_maxplayers" to "16".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "l4d_maxplayers") (value "16")
[SM] Changed cvar "l4d_survivor_limit" to "8".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "l4d_survivor_limit") (value "8")
[SM] Changed cvar "l4d_infected_limit" to "8".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "l4d_infected_limit") (value "8")
[SM] Changed cvar "z_max_player_zombies" to "8".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_max_player_zombies") (value "8")
[SM] Changed cvar "l4d_XtraHP" to "0".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "l4d_XtraHP") (value "0")
Unknown command "sm_cvat"
[SM] Unable to find cvar: l4d_infectedbots_max_player_zombies
[SM] Changed cvar "z_versus_boomer_limit" to "6".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_versus_boomer_limit") (value "6")
[SM] Changed cvar "z_versus_smoker_limit" to "6".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_versus_smoker_limit") (value "6")
[SM] Changed cvar "z_minion_limit" to "16".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_minion_limit") (value "16")
[SM] Changed cvar "z_hunter_limit" to "6".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_hunter_limit") (value "6")
[SM] Changed cvar "z_gas_limit" to "2".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_gas_limit") (value "2")
[SM] Changed cvar "z_exploding_limit" to "1".
L 07/15/2009 - 19:508: [basecommands.smx] "Console<0><Console><Console>" chang
ed cvar (cvar "z_exploding_limit") (value "1")
[SM] Unable to find cvar: l4d_versus_hunter_limit
Adding master at 68.142.72.250:27011
Adding master at 72.165.61.189:27011
Adding master server 68.142.72.250:27011
Adding master server 72.165.61.189:27011 (i DONT HAVE THIS MANY MASTER SERVERS IN MY CONFIG FILE, WHERE ARE THESE COMING FROM NOW...)
VAC secure mode disabled.
Commandline
Quote:
C:\srcds\l4d\srcds.exe -console -game left4dead +maxplayers 16 -autoupdate +map l4d_hospital01_apartment +ip 192.168.2.123 -port 27015 -nohltv +exec server.cfg -tickrate 66
server.cfg

Quote:
// Server Name
hostname "Experiment sv2 Config"

// Rcon Cvars
rcon_password "admin1" //Set's remote control password

// Server Password
//sv_password "noob" //

// Server Cvars
mp_disable_autokick 1 //Prevents a userid from being auto-kicked
sv_allow_color_correction 0 //Allow or disallow clients to use color correction on this server.
sv_allow_wait_command 0 //Allow or disallow the wait command on clients connected to this server.
sv_alltalk 0 //Players can hear all other players, no team restrictions
sv_alternateticks 0 //If set, server only simulates entities on even numbered ticks.
sv_cheats 0 //Allow cheats on server
sv_clearhinthistory 0 //Clear memory of server side hints displayed to the player.
sv_consistency 1 //Whether the server enforces file consistency for critical files
sv_contact "************" //Contact email for server sysop
sv_downloadurl "" //Location from which clients can download missing files
sv_pausable 0 //Is the server pausable.

// Lan or internet play, Server region cvars
//sv_lan 0 //Server is a lan server ( no heartbeat, no authentication, no non-class C addresses )
sv_region 255 // Region Codes: 0 - US East coast, 1 - US West coast, 2 - South America, 3 - Europe, 4 - Asia, 5 - Australia, 6 - Middle East, 7 - Africa, 255 - world

// HTTP Redirect
sv_downloadurl "http://maps.killercreation.co.uk/maps/customers/eatit/L4D"

// Server Logging
sv_log_onefile 0 //Log server information to only one file.
sv_logbans 1 //Log server bans in the server logs.
sv_logecho 0 //Echo log information to the console.
sv_logfile 1 //Log server information in the log file.
sv_logflush 0 //Flush the log file to disk on each write (slow).
sv_logsdir "logs" //Folder in the game directory where server logs will be stored.

//Server Rates
sv_maxcmdrate 100 //(If sv_mincmdrate is > 0), this sets the maximum value for cl_cmdrate.



Sv_lan 1
net_start

sv_allow_lobby_connect_only 0

sm_cvar sv_visiblemaxplayers 16
sm_cvar l4d_maxplayers 16
sm_cvar l4d_survivor_limit 8
sm_cvar l4d_infected_limit 8
sm_cvar z_max_player_zombies 8
sm_cvar l4d_XtraHP 0
sm_cvat l4d_killreservation 1
sm_cvar l4d_infectedbots_max_player_zombies 8
sm_cvar z_versus_boomer_limit 6 //1
sm_cvar z_versus_smoker_limit 6 //1
sm_cvar z_minion_limit 16 //3
sm_cvar z_hunter_limit 6 //1
sm_cvar z_gas_limit 2 //1
sm_cvar z_exploding_limit 1 //1
sm_cvar l4d_versus_hunter_limit 6

setmaster add 68.142.72.250:27011
setmaster add 72.165.61.189:27011
Lapres_3 is offline
Lapres_3
New Member
Join Date: Jul 2009
Old 07-16-2009 , 18:27   Re: New to SRCDS, on server start, What happens before server.cfg?
Reply With Quote #2

Ok, I have my answer, but it still doesnt explain how the other stuff is loaded as none of the other files have what i was looking for...



This is the order config files are loaded up by SRCDS
  • valve.rc
  • autoexec.cfg (If it exists is called from valve.rc which is when Matties settings are loaded)
  • Any config files that loaded from the command line load here with +exec yrserver.cfg (doesn't have to be called yrserver.cfg it could be called anything like test.cfg in the example below)
  • game.cfg
  • skill1.cfg
  • server.cfg (If it exists)
At every map change the following 2 files are called
  • skill1.cfg
  • server.cfg (If it exists)

Last edited by Lapres_3; 07-16-2009 at 18:37.
Lapres_3 is offline
Anarchist rudy
New Member
Join Date: Jul 2009
Old 07-18-2009 , 06:48   Re: New to SRCDS, on server start, What happens before server.cfg?
Reply With Quote #3

Ok I don't know how good your last answer was but your server.cfg file is not ok, you've made a little mistake i'm afraid:

if you count the number of lines of code that I copied here from your server.cfg:

Quote:
sm_cvar sv_visiblemaxplayers 16
sm_cvar l4d_maxplayers 16
sm_cvar l4d_survivor_limit 8
sm_cvar l4d_infected_limit 8
sm_cvar z_max_player_zombies 8
sm_cvar l4d_XtraHP 0
sm_cvat l4d_killreservation 1
sm_cvar l4d_infectedbots_max_player_zombies 8
sm_cvar z_versus_boomer_limit 6 //1
sm_cvar z_versus_smoker_limit 6 //1
sm_cvar z_minion_limit 16 //3
sm_cvar z_hunter_limit 6 //1
sm_cvar z_gas_limit 2 //1
sm_cvar z_exploding_limit 1 //1
sm_cvar l4d_versus_hunter_limit 6
And compare them to these from your server console:

Quote:
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvat" (WHAT ARE THESE COMMANDS?)
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
Unknown command "sm_cvar"
That should tell you that the command sm_cvar you use in your server.cfg CAN't be used in that manner, Try deleting that part of every centence, Put this instead:

sv_visiblemaxplayers 16
l4d_maxplayers 16
l4d_survivor_limit 8
l4d_infected_limit 8
z_max_player_zombies 8
l4d_XtraHP 0
l4d_killreservation 1
l4d_infectedbots_max_player_zombies 8
z_versus_boomer_limit 6 //1
z_versus_smoker_limit 6 //1
z_minion_limit 16 //3
z_hunter_limit 6 //1
z_gas_limit 2 //1
z_exploding_limit 1 //1
l4d_versus_hunter_limit 6

Now that should fix your 16 player problem, as for the master servers, the server makes those 2 extra automaticaly cous it needs them.

The maxplayers is set automatically if your server.cfg dousn't state that, and your server.cfg didn't state that becous those rules were incorrect.

In short:
All these commands were ignored:
Quote:
sm_cvar sv_visiblemaxplayers 16
sm_cvar l4d_maxplayers 16
sm_cvar l4d_survivor_limit 8
sm_cvar l4d_infected_limit 8
sm_cvar z_max_player_zombies 8
sm_cvar l4d_XtraHP 0
sm_cvat l4d_killreservation 1
sm_cvar l4d_infectedbots_max_player_zombies 8
sm_cvar z_versus_boomer_limit 6 //1
sm_cvar z_versus_smoker_limit 6 //1
sm_cvar z_minion_limit 16 //3
sm_cvar z_hunter_limit 6 //1
sm_cvar z_gas_limit 2 //1
sm_cvar z_exploding_limit 1 //1
sm_cvar l4d_versus_hunter_limit 6
Becous they should look like this:

Quote:
sv_visiblemaxplayers 16
l4d_maxplayers 16
l4d_survivor_limit 8
l4d_infected_limit 8
z_max_player_zombies 8
l4d_XtraHP 0
l4d_killreservation 1
l4d_infectedbots_max_player_zombies 8
z_versus_boomer_limit 6 //1
z_versus_smoker_limit 6 //1
z_minion_limit 16 //3
z_hunter_limit 6 //1
z_gas_limit 2 //1
z_exploding_limit 1 //1
l4d_versus_hunter_limit 6

Last edited by Anarchist rudy; 07-18-2009 at 06:50. Reason: adding information
Anarchist rudy is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 07-09-2019 , 15:31   Re: New to SRCDS, on server start, What happens before server.cfg?
Reply With Quote #4

You can use my plugin to ensue your CFG's are executed in an specific order, just in time.
https://forums.alliedmods.net/showthread.php?p=2638480
Delayed exec cfg:
Just enter these command in your "cfg/sourcemod/sourcemod.cfg"

Code:
sm_dexeccfg "server1.cfg" 1.0
sm_dexeccfg "server2.cfg" 2.0
sm_dexeccfg "server3.cfg" 2.4
Explanation: First command indicates server1.cfg must be called within 1 second.
server2.cfg will be executed 1 second after server1.cfg.
And finally, server3.cfg will be executed 0.4 seconds after server2.cfg.

All cfg files are relative to /left4dead/cfg dir.

Last edited by axelnieves2012; 07-09-2019 at 15:32.
axelnieves2012 is offline
Reply



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 21:35.


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