More text colors

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby Mr. Bougo » Thu Dec 25, 2008 3:22 pm

terencehill wrote:Image

Here u can download the final patch:
http://sites.google.com/site/terencehil ... evelopment


:D


Great work man!

(just realized I'm a bit late, but I had to thank you)
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby mand1nga » Sun Dec 28, 2008 1:08 pm

Hey terencehill, did you show this to the Darkplaces people ?
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby Mr. Bougo » Sun Dec 28, 2008 1:15 pm

It's been committed to the SVN DarkPlaces and Nexuiz already :p
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby mand1nga » Sun Dec 28, 2008 1:26 pm

hahahah :lol:

amazing job terencehill !!!!!!!!!!!!!!!!!!!!!!!!!
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby terencehill » Thu Jan 15, 2009 7:53 pm

tnx :)
I'm just returned from the holidays (no internet :( ) and I found the patch applied to the SVN, too cool :D

I saw that div (I guess) perfected the code, adding also the color picker... awesome!

Now everyone, even a 3 years old player (lol), knows that it's possible to color the text. Lot of ppl don't know the ^[0-9] tags too, so with Nexuiz 2.5, I expect more colored names, instead of many flat white names.
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

Postby divVerent » Fri Jan 16, 2009 6:31 am

Too bad it breaks qstat too, which most of the websites use that show player lists.

We need someone to make a patch for qstat that adds support for these color codes.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby esteel » Fri Jan 16, 2009 8:13 am

For someone that knows the qstat code a bit or has time to dig into it such an patch should be easy.. quake4 uses ^c??? with ? being 0-9 ( http://www.truecarnage.com/quake-4-colo ... rt-r24.htm ) and i'm quite certain qstat has quake4 support! I guess its easy to rip out that part and change it to support ^x??? with ? being 0-f. For the sake of qstat code quality maybe it can be made one more intelligent function?
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby terencehill » Wed Jan 28, 2009 12:30 am

I've done the patch to qstat too: http://pastebin.com/f418a57bf

Now qstat strips ^xrgb codes (default qstat behaviour is to strip color codes), and can generate html codes (<font color="#rrggbb">) still using the same option -htmlnames

So qstat patched can be used exactly in the same way as before.
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

Postby terencehill » Sun Feb 08, 2009 5:00 pm

I was asking myself: why use ^x (2 chars) and not a single char? It could be better IMO use for example *rgb rather than ^xrgb.

In this way the tags are 4 chars instead of 5, so quicker to type and to see.
More colors can be used on the name that has a limit of 64 chars: with ^xrgb max 10 (keeping 10+ chars to color), with *rgb max 12 (keeping 12+ chars to color).

Instead of ^x it could be used an ascii char rarely used:

One of these, with no compatibilty problem (I think):
@ ? ' * &

These ones are unusable, coz they are already used for other purposes:
# $ %

Is there any kind of problem using one of these chars (a part the small amount of time to chang the code)?
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

Postby divVerent » Sun Feb 08, 2009 6:39 pm

@ is in email addresses, or used as "at"
? is in punctuation
' is in it's
* is often used to *emphasize* stuff
& is an "and"

Sorry, none of these should be given a special meaning.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron