Raised This Month: $ Target: $400
 0% 

Mapcycle not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
falco1995
Junior Member
Join Date: May 2020
Old 05-12-2020 , 09:14   Mapcycle not working
Reply With Quote #1

I'm trying to create a mapcycle of custommaps which will automaticaly play in my dedicated csgo server. Problem is that whenever I restart my server the mapcycle.txt and maplist.txt is set to default.

I created a new mapgroup named mapstest. Added 2 maps to it de_nuke and surf_utopia_v3 for testing purposes then added both these maps to mapcycle.txt and maplist.txt. Then in my server cfg i added commands: mapgroup "mapstest" and map de_nuke. To set mapgroup and standard map.

This is what my gamemodes_server.txt look like.

Code:
"Gamemodes_Server.txt"
{
    "gameTypes"
    {
        "classic"
        {
            "gameModes"
            {
                "casual"
                {
                    "mapgroupsMP"
                    {
                        "mapstest"
                    }
                }
            }
        }
    }
    "mapgroups"
    {
        "mapstest"
        {
            "name" "mapstest"
            "maps"
            {
                "surf_utopia_v3" "0"
                "de_nuke" "1"
            }
        }
    }
}
Then after restarting my server expecting de_nuke to be the start map as I added the commands for it in my sever.cfg, but when joining it shows dust2... and then when i go back in my mapcycle map it shows the default maps again. And yes I did save all my changes the right way. I feel like the commands mapgroup "mapstest" and map de_nuke are not executed maybe? Let me know!

Help is very much appreciated
falco1995 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-12-2020 , 10:04   Re: Mapcycle not working
Reply With Quote #2

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

First, lets make things clear.

mapcycle.txt is normal map rotation system. This work in other games and when CS:GO not specify map group.
SourceMod configure use this also (console variable mapcyclefile)


However, in CS:GO only, if you set map group, you start using CS:GO own map rotation system.
SourceMod do not follow that system (unless you find right SM plugin for this).


So, you need decide between two map rotation system, which you want use:

A) mapcyclefile.txt, mapchooser plugin, nextmap plugin.

B) gamemodes_server.txt, mapgroup, CS:GO end match vote map.


*edit
...dor any one, if I'm telling totally please, clarify me

Last edited by Bacardi; 05-12-2020 at 10:07.
Bacardi is offline
falco1995
Junior Member
Join Date: May 2020
Old 05-12-2020 , 10:44   Re: Mapcycle not working
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
... https://forums.alliedmods.net/showthread.php?t=322950

First, lets make things clear.

mapcycle.txt is normal map rotation system. This work in other games and when CS:GO not specify map group.
SourceMod configure use this also (console variable mapcyclefile)


However, in CS:GO only, if you set map group, you start using CS:GO own map rotation system.
SourceMod do not follow that system (unless you find right SM plugin for this).


So, you need decide between two map rotation system, which you want use:

A) mapcyclefile.txt, mapchooser plugin, nextmap plugin.

B) gamemodes_server.txt, mapgroup, CS:GO end match vote map.


*edit
...dor any one, if I'm telling totally please, clarify me
Thanks for your help, I started my server with a friend few days ago and things have just been so compilcated. I feel like I'm asking a question that has been asked a milion times, but havn't found an answer yet. Shoulnd't there be at least a simple guide to achieve the following:

- Be able to set a map rotation with custom maps.
- At end of the map vote for the next map.

There are a milion csgo servers out there but not a single tutorial on how to do this? I've been trying stuff for 4 hours now, asking around, and I feel like a total idiot not getting this to work. We're using vilayer hosting which doesn't even respond to our questions. Would really appreciate if you could link me a clear guide that works or something in that sense.

And to answer your A or B question, I don't know which option to choose but maybe you could choose for us based on what we want achieve with our server? Just a simple surf server that plays surf maps for 30 minutes. Then we get to choose the next map. As simple as that basically.

Last edited by falco1995; 05-12-2020 at 10:44.
falco1995 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-12-2020 , 11:44   Re: Mapcycle not working
Reply With Quote #4

...ok. Lets take B option. Because, I don't know, would you start using workshop map collections in some point.

https://forums.alliedmods.net/showpo...30&postcount=6

So, move some SourceMod plugins into ...plugins/disabled/ folder:
  • nextmap.smx
  • mapchooser.smx


In gamemodes_server.txt, create custom mapgroup:
Code:
"GameModes_server.txt"
{
	"mapgroups"
	{
		"mg_my_list"
		{
			"maps"
			{
				"de_dust"			""
				"de_dust2"			""
				"cs_office"			""
				"surf_activation"	""
				"workshop\604792640\truck_wars"	""
			}
		}
	}
}

