Raised This Month: $ Target: $400
 0% 

Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16


Post New Thread Reply   
 
Thread Tools Display Modes
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 05-09-2017 , 18:36   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #651

just use mp_timelimit and set "wait unitl the round end to change" cvar to 0
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-11-2017 , 06:13   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #652

Quote:
Originally Posted by MrGarfield View Post
Hello

The plugin works correctly on all my servers but on my deatchmatch it says that the map will change after the next round but as it is a deatchmatch it never changes the map because there is no round how to do?

thank you
Set this cvar

gal_endonround 0


On #OP Just an idea.

Make a vote menu after the votemaps event whether to vote to change the map immediately or till end of round or till the next round end.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-11-2017 at 06:29.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
MrGarfield
Senior Member
Join Date: Feb 2013
Old 05-11-2017 , 16:54   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #653

How to avoid maps that repeat too often, I put this in my cfg gal_vote_mapfile "*"
MrGarfield is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-11-2017 , 18:11   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #654

Quote:
Originally Posted by ivani6651 View Post
@addons_zz Can you do when it comes time to exit the voting menu, close all other menus that are open.
I could not understand exactly what do you want to.
When does the time to exit the voting menu comes?

Do you want to close the voting menu when the player vote?

You can set these cvars on the `galileo.cfg` file:
Code:
// Indicates when the vote progress should be shown to a player. // A value of 0 disables this feature. // // 0 - never (this disables the cvar 'gal_vote_expirationcountdown') // 1 - after player has voted // 2 - after the vote ends (this disables the cvar 'gal_vote_expirationcountdown') // 3 - always show the vote current progress // 4 - always show the vote current progress and close the voting menu after the player voted. // // Default: 4 gal_vote_showstatus 0 // Indicates whether to replace any menu opened by the server players, // when a voting is started, or to wait that menu to be closed before // showing the voting menu. // // 0 - Waits the user to close his current menu, only then show the new menu. // 1 - Replace any opened menu. // // Default: 1 gal_vote_replace_menu 1










Quote:
Originally Posted by blood2k View Post
Hey so I have my banrecent set to 6

and I have like 10 maps in my .txt file

but we just played aztec then office and aztec again
What am I doing wrong?

I think 6 banned maps might be too much if i only have 10.. BUT it says in the galileo.cfg if you put to high of a value it will just ban the highest amount of maps it can corresponding to however many you have.

