Raised This Month: $ Target: $400
 0% 

[INC] Colors (1.0.5)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ellie
Senior Member
Join Date: Apr 2013
Old 03-15-2014 , 04:04   Re: [INC] Colors (1.0.5)
Reply With Quote #17

Quote:
Originally Posted by Powerlord View Post
To get these working correctly requires a bit of effort. For example, just by looking at the code, I can tell you that translations don't work properly with morecolors.inc's CShowActivity functions simply because formatting is done before passing the message on to a function that sends messages to all players (this is why CPrintToChatAll manually loops through players one by one rather and does formatting there than just calling CPrintToChat for each player in colors.inc and morecolors.inc).

To do it properly is a bit of effort, because you have to essentially duplicate what SourceMod is doing for each of these functions. While not impossible, it's a bit of a pain, especially since only natives can pass ... parameters to other functions... because ShowActivity and ShowActivityEx are essentially the same function.
Yeah I was thinking this is why it hadn't been done before. And yes I do want it


Quote:
Originally Posted by Powerlord View Post
Sometimes I think Colors and MoreColors should just be plugins to deal with this sort of thing, but then you'd only be able to have one or the other loaded at a time.
I had actually tested both includes with TF2 separately and then together just as a test, colors.inc always takes priority and morecolors.inc doesn't work. Well with Source 2009 games morecolors.inc is definitely the way to go, and all other games with colors.inc. I needed those stocks mainly for L4D2 since morecolors doesn't work with it. Who do we have to annoy, I mean ask, at Valve to have hex color codes added to L4D2 (the only actual source game released in 2009)?


Quote:
Originally Posted by Powerlord View Post
The copy from my previous post was missing some color tag stripping before printing to the server or the console in the ShowActivity things. Whoops.

Still not thoroughly tested.
Many thank yous. I will test it and get back to you. Although I think it would be a good idea to remove the links from the older version and just point to your post below it.

Last edited by Ellie; 03-15-2014 at 04:10.
Ellie is offline
 



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 23:00.


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