When playing classic casual mode (game_type 0; game_mode 0),
create game mode override file gamemode_casual_server.cfg and use it:
PHP Code:
//                ...cfg/gamemode_casual_server.cfg


// Using Counter-Strike: Global Offensive map vote system and mapgroup
// - Move nextmap.smx and mapchooser.smx into ...addons/sourcemod/plugins/disabled/ folder.

//  Lets also blank SourceMod cvar sm_nextmap value, to not interfere:
//  - Loading our next map.
//  - To cycle only same map
//  This configure file however, works on map start only and clear cvar on that time only.
sm_nextmap ""



// Set map group (common prefix "mg_"), CSGO will start map votes on end of match and cycle maps from map group map list.
// You find Valve's map group names from Gamemodes.txt file. (Do not edit file).
// You create own map group with list of maps, from override file Gamemodes_server.txt (Edit this file).
// map group examples: mg_casualsigma, mg_casualdelta, mg_dust247, mg_hostage
mapgroup "mg_my_list"

// !! If you are planning to use different map goups, please, read this !!
//
// Change map group on map load, at point where all players re-connect.
// Otherwise, you are creating mismatch list of maps between server and players.
// - How to check, do server and player map list match together or not:
// -- Server side command: print_mapgroup_sv
// -- Client side command: print_mapgroup
// - How to "fix"
// -- Player need re-connect to server, to receive current map list of server map group
//
//  PS: This bug happen on players, end of match map vote and call vote.
//  PS: You need remove mapgroup from this file and I recommend to use use cvar servercfgfile (or custom SourceMod plugin) to change map groups.
//  https://developer.valvesoftware.com/wiki/Servercfgfile




// Please, use one of following cvar or Match end immediately after map load (mp_timelimit 0; mp_maxrounds 0).
//mp_timelimit 20
//mp_maxrounds 10

// End of Match Map Vote

// Keep or exclude current map in map vote ?
mp_endmatch_votenextmap_keepcurrent 1

// Old broken cvar. Will not disable map voting coming up at end of match.
// However, will disable/block voting when zero. Will cycle maps sequentially.
mp_endmatch_votenextmap 1

// Not work. Obsolete.
// mp_endmatch_votenextleveltime 20

// End of Match delay - How many seconds you look those scoreboard stats and voting.
//mp_match_restart_delay 25 



Finally, reboot server, just make sure everything start right.
.....
for set up and using workshop collection on server, look instructions from web. (Valve Wiki Dev)
__________________
Do not Private Message @me

Last edited by Bacardi; 05-12-2020 at 11:47.
Bacardi is offline
falco1995
Junior Member
Join Date: May 2020
Old 05-12-2020 , 14:12   Re: Mapcycle not working
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
...ok. Lets take B option. Because, I don't know, would you start using workshop map collections in some point.

https://forums.alliedmods.net/showpo...30&postcount=6

So, move some SourceMod plugins into ...plugins/disabled/ folder:
  • nextmap.smx
  • mapchooser.smx


In gamemodes_server.txt, create custom mapgroup:
Code:
"GameModes_server.txt"
{
	"mapgroups"
	{
		"mg_my_list"
		{
			"maps"
			{
				"de_dust"			""
				"de_dust2"			""
				"cs_office"			""
				"surf_activation"	""
				"workshop\604792640\truck_wars"	""
			}
		}
	}
}

When playing classic casual mode (game_type 0; game_mode 0),
create game mode override file gamemode_casual_server.cfg and use it:
PHP Code:
//                ...cfg/gamemode_casual_server.cfg


// Using Counter-Strike: Global Offensive map vote system and mapgroup
// - Move nextmap.smx and mapchooser.smx into ...addons/sourcemod/plugins/disabled/ folder.

//  Lets also blank SourceMod cvar sm_nextmap value, to not interfere:
//  - Loading our next map.
//  - To cycle only same map
//  This configure file however, works on map start only and clear cvar on that time only.
sm_nextmap ""



// Set map group (common prefix "mg_"), CSGO will start map votes on end of match and cycle maps from map group map list.
// You find Valve's map group names from Gamemodes.txt file. (Do not edit file).
// You create own map group with list of maps, from override file Gamemodes_server.txt (Edit this file).
// map group examples: mg_casualsigma, mg_casualdelta, mg_dust247, mg_hostage
mapgroup "mg_my_list"

