terencehill wrote:Yes. More colors instead of modifying the existing ones.
I thought a simply solution that doesn't recolor old nicknames, compatible with Quake 3 Arena with not so big differences in colors:
^1 is red ---> ^1^1 is dark red, ^2^1 is brown (colors near to red), ^4 is blue ---> ^1^4 is dark blue, ^2^4 is indigo (colors near to blue) etc.... And so on for each color. A max of 100 colors can be created instead of current 10.
With the current implementation ^1^1 and ^2^1 are still red, with the new system are dark red and brown, ^1^4 and ^2^4 are still blue, with the new system are dark blue and indigo...
Watching source code of the file console.c, where there is the code related to console output, I found that some special codes are used to change color output. I've extrated these codes from the code in console.c (function Con_Print):
case 7: [m
case 1: [1;31m
case 2: [1;32m
case 3: [1;33m
case 4: [1;34m
case 5: [1;36m
case 6: [1;35m
case 9: [0;1m
Searching these codes on google I've found this page http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html where there are other codes for other kinds of colors, that I write here:
Black 0;30
Blue 0;34
Green 0;32
Cyan 0;36
Red 0;31
Purple 0;35
Brown 0;33
Light Gray 0;37
Dark Gray 1;30
Light Blue 1;34
Light Green 1;32
Light Cyan 1;36
Light Red 1;31
Light Purple 1;35
Yellow 1;33
White 1;37
To developers:
- Can these new colors be used natively by Nexuiz?
- If yes, can these new colors be added "easily" to Nexuiz, modifying a bit the code in console.c to implement the system I've talked before?