Raised This Month: $32 Target: $400
 8% 

Galileo 1.1.290 (a feature rich map voting plugin)


Post New Thread Reply   
 
Thread Tools Display Modes
B3n
Member
Join Date: Jul 2006
Old 07-07-2009 , 10:02   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #571

If a few people "rockthevote" but not enough to change map, and then some people who didn't vote leave the server, it sometimes says "0 more players need to 'rockthevote' to start the vote" and a vote is not started.
B3n is offline
Darkhand
Member
Join Date: Sep 2008
Old 07-07-2009 , 23:22   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #572

Any plans to release a version for Sourcemod? A ton of great features here that are lacking in any of the Sourcemod mapvote plugins (that I'm aware of anyway!)
Darkhand is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 07-08-2009 , 09:33   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #573

Quote:
Originally Posted by supergreg View Post
1. The "changelevel" one works fine, the only change I want is that it reads from either Galileos nomination/mapcycle maps instead of maps.ini as you correctly pointed out. I don't know if you could easily solve this by offering a Galileo cvar/command to "Write list of nominatable/mapcycle maps to maps.ini" or if it is feasible to hook into the amx_votemapmenu command and override it to not read from maps.ini but rather Galileos nomination list or mapcycle. I would assume not having to modify core amxx files would be preferable, but am not sure what can be done. As a short term solution I will just hardcode my mapsmenu.sma to read from the mapcycle instead of maps.ini, but as mentioned, IMO it makes sense to have some kind of support for this from you/Galileo default.

2. The difference between amx_votemapmenu/amx_votemap and gal_startvote is that an admin predefines all maps to be voted for, which often is very useful. Also, if only one map is predefined for the vote, question reads "Change map to ___?" Yes/No, and if result is no, map isn't changed at all. I know these menus are just menu fronts for console commands such as "amx_votemap de_dust" etc, but they save you a lot of typing on long/hard mapnames.
I'll look into hijacking AMXX's functionality or implementing a version of the functionality into Galileo itself.


Quote:
Originally Posted by B3n View Post
If a few people "rockthevote" but not enough to change map, and then some people who didn't vote leave the server, it sometimes says "0 more players need to 'rockthevote' to start the vote" and a vote is not started.
Thank you for this bug report. If you are able to get more specifics, please share.


Quote:
Originally Posted by Darkhand View Post
Any plans to release a version for Sourcemod? A ton of great features here that are lacking in any of the Sourcemod mapvote plugins (that I'm aware of anyway!)
I will release a version for SourceMod when the following conditions are met, in the order listed:
  1. I play SourceMod.
  2. I can't find a map manager that I like.
  3. It's feasible to create one that I would.
I don't play SourceMod and don't have any plans to at this time. Sorry!
__________________
Brad is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-08-2009 , 14:19   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #574

Quote:
Originally Posted by B3n View Post
If a few people "rockthevote" but not enough to change map, and then some people who didn't vote leave the server, it sometimes says "0 more players need to 'rockthevote' to start the vote" and a vote is not started.
I have same issue, dunno when exactly it happens.
Reconnect to server and type rtv make the vote start.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ScHrAnZ DiNgEnS
Senior Member
Join Date: Sep 2007
Old 07-09-2009 , 04:25   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #575

Thats normal because there is no check for precentage when player disconnect. It only checks if a player has vote the rock and remove players count from RTV count.

Add these line in client_disconnect()

PHP Code:
if(!g_pauseMapEndVoteTask)
{
    
g_pauseMapEndVoteTask 1;
    
set_task(3.0"check_rtv");

and add the new funktion after the client_disconnect() Block

PHP Code:
check_rtv()
{
    new 
rocksNeeded vote_getRocksNeeded();
    
    if (
task_exists(TASKID_REMINDER))
    {
        
remove_task(TASKID_REMINDER);
    }

    
// determine if there have been enough rocks for a vote yet    
    
if (g_rockedVoteCnt >= rocksNeeded)
    {
        
// announce that the vote has been rocked
        
client_print(0print_chat"%L"LANG_PLAYER"GAL_ROCK_ENOUGH");

        
// start up the vote director 
        
vote_startDirector(true);
    }
    else
    {
        
g_pauseMapEndVoteTask 0;
        
// let the players know how many more rocks are needed
        
rtv_remind(TASKID_REMINDER);
        
        
        if (
get_pcvar_num(cvar_rtvReminder))
        {
            
// initialize the rtv reminder timer to repeat how many rocks are still needed, at regular intervals
            
set_task(get_pcvar_float(cvar_rtvReminder) * 60.0"rtv_remind"TASKID_REMINDER__"b");
        }
    }

and recompile the plugin.
That should solve the problem...i think..

@Brad:
For better reason why the vote is now rocked make a new Multilangvariable with text that calls that the vote is rocked because some players that want vote the rock have leave the server and now RTV are enough...


Greetz,
Matze
__________________

Last edited by ScHrAnZ DiNgEnS; 07-09-2009 at 14:54.
ScHrAnZ DiNgEnS is offline
Send a message via ICQ to ScHrAnZ DiNgEnS Send a message via AIM to ScHrAnZ DiNgEnS
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 07-09-2009 , 07:10   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #576

Thank you for the code, I'll review it when I have more time and consider it for inclusion in the official source.
__________________
Brad is offline
blacklist911
New Member
Join Date: Jul 2009
Old 07-09-2009 , 14:49   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #577

Great one! Thanks a lot
blacklist911 is offline
ScHrAnZ DiNgEnS
Senior Member
Join Date: Sep 2007
Old 07-09-2009 , 14:54   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #578

Oh i made i mistake...
PHP Code:
 if (++g_rockedVoteCnt >= rocksNeeded
should be
PHP Code:
 if (g_rockedVoteCnt >= rocksNeeded
i Edit the last post and correct it.





@Brad:

Maybe i must change the way to check it, because between:

PHP Code:
new rocksNeeded vote_getRocksNeeded(); 
and:

PHP Code:
g_pauseMapEndVoteTask 0
can a player theoretical disconnect without a check, its only a split second, but its possible i think...
for a little bugfix it doesnt happened, but for a new version of this plugin it can made better...
__________________

Last edited by ScHrAnZ DiNgEnS; 07-09-2009 at 15:12.
ScHrAnZ DiNgEnS is offline
Send a message via ICQ to ScHrAnZ DiNgEnS Send a message via AIM to ScHrAnZ DiNgEnS
Muscle Brazil
Senior Member
Join Date: Apr 2009
Location: Brazil
Old 07-09-2009 , 20:50   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #579

use. on my serve that. vote system map. approve the best 100% perfect
Muscle Brazil is offline
Odberg
Junior Member
Join Date: Dec 2007
Old 07-10-2009 , 16:59   Re: Galileo 1.1.290 (a feature rich map voting plugin)
Reply With Quote #580

Where can i find the plugin
?
Odberg 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 09:32.


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