Could you tell me why aztec popped into the list of votes after only 1 map though? :[
I am trying to analyze the algorithm which do the maximum banning calculation. Here I am supposing your voting menu has 6 maps.
Code:
// loads 6 maps to ban on `maxRecentMapsBans` new maxRecentMapsBans = get_pcvar_num( cvar_recentMapsBannedNumber ); // load the total voting choices on `maxVotingChoices` as the actual maximum plus three new maxVotingChoices  = g_maxVotingChoices + 3; // So, `maximumLoadMapsCount` is 10 (10 maps in my .txt file), therefore 10 > 9 (maxVotingChoices) if( maximumLoadMapsCount > maxVotingChoices ) {     // 6 + 9 > 10 =: 15 > 10     if( maxRecentMapsBans + maxVotingChoices > maximumLoadMapsCount )     {         // Therefore the banned maps count will be 10 - ( 6 + 3 ) = 1         maxRecentMapsBans = maximumLoadMapsCount - maxVotingChoices;     } }

So, it should be banning only 1 map due that `+ 3` I put on the code. If you remove it it should ban
correctly the last 4 maps.

On the next version I will remove that 3, so I hope it should correctly ban for you. If you see this
problem on the next version, can you record a log file reproducing this and send me the `_galileo_log.txt`?







Quote:
Originally Posted by feruchio View Post
Okay so I was not able to reproduce that bug again since I put your plugin with debug level 16, now it is working fine and white list feature works flawlessly as well. Can you tell me how to open menu with maps to nominate?
Quote:
Originally Posted by feruchio View Post
That shows me maps only with such a prefix, and how about other maps?
To open the nomination menu you have to get it enabled on the `galileo.cfg` file. After it, you just
need to type `say nomenu`:












Quote:
Originally Posted by blood2k View Post
to open menu with maps to nominate just type the prefix of the map

like this: de_
or cs_

and it will show you.


By the way "recentmaps"

command doesnt do anything.


have it set to show a list.. and it doesnt.
Quote:
Originally Posted by blood2k View Post
ahh good question , I don't know how to get them ALL to show, just prefix wise :\
Thanks for helping. I think the recent maps only works when you are banning maps. The Galileo log
should show why the maps are not being displayed. Therefore can you record a log file
reproducing this and send me the `_galileo_log.txt`?









Quote:
Originally Posted by GoRiLliAz View Post
Hello,

Would it be possible to add

When to display the votemap

Example: 3 minutes before the end of the time limit

Because I have plugins that turn off 1 minute before the end of the time limit, so the players choose to extend the map my plugins stays OFF

Edit:
BUG :
There was a votemap, the result is: de_nuke32 and de_dust

So there was another votemap with de_nuker32 and de_dust

The map that wins is de_nuke32

But there he re-launched a votemap with 2 choices which are the same de_nuke32 2 times

Then after he re-cast a vote with as of de_nuke32 and extended the map

Code:
////////////////////////////////////////////////////////////////////////
// Runoff voting happens when none of the normal vote options receive //
// over 50% of a given vote. The two options with the highest vote    //
// counts will be in the runoff vote.                                 //
////////////////////////////////////////////////////////////////////////

// Indicates whether to allow runoff voting or extend the current map.
//
// 0 - disable runoff voting
// 1 - enable runoff voting
// 2 - extend the current map, instead of perform a runoff voting
//
// Default: 0
gal_runoff_enabled 1

// Specifies the number of seconds the runoff vote should last.
// To disabled this feature, set the cvar `gal_runoff_enabled` to 0 or 2
//
// Default: 20
gal_runoff_duration 20

// Specifies the minimum amount of votes the most voted map should have
// to not start a run off voting. For example, setting it to 0.4 will
// cause a runoff to start if the most voted map does not get
// 0.4*100% = 40% of the votes. The basic formula to start it is:
//
//     numberOfVotesAtFirstPlace <= g_totalVotesCounted * gal_runoff_ratio
//
// If the most voted map does not receive at lest these votes percentage,
// a runoff voting is performed.
//
// To disabled this feature, set the cvar `gal_runoff_enabled` to 0
//
// Default: 0.5
gal_runoff_ratio 0.4

// Specifies the number of maps players can choose from during the runoff
// vote. The number of maps must be between 2 and 9. This count includes
// the options `Stay Here` and `Extend Map`.
// Now the voting take may into account all the map options that had the
// maximum amount of votes, i.e., the number of maps to be included in
// runoff voting. So someone could choose  to have two, three or maybe
// all maps with the highest number of votes in runoff voting.
//
// Note:
// Not all your runoff voting's will use all these maps. This will only
// happen when there are several high and equally voted maps.
// For example, if this cvar is set to 9 and there are 9 maps in voting,
// and only 7 of them get one vote, only those 7 maps will be present on
// the runoff vote.
//
// To disabled this feature, set the cvar `gal_runoff_enabled` to 0
//
// Default: 2
gal_runoff_mapchoices 2
New Edit :
Add the same for rtv:

Code:
// Let the server players nominate maps from the nomination file list
// 'gal_nom_mapfile'. But, when the cvar 'gal_vote_minplayers' is enabled,
// only allow nominations from the 'gal_vote_minplayers_mapfile'.
//
// 0 - Show all nominated maps.
//
// 1 - Only allow nominations from the 'gal_vote_minplayers_mapfile' when
//     when the cvar 'gal_vote_minplayers' is enabled.
//
//     Note: This will allow the players to nominate maps not from
//     'gal_vote_minplayers_mapfile', but they will not be show at the map
//     voting if there are less players than 'gal_vote_minplayers', at the
//     moment when the voting starts.
//
// To disable this feature, set this cvar to 0
//
// Default: 0
gal_nom_minplayers_control 1
Can you record a log file reproducing this and send me the `_galileo_log.txt`?

I think the problem should be somewhere around here on the code:
Code:
    new runoffEnabled= get_pcvar_num( cvar_runoffEnabled );     // announce the outcome     if( numberOfVotesAtFirstPlace )     {         // if the top vote getting map didn't receive over 50% of the votes cast, to start a runoff vote         if( numberOfVotesAtFirstPlace <= g_totalVotesCounted * get_pcvar_float( cvar_runoffRatio ) )         {             if( runoffEnabled == RUNOFF_ENABLED                 && !( g_voteStatus & IS_RUNOFF_VOTE )                 && !( g_voteMapStatus & IS_DISABLED_VOTEMAP_RUNOFF ) )             {                 startRunoffVoting( firstPlaceChoices, secondPlaceChoices, numberOfMapsAtFirstPosition,                         numberOfMapsAtSecondPosition );                 LOG( 1, "    ( computeVotes ) Just Returning/blocking, its runoff starting." )                 return;             }             else if( runoffEnabled == RUNOFF_EXTEND                      && IS_MAP_EXTENSION_ALLOWED() )             {                 // Allow it only on a end map voting                 if( g_isGameFinalVoting )                 {                     map_extend( "GAL_RUNOFF_REQUIRED_TOP" );                 }                 else                 {                     stayHereWon( "GAL_RUNOFF_REQUIRED_TOP" );                 }                 LOG( 1, "( computeVotes ) Its runoff extending." )             }             else             {                 chooseTheVotingMapWinner( firstPlaceChoices, numberOfMapsAtFirstPosition );             }         }         else         {             chooseTheVotingMapWinner( firstPlaceChoices, numberOfMapsAtFirstPosition );         }     }     else // the execution flow gets here when anybody voted for next map     {         chooseRandomVotingWinner();     }

Quote:
Originally Posted by GoRiLliAz View Post
Edit :

The sounds are for some people in other languages ​​while the default language of the server is French. Same for answers for timeleft
What sound exactly?

I do know how the game should as the counting down are for other languages than english.
But I think if you game language is french the sounds should be in french.











Quote:
Originally Posted by feruchio View Post
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
Thanks for the time. You can delete and the logs and install the normal version I am attaching here. It should be fixed.
Later I release a new version within it.


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.
Code:
L 04/30/2017 - 22:55:49: {683.412 16220  1805    0} I AM ENTERING ON findDispFormat(1) _time: 535
L 04/30/2017 - 22:55:50: {683.723 16296  1905  100} I AM ENTERING ON client_disconnected(1) player_id: 11
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:
L 04/30/2017 - 22:55:52: {685.671 16268 -1669    0} ( cmd_say ) sentence: rtv, firstWord: rtv, secondWord: , thirdWord: 
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
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....
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.


Quote:
Originally Posted by feruchio View Post
Also I would like to ask you can you make map to change forcefully after the time for one round passes like twice (even if the round did not end), for example if a round is like 3 minutes the map to change to next chosen one after 6 minutes regardless if the current round end or not. Thanks a lot!
I could not understand how it should work.

If you want to force the map to change without waiting for the round to finish you can set the cvar `gal_endonround` to 0:
Code:
// Indicates when a map should end when time runs out. // // 0 - end immediately when time runs out // 1 - when time runs out, end at the current round end // 2 - when time runs out, end at the next round end // // Default: 0 gal_endonround 0

Or you can force the map to change immediately after the voting is finished. To do this set the cvar `gal_endofmapvote_expiration` to 1:
Code:
// When the end map voting is performed on the current round, change the map immediately, // without wait to the `mp_timelimit` or `mp_maxrounds` expiration. Enabling this feature // override the round behavior of the cvar `gal_endonround`. // // 0 - to wait for the `mp_timelimit` or `mp_maxrounds` time expiration. // 1 - to change the map as soon as the voting is finished and the round ends. // // To disable this feature, set this cvar to 0 // // Default: 0 gal_endofmapvote_expiration 1

Quote:
Originally Posted by feruchio View Post
P.S. Also I would want the plugin to not restart the server 5 times after map can't be played, but only 2 times, thanks a bunch! :-)
With the map can't be played you mean, the server crashes when the map starts?

You should change this line on the plugin from 3 to 0, re-compile and re-install the plugin on the server:
Code:
addons\amxmodx\scripting\galileo.sma 640: /** 641:  * Define how many times the server can crash on a map, before that map to be ignored and to select 642:  * the next map on the map cycle to be played. The counter starts on 0. 643:  */ 644: #define MAX_SERVER_RESTART_ACCEPTABLE 3










Quote:
Originally Posted by GoRiLliAz View Post
Hi addonz are you dead ?
No.






















Quote:
Originally Posted by D3XT3R View Post
How to change PREFIX?
Quote:
Originally Posted by .:cs.stambeto:. View Post
open galileo.cfg file.

gal_colored_chat_prefix "!g[!yAMXX!g] "
Thanks for helping.










Quote:
Originally Posted by GoRiLliAz View Post
More bug :

Code:
////////////////////////////////////////////////////////////////////////
// Banning recently played maps means that the last several maps that //
// have been played can not be nominated or otherwise placed in the   //
// map vote. This ensures that a map can not be played over and over  //
// again at the expense of playing a variety of other maps.           //
////////////////////////////////////////////////////////////////////////

// Specifies how many of the most recent maps are disallowed from a map
// vote.
//
// If you specify a value greater than the number o maps in your server
// mapcycle file, the file on the cvar `mapcyclefile`, it will automatically
// ban only the maximum allowed.
//
// A value of 0 will disable this feature.
//
// Default: 0
gal_banrecent 2

// When banning recently played maps, the last several maps that have
// been played can not be nominated.
//
// A value of 0 will keep banning the recently played from nomination.
//
// 1 - the banned maps will be banned from the being added to the
//     voting list automatically, but they are still able to be nominated
//     and added to the voting list.
//
// 2 - if the admin has the flag `f`(ADMIN_MAP) he can nominate recent banned maps.
//
// Default: 0
gal_recent_nom_maps 1

// Only mark as recent played maps, those maps which are included on
// the mapcycle specified by the cvar 'mapcyclefile'.
//
// 0 - Mark as recent maps, every recently played map.
//
// 1 - Only mark as recent maps, the maps included in the mapcycle list
//     specified by the cvar 'mapcyclefile'.
//
// Default: 0
gal_banrecent_mapcycle 1

// Indicates the style in which the recent maps are displayed when a
// player uses the "recentmaps" say command.
//
// 0 - do not show the banned maps, when using the `recentmaps` command
// 1 - all maps on one line
// 2 - each map on a separate line
// 3 - display a menu.
//
// Default: 3
gal_banrecentstyle 3
In currentAndNextmapNames.dat

Code:
de_inferno
de_aztec
9
But next votemap, There are in the votemap the same maps ( de_inferno and de_aztec )
The file `currentAndNextmapNames.dat` is not used for the `ban recent maps` feature. That file is
for the server `map cycle control and crash recovery`.

The file `recentMaps.dat` is used to save the recent maps banned.


Quote:
Originally Posted by GoRiLliAz View Post
There is also another problem.

I use the files :
  • midplayers_mapcycle.txt 11-25 players
  • minplayers_mapcycle.txt 10 players
  • mapcycle.txt 26-32 players

Sometimes when there are between 11 and 25 players in the votemap there are maps of 26 to 32 players.

It also has the impression that it takes all the time the same maps it will never take the others.
I hope it is working correctly, but if you can reproduce it while recording a log post it here. Then I can fix it.


Quote:
Originally Posted by GoRiLliAz View Post
We are 2 on the server, I play the other as a spectator
  • midplayers_mapcycle.txt 11-25 players

    de_inferno
    de_nuke32
    de_dust2
    de_aztec
    de_tuscan32
    de_train32
    de_cbble
    de_mirage
  • minplayers_mapcycle.txt 10 players Only de_dust2
  • mapcycle.txt 26-32 players
    de_dust2
    de_inferno
    de_nuke32
    de_train32
    de_tuscan32
    de_cbble
    cs_office32
    de_aztec
    de_dust
    cs_assault
    de_mirage
    de_prodigy
    cs_militia
    de_russka
    de_italy
    de_dust2-on24
log = https://pastebin.com/95paTxeE

Normally there should be only de_dust2 in the vote but yet it adds de_russka
Thanks for the log. I checked it and the `de_russka` was added because of this other feature:
Code:
// Always add the former next map, read from your map cycle file, to the // voting menu. // // 0 - disable this feature // 1 - enable this feature // // Default: 1 gal_vote_mapchoices_next 1
On that case, the map `de_russka` was the next map.
Code:
L 05/07/2017 - 01:58:49: {1.000 15768  1822    0}
L 05/07/2017 - 01:58:49: {1.000 15764  1822    0}  The current map is [ de_dust2  ]
L 05/07/2017 - 01:58:49: {1.000 15764  1822    0}  The  next   map is [ de_russka ]
L 05/07/2017 - 01:58:49: {1.000 15768  1822    0}
...
L 05/07/2017 - 01:59:34: {46.093 16252  -422    0} I AM ENTERING ON loadTheDefaultVotingChoices(0)
L 05/07/2017 - 01:59:34: {46.093 16232  -422    0} I AM ENTERING ON map_isTooRecent(1) map: de_russka
...
L 05/07/2017 - 01:59:34: {46.093 16092  -422    0}
L 05/07/2017 - 01:59:34: {46.093 16092  -422    0}    [PLAYER CHOICES]
L 05/07/2017 - 01:59:34: {46.093 16072  -422    0}       1. de_dust2
L 05/07/2017 - 01:59:34: {46.093 16072  -422    0}       2. de_russka
L 05/07/2017 - 01:59:34: {46.093 16264  -422    0}
On that log it showed it was correctly loading your `minplayers_mapcycle.txt`. This is why you voting menu had
only `de_dust2` and `de_russka`.

You can set the cvar `gal_vote_mapchoices_next` to 0. Therefore it will stop doing that.
If are there any other problem just record a log with it and post here.







Quote:
Originally Posted by MrGarfield View Post
Hello

The plugin works correctly on all my servers but on my deatchmatch it says that the map will change after the next round but as it is a deatchmatch it never changes the map because there is no round how to do?

thank you
Quote:
Originally Posted by Old.School View Post
just use mp_timelimit and set "wait unitl the round end to change" cvar to 0
Quote:
Originally Posted by Natsheh View Post
Set this cvar

gal_endonround 0
Thanks for helping.

Quote:
Originally Posted by Natsheh View Post
On #OP Just an idea.

Make a vote menu after the votemaps event whether to vote to change the map immediately or till end of round or till the next round end.
I think it is a nice feature, I opened a feature request on https://github.com/addonszz/Galileo/issues/58.
When I have more free time I can implement it. But first I want to be sure all the bugs are fixed, if any.







Quote:
Originally Posted by MrGarfield View Post
How to avoid maps that repeat too often, I put this in my cfg gal_vote_mapfile "*"
Set this cvar to something higher as 100, so the last 100 map are not going to repeat.
Code:
// Specifies how many of the most recent maps are disallowed from a map // vote. // // If you specify a value greater than the number of maps in your server, // it will automatically ban only the maximum allowed. // // A value of 0 will disable this feature. // // Default: 0 gal_banrecent 100




_____________________________________________ _____________________________________________ _________________________________________




I hope I answered everybody. If something is missing post it again.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 05-12-2017 at 18:37.
addons_zz is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 05-11-2017 , 19:04   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #655

Hi addonz

first log 3 votes with last empty and not possible vote

https://up2sha.re/file?f=izmfxvWBkK7O

2 log same

https://up2sha.re/file?f=LRjrZhaLG1dB

For bug sounds and says in other language

not log but

The phrases pass from FR the language of my server to English or Russian or other ... this product with messages in chat only!

For automatic messages that announce the votemap and for this when we write nextmap or timeleft

And some players told me that he does not see the votemap but that they hear sounds well and that it sees the messages (in other language) that announces the votemap.

i install new version you have attached here now
__________________


Last edited by GoRiLliAz; 05-11-2017 at 19:18.
GoRiLliAz is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 05-12-2017 , 12:45   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #656

Big bug with the last version it always gives the same map for me de_dust2, but when I do a manual vote its always de_dust2, I will do a log debug.

I try too compile for debug but in git 5116
Code:
//// galileo.sma
//
// C:\Users\GoRiLliAz2\Desktop\amxx git 5116\addons\amxmodx\scripting\galileo.sm
a(5964) : error 017: undefined symbol "blockedMapsBuffer"
// C:\Users\GoRiLliAz2\Desktop\amxx git 5116\addons\amxmodx\scripting\galileo.sm
a(5964) : error 088: number of arguments does not match definition
//
// 2 Errors.
// Could not locate output file compiled\galileo.amx (compile failed).
__________________


Last edited by GoRiLliAz; 05-12-2017 at 12:59.
GoRiLliAz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-12-2017 , 13:58   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #657

Quote:
Originally Posted by GoRiLliAz View Post
Hi addonz

first log 3 votes with last empty and not possible vote

https://up2sha.re/file?f=izmfxvWBkK7O

2 log same

https://up2sha.re/file?f=LRjrZhaLG1dB
Thanks for the logs. I looked into the first the it selected the `midplayers_mapcycle.txt`.
But the cvar `gal_vote_mapchoices_next ` still enabled. So, on you should disable it to avoid
the next map being put on the on the voting menu.

At the end of the log/voting, I could see that crazy thing. Here on the log we can see on `finalizeVoting(0)`
which is called the the voting is 100% complete. However the call to `vote_display(1)` should never happen because
the voting is already completed, and therefore destroyed by the call to `vote_resetStats(0)`:
Code:
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} I AM ENTERING ON process_last_round(2) isToImmediatelyChangeLevel: 0
L 05/08/2017 - 11:51:47: {1158.855 16204  -356    0}     ( computeVotes|out ) g_isTheLastGameRound: 0
L 05/08/2017 - 11:51:47: {1158.855 16196  -356    0}     ( computeVotes|out ) g_isTimeToRestart: 0, g_voteStatus & IS_FORCED_VOTE: 0
L 05/08/2017 - 11:51:47: {1158.855 16196  -356    0} I AM ENTERING ON finalizeVoting(0)
L 05/08/2017 - 11:51:47: {1158.855 16184  -356    0} I AM ENTERING ON resetVoteTypeGlobals(0)
L 05/08/2017 - 11:51:47: {1158.855 16184  -356    0} I AM ENTERING ON vote_resetStats(0)
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[0]: de_aztec
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[1]: de_nuke32
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[2]: de_mirage
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[3]: de_nuke32
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[4]: de_tuscan32
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[5]:
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[6]:
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[7]:
L 05/08/2017 - 11:51:47: {1158.855 16160  -356    0} Cleaning g_votingMapNames[8]:
L 05/08/2017 - 11:51:47: {1159.057 16284  -316   40} I AM ENTERING ON vote_display(1)
L 05/08/2017 - 11:51:47: {1159.057 16256  -316    0}   ( votedisplay ) player_id: -1
L 05/08/2017 - 11:51:47: {1159.057 16256  -316    0}   ( votedisplay ) g_voteStatus: 40
L 05/08/2017 - 11:51:47: {1159.057 16256  -316    0}   ( votedisplay ) updateTimeRemaining: 0
L 05/08/2017 - 11:51:47: {1159.057 16256  -316    0}   ( votedisplay ) g_totalVoteOptions: 0
L 05/08/2017 - 11:51:47: {1159.057 16256  -316    0}   ( votedisplay ) g_votingSecondsRemaining: -5
L 05/08/2017 - 11:51:47: {1159.057 16252  -316    0}   ( votedisplay ) strlen( g_voteStatusClean ): 0
L 05/08/2017 - 11:51:47: {1159.057 16084  -316    0} I AM ENTERING ON addExtensionOption(6) player_id: 2
Somehow the task which calls `vote_display(1)` is not dead at the end. The easy fix is to kill it when calling `vote_resetStats(0)`,
however this does not explains why it still being called.

