Raised This Month: $32 Target: $400
 8% 

Mapcycle by gameMode (like Mapgroup?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geraven
New Member
Join Date: Jan 2019
Old 01-13-2019 , 05:22   Mapcycle by gameMode (like Mapgroup?)
Reply With Quote #1

Hello guys. We have a server which it's used to competitive, wingman, aim and survival. I wrote cfg that's change all cvar to be in the correct gamemode.

But, the map cycle is all the time the mapcycle file. All mapgroup is correctly configured in gamemode_server.txt. But with sourcemod, the next map is all the time the nextmap on the mapcycle file.
In survival, it's the most annoying, when a the end, map is switching to dust2...

Is there a mod, config, others, to have the possiblities to switch mapcycle with cfg? Or without cfg?

Thx all
Attached Files
File Type: txt gamemodes_server.txt (4.1 KB, 114 views)
File Type: txt mapcycle.txt (1.7 KB, 112 views)
File Type: txt maplist.txt (1.7 KB, 109 views)
Geraven is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-15-2019 , 06:09   Re: Mapcycle by gameMode (like Mapgroup?)
Reply With Quote #2

CSGO game not use
mapcycle.txt file or
maplist.txt,
it use mapgroups from gamemodes(_server).txt
--------------

Not 100% sure
SourceMod base plugin NexMap, try look common cvar mapcyclefile, what can be found in many games, to get mapcycle.txt (or else file).
On fail to get that file from cvar, it try look these files also
Code:
...mapcycle.txt
...cfg/mapcycle_default.txt
...cfg/mapcycle.txt

----------


However,
you can't run both,
CSGO in-game map system (print_mapgroup_sv or print_mapgroup)
and
SourceMod Nextmap plugin (listmaps)
together, without problems.

You need decide, are you using which one ?

Move SM Nextmap plugin in disable folder and restart server, it won't change to map what are in mapcycle file.

Last edited by Bacardi; 01-15-2019 at 06:10.
Bacardi is offline
[email protected]
Junior Member
Join Date: Jan 2019
Old 01-21-2019 , 23:47   Re: Mapcycle by gameMode (like Mapgroup?)
Reply With Quote #3

Code:
/**
 * Use this file to configure map lists.
 *
 * Each section is a map list that plugins can use.  For example, the Admin Menu 
 * requests an "admin menu" map list, and you can control which maps appear via 
 * this file.
 *
 * Each section must have a property that explains where to read the maps from.
 * There are two properties:
 *
 *    target         - Redirect the request to another section.
 *    file			 - Read a file of map names, in mapcycle.txt format.
 *
 * There is one section by default, called "mapcyclefile" - it is mapped to the 
 * mapcycle.txt file, or whatever the contents of your mapcyclefile cvar is.
 *
 * If a plugin requests a map list file which doesn't exist, or is empty, SourceMod 
 * tries the "default" section, and then the "mapcyclefile" section.
 */
"MapLists"
{
	/**
	 * Default requests go right to the mapcyclefile.
	 */
	"default"
	{
		"target"		"maplist.txt"
	}
		
	/* Admin menu, map menu */
	"sm_map menu"
	{
		"file"			"maplist.txt"
	}
	
	/* Admin menu, map voting menu */
	"sm_votemap menu"
	{
		"file"			"maplist.txt"
	}
	
	/* For the "randomcycle" plugin */
	"randomcycle"
	{
		"file"		"mapcycle.txt"
	}
	
	/* For the "mapchooser" plugin */
	"mapchooser"
	{
		"file"		"maplist.txt"
	}
	
	/* For the "nominations" plugin */
	"nominations"
	{
		"file"		"maplist.txt"
	}
}
Attached Thumbnails
Click image for larger version

Name:	2019-01-22_054250.png
Views:	112
Size:	29.5 KB
ID:	173416   Click image for larger version

Name:	2019-01-22_054812.png
Views:	95
Size:	13.8 KB
ID:	173417  

Last edited by [email protected]; 01-21-2019 at 23:49.
linuxcsgosetup@gmail.com 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 06:09.


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