AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   Team Balance Immunity (https://forums.alliedmods.net/showthread.php?t=129626)

Afronanny 12-23-2010 15:43

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by asherkin (Post 1377611)
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

AltPluzF4 12-23-2010 16:26

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by Afronanny (Post 1377605)
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

psychonic 12-23-2010 16:34

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by Afronanny (Post 1377612)
I realized after it happened in the quote too :p

Quote:

Originally Posted by AltPluzF4 (Post 1377641)
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

Afronanny 12-23-2010 21:51

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by psychonic (Post 1377652)
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.

Screaming_Alpha 12-24-2010 16:57

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by asherkin (Post 1377611)
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

bobbobagan 05-11-2011 18:28

Re: [EXTENSION] TF2 Team Balance Immunity
 
This isn't working anymore, on Windows at least :(

Mike_BoG 07-19-2011 08:17

Re: [EXTENSION] TF2 Team Balance Immunity
 
Does this work still?

FunkyLoveCow 07-19-2011 11:44

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by Mike_BoG (Post 1513743)
Does this work still?

I works on Linux.

Mike_BoG 07-19-2011 11:51

Re: [EXTENSION] TF2 Team Balance Immunity
 
You sure? I can't seem to get it working.

FunkyLoveCow 07-19-2011 13:32

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by Mike_BoG (Post 1513882)
You sure? I can't seem to get it working.

*glances at servers* Yup...100% positive it works on TF2 servers on linux.


All times are GMT -4. The time now is 13:52.

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