SRCDS Steam group

Custom server crashing seemingly at random
Server OS: Windows Vista 32bit
Processor: Core2Duo 1.86 GHz
Game(s): Left 4 Dead 2
Admin Mods: MetaMod 1.8.0 and the latest snapshot of SourceMod (1.3.0-hg2881)

Start Up Command:
@echo off
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title Watchdog
echo (%time%) srcds started.
start /wait "" "srcds.exe" -console -game left4dead2 +ip -port 27016 -clientport 27006 +map c1m1_hotel
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

My server crashes seemingly at random, yet every time it does crash, I notice a new client has connected (the crash eventually takes us all back to a lobby where I see new people have joined). It does not, however, crash every time someone connects.

It also does not crash - apparently ever - when I run the game with it's normal settings. I only get the random crashes when I use the following server.cfg:


rcon_password "****"

sv_lan 0
sv_region 0
sv_allow_lobby_connect_only 0
sv_downloadurl ""


sm_cvar intensity_lock 0 //default -1

sm_cvar director_must_create_all_scavenge_items 1 //default 0
sm_cvar director_no_survivor_bots 1 //default 0
sm_cvar director_no_mobs 0 //default 0
sm_cvar director_no_specials 0 //default 0
sm_cvar director_no_bosses 0 //default 0
sm_cvar z_allow_ai_to_use_abilities 0 //default 1


sm_cvar z_gun_survivor_friend_push 1
sm_cvar z_gun_range 50
sm_cvar z_gun_kick .3
sm_cvar z_shotgun_bonus_damage_multiplier 30 //default 5
sm_cvar z_shotgun_bonus_damage_range 200 //default 100


sm_cvar survivor_it_duration 10 //default 20
sm_cvar survivor_max_incapacitated_count 10 //default 2
sm_cvar survivor_revive_health 100 //default 30
sm_cvar survivor_revive_duration 1 //default 5
sm_cvar z_survivor_respawn_health 100 //default 50

sm_cvar survivor_incap_max_fall_damage 1000 //default 200
sm_cvar survivor_damage_speed_factor .50 //default .25
sm_cvar survivor_allow_crawling 1 //default 0
sm_cvar survivor_crawl_speed 50 //default 20

sm_cvar rescue_min_dead_time 5
sm_cvar rescue_distance 100


sm_cvar z_speed 200

sm_cvar z_wandering_density .03 //default 0.03
sm_cvar z_common_limit 50 //default 30
sm_cvar z_background_limit 35 //default 20

sm_cvar z_burning_lifetime 10 //default 30
sm_cvar z_tank_speed 100 //default 210
sm_cvar z_tank_health 2000 //default 4000
sm_cvar z_jockey_limit 0
sm_cvar z_spit_range 0
sm_cvar z_spit_range 0
sm_cvar z_spitter_range 0
sm_cvar z_exploding_speed 75 //default 175
sm_cvar z_charger_limit 0

sm_cvar z_notice_it_range 300 //default 1500
sm_cvar z_vision_range_daylight 750 //default 2500

sm_cvar z_health 250 //default 50
//sm_cvar z_non_head_damage_factor_easy 0.1 //default 0
//sm_cvar z_non_head_damage_factor_medium 0.1 //default 0
//sm_cvar z_non_head_damage_factor_hard 0.1 //default 0
//sm_cvar z_non_head_damage_factor_expert 0.1 //default 0

sm_cvar z_mob_spawn_min_size 4 //default 10
sm_cvar z_mob_spawn_max_size 12 //default 30


sm_cvar ammo_assaultrifle_max 1000
sm_cvar ammo_autoshotgun_max 500
sm_cvar ammo_huntingrifle_max 500
sm_cvar ammo_shotgun_max 500
sm_cvar ammo_smg_max 1000

Any help is appreciated!
Start stripping out lines in the server.cfg
Something is clearly causing an issues. Also check the SM forums, others might have the same problem.
~ Mooga ...w00t? - on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
I've narrowed it down to

sm_cvar director_no_survivor_bots 1

Whenever a client connects and is spawned as "dead," the server crashes. I don't have this problem in L4D; new players spawn in closets and are available for rescue. L4D2 apparently doesn't like doing things this way.

Please help!
Then leave the command out and let it use the default action...
(01-08-2010, 10:15 AM)Beaverbeliever Wrote:  Then leave the command out and let it use the default action...

That's a great suggestion... except for the part where I don't want to play with bots. Smile
Ok wait a second, take out all the sm_cvars. Just use the command
director_no_survivor_bots 1
sm_cvar is what you would put in console as an admin to change it on the fly.
(01-09-2010, 08:52 AM)Beaverbeliever Wrote:  Ok wait a second, take out all the sm_cvars. Just use the command
director_no_survivor_bots 1
sm_cvar is what you would put in console as an admin to change it on the fly.

Ah, well, I can't - unless sv_cheats is set to 1. That's why I need to use SourceMod in order to enable these commands. Sad
What exactly happens if you just leave that command out?
If I leave the command out entirely, the server runs fine and I get no crashes. Oppositely, if I run a server.cfg consisting of nothing but that line, I get crashes at the times mentioned - when new clients spawn as "dead."

Consequently, if I don't use the line, I have to play with a team of bots. If I kick those bots and continue to play, I will also get the crashes... which makes me unsure if this is a problem with the SourceMod snapshot or just srcds and L4D2 in general.

I'm almost certain I was getting the same crashes when I was running without SourceMod and just using sv_cheats 1 to enable playing without bots. And to reiterate, I don't have this problem in the original Left 4 Dead. I can play by myself and when a new client joins, they spawn as "dead" and I can go grab them from the nearest closet.

Forum Jump:

Users browsing this thread: 2 Guest(s)