AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   How do I restore the standard mapcycle? (https://forums.alliedmods.net/showthread.php?t=312049)

Obyboby 11-14-2018 03:56

How do I restore the standard mapcycle?
 
Hello.
So I've used quite a lot of different map plugins on my server in the past, and now I have leftovers from each one all around my server folders.
I would like to revert to using the standard mapcycle.txt file, with no other plugins/votes running.
The server will just have to cycle through the mapcycle.txt maps and that's it. The only other option is a root admin forcing a map or the players rocking the vote.
The first thing I tried was removing all the map plugins from the sourcemod/plugins folders but that caused some issues, the map cycle was not being followed, I had random votes.
I would like to know if there's a way to fully remove my map plugins while making sure the server just follows the mapcycle.txt instead of running random votes that point nowhere (I tried this in the past, it was like a vote was done but at the end the map wasn't changed, something like that).
Apologize for the lack of specific information, will try to add something once I'm home tonight and I can access my server to check which map files are still there.

Also I used to host a workshop map, cs_agency_night, which I have now removed, but whenever I add cs_agency to my mapcycle.txt, the server tries to load cs_agency_night and it hangs, and it requires a restart to work again. I don't know how to fix that, there are NO traces of that map in my maps folder. I believe it has to do with one of those map plugins I'm trying to get rid of.

Thanks for any input :wink:

wer1K 11-14-2018 06:10

Re: How do I restore the standard mapcycle?
 
If you wanna use mapcycle.txt you must use default sourcemod mapchooser.smx plugin and configure to only use mapcycle.txt for any cases.

If you don't want use any SourceMod plugin to vote, you should use gamemodes_server.txt to configure your maplist there. You can't use mapcycle.txt in default voting.

Obyboby 11-14-2018 06:58

Re: How do I restore the standard mapcycle?
 
Quote:

Originally Posted by wer1K (Post 2623960)
If you wanna use mapcycle.txt you must use default sourcemod mapchooser.smx plugin and configure to only use mapcycle.txt for any cases.

If you don't want use any SourceMod plugin to vote, you should use gamemodes_server.txt to configure your maplist there. You can't use mapcycle.txt in default voting.

Okay thanks. I need to figure out which CFG is used by mapchooser.smx then.
And no I don't want ANY vote at all for the nextmap. It has to follow the mapcycle.txt order with no exceptions. :nono: :)

ghostofmybrain 11-14-2018 12:52

Re: How do I restore the standard mapcycle?
 
In /sourcemod/configs is a file called, I think, maplists.cfg? Something like that. That lets you set the file.

Obyboby 11-14-2018 16:10

Re: How do I restore the standard mapcycle?
 
Quote:

Originally Posted by ghostofmybrain (Post 2624033)
In /sourcemod/configs is a file called, I think, maplists.cfg? Something like that. That lets you set the file.

Yeah it's set to the default one.

PHP 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"        "mapcyclefile"
    
}
    
    
/* Admin menu, map menu */
    
"sm_map menu"
    
{
        
"file"            "addons/sourcemod/configs/adminmenu_maplist.ini"
    
}
    
    
/* Admin menu, map voting menu */
    
"sm_votemap menu"
    
{
        
"file"            "addons/sourcemod/configs/adminmenu_maplist.ini"
    
}
    
    
/* For the "randomcycle" plugin */
    
"randomcycle"
    
{
        
"target"        "default"
    
}
    
    
/* For the "mapchooser" plugin */
    
"mapchooser"
    
{
        
"target"        "default"
    
}
    
    
/* For the "nominations" plugin */
    
"nominations"
    
{
        
"target"        "default"
    
}



ghostofmybrain 11-14-2018 17:59

Re: How do I restore the standard mapcycle?
 
Oh ok I guess I misunderstood your question.

Obyboby 11-15-2018 02:42

Re: How do I restore the standard mapcycle?
 
Quote:

Originally Posted by ghostofmybrain (Post 2624067)
Oh ok I guess I misunderstood your question.

Basically I have mixed up a few map plugins and now I have mapchooser.smx and mapchooser_extended.smx left in my plugins folder.
I tried disabling the latter but then the remaining plugin wasn't following mapcycle.txt, it was showing end of map votes instead, and iirc they weren't even working, it was a big mess.
What I'm asking for here is how to "start fresh" with the regular mapcycle and just have my server follow the maps set in mapcycle.txt, since I don't need fancy votes or advanced map configurations etc. :)

ghostofmybrain 11-15-2018 06:11

Re: How do I restore the standard mapcycle?
 
Ah, I see. Well mapchooser.smx is a map vote plug-in. I think all you need is nextmap.smx to have it follow the map cycle you've set in your files.

Obyboby 11-15-2018 08:08

Re: How do I restore the standard mapcycle?
 
Quote:

Originally Posted by ghostofmybrain (Post 2624122)
Ah, I see. Well mapchooser.smx is a map vote plug-in. I think all you need is nextmap.smx to have it follow the map cycle you've set in your files.

I'll have a look at the cfg of both. Thanks


All times are GMT -4. The time now is 09:40.

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