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

[UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Steell
SourceMod Donor
Join Date: Mar 2009
Old 03-19-2011 , 21:27   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #521

You only get one command option per group/map. If you want to perform more than one action, separate each action by a semicolon (;) or store them in a .cfg and exec the config in the command.

Example:
Code:
...
"Attack & Defend"
{
  "maps_invote" "1"
  "next_mapgroup" "Payload"
  "command" "mp_maxrounds 2; mp_timelimit 0"

  "cp_dustbowl"
  {
    "weight" "2"
  }
  "cp_gravelpit" {}
  "cp_steel" {}
  "cp_egypt_final" {}
  "cp_mountainlab" {}
  "cp_gorge" {}
  "newvanti2" {}
  "avanti_b1" {}
}
...
__________________
Steell is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 03-19-2011 , 22:22   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #522

Ok. I've been testing by editing my umc_mapcycle.txt file, uploading, changing map on the server to see if the cvars get changed. I'm doing this via HLSW. I'm not getting changes using either of the methods above (;) or separate configs file.

Someone please learn this n00b?

Quote:
"umc_rotation"
{
"Attack & Defend"
{
"maps_invote" "1"
"next_mapgroup" "Payload"
"command" "exec orangebox/tf/cfg/mapconfig/gametype/pl.cfg"
// "command" mp_maxrounds 2; mp_timelimit 0"

"cp_dustbowl"
{
"weight" "2"
}
"cp_gravelpit" {}
"cp_steel" {}
"cp_egypt_final" {}
"cp_mountainlab" {}
"cp_gorge" {}
"newvanti2" {}
"avanti_b1" {}
}
"Payload"
{
"maps_invote" "1"
"command" "exec orangebox/tf/cfg/mapconfig/gametype/pl.cfg"
// "command" "mp_maxrounds 2; mp_timelimit 0"

"pl_goldrush"
{
"weight" "2"
}
"pl_badwater"
{
"weight" "4"
}
"pl_thundermountain" {}
"pl_upward" {}

"pl_hoodoo_final" {}
"pl_frontier_final" {}
"pl_cashworks_rc2" {}
"pl_halfacre" {}
}
"5-Point CP (Push)"
{
"maps_invote" "1"
"default_min_players" "2"
"group_weight" "2"
// "command" "exec orangebox/tf/cfg/mapconfig/gametype/cp.cfg"
"command" "mp_maxrounds 4; mp_timelimit 26"

"cp_freight" {}
"cp_freight_final1" {}
"cp_granary" {}
"cp_well" {}
"cp_coldfront" {}
"cp_yukon_final" {}
"cp_badlands" {}
"cp_fastlane" {}
"cp_5gorge" {}
"cp_gullywash_imp3" {}
"cp_mountainlab" {}
}
"Capture The Flag"
{
"maps_invote" "1"
"default_min_players" "2"
// "command" "exec orangebox/tf/cfg/mapconfig/gametype/ctf.cfg"
"command" "mp_maxrounds 2; mp_timelimit 30; tf_flag_caps_per_round 4"

"ctf_well" {}
"ctf_turbine" {}
"ctf_doublecross" {}
}
"King of the Hill"
{
"maps_invote" "1"
"default_min_players" "2"
// "command" "exec orangebox/tf/cfg/mapconfig/gametype/koth.cfg"
"command" "mp_maxrounds 3; mp_timelimit 30"

"koth_moonshine_rc" {}
"koth_nucleus" {}
"koth_viaduct" {}
"koth_harvest_final" {}
"koth_lakeside_final" {}
"koth_oilfield" {}
}
}
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
Steell
SourceMod Donor
Join Date: Mar 2009
Old 03-19-2011 , 22:43   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #523

Quote:
Originally Posted by MjrNuT View Post
Ok. I've been testing by editing my umc_mapcycle.txt file, uploading, changing map on the server to see if the cvars get changed. I'm doing this via HLSW. I'm not getting changes using either of the methods above (;) or separate configs file.

Someone please learn this n00b?
It reloads the umc_mapcycle.txt file AFTER executing the commands. If you want to test it, you're going to need to either change the map twice, or run sm_umc_reloadfile and then change the map.

Also, when you exec .cfg files, you put in the path relative to the cfg folder. For example:
Code:
"Attack & Defend"
{
  "maps_invote" "1"
  "next_mapgroup" "Payload"
  "command" "exec mapconfig/gametype/pl.cfg"
  ...
}
__________________
Steell is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 03-20-2011 , 03:46   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #524

^^Thanks for that!

Well, I got some errors with your latest version 2.4.4

Quote:
03/20/2011 - 00:08:18: [SM] Native "KillTimer" reported: Invalid timer handle 3a20308 (error 1)
L 03/20/2011 - 00:08:18: [SM] Displaying call stack trace for plugin "ultimate-mapchooser.smx":
L 03/20/2011 - 00:08:18: [SM] [0] Line 2447, ultimate-mapchooser.sp::UpdateTimers()
L 03/20/2011 - 00:08:18: [SM] [1] Line 1488, ultimate-mapchooser.sp::OnMapTimeLeftChanged()
L 03/20/2011 - 00:08:18: [SM] Native "KillTimer" reported: Invalid timer handle 3a20308 (error 1)
L 03/20/2011 - 00:08:18: [SM] Displaying call stack trace for plugin "ultimate-mapchooser.smx":
L 03/20/2011 - 00:08:18: [SM] [0] Line 2447, ultimate-mapchooser.sp::UpdateTimers()
L 03/20/2011 - 00:08:18: [SM] [1] Line 1488, ultimate-mapchooser.sp::OnMapTimeLeftChanged()
L 03/20/2011 - 01:49:27: [SM] Native "KvRewind" reported: Invalid key value handle 3d602fe (error 3)
L 03/20/2011 - 01:49:27: [SM] Displaying call stack trace for plugin "ultimate-mapchooser.smx":
L 03/20/2011 - 01:49:27: [SM] [0] Line 5410, ultimate-mapchooser.sp::RandomNextMap()
L 03/20/2011 - 01:49:27: [SM] [1] Line 6132, ultimate-mapchooser.sp::ChangeToValidMap()
L 03/20/2011 - 01:49:27: [SM] [2] Line 1476, ultimate-mapchooser.sp::OnClientDisconnect_Post()
L 03/20/2011 - 01:49:27: [SM] Native "KvRewind" reported: Invalid key value handle 3d602fe (error 3)
L 03/20/2011 - 01:49:27: [SM] Displaying call stack trace for plugin "ultimate-mapchooser.smx":
L 03/20/2011 - 01:49:27: [SM] [0] Line 5410, ultimate-mapchooser.sp::RandomNextMap()
L 03/20/2011 - 01:49:27: [SM] [1] Line 6132, ultimate-mapchooser.sp::ChangeToValidMap()
L 03/20/2011 - 01:49:27: [SM] [2] Line 1476, ultimate-mapchooser.sp::OnClientDisconnect_Post()
L 03/20/2011 - 01:490: Error log file session closed.
L 03/20/2011 - 04:54:06: SourceMod error session started
L 03/20/2011 - 04:54:06: Info (map "koth_lakeside_final") (file "errors_20110320.log")
L 03/20/2011 - 04:54:06: [SM] Native "KillTimer" reported: Invalid timer handle 8ee30314 (error 1)
L 03/20/2011 - 04:54:06: [SM] Displaying call stack trace for plugin "ultimate-mapchooser.smx":
L 03/20/2011 - 04:54:06: [SM] [0] Line 2447, ultimate-mapchooser.sp::UpdateTimers()
L 03/20/2011 - 04:54:06: [SM] [1] Line 1488, ultimate-mapchooser.sp::OnMapTimeLeftChanged()
L 03/20/2011 - 04:54:06: [SM] Native "KillTimer" reported: Invalid timer handle 8ee30314 (error 1)
L 03/20/2011 - 04:54:06: [SM] Displaying call stack trace for plugin "ultimate-mapchooser.smx":
L 03/20/2011 - 04:54:06: [SM] [0] Line 2447, ultimate-mapchooser.sp::UpdateTimers()
L 03/20/2011 - 04:54:06: [SM] [1] Line 1488, ultimate-mapchooser.sp::OnMapTimeLeftChanged()
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
Steell
SourceMod Donor
Join Date: Mar 2009
Old 03-20-2011 , 10:58   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #525

That normally means there's something wrong with your umc_mapcycle. Please check to see that the syntax is correct.
__________________
Steell is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 03-20-2011 , 11:07   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #526

Quote:
Originally Posted by Steell View Post
While that would be useful, I think that's outside of the scope of the plugin. If I ever find a clean way to add admin menu integration I may include it.

Also, the RTV suddenly not working is bugging me. What appears in chat when you type rtv and it's not working?
[UMC] Cannot rock the vote until the next map.
[SM] Cannot rock the vote for 0 more seconds.

I've seen it happening twice but apart from that on the other occasions rtv worked fine.

This is since i updated from v2.4.2 to v2.4.3.
But i also installed dodgeball since then and had to change umc_mapcycle.txt so maybe that could be messing stuff up.
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
Steell
SourceMod Donor
Join Date: Mar 2009
Old 03-20-2011 , 11:51   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #527

If you're seeing the [SM] message, that probably means you have the SM rockthevote.smx plugin active, and you should disable it.

I'll look into what could be causing the issue.
__________________
Steell is offline
Steell
SourceMod Donor
Join Date: Mar 2009
Old 03-20-2011 , 16:03   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #528

Version 2.4.5 Released.
If you're coming from v2.4 or higher, you only need to replace the .smx for this release.
  • Disabled exit button on runoff votes.
  • Made runoff votes use proper pagination (< 9 options = no pagination [Radio Style Menus only])
Attached Files
File Type: zip ultimate-mapchooser.zip (122.8 KB, 137 views)
File Type: sp Get Plugin or Get Source (ultimate-mapchooser.sp - 104 views - 272.3 KB)
__________________
Steell is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 03-21-2011 , 10:13   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #529

Quote:
Originally Posted by Steell View Post
If you're seeing the [SM] message, that probably means you have the SM rockthevote.smx plugin active, and you should disable it.

I'll look into what could be causing the issue.
Don't know what could have caused that but rockthevote.smx was in the disabled folder the whole time. Can you take a look at the attached mapcycle file? For some reason it makes the server crash after i rtv and select the first group.

edit: i noticed this command:
Quote:
default_max_players
was not mentioned by you in the OP so i removed it, rebooted and tried again. But it made the server crash again. Is that a valid command?

console log:

Quote:
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] RTV: Starting RTV.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Group 'Control Point Maps' was added to the vote.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Group 'Payload Maps' was added to the vote.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Group 'Capture the Flag Maps' was added to the vote.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Skipping map group 'Custom Maps' due to invalid server player count or server time.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Group 'Degroot Keep' was added to the vote.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Skipping map group 'Zombie Fortress' due to invalid server player count or server time.
L 03/21/2011 - 10:027: [ultimate-mapchooser.smx] VOTE MENU: (Verbose) Skipping map group 'Weapon Randomizer' due to invalid server player count or server time.
pF.Eraserhead: rtv
L 03/21/2011 - 10:02:44: [ultimate-mapchooser.smx] RTV (Tiered): Players voted for map group 'Control Point Maps'
I also have a question about the invote setting in the mapcycle file. I'm not sure i understand it.

