Hello guys
I am new to this forum and I have one question, title says it all. And if not a problem could somebody post an example of both autoexec and server cfg files. Thanks btw i'm hosting on linux machine(if someone is wondering).
128 tick is for servers that require accuracy, 64 tick is great for servers with a lot of players or fun servers.
128 is good for deathmatch, competitive, servers like that.
64 is good for jailbreak, faio, servers like that.
Below is my template I use for all my servers for server.cfg
I never use autoexec, so I don't have anything for that.
If there's something for autoexec, you most likely should just use your servers start command line.
Spoiler
PHP Code:
///////////////////////////////////////////////////////////////////////////////// // Public information
hostname "NOT A REAL HOSTNAME | JUST FOR SHOW" sv_tags "random,tags,are,for,weirdos"
rcon_password "" // Remote console password sv_password "" // Only set this if you intend to have a private server!
///////////////////////////////////////////////////////////////////////////////// // Server Convars
host_name_store "1" // Shows the server name host_info_show "2" // Shows the server information host_players_show "2" // Shows the player information sv_pausable "0" // Is the server pausable sv_allow_votes "0" // Allow voting? sv_alltalk "1" // Players can hear all other players' voice communication, no team restrictions sv_alternateticks "0" // If set, server only simulates entities on even numbered ticks sv_cheats "0" // Allow cheats on server sv_forcepreload "1" // Force server side preloading sv_kick_players_with_cooldown "0" // Kicks players that are on a cooldown from Matchmaking sv_maxusrcmdprocessticks "0" // Fixes stuttering from rubberbanding sv_workshop_allow_other_maps "0" // Users can play other workshop maps on this server sv_hibernate_when_empty "0" // Hibernates the server when no users are on
///////////////////////////////////////////////////////////////////////////////// // Server Logging
log on // Enable or disable logging on the server sv_log_onefile "0" // Log server information to only one file sv_logbans "1" // Log server bans in the server logs sv_logecho "1" // 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 (Set for 128Tick)
fps_max "0" // Sets the servers max fps sv_minrate "128000" // Min bandwidth rate allowed on server, 0 == unlimited sv_maxrate "0" // Max bandwidth rate allowed on server, 0 == unlimited sv_mincmdrate "128" // This sets the minimum value for cl_cmdrate. 0 == unlimited sv_maxupdaterate "128" // Mmaximum updates per second that the server will allow sv_minupdaterate "128" // Minimum updates per second that the server will allow
///////////////////////////////////////////////////////////////////////////////// // Server Downloads
///////////////////////////////////////////////////////////////////////////////// // Pure Options
sv_pure_kick_clients "1" // If set to 1, the server will kick clients with mismatching files sv_pure_trace "0" // If set to 1, the server will print a message whenever a client is verifying a CRC for a file
///////////////////////////////////////////////////////////////////////////////// // Ban Management
tv_advertise_watchable "1" // GOTV advertises the match as watchable via game UI, clients watching via UI tv_autorecord "0" // Automatically records all games as GOTV demos. tv_autoretry "1" // Relay proxies retry connection after network timeout tv_delay "0" // GOTV broadcast delay in seconds tv_enable "1" // Activates GOTV on server. tv_maxclients "4" // Maximum client number on GOTV server. tv_name "All Seeing Eye" // GOTV host name tv_password "eyez" // GOTV password for all clients tv_port "27020" // Host GOTV port tv_relaypassword "" // GOTV password for relay proxies tv_relayvoice "0" // Relay voice data: 0=off, 1=on tv_timeout "30" // GOTV connection timeout in seconds. tv_title "All Seeing Eye" // Set title for GOTV spectator UI tv_snapshotrate "128" // Snapshots broadcasted per second
If there's something for autoexec, you most likely should just use your servers start command line.
The server's command line has a character limit. Plus, anything in it is leaked in the process list. Any command-line switches (such as -port, -sport, etc...) need to be in the command line, but anything else you need to set at startup can go in autoexec.cfg.
__________________
Not currently working on SourceMod plugin development.
The server's command line has a character limit. Plus, anything in it is leaked in the process list. Any command-line switches (such as -port, -sport, etc...) need to be in the command line, but anything else you need to set at startup can go in autoexec.cfg.
Good call. Forgot all about that, which is pretty damn important.
On a side note, if you're in a setup where multiple servers share the same install, you can put a +exec command to make it execute a different config file on startup as well.
i.e.
Code:
+exec server1.cfg
would execute cfg/server1.cfg
__________________
Not currently working on SourceMod plugin development.