Raised This Month: $ Target: $400
 0% 

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
SystematicMania
Senior Member
Join Date: Aug 2012
Old 01-25-2013 , 13:03   Re: [INC] Colors (1.0.5)
Reply With Quote #301

Quote:
Originally Posted by asherkin View Post
You also need to mark GetUserMessageType as optional in the plugin's APL2 forward if you wan't bcompat.
The color.inc in SMAC does GetFeatureStatus(FeatureType_Native, "GetUserMessageType") before calling GetUserMessageType. It's already bcompat.
__________________

Last edited by SystematicMania; 01-25-2013 at 13:08.
SystematicMania is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-25-2013 , 13:06   Re: [INC] Colors (1.0.5)
Reply With Quote #302

Quote:
Originally Posted by SystematicMania View Post
The color.inc in SMAC does GetFeatureStatus(FeatureType_Native, "GetUserMessageType") before calling GetUserMessageType. It's already bcompat.
That's irrelevant as a plugin using it will fail to load as GetUserMessageType isn't present. GetFeatureStatus just avoids the runtime failure after it's been marked as optional.
__________________
asherkin is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-25-2013 , 13:51   Re: [INC] Colors (1.0.5)
Reply With Quote #303

@eric 0279

Just download newest snaphsot of Sourcemod and copy the scripting folder to your old folder
__________________

Last edited by dordnung; 01-25-2013 at 13:52.
dordnung is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-25-2013 , 15:06   Re: [INC] Colors (1.0.5)
Reply With Quote #304

Quote:
Originally Posted by asherkin View Post
You also need to mark GetUserMessageType as optional in the plugin's APL2 forward if you wan't bcompat.
Of course, since no one mentioned this, regardless of the compiled file being 1.4 compatible, you still need a recent 1.5 snapshot to compile the code.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-25-2013 , 17:58   Re: [INC] Colors (1.0.5)
Reply With Quote #305

Quote:
Originally Posted by SystematicMania View Post
Use the one provided in SMAC.

same problem


SM 1.5 3742

Last edited by eric0279; 01-25-2013 at 17:58.
eric0279 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-25-2013 , 18:07   Re: [INC] Colors (1.0.5)
Reply With Quote #306

Quote:
Originally Posted by eric0279 View Post
same problem


SM 1.5 3742
SM 1.5.0 -3756 is minimum needed
__________________
View my Plugins | Donate

Last edited by TnTSCS; 01-25-2013 at 18:07.
TnTSCS is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-26-2013 , 07:52   Re: [INC] Colors (1.0.5)
Reply With Quote #307

So here the colors.inc with the Precheck, whether the native GetUserMessageType is available.

Hopefully the plugin author will change his first post sometime...
Attached Files
File Type: inc colors.inc (12.8 KB, 204 views)
__________________

Last edited by dordnung; 01-26-2013 at 07:53.
dordnung is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-26-2013 , 12:14   Re: [INC] Colors (1.0.5)
Reply With Quote #308

Thanks again for the update
__________________
View my Plugins | Donate
TnTSCS is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 01-27-2013 , 01:28   Re: [INC] Colors (1.0.5)
Reply With Quote #309

Imo colors should be case-insensitive, so that {GREEN} and {green} both work. And it's trivial to implement. =P
__________________
Sheepdude is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-27-2013 , 09:38   Re: [INC] Colors (1.0.5)
Reply With Quote #310

Here you are:
Attached Files
File Type: inc colors.inc (12.6 KB, 389 views)
__________________

Last edited by dordnung; 01-27-2013 at 20:26.
dordnung 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:59.


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