Raised This Month: $32 Target: $400
 8% 

[Help] Vote map matchmaking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exploiter
Junior Member
Join Date: Apr 2020
Old 04-08-2020 , 14:45   [Help] Vote map matchmaking
Reply With Quote #1

Hello, i have a problem with a matchmaking server, my vote system isnt working well.
I want to turn on map vote when 2 rounds remaining ,ex: 14-14, 14-13, I dont know how to configure the sourcemode plugins for vote. I have right now a mapcycle but i would like to use a vote, i searched for some tutorials or some plugins but still not working.
Exploiter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-08-2020 , 15:05   Re: [Help] Vote map matchmaking
Reply With Quote #2

Game ?

sm plugins list
__________________
Do not Private Message @me
Bacardi is offline
Exploiter
Junior Member
Join Date: Apr 2020
Old 04-08-2020 , 15:47   Re: [Help] Vote map matchmaking
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
Game ?

sm plugins list
Game cs go
I have the necesary plugins and some time the vote works and some time no

Plugin list: https://pastebin.com/cZEL8CXb
Exploiter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-08-2020 , 20:46   Re: [Help] Vote map matchmaking
Reply With Quote #4

Ok, I learned new things again in CSGO map cycle... system..


There are two map vote system:
  • The one in csgo game
  • SourceMod plugin Mapchooser

You need decide which one you want use, using both get very complex and not work.


I'm telling now only of Mapchooser plugin. And CSGO game mode as casual, game_type 0; game_mode 0.

- Server config: using CSGO game mode override file, ...cfg/gamemode_casual_server.cfg
from here we are able to change cvars what Valve's game modes override.
PHP Code:
// ...cfg/gamemode_casual_server.cfg

// clear, blank mapgroup, this make sure players not see any CSGO in-game map system maps.
// - end of map vote not show up
// - console command print_mapgroup is empty.
mapgroup " "

//  These two cvars does not prevent CSGO end of map vote coming.
//mp_endmatch_votenextmap 0 // players can't vote maps
//mp_endmatch_votenextleveltime 0 // <- deprecated


// To get Mapchooser work in CSGO, game need load maps, no match restarts.
mp_match_end_restart 0            // When enable, game restart match, at the end of match. No map loads anymore.
mp_match_end_changelevel 1        // When disable, if next map is same, game restart match. Not loading same map.



// I recommend disable this cvar called, mp_match_can_clinch
// When game based on mp_maxrounds and one team destroy opponents insanely many rounds,
// it end match sooner. Mapchooser vote not start in time anymore.
// This problem can be fixed from changing mapchooser settings
//  ...cfg/sourcemod/mapchooser.cfg, sm_mapvote_startround
mp_match_can_clinch 0


// How do you play your matches ?
// By max rounds. By time limit.
// Or both.
mp_timelimit 0
mp_maxrounds 15

// Hidden cvar, still works.
//sm_cvar mp_fraglimit 0

// 

From ...cfg/sourcemod/mapchooser.cfg you find more settings.


Use ...csgo/mapcycle.txt as maplist.
- Don't edit ...csgo/cfg/mapcycle_default.txt
PHP Code:
cs_italy
de_dust
de_aztec
cs_office
de_dust2
de_train
de_inferno
de_nuke 

*edit
Tell us, if you want that CSGO map vote system to work and not Mapchooser.
__________________
Do not Private Message @me

Last edited by Bacardi; 04-09-2020 at 02:16. Reason: mp_fraglimit
Bacardi is offline
Exploiter
Junior Member
Join Date: Apr 2020
Old 04-09-2020 , 09:25   Re: [Help] Vote map matchmaking
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
Ok, I learned new things again in CSGO map cycle... system..


There are two map vote system:
  • The one in csgo game
  • SourceMod plugin Mapchooser

You need decide which one you want use, using both get very complex and not work.


I'm telling now only of Mapchooser plugin. And CSGO game mode as casual, game_type 0; game_mode 0.

- Server config: using CSGO game mode override file, ...cfg/gamemode_casual_server.cfg
from here we are able to change cvars what Valve's game modes override.
PHP Code:
// ...cfg/gamemode_casual_server.cfg

// clear, blank mapgroup, this make sure players not see any CSGO in-game map system maps.
// - end of map vote not show up
// - console command print_mapgroup is empty.
mapgroup " "

//  These two cvars does not prevent CSGO end of map vote coming.
//mp_endmatch_votenextmap 0 // players can't vote maps
//mp_endmatch_votenextleveltime 0 // <- deprecated


// To get Mapchooser work in CSGO, game need load maps, no match restarts.
mp_match_end_restart 0            // When enable, game restart match, at the end of match. No map loads anymore.
mp_match_end_changelevel 1        // When disable, if next map is same, game restart match. Not loading same map.



// I recommend disable this cvar called, mp_match_can_clinch
// When game based on mp_maxrounds and one team destroy opponents insanely many rounds,
// it end match sooner. Mapchooser vote not start in time anymore.
// This problem can be fixed from changing mapchooser settings
//  ...cfg/sourcemod/mapchooser.cfg, sm_mapvote_startround
mp_match_can_clinch 0


// How do you play your matches ?
// By max rounds. By time limit.
// Or both.
mp_timelimit 0
mp_maxrounds 15

// Hidden cvar, still works.
//sm_cvar mp_fraglimit 0

// 

From ...cfg/sourcemod/mapchooser.cfg you find more settings.


