SRCDS Steam group


Can't Set maxplayers in CS:GO
#1
Question 
My CS:GO server always sets itself to 64 maxplayers even though I specify in gamemodes_server.txt and in the launch parameters that I want 20.

Code:
srcds.exe -console -game csgo +game_type 0 +game_mode 0 -maxplayers_override 20 -hostport 27015 +map surf_kitsune -tickrate 128 -high

Code:
"GameModes_Server.txt"
{
    "gameTypes"
    {
        "classic"
        {
            "gameModes"
            {
                "casual"
                {
                          "convars"
                         {
                                 maxplayers      "20"
                          }
                    "maxplayers"    "20"
                }
            }
        }
    }
}

I would post logs, but the logs created differ from what shows in the console (I have echo off) and only contain a list of server cvars. Here is the console:

[Image: V4gwCdh.png]

Maxplayers gets set to 64 very early on. I did a bulk file search and couldn't find anything that sets the maxplayers to 64. I found that the custom gamemode sets it to 100, but it's clear that the gamemode being used is classic casual since the server returns an error for loading the casual gamemode configs.

I also have some other questions:
What are all the CGameEventManager:AddListener errors?
Why are all those cvars outputted to the console. I do not want them to be outputted because they just clutter things up. Where are these cvars even specified?; I deleted almost every config file except for autoexec, bans, server, settings_default.scr, user_default.scr, and valve.rc (remove executing of default.cfg and joystick.cfg.)
Reply
#2
In your launcher options use -maxplayers_override n

n = no of players.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)