evandrocoan / MultiModServer

It is a Multi-Mod plugin's configurations for Amx Mod X - https://forums.alliedmods.net/showthread.php?t=273018
GNU General Public License v3.0
17 stars 17 forks source link

With -3 player need to rtv #71

Closed evandrocoan closed 6 years ago

evandrocoan commented 7 years ago

feruchio: Okay I saw that bug again, with -3 player need to rtv here is that file (last played map, cs_assault): https://my.mixtape.moe/fxplvt.rar image

https://forums.alliedmods.net/showthread.php?p=2517195#post2517195

Looking on your log bellow, I think I know what is the problem. It should happens when the server has something like 20 players, and some folks as 9 did the rockthevote.

After some players exit the server and when the message is displayed, it is calculating how many rockthevote's are needed based on 20 players instead of 19 or less players.

So it will start displaying negative values, but soon as someone else new did rockthevote, map map will change. On total to that day, 4 guys did rtv and 2 have left after the last rtv, therefore it will display -1 rockthevote needed.

> I hope I fixed for the next version forcing the vote to start as soon as there someone disconnects and there are enough `rockthevote`'s. ``` L 04/30/2017 - 22:55:49: {683.412 16220 1805 0} I AM ENTERING ON findDispFormat(1) _time: 535 [COLOR="Red"]L 04/30/2017 - 22:55:50: {683.723 16296 1905 100} I AM ENTERING ON client_disconnected(1) player_id: 11[/COLOR] L 04/30/2017 - 22:55:50: {683.723 16280 1905 0} I AM ENTERING ON vote_unrockTheVote(1) player_id: 11 L 04/30/2017 - 22:55:50: {683.723 16288 1905 0} I AM ENTERING ON isToHandleRecentlyEmptyServer(0) L 04/30/2017 - 22:55:50: {683.723 16272 1905 0} I AM ENTERING ON get_real_players_number(0) L 04/30/2017 - 22:55:50: {683.723 16268 1905 0} ( isToHandleRecentlyEmptyServer ) mp_timelimit: 20.000000, g_originalTimelimit: 0.000000, playersCount: 6 L 04/30/2017 - 22:55:50: {683.723 16276 1905 0} I AM EXITING ON isToHandleRecentlyEmptyServer(0) g_isUsingEmptyCycle = 1, g_emptyCycleMapsArray: 62 L 04/30/2017 - 22:55:50: {684.215 16300 2105 200} I AM ENTERING ON timeRemain(0) L 04/30/2017 - 22:55:50: {684.215 16220 2105 0} I AM ENTERING ON findDispFormat(1) _time: 534 L 04/30/2017 - 22:55:51: {685.018 16300 -1889 -3994} I AM ENTERING ON timeRemain(0) L 04/30/2017 - 22:55:51: {685.018 16220 -1889 0} I AM ENTERING ON findDispFormat(1) _time: 533 L 04/30/2017 - 22:55:52: {685.671 16288 -1669 220} I AM ENTERING ON cmd_say(1) player_id: [COLOR="Red"]L 04/30/2017 - 22:55:52: {685.671 16268 -1669 0} ( cmd_say ) sentence: rtv, firstWord: rtv, secondWord: , thirdWord: [/COLOR] L 04/30/2017 - 22:55:52: {685.671 16272 -1669 0} ( cmd_say ) the thirdWord is empty, userFlags: 2097151 L 04/30/2017 - 22:55:52: {685.671 16272 -1669 0} ( cmd_say ) the secondWord is empty. Handling: 'rtv'. L 04/30/2017 - 22:55:52: {685.671 16256 -1669 0} I AM ENTERING ON vote_rock(1) player_id: 3 L 04/30/2017 - 22:55:52: {685.671 16236 -1669 0} I AM ENTERING ON is_to_block_RTV(1) player_id: 3 L 04/30/2017 - 22:55:52: {685.671 16224 -1669 0} I AM ENTERING ON get_real_players_number(0) L 04/30/2017 - 22:55:52: {685.671 16216 -1669 0} I AM ENTERING ON Float:map_getMinutesElapsed(0) mp_timelimit: 20.000000 L 04/30/2017 - 22:55:52: {685.671 16236 -1669 0} ( is_to_block_RTV ) Just Returning/allowing, the RTV. L 04/30/2017 - 22:55:52: {685.671 16244 -1649 20} I AM ENTERING ON vote_getRocksNeeded(0) L 04/30/2017 - 22:55:52: {685.671 16224 -1649 0} I AM ENTERING ON get_real_players_number(0) L 04/30/2017 - 22:55:52: {685.671 16188 -1649 0} I AM ENTERING ON color_print(...) player_id: 3, lang_formatting: %L... L 04/30/2017 - 22:55:52: {685.671 16192 -1649 0} IS_COLORED_CHAT_ENABLED(): 1 L 04/30/2017 - 22:55:52: {685.671 14668 -1649 0} ( color_print ) [in] player_id: 3, Chat printed: [AMXX] You have already rocked the vote.... L 04/30/2017 - 22:55:52: {685.671 15428 -1649 0} ( color_print ) [out] player_id: 3, Chat printed: You have already rocked the vote.... L 04/30/2017 - 22:55:52: {685.671 16216 -1649 0} I AM ENTERING ON rtv_remind(1) param: 100003 L 04/30/2017 - 22:55:52: {685.671 16204 -1649 0} I AM ENTERING ON vote_getRocksNeeded(0) L 04/30/2017 - 22:55:52: {685.671 16184 -1649 0} I AM ENTERING ON get_real_players_number(0) L 04/30/2017 - 22:55:52: {685.671 16164 -1649 0} I AM ENTERING ON color_print(...) player_id: 3, lang_formatting: %L... L 04/30/2017 - 22:55:52: {685.671 16168 -1649 0} IS_COLORED_CHAT_ENABLED(): 1 [COLOR="red"]L 04/30/2017 - 22:55:52: {685.671 14644 -1649 0} ( color_print ) [in] player_id: 3, Chat printed: [AMXX] -1 more players need to 'rockthevote' to start the vote....[/COLOR] L 04/30/2017 - 22:55:52: {685.671 15404 -1649 0} ( color_print ) [out] player_id: 3, Chat printed: -1 more players need to 'rockthevote' to start the vote.... L 04/30/2017 - 22:55:52: {685.671 16236 -1649 0} ( vote_rock ) Just Returning/blocking, already rocked the vote. ``` https://forums.alliedmods.net/showpost.php?p=2519897&postcount=654

evandrocoan commented 6 years ago

No response for a long time, perhaps it is fixed.