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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 05-13-2012 , 10:58   Re: Advertisements 0.5.5
Reply With Quote #1361

Nope, only TF2 received the RGB chat color update yet.
gH0sTy is offline
xomp
BANNED
Join Date: Jul 2008
Old 05-13-2012 , 11:28   Re: Advertisements 0.5.5
Reply With Quote #1362

@gH0sTy not sure if this helps or not but I have a few instances of this in my errorlog when trying to use certain #RGB colors.

Code:
L 05/13/2012 - 10:59:57: [SM] Displaying call stack trace for plugin "advertisements.smx":
L 05/13/2012 - 10:59:57: [SM]   [0]  Line 277, /home/groups/alliedmodders/forums/files/3/9/7/1/1/103574.attach::Timer_DisplayAds()
L 05/13/2012 - 11:01:18: [SM] Plugin encountered error 15: Array index is out of bounds
xomp is offline
Send a message via Skype™ to xomp
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 05-13-2012 , 11:50   Re: Advertisements 0.5.5
Reply With Quote #1363

Download the plugin again, I've added a fix for not coloring cvars... maybe that's why.
I've just added it to my server so I'll see if get the same error.
gH0sTy is offline
xomp
BANNED
Join Date: Jul 2008
Old 05-13-2012 , 12:45   Re: Advertisements 0.5.5
Reply With Quote #1364

Quote:
Originally Posted by gH0sTy View Post
Download the plugin again, I've added a fix for not coloring cvars... maybe that's why.
I've just added it to my server so I'll see if get the same error.
Thanks, you the man!

Last edited by xomp; 05-13-2012 at 12:46.
xomp is offline
Send a message via Skype™ to xomp
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 05-14-2012 , 22:13   Re: Advertisements 0.5.5
Reply With Quote #1365

FINALLY, custom colors in the plugin =D
ReFlexPoison is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 05-15-2012 , 00:17   Re: Advertisements 0.5.5
Reply With Quote #1366

@gH0sTy: Don't forget to check for tf_beta too.

Also, given strcopy(sColorCode, cEnd + 1, sText[cStart + 2]);, wouldn't the string write past its bounds (of 7 bytes) if the string between {# and } is larger than seven characters?
__________________

Last edited by 11530; 05-15-2012 at 00:57.
11530 is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 05-15-2012 , 00:51   Re: Advertisements 0.5.5
Reply With Quote #1367

Didn't know this plugin reads the file everytime an ad is displayed. That's... sad, to say the least.
__________________
napalm00 is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 05-15-2012 , 00:54   Re: Advertisements 0.5.5
Reply With Quote #1368

Quote:
Originally Posted by napalm00 View Post
Didn't know this plugin reads the file everytime an ad is displayed. That's... sad, to say the least.
Don't think it does. ParseAds() only gets called on command and OnMapStart(). The ad timer reads Kv pairs built from the parse.
__________________
11530 is offline
Mariano
Member
Join Date: May 2009
Location: Poland / Silesia
Old 05-15-2012 , 07:06   Re: Advertisements 0.5.5
Reply With Quote #1369

gH0sTy every possible color work, good job - thanks!
__________________
TryhardBrigade.com

European Team Fortress 2 Training Center

"We Are Hip-Hop"
KRS-One
Mariano is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-15-2012 , 13:37   Re: Advertisements 0.5.5
Reply With Quote #1370

The only thing about what you did ghosty was that it spams the client console with the ff0000, 00ff00 etc etc codes which I'm not sure if there is a way to remove that or not, but not that it makes a big deal.
Horsedick 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 07:16.


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