DoktorSAS / PlutoniumT6Mapvote

Plutonium T6 Zombies and Multiplayer mapvote
GNU General Public License v3.0
14 stars 8 forks source link

Zombie Map Vote Resets the current map after 5 seconds?? #5

Closed mitchellurgero closed 2 years ago

mitchellurgero commented 2 years ago

I am certain I have this setup right, but if I don't I have the below config:

sv_maxclients 4                                 // Maximum players that are allowed in your server. (1-8, default is 4) Keeping this at 1-4 is recommended to prevent game breaking bugs.
demo_enabled 0                                 // Record matches as demo files? 1 = Enabled, 0 = Disabled (Very efficient <5MB per match for a full server)
sv_sayname "Console"                            // name server-side 'say' commands show up as
sv_voice "0"                                    // Allow Voice Chat (0 = Disable 1 = Everyone hears you. 2 = Teams only)
sv_voicequality "0"                             // Voice Chat Quality. (0-9) Default is 3 (= Steam/Console quality). Use 9 for the best quality.
sv_allowAimAssist 1                             // Allow Aim Assist on gamepads. (0 = Will lock the option on gamepad controls menu.)
sv_fix_zm_weapons true                          // Fix the SMR's ADS spread, 870 MCS's penetration damage and allow sprinting with Galvaknuckles
sv_patch_zm_weapons true                        // Apply Post DLC1 changes to tar21_zm, type95_zm, xm8_zm, an94_zm, hamr_zm, rpd_zm, pdw57_zm, kard_zm ? (only recoil changes)
gts allowdogs 1                               // Allow Hellhounds? Only Survival has this option!
gts prematchperiod 15
g_logSync 2                                     // 0 only flush on game end, 1 flush when buffer full, 2 always flush after a write, 3 append to old logs. (Keep this at 2 if you plan on using a 3rd party admin tool)
g_log "logs\games_zm.log"                       // If you choose to use this make sure the filename is unique for each server!
rcon_password "DON'T SHARE YOUR RCON PASSWORD"                                // RemoteCONtrol password. !!Do NOT skip if you plan on using a 3rd party admin tool such as B3 or IW4m-Admin!!

sv_maprotation "exec zm_standard_town.cfg map zm_transit exec zm_standard_nuked.cfg map zm_nuked exec zm_classic_tomb.cfg map zm_tomb"

sv_allowchatbank 1
sv_allowchatpayments 1

set mv_enable           1                       // Enable/Disable the mapvote
set mv_maps             "zm_town zm_nuked zm_tomb"                      // Lits of maps that can be voted on the mapvote, leave empty for all maps
set mv_excludedmaps     ""                      // Lis of maps you don't want to show in the mapvote
set mv_time             15                      // Time to vote
set mv_credits          1                       // Enable/Disable credits of the mod creator
set mv_socialname       "SocialName"            // Name of the server social such as Discord, Twitter, Website, etc
set mv_sentence         "Thanks for playing!"   // Thankfull sentence
set mv_votecolor        "5"                     // Color of the Vote Number
set mv_arrowcolor       "white"                 // RGB Color of the arrows
set mv_selectcolor      "lighgreen"             // RGB Color when map get voted
set mv_backgroundcolor  "grey"                  // RGB Color of map background
set mv_blur             "3"                     // Blur effect power
set mv_gametype         ""                      // This dvar can be used to have multiple gametypes with different maps, with this dvar you can load gamemode

//Congratulations. You reached the end of this file. Leave map_rotate down below or else the server will not start after launch...
map_rotate

Am I configuring something wrong?

What I expect is that the vote screen stays up for 15 seconds, but it disappears after about 5 ish seconds and just restarts the current map?

Edit: I'd like to point out, I did get this working in MP (great plugin!!) Just need help with this.

DoktorSAS commented 2 years ago

Try to set the dvar sv_maprotation to only one map like "exec zm_standard_town.cfg map zm_transit". If the map restart during the vote it mean you have in anther script something that auto restart the map when the game end. Look at your script ande remove it.

mitchellurgero commented 2 years ago

(Yo thanks for catching the rcon password :3 )

mitchellurgero commented 2 years ago

For those having a similar issue in the future, the "zombies_simple_mod" gsc script has a map_reset call in the server_fix() function that does NOT need to be there when using mapvote. Simply comment that out, re-compile, and re-load the zombies_simple_mod.gsc to fix this bug.