Kxnrl / Mapchooser-Redux

Mapchooser - Redux
GNU General Public License v3.0
32 stars 10 forks source link

How can I disable some map voting options #33

Open crashzk opened 4 years ago

crashzk commented 4 years ago

How can I disable some map voting options? 20200331183221_1

As you can see, in the print you have the options, not to change the map and not to vote for any map. How would I disable these menu options?

I only have these active plugins:

101 "MapChooser Redux" (2.0.196) by Kyle
102 "Nominations Redux" (2.0.196) by Kyle
103 "Rock The Vote Redux" (2.0.196) by Kyle
Kxnrl commented 4 years ago

u mean remove option 1 and 5?

crashzk commented 4 years ago

u mean remove option 1 and 5?

Exact.

And those options that appear as null how can I remove them too?

Kxnrl commented 4 years ago

check in cfg. it's display tag & desc

crashzk commented 4 years ago

Both are marked with 1, here is the configuration I use:

// This file was auto-generated by SourceMod (v1.10.0.6474)
// ConVars for plugin "mapchooser_redux.smx"

// How many nominations can shuaffle the map vote menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "5.000000"
mcf_shuffle_require_maps "1"

// include desc tag in map desc
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_include_desctag "1"

// include name tag in map desc
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_include_nametag "1"

// How many times can extend the map.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "9.000000"
mcr_map_extend_times "3"

// Enable or not party block fuction.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_partyblock_enabled "1"

// How much time in hours ago played can count to recently played pool, (-1 disable all recently played function) 
// -
// Default: "144"
// Minimum: "-1.000000"
// Maximum: "300.000000"
mcr_rectplayed_interval "144"

// What percentage increase of nomination map price for recently played
// -
// Default: "0.5"
// Minimum: "0.000000"
// Maximum: "9.900000"
mcr_rectplayed_ltp_mtpl "0.5"

// Refund ratio of credits if map fail to be choosen.
// -
// Default: "0.6"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_refund_credits_ratio "0.6"

// Timer Location of HUD - 0: Hint,  1: Text,  2: Chat,  3: Game
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
mcr_timer_hud_location "3"

// Enable or not shuffle mapvote menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_votemenu_shuffle "1"
Kxnrl commented 4 years ago

0 will not display

crashzk commented 4 years ago

It didn't work, I changed the cvars to 0, even so it shows option 1 and 9: 20200403132453_1

Config I'm using now:

// This file was auto-generated by SourceMod (v1.10.0.6474)
// ConVars for plugin "mapchooser_redux.smx"

// Enable or not shuffle mapvote menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "5.000000"
mcf_shuffle_require_maps "1"

// include desc tag in map desc
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_include_desctag "0"

// include name tag in map desc
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_include_nametag "0"

// How many times can extend the map.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "9.000000"
mcr_map_extend_times "3"

// Enable or not party block fuction.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_partyblock_enabled "1"

// How much time in hours ago played can count to recently played pool, (-1 disable all recently played function) 
// -
// Default: "144"
// Minimum: "-1.000000"
// Maximum: "300.000000"
mcr_rectplayed_interval "144"

// What percentage increase of nomination map price for recently played
// -
// Default: "0.5"
// Minimum: "0.000000"
// Maximum: "9.900000"
mcr_rectplayed_ltp_mtpl "0.5"

// Refund ratio of credits if map fail to be choosen.
// -
// Default: "0.6"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_refund_credits_ratio "0.6"

// Timer Location of HUD - 0: Hint,  1: Text,  2: Chat,  3: Game
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
mcr_timer_hud_location "3"

// Enable or not shuffle mapvote menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_votemenu_shuffle "1"
crashzk commented 4 years ago

I am waiting for the update, used in competitive servers, these options kind of lose the sense to leave activated.

Kxnrl commented 4 years ago

it requires adding more convars. WIP

crashzk commented 4 years ago

Oops, I would like to know how the process is going? https://github.com/Kxnrl/Mapchooser-Redux/commit/fe645d25ba1f9e5e4af2edd906cd890522cff45e

I did a test with this modified version, but it doesn't work yet. It is configured like this:

// This file was auto-generated by SourceMod (v1.10.0.6474)
// ConVars for plugin "mapchooser_redux.smx"

// Add no vote button into menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_add_novote_button "0"

// include desc tag in map desc
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_include_desctag "0"

// include name tag in map desc
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_include_nametag "0"

// How many times can extend the map.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "9.000000"
mcr_map_extend_times "3"

// Enable or not party block fuction.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_partyblock_enabled "1"

// How much time in hours ago played can count to recently played pool, (-1 disable all recently played function) 
// -
// Default: "144"
// Minimum: "-1.000000"
// Maximum: "300.000000"
mcr_rectplayed_interval "144"

// What percentage increase of nomination map price for recently played
// -
// Default: "0.5"
// Minimum: "0.000000"
// Maximum: "9.900000"
mcr_rectplayed_ltp_mtpl "0.5"

// Refund ratio of credits if map fail to be choosen.
// -
// Default: "0.6"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_refund_credits_ratio "0.6"

// How many nominations can shuaffle the map vote menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "5.000000"
mcr_shuffle_require_maps "1"

// Timer Location of HUD - 0: Hint,  1: Text,  2: Chat,  3: Game
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
mcr_timer_hud_location "3"

// Enable or not shuffle mapvote menu.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mcr_votemenu_shuffle "1"
crashzk commented 4 years ago

And with the config I mentioned above, the poll also bug, there is only one map in the vote, always the same map.

And my config in mapdata.kv has several maps. mapdata.zip

20200413115507_1

And as you can see on the print now, the No Vote option is gone.

crashzk commented 4 years ago

I also don't know if it would be the same problem, but the list of nominate maps also appears buggy: https://cdn.discordapp.com/attachments/672866859795873852/699286045547823176/unknown.png image

In this case, I wanted only the names of the maps to appear, without a description or map information, would it be possible?

Kxnrl commented 4 years ago

it is possiable, let me check