This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Alpha Extended


Post New Thread Reply   
 
Thread Tools Display Modes
itsme
Junior Member
Join Date: Jul 2011
Old 07-10-2012 , 10:03   Re: [TF2] Alpha Extended
Reply With Quote #11

thats bad
itsme is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-07-2013 , 16:01   Re: [TF2] Alpha Extended
Reply With Quote #12

PHP Code:
public OnMapStart()
{
    if(
gameTF2)
    {
        
CreateTimer(0.1Timer_AlphaHattrueTIMER_REPEAT TIMER_FLAG_NO_MAPCHANGE);
    }
}

public 
Action:Timer_AlphaHat(Handle:hTimerany:client)
{
    if(
IsClientInGame(client) && isAlpha[client])
    {
        while((
hat FindEntityByClassname(hatTFHat)) != INVALID_ENT_REFERENCE)
        {
            if(
IsValidEntity(hat) && GetEntPropEnt(hatProp_Send"m_hOwnerEntity") == client)
            {
                
SetEntityRenderMode(hatRENDER_TRANSALPHA);
                
SetEntityRenderColor(hat___alpha);
            }
        }
    }

This looks problematic. You don't ever actually create this timer with a client index, you create it with a value of true.

Besides that, it looks good.
__________________
Dr. McKay is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-07-2013 , 16:02   Re: [TF2] Alpha Extended
Reply With Quote #13

Quote:
Originally Posted by Dr. McKay View Post
PHP Code:
public OnMapStart()
{
    if(
gameTF2)
    {
        
CreateTimer(0.1Timer_AlphaHattrueTIMER_REPEAT TIMER_FLAG_NO_MAPCHANGE);
    }
}

public 
Action:Timer_AlphaHat(Handle:hTimerany:client)
{
    if(
IsClientInGame(client) && isAlpha[client])
    {
        while((
hat FindEntityByClassname(hatTFHat)) != INVALID_ENT_REFERENCE)
        {
            if(
IsValidEntity(hat) && GetEntPropEnt(hatProp_Send"m_hOwnerEntity") == client)
            {
                
SetEntityRenderMode(hatRENDER_TRANSALPHA);
                
SetEntityRenderColor(hat___alpha);
            }
        }
    }

This looks problematic. You don't ever actually create this timer with a client index, you create it with a value of true.

Besides that, it looks good.
I'll change it up when I get home, this is one of my older plugins.
ReFlexPoison is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 07-13-2013 , 03:53   Re: [TF2] Alpha Extended
Reply With Quote #14

Quote:
Originally Posted by Dr. McKay View Post
PHP Code:
public OnMapStart()
{
    if(
gameTF2)
    {
        
CreateTimer(0.1Timer_AlphaHattrueTIMER_REPEAT TIMER_FLAG_NO_MAPCHANGE);
    }
}

public 
Action:Timer_AlphaHat(Handle:hTimerany:client)
{
    if(
IsClientInGame(client) && isAlpha[client])
    {
        while((
hat FindEntityByClassname(hatTFHat)) != INVALID_ENT_REFERENCE)
        {
            if(
IsValidEntity(hat) && GetEntPropEnt(hatProp_Send"m_hOwnerEntity") == client)
            {
                
SetEntityRenderMode(hatRENDER_TRANSALPHA);
                
SetEntityRenderColor(hat___alpha);
            }
        }
    }

This looks problematic. You don't ever actually create this timer with a client index, you create it with a value of true.

Besides that, it looks good.
5 months over-due here. I've been looking over my other plugins and rewriting them in my new format. Just got this one done and uploaded it. If you'd care to take a look at it once again I'm sure you'll see everything is properly in place now.

> Supports all games
> Removed timer

Last edited by ReFlexPoison; 07-13-2013 at 03:56.
ReFlexPoison is offline
Lucky_luck
AlliedModders Donor
Join Date: May 2011
Location: Germany
Old 11-14-2013 , 07:15   Re: Alpha Extended
Reply With Quote #15

Hi,

i have this error

Code:
L 11/14/2013 - 13:14:06: [SM] Fatal error encountered parsing translation file "alpha.phrases.txt"
L 11/14/2013 - 13:14:06: [SM] Error (line 0, column 0): Stream failed to open
game CS:S

Last edited by Lucky_luck; 11-14-2013 at 07:26.
Lucky_luck is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-14-2013 , 08:28   Re: Alpha Extended
Reply With Quote #16

make sure you have that file and that it is able to be read by the server.
__________________
View my Plugins | Donate
TnTSCS is offline
Lucky_luck
AlliedModders Donor
Join Date: May 2011
Location: Germany
Old 11-14-2013 , 08:43   Re: Alpha Extended
Reply With Quote #17

Code:
L 11/14/2013 - 14:37:03: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:37:03: [SM] Native "Format" reported: Language phrase "Alpha player" not found
L 11/14/2013 - 14:37:03: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:37:03: [SM]   [0]  Line 217, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AdminMenu_Alpha()
L 11/14/2013 - 14:37:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:37:08: [SM] Native "Format" reported: Language phrase "Alpha player" not found
L 11/14/2013 - 14:37:08: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:37:08: [SM]   [0]  Line 217, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AdminMenu_Alpha()
L 11/14/2013 - 14:37:13: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:37:13: [SM] Native "Format" reported: Language phrase "Alpha player" not found
L 11/14/2013 - 14:37:13: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:37:13: [SM]   [0]  Line 217, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AdminMenu_Alpha()
L 11/14/2013 - 14:40:37: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:40:37: [SM] Native "PrintToChat" reported: Language phrase "Transparent" not found
L 11/14/2013 - 14:40:37: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:40:37: [SM]   [0]  Line 108, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AlphaCmd()
L 11/14/2013 - 14:40:44: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:40:44: [SM] Native "PrintToChat" reported: Language phrase "Visible" not found
L 11/14/2013 - 14:40:44: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:40:44: [SM]   [0]  Line 117, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AlphaCmd()
L 11/14/2013 - 14:41:28: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:41:28: [SM] Native "PrintToChat" reported: Language phrase "Transparent" not found
L 11/14/2013 - 14:41:28: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:41:28: [SM]   [0]  Line 185, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AlphaCmd()
L 11/14/2013 - 14:41:39: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:41:39: [SM] Native "PrintToChat" reported: Language phrase "Transparent" not found
L 11/14/2013 - 14:41:39: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:41:39: [SM]   [0]  Line 185, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AlphaCmd()
L 11/14/2013 - 14:42:11: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/14/2013 - 14:42:11: [SM] Native "PrintToChat" reported: Language phrase "Visible" not found
L 11/14/2013 - 14:42:11: [SM] Displaying call stack trace for plugin "alpha.smx":
L 11/14/2013 - 14:42:11: [SM]   [0]  Line 172, /home/groups/alliedmodders/forums/files/1/4/9/0/9/0/105969.attach::AlphaCmd()
This plugin has no alpha.phrases.txt

Last edited by Lucky_luck; 11-14-2013 at 08:45.
Lucky_luck is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-14-2013 , 09:36   Re: Alpha Extended
Reply With Quote #18

line 63:

PHP Code:
LoadTranslations("alpha.phrases"); 
So, I guess the OP needs to provide the translation file
__________________
View my Plugins | Donate
TnTSCS 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 22:41.


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