// !! If you are planning to use different map goups, please, read this !!
//
// Change map group on map load, at point where all players re-connect.
// Otherwise, you are creating mismatch list of maps between server and players.
// - How to check, do server and player map list match together or not:
// -- Server side command: print_mapgroup_sv
// -- Client side command: print_mapgroup
// - How to "fix"
// -- Player need re-connect to server, to receive current map list of server map group
//
//  PS: This bug happen on players, end of match map vote and call vote.
//  PS: You need remove mapgroup from this file and I recommend to use use cvar servercfgfile (or custom SourceMod plugin) to change map groups.
//  https://developer.valvesoftware.com/wiki/Servercfgfile




// Please, use one of following cvar or Match end immediately after map load (mp_timelimit 0; mp_maxrounds 0).
//mp_timelimit 20
//mp_maxrounds 10

// End of Match Map Vote

// Keep or exclude current map in map vote ?
mp_endmatch_votenextmap_keepcurrent 1

// Old broken cvar. Will not disable map voting coming up at end of match.
// However, will disable/block voting when zero. Will cycle maps sequentially.
mp_endmatch_votenextmap 1

// Not work. Obsolete.
// mp_endmatch_votenextleveltime 20

// End of Match delay - How many seconds you look those scoreboard stats and voting.
//mp_match_restart_delay 25 



Finally, reboot server, just make sure everything start right.
.....
for set up and using workshop collection on server, look instructions from web. (Valve Wiki Dev)
We still can't get it to work. It just sets back to the default map cycle. We feel like we've wasted a lot of money now. Isn't it possible for you to come to our discord so we can show you what we did? It would mean a lot, we're struggling so much. Falcoow#7357
falco1995 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-12-2020 , 15:07   Re: Mapcycle not working
Reply With Quote #6

I can't, I have urge to spam posts in forum.

When you connect to your server, type in your game console:
print_mapgroup
What you get ?

Can you use rcon or server console ?
print_mapgroup_sv
what you get.


What you get when typing this ?
sm_cvar sm_nextmap



Show sm plugins list:
rcon sm plugins list


or
sm plugins list
sm plugins 11

and so on.
Bacardi is offline
falco1995
Junior Member
Join Date: May 2020
Old 05-12-2020 , 18:08   Re: Mapcycle not working
Reply With Quote #7

Quote:
Originally Posted by Bacardi View Post
I can't, I have urge to spam posts in forum.

When you connect to your server, type in your game console:
print_mapgroup
What you get ?

Can you use rcon or server console ?
print_mapgroup_sv
what you get.


What you get when typing this ?
sm_cvar sm_nextmap


Show sm plugins list:
rcon sm plugins list


or
sm plugins list
sm plugins 11

and so on.

After so many hours I found the problem which was causing to set it back to default.... the commandline. I wasn't able to edit that before but now I am.

The command line was( I filled in <classified> for authkey and IP):
PHP Code:
srcds -game csgo -console -condebug -usercon +game_type 0 +game_mode 0 +maxplayers 10 +exec server.cfg +map de_dust -ip <classified> -maxplayers_override 10 +sv_setsteamaccount <classified
I changed it to:
PHP Code:
 -game csgo -console -condebug -usercon -maxplayers_override 10 -ip <classified> -port <classified> +game_type 3 +sv_setsteamaccount <classified> +game_mode 0 -nobots +exec server.cfg +fps_max 500 -tickrate 66 +map surf_utopia_v3 +mapgroup testmap -authkey <classified
Now surf_utopia_v3 actually starts, and the right mappool is selected. But now I still need your help for the voting stuff. What are my next steps here? by the way thx for helping so far. Slowly im getting there
falco1995 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-12-2020 , 18:26   Re: Mapcycle not working
Reply With Quote #8

Well, you changed your game_type 3 (custom). Use server.cfg, because gamemode_casual_server.cfg won't work at this point anymore.
Bacardi is offline
falco1995
Junior Member
Join Date: May 2020
Old 05-12-2020 , 18:31   Re: Mapcycle not working
Reply With Quote #9

Quote:
Originally Posted by Bacardi View Post
Well, you changed your game_type 3 (custom). Use server.cfg, because gamemode_casual_server.cfg won't work at this point anymore.
I don't get the part with game_type. what is the difference in ahving game_type3, 2, 1 or 0? Does it really matter? and never heard of gamemode_casual_server.cfg.
Do you mean I should use my server.cfg now for the mapvoting?
Remember im total noob with this stuff

Last edited by falco1995; 05-12-2020 at 18:32.
falco1995 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-12-2020 , 18:39   Re: Mapcycle not working
Reply With Quote #10

Use server.cfg
Bacardi is offline
Reply


Thread Tools
Display Modes

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 10:14.


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