Looking on the rest of the log, that only seems to be displayed for about 3 seconds. So it seens a time miss-calculation somewhere
about when the voting should end and when the menu should stop being displayed by `vote_display(1)`.
Now looking into lines:
Code:
7669:     set_task( VOTE_TIME_SEC, "vote_display", TASKID_VOTE_DISPLAY, argument, sizeof argument, "a", 3 );
I found I set the `vote_display(1)` to be showed for about 3 seconds, right after the voting ends. But it should be called
before `vote_resetStats(0)`.

Looking deeper I find out that the runoff voting was starting 2 times. On the first time the timer goes from 20 to 18 seconds,
then the voting start again from 20 until 0. This is why that thing is happening at the end of the voting.

Looking over the code I find out it happens because of the round start. It was triggering the voting to start twice.
This happened because originally the plugin uses the same function to start the runoff voting and also the normal voting,
moreover depending purely on global state to correctly chooses whether it is a normal voting or a runoff voting.

Now I should fixed it splitting the vote start function, with one for runoff and other for the normal voting.
I attached here on this post it fixed.

Quote:
Originally Posted by GoRiLliAz View Post
Big bug with the last version it always gives the same map for me de_dust2, but when I do a manual vote its always de_dust2, I will do a log debug.

I try too compile for debug but in git 5116
Code:
//// galileo.sma
//
// C:\Users\GoRiLliAz2\Desktop\amxx git 5116\addons\amxmodx\scripting\galileo.sm
a(5964) : error 017: undefined symbol "blockedMapsBuffer"
// C:\Users\GoRiLliAz2\Desktop\amxx git 5116\addons\amxmodx\scripting\galileo.sm
a(5964) : error 088: number of arguments does not match definition
//
// 2 Errors.
// Could not locate output file compiled\galileo.amx (compile failed).
Thanks. I fixed the compilation error, but about the map change I do not know. You will need to record a log.


