Raised This Month: $ Target: $400
 0% 

Deagles' Map Manager v3.25Beta


Post New Thread Reply   
 
Thread Tools Display Modes
DynamicBits
Senior Member
Join Date: Sep 2007
Location: US
Old 04-02-2013 , 03:03   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #131

Quote:
Originally Posted by AlexisK View Post
I'm trying to get it to work with 5 maps in mapvote but it does not work,
If I have 6 maps in mapchoice it works but if i have 5 it does not work it starts to throw in random maps when it is time for mapvote
The plugin was designed so that the votes aren't exactly the same every time. You should see one or both of the following messages in your console/server log when this happens:

[DMM] Not enough nominations for map vote; randomly selecting %d additional maps for the vote
[DMM] Randomly Filling slots for the vote with %d out of %d



Quote:
Originally Posted by Misfire View Post
This happens when you type any text. I got those videos done and uploaded them here.

Chat causes choke
http://www.youtube.com/watch?v=X2yw-ge-nD4

Long level load
http://www.youtube.com/watch?v=UrBkA6OnqGk
Thank-you very much. I'll work on reproducing it on my end. Unfortunately, it looks like there was a problem with the updated version of the profiler, so I'm somewhat limited in what I can do to determine the exact cause. It will be a lot of trial and error. I'll PM you if I have any more questions.



Quote:
Originally Posted by Meelo View Post
Hi, i have little problem. Today i have install this plugin on my server i tested version 3.23, 3.24 and 3.25beta, all this versions won't allow round end before plugin will change map.

mp_timelimit 20
enforce_timelimit 0 (1 don't change so much)

plugin allow_round_finish dont wor'k with deagsmapmanager :twisted: sorry for english :P
Can you PM me the output of the dmap_status command?
Also, the Allow Round Finish plugin probably won't work with this plugin. They both change the value of the mp_timelimit CVAR.



Quote:
Originally Posted by Doty1154_ View Post
I am having troubles running this on my small server. I have configed (what i know i can config) i have moved the files correctly but when i start the server up it doesn't notice the plugin what should i do more, i have tryed dmap_status but it says "command doesn't exist"


Please help
Without being on your server, I can't tell you what is wrong. Are you seeing anything related to the plugin in your server console/log file? If not, the .amxx file probably isn't in the correct folder, or the line in plugins.ini isn't correct.


--
Andy
DynamicBits is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-03-2013 , 18:44   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #132

I've been making a couple of changes to the old v3.23 myself, perhaps something you may want to implement (maybe some already is):

- Fixed HLTV being counted as human player.
- Early voting for maps that can end before the time limit is up. There is an automatic vote at the beginning of such maps, but the map isn't changed until it ends. (Another vote can be started through rtv, and there still is another map vote at the end if it doesn't end early.)
- Menu keys start with 5. Reason: people kept accidentally pressing the number keys in order to change the weapons. I guess this isn't an issue in CS, but in TFC people change weapons frequently. Downside, this limits the numbers of maps to vote for to 4.
- Changed minimum value for dmap_rtvwait / minimumwait to 1. This was done because on a custom map server people don't always know the maps they vote for.

Last edited by pizzahut; 04-03-2013 at 18:44.
pizzahut is offline
DynamicBits
Senior Member
Join Date: Sep 2007
Location: US
Old 04-03-2013 , 20:31   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #133