In the config file it says:

Quote:
// Specifies whether the number of nominated maps appearing in the vote for a
// map group should be limited by the group's "maps_invote" setting.
And in the example mapcycle file in the OP each group has an invote setting of 1 and you wrote:

Quote:
Each group will have up to 1 map appear in a vote, whether that vote be RTV or an end of map vote.
Is the invote setting related to nominated maps by players or is it simply a way to limit the number of maps shown?
Attached Files
File Type: txt umc_mapcycle.txt (12.4 KB, 149 views)
__________________

Last edited by eraserhead; 03-21-2011 at 10:33.
eraserhead is offline
Send a message via Skype™ to eraserhead
Steell
SourceMod Donor
Join Date: Mar 2009
Old 03-21-2011 , 11:00   Re: Ultimate Mapchooser v2.4.4 (Updated 3/19/11)
Reply With Quote #530

Quote:
Originally Posted by eraserhead View Post
Don't know what could have caused that but rockthevote.smx was in the disabled folder the whole time. Can you take a look at the attached mapcycle file? For some reason it makes the server crash after i rtv and select the first group.
The mapcycle file looks correct. Can you open up the source, set the DEBUG constant at the top of the file from 0 to 1, recompile, throw the new binary on your server, try again and show me the log if it crashes? (If you don't know how to compile the plugin just PM me and I'll do it for you).

Quote:
Originally Posted by eraserhead View Post
i noticed this command: was not mentioned by you in the OP so i removed it, rebooted and tried again. But it made the server crash again. Is that a valid command?
Yes it is a valid command. The full documentation of all the available commands is located in the comments at the top of umc_mapcycle.txt.

Quote:
Originally Posted by eraserhead View Post
I also have a question about the invote setting in the mapcycle file. I'm not sure i understand it...

Is the invote setting related to nominated maps by players or is it simply a way to limit the number of maps shown?
The .cfg comment you posted is the comment for the sm_umc_nominate_strict cvar. Normally, the maps_invote setting will limit the total number of maps picked randomly in the group to that number. Nominations are immune to this limitation (to replicate the functionality of the original mapchooser). Pretending maps_invote was set to 2 for a group, if there was only one nomination, the vote would contain that nomination and one random map from the group. If there were two nominations, there would be the two nominations and no random maps. If there were three nominations, there would be the three nominations and no random maps. For people who didn't want the nominations to take up more than the number of slots specified by maps_invote, I added the sm_umc_nominate_strict cvar, which, in the event the number of nominations exceeded the maps_invote setting, would limit them to the amount specified by maps_invote.
__________________
Steell is offline
Reply



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 09:50.


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