Raised This Month: $ Target: $400
 0% 

Exolent Hidenseek bug fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolz123
Member
Join Date: Aug 2010
Old 03-04-2012 , 12:51   Exolent Hidenseek bug fix
Reply With Quote #1

when there are 10 players in CT and 10 in T and the teams are swap the server is crashed.
can someone give me a fix ?

original thread: http://forums.alliedmods.net/showthread.php?p=571256
Lolz123 is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 03-04-2012 , 13:06   Re: Exolent Hidenseek bug fix
Reply With Quote #2

Show your plugins.ini
__________________
kiki33hun is offline
StepZeN
Member
Join Date: Jan 2012
Location: Sweden
Old 03-04-2012 , 13:11   Re: Exolent Hidenseek bug fix
Reply With Quote #3

but 20 players on a hns server it will be very op...
__________________
*Plugins:*
*HNS: V.I.P Menu[70%]
*HNS: Admin Menu[30%]
*HNS: Point Mod[100%] Public: Download.
********************

StepZeN is offline
Lolz123
Member
Join Date: Aug 2010
Old 03-04-2012 , 16:00   Re: Exolent Hidenseek bug fix
Reply With Quote #4

Quote:
Originally Posted by kiki33hun View Post
Show your plugins.ini
there is nothing wrong with my plugins.ini
exolent gave me a fix 1 year ago and i just lost the fixed sma im pretty sure its something with the team swap..
Lolz123 is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 03-04-2012 , 16:51   Re: Exolent Hidenseek bug fix
Reply With Quote #5

I've never been played HNS longer than 10 minutes / day. In the past I made a plugin that made a team swap. The test server and the plug was worked perfectly until I installed on my new hosted server, where was 20+ real players. After calling the teamSwap function the server chrased. I don't know why your server still crashing, but at the moment I'm too lazy to download, extract and search for the team swap function. If you could copy and paste that function we could find a way to fix your issue.
killergirl is offline
Lolz123
Member
Join Date: Aug 2010
Old 03-05-2012 , 05:56   Re: Exolent Hidenseek bug fix
Reply With Quote #6

this public called when the round is end
PHP Code:
public taskSwapTeams(taskid)
{
    static 
CsTeams:team;
    
    if( 
g_bScrimOn )
    {
        static 
temp;
        
        if( 
g_ScrimType == SCRIM_POINTS )
        {
            
temp g_ScrimScores[HNS_TEAM_HIDER];
            
g_ScrimScores[HNS_TEAM_HIDER] = g_ScrimScores[HNS_TEAM_SEEKER];
            
g_ScrimScores[HNS_TEAM_SEEKER] = temp;
            
            
temp g_ScrimTeamNums[HNS_TEAM_HIDER];
            
g_ScrimTeamNums[HNS_TEAM_HIDER] = g_ScrimTeamNums[HNS_TEAM_SEEKER];
            
g_ScrimTeamNums[HNS_TEAM_SEEKER] = temp;
            
            
team g_ScrimTeams[1];
            
g_ScrimTeams[1] = g_ScrimTeams[2];
            
g_ScrimTeams[2] = team;
        }
        else if( 
g_ScrimType == SCRIM_ROUNDS )
        {
            if( !
g_ScrimSaveWins )
            {
                
g_ScrimRounds[HNS_TEAM_HIDER] = 0;
                
g_ScrimRounds[HNS_TEAM_SEEKER] = 0;
            }
            else
            {
                
temp g_ScrimRounds[HNS_TEAM_HIDER];
                
g_ScrimRounds[HNS_TEAM_HIDER] = g_ScrimRounds[HNS_TEAM_SEEKER];
                
g_ScrimRounds[HNS_TEAM_SEEKER] = temp;
            }
        }
    }
    
    for( new 
plr 1plr <= g_MaxPlayersplr++ )
    {
        if( !
g_bConnected[plr] )
        {
            continue;
        }
        
        
team cs_get_user_team(plr);
        if( 
team == HNS_TEAM_HIDER )
        {
            
cs_set_user_team(plrHNS_TEAM_SEEKERHNS_MODEL_SEEKER);
            
            
emake_TeamInfo(plrg_sTeamInfo[HNS_TEAM_SEEKER]); /* let other plugins know that the player changed teams */
        
}
        else if( 
team == HNS_TEAM_SEEKER )
        {
            
cs_set_user_team(plrHNS_TEAM_HIDERHNS_MODEL_HIDER);
            
            
emake_TeamInfo(plrg_sTeamInfo[HNS_TEAM_HIDER]); /* let other plugins know that the player changed teams */
        
}
    }
    
    
g_RoundsLost 0;
    
g_RoundsEnded 0;
    
g_bDisableSlash true;
    
    return 
1;


Last edited by Lolz123; 03-05-2012 at 05:56.
Lolz123 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-05-2012 , 10:01   Re: Exolent Hidenseek bug fix
Reply With Quote #7

I fixed it by doing a delay of swapping.
I swapped about 5 players at a time, delay 0.5-1.0 seconds, and repeat.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 03-05-2012 , 10:35   Re: Exolent Hidenseek bug fix
Reply With Quote #8

Check this out:
http://forums.alliedmods.net/showthread.php?p=1288262

The delay that exolent sayd I think it's something like this:

PHP Code:
switch( id )
    {
        case 
1..7set_task0.1"changeTeam"id );
        case 
8..15set_task0.2"changeTeam"id );
        case 
16..23set_task0.3"changeTeam"id );
        case 
24..32set_task0.4"changeTeam"id );
    } 
killergirl is offline
Lolz123
Member
Join Date: Aug 2010
Old 03-05-2012 , 10:37   Re: Exolent Hidenseek bug fix
Reply With Quote #9

thanks guys
Lolz123 is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 03-05-2012 , 10:43   Re: Exolent Hidenseek bug fix
Reply With Quote #10

Quote:
Originally Posted by Lolz123 View Post
thanks guys
Okay :-(

Last edited by killergirl; 03-05-2012 at 10:43.
killergirl 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 05:55.


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