I don't expect defining new modes will work at this point, but yes, you can change mode and type while the server is running, provided you changelevel. Game_type 0;game_mode 1;changelevel de_dust
Changes to competitive. Game_type 0;game_mode 0;changelevel de_dust Changes to casual. Game_type 1;game_mode 0;changelevel ar_baggage Changes to arms race. Game_type 1;game_mode 1;changelevel de_bank Changes to demolition. Gamemodes.txt primarily establishes a framework of modes that's accessible to the engine in the front end so we can provide meaningful menus. It also encapsulates a series of distinct sets of convars for each mode that guarantees switching between modes is complete and not partial. But otherwise, barring some new bugs and yet missing convars, you guys to be able to accomplish most customization with server.cfg. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brendan Cosman Sent: Friday, August 17, 2012 4:22 AM To: csgo servers Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt It is late Friday night here and I don't know if we've been provided with sufficient documentation to answer this question, but: Can you define two custom game modes with the necessary settings, then change between them without restarting the server? It seems possible, game_mode and game_type are cvars that appear to be changeable via rcon (I just played with it on a server then) and gamemodes.txt seems to be an extensible schema. If so: You distribute an approved gamemodes_league.txt file for your league. That file defines two custom games modes, practice and match, with associated maplists. Official servers start with +-gamemodes_serverfile gamemodes_league.txt on the command line, and then can swap between them with "rcon game_mode x" or with an addon that does that for you - I assume something like Warmod would automate this. (You could also distribute the file and admins can merge it with their current gamemodes_server.txt file if they want. Keeping it separate makes for easier updating.) I haven't tested any of that, but from the look of the gamemodes.txt file and the cvars, it seems to be the way we are expected to accomplish what you need. Regards, Brendan. ----- Original Message ----- From: "Absurd Minds" <[email protected]> To: "csgo servers" <[email protected]> Sent: Friday, 17 August, 2012 9:01:37 PM GMT +10:00 Brisbane Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt The biggest problem I see is with leagues. How do you have a practice.cfg and a match.cfg when all the appropriate configs are defined in gamemodes_server.txt and you have to restart the server to reload the txt file? On Fri, Aug 17, 2012 at 5:36 AM, Brendan Cosman < [email protected] > wrote: I expect that it won't be long before someone codes a program that will present a nice GUI interface that allows you to select the settings you'd like and crafts the gamemodes_server.txt file for you. Regards, Brendan. ----- Original Message ----- From: "Mark Clifford-Jones" < [email protected] > To: "csgo servers" < [email protected] > Sent: Friday, 17 August, 2012 5:40:36 PM GMT +10:00 Brisbane Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt Thanks for that info Ido, I still don't think this ideal though, most server admins would just want to have config files that they can just edit the values of the vars instead of copying/pasting stuff from one file to another and then changing - although I suppose they could just copy the whole of gamemodes.txt into gamemodes_server.txt and then edit that? > From: [email protected] > Date: Fri, 17 Aug 2012 02:39:28 +0200 > To: [email protected] > Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt > > Can the file actually be reloaded in any way. I think my changed > settings are not reflected until I restart the server, that is very > inconvenient. > > On Fri, Aug 17, 2012 at 2:34 AM, Ido Magal < [email protected] > wrote: > > The code first loads gamemodes.txt, then it merges in gamemodes_server.txt > > and overwrites any key values if there are duplicates. So, yes, changing > > either will get the same result. > > > > > > > > The reason we recommend not changing gamemodes.txt is because if we change > > it ( for example by moving free armor from being hard-coded into a convar > > that now needs to be included in every gamemode convar block ), you either > > don’t get the changes or you have to manually diff your old version with > > the > > new one every update. > > > > > > > > Point taken on the documentation, and we’ll improve it as we go, but fwiw, > > the wiki is a community wiki, and those of you that help each other out on > > the list should feel empowered to add to it and/or modify it. > > > > > > > > Thanks for running servers. > > > > > > > > Cheers. > > > > > > > > From: [email protected] > > [mailto: [email protected] ] On Behalf Of Mark > > Clifford-Jones > > Sent: Thursday, August 16, 2012 5:02 PM > > > > > > To: [email protected] > > Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt > > > > > > > > Thanks Mitch, that's great :) > > > > Incidentally, a quick look on that list shows you had to do exactly what i > > did to get a mixed map rotation working (i.e. de_ and cs_ maps in the same > > list) - even though the gamemodes.txt file says 'do not modify!' > > > > ________________________________ > > > > From: [email protected] > > To: [email protected] > > Date: Thu, 16 Aug 2012 19:53:10 -0400 > > Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt > > > > Joe, try this link > > http://www.mail-archive.com/[email protected]/index.html#01015 > > > > > > > > ________________________________ > > > > From: [email protected] > > Date: Thu, 16 Aug 2012 19:48:49 -0400 > > To: [email protected] > > Subject: Re: [Csgo_servers] server.cfg and gamemodes.txt > > > > Just wanted to say that I don't have access to the archives as well, which > > is a bit frustrating as I assume there's a good bit of info in there that > > would be useful (and would also probably prevent this list from being > > flooded with repeat questions). > > > > > > > > Also wanted to agree with the notion that a more fully fleshed-out example > > server.cfg and gamemodes.txt would be greatly appreciated. > > > > > > > > -joe > > > > > > > > On Thu, Aug 16, 2012 at 8:30 AM, Mark Clifford-Jones < [email protected] > > > > > wrote: > > > > Hi all > > > > Firstly, apologies if this has already been covered, I can't seem to access > > the archived mails :( > > > > I have just installed a server using the guide from the wiki > > https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers > > > > > > The first thing I notice is the server.cfg is very minimal, but I'm pretty > > sure there are more vars that can go in there (I tried some CSS ones just > > to > > see!), does anybody have an example server.cfg with all the available > > options in? > > > > Also gamemodes.txt seems very complicated compared to how CSS worked, is > > there a simplified version anywhere? And is it possible to split the > > gamemodes out totally from there into seperate playlist configs and call > > them from command line when a change to the server is needed (or is it even > > possible to call them from server.cfg)? gamemodes.txt takes a LOT of > > trawling through.......!! > > > > The wiki was a good place to start but seems very vague in places, I wanted > > to know if a mixed rotation was possible so went to the map section and it > > just says > > > > > > Maps > > > > > > The types of maps you play are now controlled by map groups. > > > > And lastly does mp_maxplayers work? And if so does the command line > > override > > gamemode.txt? I tried to set max players on the command line but it seems > > to > > start with whatever I have it set at in gamesmode.txt.............. > > > > Thanks all! > > > > > > _______________________________________________ > > Csgo_servers mailing list > > [email protected] > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers > > > > > > > > > > _______________________________________________ Csgo_servers mailing list > > [email protected] > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers > > > > > > _______________________________________________ Csgo_servers mailing list > > [email protected] > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers > > > > > > _______________________________________________ > > Csgo_servers mailing list > > [email protected] > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers > > _______________________________________________ > Csgo_servers mailing list > [email protected] > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers _______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers _______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers _______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers _______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers _______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
