Raised This Month: $51 Target: $400
 12% 

View Poll Results: What you guys prefer?(and why post in the comments)
64 Tick server 4 36.36%
128 Tick server 7 63.64%
Voters: 11. You may not vote on this poll

Differences between autoexec.cfg and server.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cikavuve
Junior Member
Join Date: Mar 2017
Old 03-02-2017 , 16:28   Differences between autoexec.cfg and server.cfg
Reply With Quote #1

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).

Thanks
cikavuve is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-02-2017 , 17:50   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #2

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

Last edited by Maxximou5; 03-02-2017 at 17:53.
Maxximou5 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-02-2017 , 22:07   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #3

autoexec.cfg executes once at server start.

server.cfg executes once on every map change.

Quote:
Originally Posted by Maxximou5 View Post
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.

Last edited by Powerlord; 03-02-2017 at 22:11.
Powerlord is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 03-02-2017 , 22:20   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #4

Powerlord summed it up perfectly. Only mess with tick rates if your server can handle it.
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS

Last edited by OSWO; 03-02-2017 at 22:21.
OSWO is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-02-2017 , 22:22   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #5

Quote:
Originally Posted by Powerlord View Post
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.
Maxximou5 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-03-2017 , 08:48   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #6

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.
Powerlord is offline
cikavuve
Junior Member
Join Date: Mar 2017
Old 03-03-2017 , 11:55   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #7

Thanks guys it was all very helpful.
__________________
cikavuve is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 03-03-2017 , 18:22   Re: Differences between autoexec.cfg and server.cfg
Reply With Quote #8

Quote:
Originally Posted by cikavuve View Post
Thanks guys it was all very helpful.
I like new people like you have some
checkster is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode