Cannot set the default gamemode with SRCDS

I can’t set the default gamemode from sandbox to the other. (I’ve tried multiple gamemodes). I have tried using deathrun, and Darkrp (Unfortunately). Neither worked, I try to go into the server.cfg and setting “sv_defaultgamemode” to “sv_defaultgamemode” “Deathrun”. However, every time I start it up, it stays on sandbox. Help would be appreciated.

That command is gone. Simply use “gamemode” “Deathrun”

Still no success, Ill post my server.cfg, maybe you’ll see what’s wrong with it.


// Recommend use notepad++ or indent broke
// Basic settings
"hostname"					"LR Gmod Server #1" // Server Name for Server List
"rcon_password"				"2224356"    // Remote control password (Blank to Disable) (Recommend use strong password)
"sv_password"				""    // Server password (Blank to Disable)
"sv_region"					"255"   // Use for server list filtering: eastcoast: 0 - westcoast: 1 - south america: 2 - europe: 3 - asia: 4 - australia: 5 - middle east: 6 - africa: 7 - world: 255
"sv_lan"					"0"   // Lan only (1) or Public (0)
"gamemode" "gdr"

// If you want use fast download, please remove slash and change to your server url.
//"sv_downloadurl"			"http://example.com/garrysmod/"
//"sv_allowdownload"		"0"


// Sandbox server settings
"sbox_godmode"				"0" // 1: No Damage 0: Normal
"sbox_plpldamage"			"1" // 1: Disable PvP 0: Enable PvP
"sbox_noclip"				"1" // 1: Enable Noclip 0: Disable Noclip

// Sandbox limits. 0 to Disable. -1 to Unlimited.
"sbox_maxprops"				"150"
"sbox_maxragdolls"			"2"  // Too much Ragdoll = Lag
"sbox_maxnpcs"				"0"  // NPC may crash the server.
"sbox_maxballoons"			"10"
"sbox_maxeffects"			"5"
"sbox_maxdynamite"			"0"
"sbox_maxlamps"				"10" // Too much Lamps = Low FPS
"sbox_maxthrusters"			"20"
"sbox_maxwheels"            "10"
"sbox_maxhoverballs"		"10"
"sbox_maxvehicles"			"5"
"sbox_maxbuttons"			"20"
"sbox_maxemitters"			"5"
"sbox_maxspawners"			"3"
"sbox_maxturrets"			"0"


//Load bans
exec "banip.cfg"
exec "banid.cfg"


The name of the gamemode in the the folder is GDR, and the name in the gdr.txt is “Deathrun”

You would want to use “gamemode” “gdr” in that case. I would try doing it in autoexec.cfg if it doesn’t work in server.cfg.

Where would that file be located, I’m not seeing it. Would I have to make the file?

In the cfg folder it might be there. Otherwise make your own and just pop the commands you want in there. One command per line.

I got it to work for Deathrun, but not for DarkRP, I tried “gamemode” “DarkRP” but it went to sandbox.

It has to be lowercase now I think, try “darkrp”

Try renaming your DarkRP.txt file to darkrp.txt (notice the caps). Then, replace the contents of the file with:


"Gamemode"
{
    "base" "sandbox"
    "title"  "DarkRP"
    "version"   "2.4.3"
    "menusystem"	"1"

    "author_name"   "LightRP: Rick darkalonio, DarkRP: Rickster, Pcwizdan, Sibre, philxyz, [GNC] Matt, Chrome Bolt, FPtje Falco, Eusion, Drakehawke"
    "author_email"  ""
    "author_url"    "http://darkrp.googlecode.com"

    "maps"  "^rp_"

    "icon"  ""
    "info"  ""
    "hide"  "0"
}

If that doesn’t work try renaming the folder that holds the gamemodes.

Still nothing…hmm

[editline]28th October 2012[/editline]

Wait, I got it to work.
Thank you guys.

[editline]28th October 2012[/editline]

Or so I thought…
Kicked: Too many lua errors

That’s a whole different thing. You have to find what lua error is causing that in your logs.

Okay, I checked the console, and I got this.