Quote:
Originally Posted by pizzahut View Post
I've been making a couple of changes to the old v3.23 myself, perhaps something you may want to implement (maybe some already is):
  1. Fixed HLTV being counted as human player.
  2. Early voting for maps that can end before the time limit is up. There is an automatic vote at the beginning of such maps, but the map isn't changed until it ends. (Another vote can be started through rtv, and there still is another map vote at the end if it doesn't end early.)
  3. Menu keys start with 5. Reason: people kept accidentally pressing the number keys in order to change the weapons. I guess this isn't an issue in CS, but in TFC people change weapons frequently. Downside, this limits the numbers of maps to vote for to 4.
  4. Changed minimum value for dmap_rtvwait / minimumwait to 1. This was done because on a custom map server people don't always know the maps they vote for.
  1. Are you referring to all of the calls to get_players() that don't use the "h" flag? If so, this will be fixed in the final v3.25 release. I noticed the issue when I rewrote the timer() function for v3.25Beta, but somehow forgot to fix it before that release.
  2. I don't quite understand what you mean. Can you give an example of a map ending before the time limit is up? Is this specific to a certain mod?
  3. I'm willing to consider suggestions on how to avoid that problem, but limiting the map vote to 4 votes isn't a very good solution in my opinion. I realize that certain mods lacking (relatively) short rounds like Counter-Strike limits opportunities for an undistracted vote, but I'm not sure how to overcome that. One of my longer-term goals is making this plugin less specific to Counter-Strike and I welcome ideas how to do so.
  4. In v3.24, I relaxed the restrictions on a lot of things, including dmap_rtvwait. Values from 0-60 are currently allowed. Also, in v3.25Beta, I changed the default value for new installations to 5 minutes. Upgrades will keep the existing value.

Thank-you for taking the time to post here and I look forward to your response.


--
Andy
DynamicBits is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-04-2013 , 09:38   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #134

Quote:
Originally Posted by DynamicBits View Post
1. Are you referring to all of the calls to get_players() that don't use the "h" flag? If so, this will be fixed in the final v3.25 release. I noticed the issue when I rewrote the timer() function for v3.25Beta, but somehow forgot to fix it before that release.
With v3.23 we had the issue that once a HLTV was added and the required voting percentage was increased to 60, a single human player could not start a vote due to the HLTV counting as human. Yes AFAIR it was about the "h" flag.

Quote:
Originally Posted by DynamicBits View Post
2. I don't quite understand what you mean. Can you give an example of a map ending before the time limit is up? Is this specific to a certain mod?
Applies to any map or mod that is able to do objectives. Examples for TFC:
  • dustbowl style maps. One team attacks, the other team defends. There are two triggers (apart from mp_timelimit) that can end the map:
    • A map internal timer (typically 26 minutes). When the timer is activated, defence wins and the map ends. I have set mp_timelimit to match the map internal timer using map specific ".cfg" files, so this issue is circumvented.
    • Capturing of the last command point. Offence wins in this case, the map ends.
  • Other objective maps. E.g. skate2: Teams are ice skating. The team that manages 20 rounds first with the their flag wins. hwguyz2: Arcade style map, the team that manages 10 captures first wins. These two maps have a short aftermath, so the map doesn't instantly end as soon as a team wins.
I did a quick'n'dirty solution, hard coding the map names. Better would be an ".ini" file containing the map names.

Last edited by pizzahut; 04-04-2013 at 10:06.
pizzahut is offline
GwynBleidD
Junior Member
Join Date: Feb 2009
Old 04-04-2013 , 11:29   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #135

Quote:
Originally Posted by DynamicBits View Post
  • Make vote results display until everyone has finished voting