Quote:
Originally Posted by GoRiLliAz View Post
For bug sounds and says in other language

not log but

The phrases pass from FR the language of my server to English or Russian or other ... this product with messages in chat only!

For automatic messages that announce the votemap and for this when we write nextmap or timeleft

And some players told me that he does not see the votemap but that they hear sounds well and that it sees the messages (in other language) that announces the votemap.

i install new version you have attached here now
If some players are not seeing the menu, it is because they have some other menu open, as the radio menu, sounds, etc.

By default galileo does not override the user menu, it waits until the user closes it.
But you can force the menu to be override setting the cvar `gal_vote_replace_menu` to 1:
Code:
// Indicates whether to replace any menu opened by the server players, // when a voting is started, or to wait that menu to be closed before // showing the voting menu. // // 0 - Waits the user to close his current menu, only then show the new menu. // 1 - Replace any opened menu. // // Default: 1 gal_vote_replace_menu 1
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 05-13-2017 at 01:01.
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 05-13-2017 , 01:02   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #658

I attached here a update within a new cvar:
Code:
// Indicates several adjusting options for the plugin general behavior. // The flags are additive. A value of 0 will not enable any of the options. // //  1 - Indicates whether the use commands should output on the chat or //      not. For example: If this is enabled, it will not show `RTV` on //      chat when a players does the `say RTV` command. // // For example, if you want to mude the options 1 and 2, use 1 + 2: // gal_general_options 3 // // Instead of: // gal_general_options 0 // // Default: 0 gal_general_options 0
If you set is to 1, the RTV will stop spamming on the chat.
Your current `galileo.cfg` file does not contains this setting, you need to add it there.
Attached Files
File Type: sma Get Plugin or Get Source (galileo.sma - 551 views - 763.2 KB)
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 05-14-2017 at 14:34.
addons_zz is offline
MrGarfield
Senior Member
Join Date: Feb 2013
Old 05-13-2017 , 13:16   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #659

Thank you for me everything works correctly
MrGarfield is offline
wlmraziel
Member
Join Date: Mar 2017
Old 05-13-2017 , 23:28   Re: Galileo v5.5.0-807 (a feature rich map voting plugin) | Last Update: 2017-04-04
Reply With Quote #660

Hi i need a thing if is possible.



* The minimum votes for change the next map of an automatic votemap at the end of round be 5 votes, no 1 as default. In case of a single player is alone in the server this can't change the map.

Great plugin bro!!!

Last edited by wlmraziel; 05-13-2017 at 23:37.
wlmraziel is offline
Reply



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 18:50.


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