ConVarRef _FPP_GLOBALSETTINGS1_cleanupdisconnected doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_cleanupadmin doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_antie2minge doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_antispeedhack doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_cleanupdisconnectedtime doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_bigpropsize doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_bigpropwait doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_antispawninprop doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_smallpropdowngradecount doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_smallpropghostlimit doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_smallpropdenylimit doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_duplicatorlimit doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_duplicatenoweapons doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_spawniswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_spawnadmincanweapon doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_duplicatorprotect doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_spawnadmincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_BLOCKMODELSETTINGS1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_BLOCKMODELSETTINGS1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_protectpropdamage doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_noshooting doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_reloadprotection doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_cleanupdisconnected doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_cleanupadmin doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_antie2minge doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_antispeedhack doesn't point to an existing ConVar
ConVarRef _FPP_GLOBALSETTINGS1_cleanupdisconnectedtime doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_bigpropsize doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_bigpropwait doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_antispawninprop doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_smallpropdowngradecount doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_smallpropghostlimit doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_smallpropdenylimit doesn't point to an existing ConVar
ConVarRef _FPP_ANTISPAM1_duplicatorlimit doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_duplicatenoweapons doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_spawniswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_spawnadmincanweapon doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_duplicatorprotect doesn't point to an existing ConVar
ConVarRef _FPP_TOOLGUN1_spawnadmincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_BLOCKMODELSETTINGS1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_BLOCKMODELSETTINGS1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_protectpropdamage doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_ENTITYDAMAGE1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_PLAYERUSE1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_GRAVGUN1_noshooting doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_adminall doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_shownocross doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_toggle doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_checkconstrained doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_adminworldprops doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_admincanblocked doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_worldprops doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_canblocked doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_iswhitelist doesn't point to an existing ConVar
ConVarRef _FPP_PHYSGUN1_reloadprotection doesn't point to an existing ConVar
C

None of that is relevant. When you try to join the server, errors will come up. That is what I need.

It says Css was not mounted properly.

Necro Post… Didn’t see how old the topic was til after post… Delete Pls

OH MY GOD! THANK YOU SO MUCH TO THE GUY WHO SAID IT HAD TO BE LOWERCASE!!! That really made me angry because my console said "Cannot find gamemode “DarkRP”

It says can not find gamemode “darkrp” even when i put it in the gamemodes file

Why did you just revive this? Look at the age of the last post. Did you rename the DarkRP folder to darkrp and DarkRP.txt to darkrp.txt? And don’t type gamemode “darkrp”. Just type gamemode darkrp

yes i did and then i when in to console and typed gamemode darkrp and it said
Couldn’t change active gamemode - ‘darkrp’ not foun

[editline]31st January 2013[/editline]

do i need to branchs foulder for the darkrp?

[editline]31st January 2013[/editline]

my darkrp.text is this “Gamemode”
{
“base” “sandbox”
“title” “DarkRP”
“version” “2.4.3”
“menusystem” “1”

"author_name"   "LightRP: Rick darkalonio, DarkRP: Rickster, Pcwizdan, Sibre, philxyz, [GNC] Matt, Chrome Bolt, FPtje Falco, Eusion, Drakehawke"
"author_email"  ""
"author_url"    "https://github.com/FPtje/DarkRP"

"maps"  "^rp_"

"icon"  ""
"info"  ""
"hide"  "0"

}

[editline]31st January 2013[/editline]

my server.cfg is this: hostname “Brocks DarkRP server”
sv_defaultgamemode “darprp”
rcon_password “brocker12345”
sbox_noclip “0”
sbox_godmode “0”
sbox_plpldamage “0”
rp_toolgun “1”
sbox_maxprops “1000”
sbox_maxragdolls “0”
sbox_maxeffects “0”
sbox_maxdynamite “0”
sbox_maxlamps “10”
sbox_maxthrusters “10”
sbox_maxwheels “4”
sbox_maxhoverballs “0”
sbox_maxvehicles “1”
sbox_maxbuttons “5”
sbox_maxemitters “2”
sbox_maxspawners “0”
sbox_maxturrets “0”

ops for the defaultgamemode its darkrp