Shacknews.com TeamFortress 2 server.cfg overview

Shacknews.com TeamFortress 2 server.cfg overview

Always wondered what has made the Shacknews.com TF2 server tick?  Literally? Welp here you go.

RyDogg1

Introduction

The Shacknews TeamFortress 2 Shackbattle server has hosted a plethora of battles over the years.  I'm disappointed to say that we haven't been at peak TF2 in a number of years and as servers have dwindled off (note at one time we had four servers going at once; all would be filled during the golden age) one constant has remained the same:  server.cfg

In this article I will start at the lowest level of configuration for the server and go over a few things.  This may be interesting for some and it may be boring for others.

The actual server.cfg

Items of Note

So now that you can see it; let's break down a few things.  Between lines 3 and 11 we have your overall server settings.  The biggest item on here other than sv_password being set is sv_pure.

sv_pure determines if you are willing to let client connecting pass items such as skins, tags, etc. from any source, from a very strict white list on the server, or from Steam only.  If you ever were to join a server and your tag doesn't show up on a wall after hitting the spray key; this is probably the primary reason why.  sv_pure is set to either 1 or 2.

Lines 13 to 17 are what I would consider security settings.  They prevent bad dudes from entering.  I'm happy to say I've never had to have either of those files used but I keep them around based on server documentation.

Line 21 has sv_region set; if this is set to -1 then it's the world.  0 is US east and 1 is US west.  This is mainly reporting; it doesn't affect performance.  That's another topic.

Lines 23 to 30 are rcon; ie. remote console.  Over the years there have been a few Shackers I have given rcon for them to facilitate map changes or setting sv_gravity or something else nutty when I'm not around.

I can assure you my trust and the rcon_password comes at a high price.  

Lines 32 to 39 are performance tuning for the server.  These are what I consider the reference values from the TF2 server documentation if you so call it.  Given today's CPU/memory/bandwidth peformance over systems from a decade ago I've not had a need to tweak these even with the server now running in a docker container as opposed to the HP DL380 server it used to run on.

Lines 41 to 53 are all gameplay settings.  These are always controversial because everyone has a preference on how a server should handle things like win condition, time limit of a map, or even auto balance. 

The last few lines I think are self-explanatory but feel free to ask questions in the comments.  The biggest items out them would be the setting for the very fun sv_alltalk.  Easily the most popular choice of the Shackbattle; I've never had a Shackbattle announcement without the Chatty requesting all talk be set.  

Feel free to ask any questions in the article comments.  Maybe I'll continue a series of articles on running a dedicated server for a gaming community.  

From The Chatty
  • reply
    November 11, 2020 11:34 AM

    RyDogg1 wrote a thing!

    Read more: Shacknews.com TeamFortress 2 server.cfg overview

    • reply
      November 11, 2020 11:38 AM

      This is the type of content that will make Cortex really shine. Good one.

      • reply
        November 11, 2020 11:41 AM

        Thanks. I feel the same way; why I wrote it.

        • reply
          November 11, 2020 11:46 AM

          Lines 16 and 17.. writeid and writeip.. what does that do?

          • reply
            November 11, 2020 11:48 AM

            Information that gets written to the logs. For some of the bigger Admin mods for Steam based games it requires either the client IP or your Source_ID to determine you are who you say you are.

            • reply
              November 11, 2020 11:50 AM

              Ah okay that makes sense. There's literally zero reason to not have that then unless you just want to ignore the log files.

              • reply
                November 11, 2020 11:58 AM

                Here's an example of a log entry. Where I have blocked out is your unique Steam ID. That shows up in every server log for all steam games:

                L 11/04/2020 - 02:01:44: "Harvester<10><[U:1:8*********]><Blue>" killed "m0rfus<14><[U:1:3***********]><Red>" with "obj_minisentry" (attacker_position "2102 755 135") (victim_position "2769 2325 256") }/
                


                • reply
                  November 11, 2020 12:00 PM

                  Interesting that it gives you the attacker position and the victim position in the same line entry of the log file!

      • reply
        November 11, 2020 11:41 AM

        would have been even better with a pic of rydogg’s balls though

    • reply
      November 11, 2020 11:44 AM

      Nice writeup!

    • reply
      November 11, 2020 11:48 AM

      I CANNOT UNF this enough!! I plan to study this thing and learn.

      • reply
        November 11, 2020 12:03 PM

        If the article generates enough interest I will have another one about multiple configs and other controls.

        • reply
          November 11, 2020 12:09 PM

          I will probably never be a TF2 server admin (last time sometime gave me admin I just randomly turned on low gravity for specific individuals just for shits and giggles) but the information is definitely insightful.

          I vaguely remember turning on low gravity for some shackers more than ten years ago or something similar.

          I guess the log file layout is interesting heh.

          • reply
            November 11, 2020 12:14 PM

            i like to learn and like to admin servers as a hobby. i have that TF2 AWS template that was posted and have been messing with it.

            i traditionally just stand up a server with full OS and config it inside of VMWare. i want to learn the service side now.

            • reply
              November 11, 2020 2:26 PM

              Really no need these days. I'll work on a docker article. At this point I'm able to run the Shack servers off of an Intel Atom processor.

    • reply
      November 11, 2020 11:49 AM

      [deleted]

    • reply
      November 11, 2020 12:34 PM

      [deleted]

    • reply
      November 11, 2020 12:58 PM

      as everyone else is saying, great use of the new system! my default method to find specific random gaming info is searching for hits on reddit and hoping someone went into depth in a comment. chatty can be hard to sift through, since the most inf / relevant comments don’t float to the top. i think chatty is great for a lot of things but it’s a bit challenging to find past tips / opinions unless you remember specific terms to search. maybe this new system will push this in a better direction

    • reply
      November 11, 2020 2:09 PM

      [deleted]

Hello, Meet Lola