Use ...csgo/mapcycle.txt as maplist.
- Don't edit ...csgo/cfg/mapcycle_default.txt
PHP Code:
cs_italy
de_dust
de_aztec
cs_office
de_dust2
de_train
de_inferno
de_nuke 

*edit
Tell us, if you want that CSGO map vote system to work and not Mapchooser.

I dont care wich system is working , i just want to make the maps changes by vote.
I will try your settings and i will tell you how is going, thank you for them !
Exploiter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-10-2020 , 13:13   Re: [Help] Vote map matchmaking
Reply With Quote #6

I want to continue and tell also about CSGO game own map vote system, part.
And I continue with same game mode, casual, game_type 0; game_mode 0



To get it work,
we need disable some SourceMod plugins. These are:
  • nextmap.smx
  • mapchooser.smx
- SourceMod core have a "powerful" cvar sm_nextmap, this force given map name to be next map, bypassing game own nextlevel.
nextmap.smx and mapchooser.smx plugins again look map list from map cycle file and else, then by own actions change cvar sm_nextmap value.




- Using CSGO game mode override config file again, where we are able to change some cvars which Valve's game mode settings override.
PHP Code:
//                ...cfg/gamemode_casual_server.cfg


// Using Counter-Strike: Global Offensive map vote system and mapgroup
// - Move nextmap.smx and mapchooser.smx into ...addons/sourcemod/plugins/disabled/ folder.

//  Lets also blank SourceMod cvar sm_nextmap value, to not interfere:
//  - Loading our next map.
//  - To cycle only same map
//  This configure file however, works on map start only and clear cvar on that time only.
sm_nextmap ""



// Set map group (common prefix "mg_"), CSGO will start map votes on end of match and cycle maps from map group map list.
// You find Valve's map group names from Gamemodes.txt file. (Do not edit file).
// You create own map group with list of maps, from override file Gamemodes_server.txt (Edit this file).
// map group examples: mg_casualsigma, mg_casualdelta, mg_dust247, mg_hostage
mapgroup "mg_casualsigma"

// !! If you are planning to use different map goups, please, read this !!
//
// Change map group on map load, at point where all players re-connect.
// Otherwise, you are creating mismatch list of maps between server and players.
// - How to check, do server and player map list match together or not:
// -- Server side command: print_mapgroup_sv
// -- Client side command: print_mapgroup
// - How to "fix"
// -- Player need re-connect to server, to receive current map list of server map group
//
//  PS: This bug happen on players, end of match map vote and call vote.
//  PS: You need remove mapgroup from this file and I recommend to use use cvar servercfgfile (or custom SourceMod plugin) to change map groups.
//  https://developer.valvesoftware.com/wiki/Servercfgfile




// Please, use one of following cvar or Match end immediately after map load (mp_timelimit 0; mp_maxrounds 0).
//mp_timelimit 20
//mp_maxrounds 10

// End of Match Map Vote

// Keep or exclude current map in map vote ?
mp_endmatch_votenextmap_keepcurrent 1

// Old broken cvar. Will not disable map voting coming up at end of match.
// However, will disable/block voting when zero. Will cycle maps sequentially.
mp_endmatch_votenextmap 1

// Not work. Obsolete.
// mp_endmatch_votenextleveltime 20

// End of Match delay - How many seconds you look those scoreboard stats and voting.
//mp_match_restart_delay 25 

CSGO map groups
- Look map groups (mg_*) but do not edit file, ...csgo/Gamemodes.txt



Create CSGO map group
- Create/Edit override file ...csgo/Gamemodes_server.txt file
- To see changes, restart server or change map. Gamemodes construct do not update if you change to same map as current.
Spoiler





Do match end and never change map ? Changelevel or reboot server only options.
- One reason is workshop maps and you have not set up your Steam Web API Auth Key
https://developer.valvesoftware.com/...horization_Key





I may have miss something in this far, and there are some complex CSGO game mode tweaks. Also workshop maps.
Maybe I edit and update these two posts if I realize something.


Moderators can also edit my posts I have terrible english.
__________________
Do not Private Message @me

Last edited by Bacardi; 04-10-2020 at 13:26. Reason: info: bug happen on players map votes
Bacardi is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 03-05-2021 , 07:11   Re: [Help] Vote map matchmaking
Reply With Quote #7

@Bacardi, first I want to congratulate you for the great explanation of how and what are the voting methods we have for CSGO.

Second, I believe that this topic is more than perfect to be moved to the CSGO tutorials area of ​​the forum, I almost created another topic just to ask about it.

Anyway, come on my question, I want to use the CSGO voting mode, the one that shows at the end of the map along with the score, in which case will I be using the second part that sent correct? I will try to apply this on one of my servers to see if everything works.

Return if you have any questions and with feedback and thanks again!
paulo_crash is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-05-2021 , 08:11   Re: [Help] Vote map matchmaking
Reply With Quote #8

Yes #6

When ever you use one of these commands (last executed command would be active):
Code:
mapgroup // Use map group from inside gamemodes.txt or gamemodes_server.txt
host_workshop_map // Use and host only one workshop map from Steam
host_workshop_collection // Use and host workshop collection from Steam
When ever csgo map group have more than one map:
Code:
print_mapgroup_sv
Map group: 770500357
     workshop/632040311/de_lite
     workshop/1318698056/de_subzero
     workshop/125611153/de_nightfever_beta
     workshop/125438669/de_inferno
     workshop/2262134113/de_coastal
__________________
Do not Private Message @me

Last edited by Bacardi; 03-05-2021 at 08:47.
Bacardi 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 05:16.


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