Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Colorful in-game chat

#1
Rainbow 
I've been playing with the Xonotic console these last few days, so I made a few scripted commands that allow gradients in the chat.
A some other players fount my script interesting so I'm sharing it here.
The script is hosted at github, more details can be found there.
The script is done completely as a self-contained configuration script. It currently supports all ASCII characters and Cyrillic.
The commands can be used in key binds to make dynamic colored text.

There are currently three types of gradients:
  • rainbow colors
  • dark to light
  • light to dark
The base color for the last two can be passed as parameter.


.jpg   xonotic20130830185337-00.jpg (Size: 9.39 KB / Downloads: 326)
Reply

#2
Very impressive, nice work.
[Image: 230.jpg]
Reply

#3
Nice, thanks!
Reply

#4
I've updated the script. I have removed the hard-coded light-to-dark and dark-to-light to allow arbitary 2-color gradients.


.jpg   xonotic20130830220654-00.jpg (Size: 4.05 KB / Downloads: 296)
Reply

#5
this would be cool for nicks and such, but i find it eternally annoying when people have 200 chatbinds that are all ridiculous coloured phrases i have to strain my eyes to barely read. Nice job though
Reply

#6
Impressive :O

I never thought it was possible with the console commands
[Image: 12766.png]
Sucks at weapons
Reply

#7
(08-30-2013, 05:10 PM)ballist1c Wrote: this would be cool for nicks and such, but i find it eternally annoying when people have 200 chatbinds that are all ridiculous coloured phrases i have to strain my eyes to barely read. Nice job though

This script doesn't really make it worse, insead of having an unreadable color now players can choose to chat in an unreadable gradient Wink

Indeed this script makes it easier to have gradients in the nickname, (I've added a command that does just that).
My in-game name has a gradient and it was quite painful to create it manually, now I can change name colors without trouble! Smile
Reply

#8
Sorry, but I had to make this: now you can have gradients with any number of colors.

I hope that my script doesn't get overused...


.jpg   xonotic20130901145019-00.jpg (Size: 13.79 KB / Downloads: 216)
Reply

#9
If it becomes too much of a problem, we can always create a system which parses incoming chat messages and strips colors if a user desires. (Per-client choice)
Reply

#10
does it work in nexuiz too?
[Image: 10253.png]
Reply

#11
Nope, iirc some of the operations it uses require Xonotic.
Reply

#12
I guess it can be ported if there are incompatibilities. But I don't think that I'll do that.
Reply

#13
(09-04-2013, 03:43 PM)Samual Wrote: If it becomes too much of a problem, we can always create a system which parses incoming chat messages and strips colors if a user desires. (Per-client choice)

Sounds good.
Reply

#14
(09-05-2013, 06:40 AM)neXus Wrote: does it work in nexuiz too?
(09-05-2013, 11:48 AM)Melanosuchus Wrote: I guess it can be ported if there are incompatibilities. But I don't think that I'll do that.

Nope. There is no sprintf1s, so there is practically no way to split strings. Unless you don't mind typing your messages with a space inbetween all characters, there's no way to have pure-console rainbow text.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Speech to text, or almost voice chat oblector 0 1,342 06-30-2022, 06:29 PM
Last Post: oblector
  Chat color question Molnija 0 2,551 11-14-2018, 02:26 AM
Last Post: Molnija
  Remove color font from scoreboard and drag notify, but not chat Molnija 6 5,833 09-14-2018, 10:28 PM
Last Post: Molnija
  I want to implement voice chat lamefun 3 5,493 12-22-2013, 08:00 PM
Last Post: unfa
  Chat / taunt HUD portraits (need help from other coders!) MirceaKitsune 12 17,629 03-26-2011, 11:04 PM
Last Post: Lee_Stricklin
  In-game physics testers wanted for an actual game (apply within!) kojn^ 29 31,539 07-08-2010, 11:54 AM
Last Post: parasti

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-