GoldenEye: Source Forums

  • November 25, 2024, 04:08:40 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Support for Source 2009's color codes  (Read 9045 times)

0 Members and 1 Guest are viewing this topic.

StrikerMan780

  • Hellbender
  • Secret Agent
  • **
  • Posts: 92
  • Reputation Power: 3
  • StrikerMan780 has no influence.
  • Offline Offline
Support for Source 2009's color codes
« on: December 23, 2012, 04:43:18 am »

I wish to request support for the /x07 hex character (bell) that allows setting up of color codes of any color, like in Source 2009 games such as TF2. I request this because my server uses SourceMod, and a lot of the advertisements I have in the server are color coded. They end up showing up as say: "00FF00This is an announcent" rather than: "This is an announcement"
« Last Edit: February 28, 2013, 08:24:48 am by StrikerMan780 »
Logged

Check out [SM]'s HL2: Deathmatch Server! I've worked hard on making it the best it can be.

Troy

  • GE:S Coder
  • 00 Agent
  • ***
  • Posts: 821
  • Reputation Power: 260
  • Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!Troy is awe-inspiring!
  • Offline Offline
Re: Support for Source 2009's color codes
« Reply #1 on: December 23, 2012, 05:31:58 am »

Do you know about this article?

http://wiki.geshl2.com/index.php/HudColor
Logged
Complete - Arsenal, One Bullet is Enough, Tournament DM v2, TurboDM
Defunct - Agent Under Fire
VC - Being such a dick, KM must be stroked before springing into action.

StrikerMan780

  • Hellbender
  • Secret Agent
  • **
  • Posts: 92
  • Reputation Power: 3
  • StrikerMan780 has no influence.
  • Offline Offline
Re: Support for Source 2009's color codes
« Reply #2 on: December 23, 2012, 09:51:15 am »

I know about that, but still doesn't serve what I need. I need the x07 control character method to maintain compatibility with a lot of sourcemod plugins.
Logged

Check out [SM]'s HL2: Deathmatch Server! I've worked hard on making it the best it can be.

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Support for Source 2009's color codes
« Reply #3 on: December 23, 2012, 04:02:29 pm »

Interesting... please show me what it looks like in entirety.
Logged

StrikerMan780

  • Hellbender
  • Secret Agent
  • **
  • Posts: 92
  • Reputation Power: 3
  • StrikerMan780 has no influence.
  • Offline Offline
Re: Support for Source 2009's color codes
« Reply #4 on: December 24, 2012, 12:45:41 am »

Basically, you can enter the Bell Control Character (Hex: 0x07), and then a color code (ie: FF0000 for red) before the text you wish to color. You can use as many as these as you want in a string, and can be any color. In SourceMod, they are used by doing something like this (a piece of code from one of my plugins):    

Code: [Select]
PrintToChatAll("\x07222222[\x076000FFStrikerMod\x07222222] \x07FF0000Player In Blocked Group Detected \x07FFFFFF- \x07FF0000Name: \x07FFFF00%N \x07FFFFFF| \x07FF0000Group ID: \x07FFFF00%d", client, groupAccountID);
In sourcemod, \x indicates that you're specifying an ASCII Hex index in your string.





Source 2009 games like HL2DM, TF2, and CS:Source will read these codes, but, GoldenEye: Source does not, so it ends up making a huge mess of the output.
« Last Edit: January 03, 2013, 12:03:26 am by StrikerMan780 »
Logged

Check out [SM]'s HL2: Deathmatch Server! I've worked hard on making it the best it can be.

StrikerMan780

  • Hellbender
  • Secret Agent
  • **
  • Posts: 92
  • Reputation Power: 3
  • StrikerMan780 has no influence.
  • Offline Offline
Re: Support for Source 2009's color codes
« Reply #5 on: July 04, 2013, 01:51:43 am »

I take it this was added in the new release?
Logged

Check out [SM]'s HL2: Deathmatch Server! I've worked hard on making it the best it can be.

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Support for Source 2009's color codes
« Reply #6 on: July 04, 2013, 03:54:19 am »

What would give you that impression?
Logged

StrikerMan780

  • Hellbender
  • Secret Agent
  • **
  • Posts: 92
  • Reputation Power: 3
  • StrikerMan780 has no influence.
  • Offline Offline
Re: Support for Source 2009's color codes
« Reply #7 on: July 04, 2013, 05:14:53 am »

I must have mistook "Added color hinting to HUD Messages" as something else.
Logged

Check out [SM]'s HL2: Deathmatch Server! I've worked hard on making it the best it can be.

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Support for Source 2009's color codes
« Reply #8 on: July 04, 2013, 12:29:18 pm »

I'll put this in our tracker... it never made it in before
Logged
Pages: [1]   Go Up