CS2 Server and mapcycle

Hello World :slight_smile:

First of all, english is not my mother language, so I apologize for any mistakes I make.

I’m running a CS2 server on a Debian virtual machine, and I want to automate the map cycle.

I’ve found a few tricks on Youtube, but none of them work.
The last trick I tried : create a file named mapcycle.txt in the parent directory.
The server started correctly, but at the end of the first game, everything crashed.

So if anyone knows how to make a working mapcycle, I’ll take the trick :slight_smile:

Thanks

Did you try:

game/csgo/mapcycle.txt

Hello,

thank you for your reply.
I said “parent directory” without details, but yes, I put this file in game/csgo/

What content did you include?

I tried several things :

  • put the names of the maps one behind the other (de_dust2, cs_train, etc)
  • the same but with quotation marks (“de_dust2” “”, “cs_train” “”, etc)
  • copy/paste an example found on a forum :

“mapgroups”
{
“mg_custom”
{
“name” “mg_custom”
“maps”
{
“de_dust2” “”
“de_mirage” “”
“de_cache” “”
“de_inferno” “”
“de_train” “”
“de_nuke” “”
“de_overpass” “”
}
}
}

and write “mg_custom” on the AMP config page of my cs2 server

  • the same without the parameter on AMP
  • the same but without the line : “name” “mg_custom”

and other things on the AMP config page, but I no longer have the details of all my actions

Try just a simple list, one map per line, as here:

Test done but same result : after the first game, changing the map crashes the server :frowning:

Try the override then with the mapgroup command:

https://forums.alliedmods.net/showthread.php?t=349837

(There’s an example given in the fourth response of the format. Have to replicate the gamemode file it is overriding.)

Just reminded myself that there is a setting for Map Groups in the CS2 template

IT WORKS !!! Thank you very much :slight_smile: :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.