I think I've done it:
PHP Code:
show_vote_menu(bool:bFirstTime) {

    new 
menu[512], menuVoted[512], amkeys = (<< maps_to_select 1);
    new 
steptime get_pcvar_num(pExtendmapStep);

    new 
pospos2;

    new 
mp_winlimit get_cvar_num("mp_winlimit");
    if (
bFirstTime == true) {
        
g_TotalVotes 0;
        for (
0<= 32a++) {
            
g_AlreadyVoted[a] = false;
        }
    }

    if (
bIsCstrike) {
        
pos formatex(menucharsmax(menu), "\r%L\w^n^n"LANG_SERVER"DMAP_MENU_TITLE");
        
pos2 formatex(menuVotedcharsmax(menuVoted), "\r%L\w^n^n"LANG_SERVER"DMAP_MENU_TITLE");
    } else {
        
pos formatex(menucharsmax(menu), "%L^n^n"LANG_SERVER"DMAP_MENU_TITLE");
        
pos2 formatex(menuVotedcharsmax(menuVoted), "%L^n^n"LANG_SERVER"DMAP_MENU_TITLE");
    }

    new 
dmax = (nmaps_num maps_to_select) ? maps_to_select nmaps_num;

    new 
tagpath[64], sMenuOption[64], sMenuOption2[64];    // If size of sMenuOption is changed, change maxlength in append_vote_percent as well
    
formatex(tagpathcharsmax(tagpath), "%s/dmaptags.ini"custompath);

    for (
nmapstoch 0nmapstoch dmax; ++nmapstoch) {
        if (
bFirstTime == true) {
            
random_num(0nmaps_num 1);    // Randomize order of maps in vote
            
while (is_in_menu(a)) {
                if (++
>= nmaps_num) {
                    
0;
                }
            }
            
nnextmaps[nmapstoch] = a;
            
nvotes[nmapstoch] = 0;            // Reset votes for each map
        
}

        if (
is_custom_map(nmaps[nnextmaps[nmapstoch]]) && usestandard) {
            if (
bIsCstrike) {
                
formatex(sMenuOptioncharsmax(sMenuOption), "%d. %s  \b(%L)\w"nmapstoch 1nmaps[nnextmaps[nmapstoch]], LANG_SERVER"DMAP_MENU_CUSTOM");
                
formatex(sMenuOption2charsmax(sMenuOption2), "\d%d. %s  (%L)"nmapstoch 1nmaps[nnextmaps[nmapstoch]], LANG_SERVER"DMAP_MENU_CUSTOM");
            } else {
                
formatex(sMenuOptioncharsmax(sMenuOption2), "%d. %s  (%L)"nmapstoch 1nmaps[nnextmaps[nmapstoch]], LANG_SERVER"DMAP_MENU_CUSTOM");
                
formatex(sMenuOption2charsmax(sMenuOption2), "%d. %s  (%L)"nmapstoch 1nmaps[nnextmaps[nmapstoch]], LANG_SERVER"DMAP_MENU_CUSTOM");
            }
        } else {    
// Don't show (Custom)
            
formatex(sMenuOptioncharsmax(sMenuOption), "%d. %s"nmapstoch 1nmaps[nnextmaps[nmapstoch]]);
            if (
bIsCstrike)
                
formatex(sMenuOption2charsmax(sMenuOption2), "\d%d. %s"nmapstoch 1nmaps[nnextmaps[nmapstoch]]);
            else
                
formatex(sMenuOption2charsmax(sMenuOption2), "%d. %s"nmapstoch 1nmaps[nnextmaps[nmapstoch]]);
        }

        if (
file_exists(tagpath)) {    // If the tag file is there, check for the extra tag
            
new iLinesFullLine[64], sTagMap[32], sTagText[32], txtLen;
        
            while (
read_file(tagpathiLinesFullLinecharsmax(sFullLine), txtLen)) {
                if (
sFullLine[0] == ';') {
                    
iLine++;
                    continue;    
// Ignore comments
                
}

                
strbreak(sFullLinesTagMapcharsmax(sTagMap), sTagTextcharsmax(sTagText));    // Split the map name and tag apart

                // TODO: Wildcard (regex) matching
                // I pulled this code for the v3.24 release.
                // Sorry! Expect it to return in the future.

                
if (equali(nmaps[nnextmaps[nmapstoch]], sTagMap)) {
                    
format(sMenuOptioncharsmax(sMenuOption), "%s [%s]"sMenuOptionsTagText);
                    
format(sMenuOption2charsmax(sMenuOption2), "%s [%s]"sMenuOption2sTagText);
                    break;    
// Quit reading the file
                
}
                
iLine++;
            }
        }

#if FILE_LOGLEVEL >= LOGLEVEL_DEBUG
    
log_to_file(logfilename"[DMM] DEBUG: (nmapstoch:sMenuOption): %d:%s;"nmapstochsMenuOption);
#endif
        
append_vote_percent(sMenuOptionnmapstochtrue);
        
append_vote_percent(sMenuOption2nmapstochtruetrue);
        
pos += formatex(menu[pos], charsmax(menu), sMenuOption);    // TODO: This should probably be less than 511 since pos is > 0
        
pos2 += formatex(menuVoted[pos2], charsmax(menuVoted), sMenuOption2);
        
mkeys |= (<< nmapstoch);
    }

    
menu[pos++] = '^n';
    
menuVoted[pos2++] = '^n';
    if (
bFirstTime == true) {
        
nvotes[maps_to_select] = 0;
        
nvotes[maps_to_select 1] = 0;
    }
    new 
mapname[32];
    
get_mapname(mapnamecharsmax(mapname));
    if (!
mp_winlimit && get_cvar_float("mp_timelimit") < get_pcvar_float(pExtendmapMax)) {
        
formatex(sMenuOptioncharsmax(sMenuOption), "%L^n"LANG_SERVER"DMAP_MENU_EXTEND"maps_to_select 1mapnamesteptime);
        if (
bIsCstrike)
            
formatex(sMenuOption2charsmax(sMenuOption2), "\d%L^n"LANG_SERVER"DMAP_MENU_EXTEND"maps_to_select 1mapnamesteptime);
        else
            
formatex(sMenuOption2charsmax(sMenuOption2), "%L^n"LANG_SERVER"DMAP_MENU_EXTEND"maps_to_select 1mapnamesteptime);
        
append_vote_percent(sMenuOptionmaps_to_selecttrue);
        
append_vote_percent(sMenuOption2maps_to_selecttruetrue);
        
pos += formatex(menu[pos], 511sMenuOption);
        
pos2 += formatex(menuVoted[pos2], 511sMenuOption2);

        
mkeys |= (<< maps_to_select);
    }

    
formatex(sMenuOptioncharsmax(sMenuOption), "%L"LANG_SERVER"DMAP_MENU_NONE"maps_to_select 2);
    if (
bIsCstrike)
        
formatex(sMenuOption2charsmax(sMenuOption2), "\d%L"LANG_SERVER"DMAP_MENU_NONE"maps_to_select 2);
    else
        
formatex(sMenuOption2charsmax(sMenuOption2), "%L"LANG_SERVER"DMAP_MENU_NONE"maps_to_select 2);
    
append_vote_percent(sMenuOptionmaps_to_select 1);
    
append_vote_percent(sMenuOption2maps_to_select 1_true);
    
formatex(menu[pos], 511sMenuOption);
    
formatex(menuVoted[pos2], 511sMenuOption2);

    if (
bFirstTime == true) {
        
g_VoteTimeRemaining DMAP_VOTE_TIME;
        
set_task(float(g_VoteTimeRemaining), "check_votes");
        
show_menu(0mkeysmenu, --g_VoteTimeRemainingDMAP_MENU_TITLE);
        
set_task(1.0"update_vote_time_remaining"DMAP_TASKID_VTR""0"a"g_VoteTimeRemaining);
        if (
bIsCstrike) {
            
c_p(0print_chat"[DMM] %L"LANG_PLAYER"DMAP_TIME_TO_CHOOSE");
        }
        if (
quiet == 0) {
            
client_cmd(0"spk Gman/Gman_Choose%d"random_num(12));
        }
#if FILE_LOGLEVEL >= LOGLEVEL_INFO
        
log_to_file(logfilename"[DMM] Voting for the next map started.");
#endif
    
} else {
        new 
players[32], iNumid;
        
get_players(playersiNum"ch");
        for (new 
iPlayer 0iPlayer iNumiPlayer++) {
            
id players[iPlayer];
            if (
g_AlreadyVoted[id] == false) {
                
show_menu(players[iPlayer], mkeysmenug_VoteTimeRemainingDMAP_MENU_TITLE);
            } else
                
show_menu(players[iPlayer], 0menuVotedg_VoteTimeRemainingDMAP_MENU_TITLE);
        }

    }
    return 
PLUGIN_HANDLED;

PHP Code:
append_vote_percent(sMenuOption[], iChoicebool:bNewLine falsebool:bDisabled false) {

    new 
iPercent percent(nvotes[iChoice], g_TotalVotes);
    new 
sPercent[16];
    if (
iPercent 0) {    // Don't show 0%
        
if (bIsCstrike) {
            if(!
bDisabled)
                
formatex(sPercentcharsmax(sPercent), " \d(%d%s)\w"iPercent"%%");
            else
                
formatex(sPercentcharsmax(sPercent), " \y(%d%s)\d"iPercent"%%");
        } else {
            
formatex(sPercentcharsmax(sPercent), " (%d%s)"iPercent"%%");
        }
        
strcat(sMenuOptionsPercent63);
    }

    if (
bNewLine == true) {        // Do this even if vote is 0%
        
strcat(sMenuOption"^n"63);
    }

    return 
PLUGIN_HANDLED;


Last edited by GwynBleidD; 04-04-2013 at 11:31.
GwynBleidD is offline
Astro
Member
Join Date: Jul 2011
Old 04-14-2013 , 09:58   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #136

I don't think that renaming startthevote to start_the_vote was a good idea since massively used plugins like Gungame use callfunc to trigger vote.

Last edited by Astro; 04-14-2013 at 10:01.
Astro is offline
DynamicBits
Senior Member
Join Date: Sep 2007
Location: US
Old 04-15-2013 , 11:56   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #137

Quote:
Originally Posted by GwynBleidD View Post
Quote:
Originally Posted by DynamicBits View Post
  • Make vote results display until everyone has finished voting
I think I've done it:
...
Thanks! I'll have to test your code with a couple of mods, and if everything works out, I'll try to get it in the final v3.25 release.



Quote:
Originally Posted by Astro View Post
I don't think that renaming startthevote to start_the_vote was a good idea since massively used plugins like Gungame use callfunc to trigger vote.
I never looked at the GunGame source before. I didn't realize it was directly calling functions here to vote. I also noticed that it relies on one of the task IDs (which was changed) to cancel that task. I'll put GunGame back on my test server and make sure those issues get fixed.

Thanks for pointing that out. Are you aware of any other plugins that directly call functions in Deagles' Map Manager?


--
Andy
DynamicBits is offline
TRUE RED
Senior Member
Join Date: Mar 2012
Location: Ukraine
Old 04-21-2013 , 19:11   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #138

does it heppend to you guys when hud messages about nominations appear they are overlaped if yes can you fix that if it's not overlapping then what is it i did wrong?

edit: i guess would be good to remove countdown (10-1) when 10 sec remaining because map changes after 3 sec (10-9-8 sounds). thanx in advance

Last edited by TRUE RED; 04-21-2013 at 19:51.
TRUE RED is offline
Send a message via ICQ to TRUE RED Send a message via Skype™ to TRUE RED
DynamicBits
Senior Member
Join Date: Sep 2007
Location: US
Old 04-21-2013 , 21:42   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #139

Quote:
Originally Posted by TRUE RED View Post
does it heppend to you guys when hud messages about nominations appear they are overlaped if yes can you fix that if it's not overlapping then what is it i did wrong?
Can you post a screen-shot of this? I don't think I've ever seen this issue. Also, what resolution are you using?


Quote:
Originally Posted by TRUE RED View Post
edit: i guess would be good to remove countdown (10-1) when 10 sec remaining because map changes after 3 sec (10-9-8 sounds). thanx in advance
Can you post the output of dmap_status (including the 2 "Config" lines)? I know there are some timing issues with this plugin, but I haven't see the countdown be 7 seconds off before.


--
Andy
DynamicBits is offline
briancmccoy
Junior Member
Join Date: Apr 2013
Old 04-21-2013 , 23:27   Re: Deagles' Map Manager v3.25Beta
Reply With Quote #140

Is it possible to freeze the game when the map voting is running (i.e. players cannot shoot each other or move)? If so, how to do that?
And does this plugin have run-off voting feature like Galileo, wherein if none of the maps gets more than 50% votes, then another vote is started immediately between the top two voted maps?
briancmccoy 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 00:42.


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