AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   The problem with the configuration maplist.cfg (https://forums.alliedmods.net/showthread.php?t=285505)

szogun 07-22-2016 16:28

The problem with the configuration maplist.cfg
 
Hello
I have two problems namely one for the plugin nextmap next maplist.cfg, below adds error logs

Quote:

L 07/22/2016 - 22:21:22: SourceMod error session started
L 07/22/2016 - 22:21:22: Info (map "aim_pallid_3vs3") (file "errors_20160722.log")
L 07/22/2016 - 22:21:22: [SM] Could not parse file "/home/data/xxx/xxx/csgo/addons/sourcemod/configs/maplists.cfg"
L 07/22/2016 - 22:21:22: [SM] Error on line 59 (col 2): Section ending without a matching section beginning
L 07/22/2016 - 22:21:22: [SM] Could not parse file "/home/data/xxx/xxx/csgo/addons/sourcemod/configs/maplists.cfg"
L 07/22/2016 - 22:21:22: [SM] Error on line 59 (col 2): Section ending without a matching section beginning
L 07/22/2016 - 22:21:22: [SM] Could not parse file "/home/data/xxx/xxx/csgo/addons/sourcemod/configs/maplists.cfg"
L 07/22/2016 - 22:21:22: [SM] Error on line 59 (col 2): Section ending without a matching section beginning
L 07/22/2016 - 22:21:22: [nextmap.smx] FATAL: Cannot load map cycle. Nextmap not loaded.
L 07/22/2016 - 22:21:22: [SM] Plugin encountered error 25: Call was aborted
L 07/22/2016 - 22:21:22: [SM] Native "SetFailState" reported: Mapcycle Not Found
L 07/22/2016 - 22:21:22: [SM] Displaying call stack trace for plugin "nextmap.smx":
L 07/22/2016 - 22:21:22: [SM] [0] Line 139, /home/builds/sourcemod/linux-1.7/build/plugins/nextmap.sp::FindAndSetNextMap()
L 07/22/2016 - 22:21:22: [SM] [1] Line 109, /home/builds/sourcemod/linux-1.7/build/plugins/nextmap.sp::OnConfigsExecuted()

sneaK 07-22-2016 16:48

Re: The problem with the configuration maplist.cfg
 
Post your maplists.cfg

szogun 07-22-2016 17:11

Re: The problem with the configuration maplist.cfg
 
Quote:

/**
* 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" "umc_mapcycle.txt"
}

/* Admin menu, map voting menu */
"sm_votemap menu"
{
"file" "umc_mapcycle.txt"
}

"randomcycle"
{
"target" "default"
}

/* For the "mapchooser" plugin */
"mapchooser"
{
"target" "default"
}

/* For the "nominations" plugin */
"nominations"
{
"target" "default"
}
}
}
}

Powerlord 07-22-2016 17:54

Re: The problem with the configuration maplist.cfg
 
You have two extra } at the end of the file.

Maxximou5 07-22-2016 17:59

Re: The problem with the configuration maplist.cfg
 
You had two additional ending brackets. Here is the corrected version.
Spoiler

szogun 07-26-2016 09:17

Re: The problem with the configuration maplist.cfg
 
Yet I have one problem that can be seen on the logs

Code:

L 07/26/2016 - 14:59:18: Info (map "aim_ak2") (file "errors_20160726.log")
L 07/26/2016 - 14:59:18: [nextmap.smx] FATAL: Cannot load map cycle. Nextmap not loaded.
L 07/26/2016 - 14:59:18: [SM] Plugin encountered error 25: Call was aborted
L 07/26/2016 - 14:59:18: [SM] Native "SetFailState" reported: Mapcycle Not Found
L 07/26/2016 - 14:59:18: [SM] Displaying call stack trace for plugin "nextmap.smx":
L 07/26/2016 - 14:59:18: [SM]  [0]  Line 139, /home/builds/sourcemod/linux-1.7/build/plugins/nextmap.sp::FindAndSetNextMap()
L 07/26/2016 - 14:59:18: [SM]  [1]  Line 109, /home/builds/sourcemod/linux-1.7/build/plugins/nextmap.sp::OnConfigsExecuted()
L 07/26/2016 - 15:12:54: Error log file session closed.


Powerlord 07-26-2016 15:38

Re: The problem with the configuration maplist.cfg
 
nextmap.smx looks for the mapcycle as specified by the mapcyclefile cvar. Usually, this is mapcycle.txt

Note: SourceMod's core plugins don't understand the UMC mapcycle format, so passing it a format like that will result in an error.


All times are GMT -4. The time now is 15:32.

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