naojogue / sourcemod-ultimate-mapchooser

Automatically exported from code.google.com/p/sourcemod-ultimate-mapchooser
0 stars 0 forks source link

Have End of Map Votes re-activate if mp_timelimit changes AND the vote failed due to no players on the server. #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Steell. With the latest version I'm no longer seeing the replay bot counted 
in the map vote progress indicator. However, I am still encountering the bug 
where a map vote is attempted on an empty server. A failure message appears in 
the logs now, but the end result is the same as before: no vote occurs for the 
duration of that map after the failure.

New logs:
Code:
L 03/05/2012 - 00:04:11: [umc-endvote.smx] Starting an end of map vote.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Fetching 1 maps 
from group 'Attack & Defend'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Finished parsing 
nominations for map group 'Attack & Defend'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Still need to 
fetch 1 maps from the group.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Selected map 
'cp_gravelpit' from group 'Attack & Defend' was added to the vote.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Fetching 1 maps 
from group '5 Point CP (Push)'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Finished parsing 
nominations for map group '5 Point CP (Push)'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Still need to 
fetch 1 maps from the group.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Selected map 
'cp_well' from group '5 Point CP (Push)' was added to the vote.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Fetching 1 maps 
from group 'Payload'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Finished parsing 
nominations for map group 'Payload'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Still need to 
fetch 1 maps from the group.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Selected map 
'pl_hoodoo_final' from group 'Payload' was added to the vote.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Fetching 1 maps 
from group 'King of the Hill'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Finished parsing 
nominations for map group 'King of the Hill'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Still need to 
fetch 1 maps from the group.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Selected map 
'koth_sawmill' from group 'King of the Hill' was added to the vote.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Fetching 1 maps 
from group 'Capture the Flag'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Finished parsing 
nominations for map group 'Capture the Flag'
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Still need to 
fetch 1 maps from the group.
L 03/05/2012 - 00:04:11: [umc-core.smx] VOTE MENU: (Verbose) Selected map 
'ctf_turbine' from group 'Capture the Flag' was added to the vote.
L 03/05/2012 - 00:04:11: [umc-core.smx] Initiating Vote Type: Map
L 03/05/2012 - 00:04:11: [umc-builtinvotes.smx] Could not start core vote, no 
players to display vote to!
L 03/05/2012 - 00:04:11: [umc-endvote.smx] Could not start UMC vote.
Again the sm_nextmap variable is untouched and typing nextmap in the console 
outputs "[SM] Next Map:".

It seems like umc-endvote isn't resetting the timers for the end of map vote 
when it fails on an empty server.

https://forums.alliedmods.net/showthread.php?p=1662951#post1662951

Original issue reported on code.google.com by Steell1...@gmail.com on 5 Mar 2012 at 1:31