Raised This Month: $12 Target: $400
 3% 

The problem with the configuration maplist.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
szogun
Senior Member
Join Date: Apr 2016
Old 07-22-2016 , 16:28   The problem with the configuration maplist.cfg
Reply With Quote #1

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()
szogun is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 07-22-2016 , 16:48   Re: The problem with the configuration maplist.cfg
Reply With Quote #2

Post your maplists.cfg
sneaK is offline
szogun
Senior Member
Join Date: Apr 2016
Old 07-22-2016 , 17:11   Re: The problem with the configuration maplist.cfg
Reply With Quote #3

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"
}
}
}
}
szogun is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-22-2016 , 17:54   Re: The problem with the configuration maplist.cfg
Reply With Quote #4

You have two extra } at the end of the file.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 07-22-2016 , 17:59   Re: The problem with the configuration maplist.cfg
Reply With Quote #5

You had two additional ending brackets. Here is the corrected version.
Spoiler

Last edited by Maxximou5; 07-22-2016 at 17:59. Reason: Powerlord beat me to it. I'm slow
Maxximou5 is offline
szogun
Senior Member
Join Date: Apr 2016
Old 07-26-2016 , 09:17   Re: The problem with the configuration maplist.cfg
Reply With Quote #6

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.
szogun is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-26-2016 , 15:38   Re: The problem with the configuration maplist.cfg
Reply With Quote #7

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.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 19:25.


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