• I need a server.cfg file for my dedicated server
    39 replies, posted
  • Avatar of Jimmy421
  • 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?
  • Avatar of Xplodzion
  • 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."
  • Avatar of psp401.com
  • [code]"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" "#####" [/code]
  • Avatar of UberMensch
  • [QUOTE=psp401.com][code]"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" "#####" [/code][/QUOTE] Further to this answer: Server.cfg: [code] "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" "#####" [/code] Using the server_cfg.txt settings will produce a few errors, as it's a KeyValues formatted file.
  • Avatar of UberMensch
  • [QUOTE=cs_freak]I just start up Garry's mod and do "sv_lan 0". :ninja:[/QUOTE] This is for a standalone dedicated server, where you don't need Gmod running to host.
  • Avatar of stingy49
  • How do you set a password for your server, not a rcon password. [b]Edit:[/b] [QUOTE=UberMensch]Further to this answer: Server.cfg: [code] "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" "#####" [/code] Using the server_cfg.txt settings will produce a few errors, as it's a KeyValues formatted file.[/QUOTE] How do i set the server password not the rcon?
  • Avatar of stingy49
  • So my server ip to the outside world would be my outside world ip, not the one on my router, then the port?
  • Avatar of Bocom
  • [QUOTE=stingy49]So my server ip to the outside world would be my outside world ip, not the one on my router, then the port?[/QUOTE] Correct.
  • Avatar of Bocom
  • [QUOTE=stingy49]Also, does my latancy have to bee above 50?[/QUOTE] The LOWER the better, high latency is not good. High latency equals lag.
  • Avatar of stingy49
  • Well if i've got a latency of 11 how come no one on steam can see my server exept me?
  • Avatar of stingy49
  • [QUOTE=ChewGum]You proabably need to forward ports in your router.[/QUOTE] 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.
  • Avatar of benjgvps
  • 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
  • Avatar of stingy49
  • [QUOTE=benjgvps]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[/QUOTE] It should go here: C:\srcds\orangebox\garrysmod\cfg [b]Edit:[/b] 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.
  • [QUOTE=stingy49]It should go here: C:\srcds\orangebox\garrysmod\cfg [b]Edit:[/b] 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.[/QUOTE] Try forwarding port 27020 as well, not sure if its UDP or TCP so try both. Works for me.
  • Avatar of benjgvps
  • 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.
  • Avatar of xXPezcoolXx
  • [QUOTE=Luburium]So i put this in the orangebox/garrysmod/cfg ?[/QUOTE] Yes you put this into the orangebox/garrysmod/cfg folder
  • Avatar of nofear1999
  • [QUOTE=stingy49;11091389]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.[/QUOTE] heartbeat sv_lan 0 ?
  • Avatar of SickK
  • // server name hostname "Name" // rcon passsword rcon_password "Pass" // server cvars sv_defaultgamemode sandbox mp_friendlyfire 0 mp_footsteps 1 mp_autoteambalance 1 mp_autokick 0 mp_flashlight 0 mp_tkpunish 1 mp_forcecamera 0 sv_alltalk 0 sv_pausable 0 sv_cheats 0 sv_consistency 1 sv_allowupload 1 sv_allowdownload 1 sv_maxspeed 320 mp_limitteams 2 mp_hostagepenalty 5 sv_voiceenable 1 mp_allowspectators 1 mp_chattime 10 sv_timeout 65 // round specific cvars mp_freezetime 6 mp_roundtime 5 mp_startmoney 800 mp_c4timer 45 mp_fraglimit 0 mp_maxrounds 0 mp_winlimit 0 mp_playerid 0 mp_spawnprotectiontime 5 // bandwidth rates/settings sv_minrate 0 sv_maxrate 20000 decalfrequency 10 //Do not change these settings sv_maxupdaterate 75 sv_minupdaterate 10 // server logging log off sv_logbans 0 sv_logecho 1 sv_logfile 1 sv_log_onefile 0 // operation sv_lan 0 sv_region 255 // execute ban files exec banned_user.cfg exec banned_ip.cfg
  • Avatar of stewsta
  • as big as this bump was (by the previous two posters), the cfg on garrysmod.com wiki has been updated (hosted on my site), By the way, the post above mine (SickK's) is actualy a CS:S config.
  • Avatar of nofear1999
  • [QUOTE=benjgvps;11172424]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.[/QUOTE] // Server.cfg Executes on maploads // For Convars like sv_cheats 1 = on 0 = off hostport 27015 //Port used for the Server Hostname "Your server name here" // host name rcon_password "Rcon pass" // rcon password sv_password "" //Server Password //DarkRP net_maxfilesize 50 sbox_noclip 0 sbox_plpldamage 1 sbox_godmode 0 ulx map RP_DownTown_V2 DarkRP rp_showjob 1 rp_toolgun 1 rp_proppaying 1 rp_letters 1 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 sv_defaultgamemode "DarkRP" sbox_noclip "0" sbox_godmode "0" sbox_plpldamage "0" rp_toolgun "1" //Voice Chat sv_voiceenable 1 // Enable Voice sv_alltalk 1 // Allow all the teams to talk to each other // Lan sv_lan 0 // Lol Lan //Rates (Don't change unless you under stand these) sv_maxcmdrate 33 sv_maxupdaterate 60 sv_maxrate 0 sv_minrate 2000 sv_minupdaterate 20 //Fall Damage, 1 for realistic, 0 for 10 hp mp_falldamage 0 //How fast a Spray can be Sprayed, In seconds decalfrequency 3 // LOGGING sv_logbans 1 sv_stats 1 log 1 //Turn this off if you don't like the logging in the console (L <date> then some other stuff), logs are in garrysmod/logs //Leave off unless you want them on. (Most things that crash servers are cheats.) sv_cheats 0 //Downloading sv_downloadurl "http://a4p.host-right.info/orangebox/garrysmod" sv_allowdownload 1 sv_allowupload 1 net_maxfilesize 100 //Holy shit, a command no one ever uses "sv_lan" "0" "maxplayers" "12" "sbox_allownpcs" "0" "sbox_maxprops" "15" "sbox_maxragdolls" "0" "sbox_maxnpcs" "0" "sbox_maxballoons" "0" "sbox_maxeffects" "0" "sbox_maxdynamite" "0" "sbox_maxlamps" "0" "sbox_maxthrusters" "5" "sbox_maxwheels" "4" "sbox_godmode" "0" "sbox_plpldamage" "1" "sbox_playergod" "0" "sbox_noclip" "0" "sbox_maxhoverballs" "0" "sbox_maxvehicles" "2" "sbox_maxbuttons" "5" sv_region 0 sv_timeout 65 //File for Mapcycle if you need it mapcyclefile mapcycle.txt //If you want something to not be executed put it like this //sv_cheats 1 //if you put the slashes infront of something everything to the right of them is not executed //Make sure the Bans are loaded exec banned_user.cfg add me on steam nofear1999
  • I would recommend [url=http://gigabitdc.com/dedicated/]server rental[/url] from GigabitDC.COM. Their pricelist concerned me as well but I had to try it out.
  • Avatar of XxAthrunxX
  • [QUOTE=ABowlOfLolz;15415491]So how do i make a .cgf file? do i just take a .txt file and rename it as a .cfg file?[/QUOTE] ya