I need a server.cfg file for my dedicated server

The link on garrysmod.com’s wiki doesn’t work and i don’t know how to make my own. Can someone spare me a copy of theirs?

I think I need one too, first time dedicated server user here.

“They say read the FAQ, you read it and half the shit you find on it is broken.”


"ServerSettings"
{
	"hostname"				"#######"
	"sv_defaultgamemode"		"sandbox"
	"sv_lan"			"0"
	"maxplayers"			"20"
	"sbox_allownpcs"		"0"
	"sbox_maxprops"			"175"
	"sbox_maxragdolls"		"0"
	"sbox_maxnpcs"			"1"
	"sbox_maxballoons"		"10"
	"sbox_maxeffects"		"1"
	"sbox_maxdynamite"		"2"
	"sbox_maxlamps"			"5"
	"sbox_maxthrusters"		"25"
	"sbox_maxwheels"		"20"
	"sbox_godmode"			"0"
	"sbox_plpldamage"		"0"
	"sbox_playergod"		"0"
	"sbox_noclip"			"1"
	"sbox_maxhoverballs"		"25"
	"sbox_maxvehicles"		"1"
	"sbox_maxbuttons"		"15"
	"rcon_password"			"#####"


Further to this answer:

Server.cfg:



	"hostname"				"#######"
	"sv_defaultgamemode"		"sandbox"
	"sv_lan"			"0"
	"maxplayers"			"20"
	"sbox_allownpcs"		"0"
	"sbox_maxprops"			"175"
	"sbox_maxragdolls"		"0"
	"sbox_maxnpcs"			"1"
	"sbox_maxballoons"		"10"
	"sbox_maxeffects"		"1"
	"sbox_maxdynamite"		"2"
	"sbox_maxlamps"			"5"
	"sbox_maxthrusters"		"25"
	"sbox_maxwheels"		"20"
	"sbox_godmode"			"0"
	"sbox_plpldamage"		"0"
	"sbox_playergod"		"0"
	"sbox_noclip"			"1"
	"sbox_maxhoverballs"		"25"
	"sbox_maxvehicles"		"1"
	"sbox_maxbuttons"		"15"
	"rcon_password"			"#####"


Using the server_cfg.txt settings will produce a few errors, as it’s a KeyValues formatted file.

I just start up Garry’s mod and do “sv_lan 0”. :ninja:

This is for a standalone dedicated server, where you don’t need Gmod running to host.

How do you set a password for your server, not a rcon password.

Edit:

How do i set the server password not the rcon?


sv_password "lolputonehere"

Yea.

So my server ip to the outside world would be my outside world ip, not the one on my router, then the port?

Correct.

Also, does my latancy have to bee above 50?

The LOWER the better, high latency is not good. High latency equals lag.

Well if i’ve got a latency of 11 how come no one on steam can see my server exept me?

You proabably need to forward ports in your router.

Already did i’ve got port 27010 open and trigger ports set to 27005 through 27015,(this is on a dlink DI-624 if that helps)so i think i did that right and i have the -port 27010 command in the shortcut.

Where does the server.cfg file go? I assume it goes in the same folder as srcds.exe, is that correct?

I also need an example of a DarkRP server server.cfg

It should go here: C:\srcds\orangebox\garrysmod\cfg

Edit:

Someone Help!

My Friends can se my server but it shows up with the name being the ip and the latancy being 2000 and players 0/0 which is an improvement from nothing at all but, still no one can join it.

Try forwarding port 27020 as well, not sure if its UDP or TCP so try both. Works for me.

Well everything works fine, though I need to make a server.cfg that runs sbox, console (net_maxfilesize) and RP commands. I have a list and I can copy them all in one by one and they work, I just need a way of running them when the server starts.

If my server looses power when I don’t have access to it (Set the BIOS to reboot when power is lost) and restarts, I would have to VNC in and do all that. Most of the time I probably would not be able to do that.

If someone could make a config file with my list of commands, I might be able to make them admin. I just want the satisfaction that I know the server will be fine if I leave for extended periods of time.

net_maxfilesize 50
sbox_noclip 0
sbox_plpldamage 0
sbox_godmode 0
ulx map RP_DownTown_V2 DarkRP
rp_showjob 1
rp_toolgun 1
rp_proppaying 1
rp_letters 1say
rp_earthquakes 1
rp_maxcps 5
rp_drugpayamount 30
rp_maxdruglabs 4
rp_maxgangsters 5
rp_maxgundealers 2
rp_allowpdchief 1
rp_dm_autokick 0

EDIT: If the commands that are supposed to run when a map or gamemode start, This would work… Though I assume they are disabled.

So i put this in the orangebox/garrysmod/cfg ?