Raised This Month: $51 Target: $400
 12% 

Team Balance Immunity


Post New Thread Reply   
 
Thread Tools Display Modes
Afronanny
Veteran Member
Join Date: Aug 2009
Old 12-23-2010 , 15:43   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #81

Quote:
Originally Posted by asherkin View Post
Na, the forum inserts spaces to break up lines unless you put stuff in [code] tags, even the one in your quote is broken up.
I realized after it happened in the quote too :p
Afronanny is offline
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 12-23-2010 , 16:26   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #82

Quote:
Originally Posted by Afronanny View Post
Kinda funny how it says "to prevent crashes" then proceeds to crash. oh pred...
Don't blame pRED... That's your fault.
Here's a copy/paste of your code
PHP Code:
void SetupDetours()
{
    
getPlayerDetour DETOUR_CREATE_MEMBER(CTeam_GetPlayer"GetPlayer");
    
getPlayerDetour->EnableDetour();

    
calculateScoreDetour DETOUR_CREATE_MEMBER(CalculateTeamBalanceScore"Calculate");
    
calculateScoreDetour->EnableDetour();   

    
balanceTeamsDetour DETOUR_CREATE_MEMBER(BalanceTeams"Balance");
    
balanceTeamsDetour->EnableDetour();

You're not checking the pointer before you make use of it. What you SHOULD do, is:
PHP Code:
void SetupDetours()
{
    
getPlayerDetour DETOUR_CREATE_MEMBER(CTeam_GetPlayer"GetPlayer");
    if (
getPlayerDetour)
        
getPlayerDetour->EnableDetour();

    
calculateScoreDetour DETOUR_CREATE_MEMBER(CalculateTeamBalanceScore"Calculate");
    if (
calculateScoreDetour)
        
calculateScoreDetour->EnableDetour();   

    
balanceTeamsDetour DETOUR_CREATE_MEMBER(BalanceTeams"Balance");
    if (
balanceTeamsDetour)
        
balanceTeamsDetour->EnableDetour();

<3
__________________
AltPluzF4 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-23-2010 , 16:34   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #83

Quote:
Originally Posted by Afronanny View Post
I realized after it happened in the quote too :p
Quote:
Originally Posted by AltPluzF4 View Post
Don't blame pRED... That's your fault.
Here's a copy/paste of your code
PHP Code:
void SetupDetours()
{
    
getPlayerDetour DETOUR_CREATE_MEMBER(CTeam_GetPlayer"GetPlayer");
    
getPlayerDetour->EnableDetour();

    
calculateScoreDetour DETOUR_CREATE_MEMBER(CalculateTeamBalanceScore"Calculate");
    
calculateScoreDetour->EnableDetour();   

    
balanceTeamsDetour DETOUR_CREATE_MEMBER(BalanceTeams"Balance");
    
balanceTeamsDetour->EnableDetour();

You're not checking the pointer before you make use of it. What you SHOULD do, is:
PHP Code:
void SetupDetours()
{
    
getPlayerDetour DETOUR_CREATE_MEMBER(CTeam_GetPlayer"GetPlayer");
    if (
getPlayerDetour)
        
getPlayerDetour->EnableDetour();

    
calculateScoreDetour DETOUR_CREATE_MEMBER(CalculateTeamBalanceScore"Calculate");
    if (
calculateScoreDetour)
        
calculateScoreDetour->EnableDetour();   

    
balanceTeamsDetour DETOUR_CREATE_MEMBER(BalanceTeams"Balance");
    if (
balanceTeamsDetour)
        
balanceTeamsDetour->EnableDetour();

<3
Not to mention that Asherkin posted these fixes and more in a nice patch a couple pages back https://forums.alliedmods.net/showpo...5&postcount=71
psychonic is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 12-23-2010 , 21:51   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #84

Quote:
Originally Posted by psychonic View Post
Not to mention that Asherkin posted these fixes and more in a nice patch a couple pages back https://forums.alliedmods.net/showpo...5&postcount=71
I missed that so hard...xD
Oh by the way I don't really feel like supporting this anymore.

Last edited by Afronanny; 12-23-2010 at 21:58.
Afronanny is offline
Screaming_Alpha
AlliedModders Donor
Join Date: Aug 2010
Old 12-24-2010 , 16:57   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #85

Quote:
Originally Posted by asherkin View Post
Na, the forum inserts spaces to break up lines unless you put stuff in [code] tags, even the one in your quote is broken up.
Thanks so much guys, I typed the Sig in and all is well again ! Thanks for fast response and the most cool plugin ! The spaces must have got me , lol
Screaming_Alpha is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 05-11-2011 , 18:28   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #86

This isn't working anymore, on Windows at least
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
Mike_BoG
SourceMod Donor
Join Date: Jul 2011
Old 07-19-2011 , 08:17   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #87

Does this work still?
Mike_BoG is offline
FunkyLoveCow
Senior Member
Join Date: May 2010
Old 07-19-2011 , 11:44   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #88

Quote:
Originally Posted by Mike_BoG View Post
Does this work still?
I works on Linux.
FunkyLoveCow is offline
Mike_BoG
SourceMod Donor
Join Date: Jul 2011
Old 07-19-2011 , 11:51   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #89

You sure? I can't seem to get it working.
Mike_BoG is offline
FunkyLoveCow
Senior Member
Join Date: May 2010
Old 07-19-2011 , 13:32   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #90

Quote:
Originally Posted by Mike_BoG View Post
You sure? I can't seem to get it working.
*glances at servers* Yup...100% positive it works on TF2 servers on linux.
FunkyLoveCow 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 02:13.


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