Quote:
Originally Posted by ivani6651
@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
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
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
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
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
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
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
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
|
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
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
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
Hi addonz are you dead ?
|
No.
Quote:
Originally Posted by D3XT3R
How to change PREFIX?
|
Quote:
Originally Posted by .:cs.stambeto:.
open galileo.cfg file.
gal_colored_chat_prefix "!g[!yAMXX!g] "
|
Thanks for helping.
Quote:
Originally Posted by GoRiLliAz
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
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
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
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
just use mp_timelimit and set "wait unitl the round end to change" cvar to 0
|
Quote:
Originally Posted by Natsheh
Set this cvar
gal_endonround 0
|
Thanks for helping.
Quote:
Originally Posted by Natsheh
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
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.
__________________