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: 325)
Reply

#2
Very impressive, nice work.
[Image: 230.png]
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: 295)
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: 215)
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 592 06-30-2022, 06:29 PM
Last Post: oblector
  Chat color question Molnija 0 2,101 11-14-2018, 02:26 AM
Last Post: Molnija
  Remove color font from scoreboard and drag notify, but not chat Molnija 6 4,473 09-14-2018, 10:28 PM
Last Post: Molnija
  Game Server's Packet to XonStats Antares* 2 3,037 04-30-2017, 10:33 AM
Last Post: Antibody
  How can i add a Game mode? HirnloserHering 2 4,007 08-29-2015, 06:33 AM
Last Post: HirnloserHering
  development and life cycle of a game community BuddyFriendGuy 9 9,419 04-04-2015, 01:58 AM
Last Post: BuddyFriendGuy
  Xonotic Game Engine, Mapping, Development - General Developer Questions p14r 6 9,487 08-04-2014, 10:24 AM
Last Post: p14r
  I want to implement voice chat lamefun 3 4,567 12-22-2013, 08:00 PM
Last Post: unfa
  [plan] A single-player game creation toolkit using the Xonotic framework MirceaKitsune 21 28,999 06-18-2013, 10:15 AM
Last Post: Zeo
  To Xonotic developers about their game... noobermin 17 15,010 06-17-2013, 01:39 PM
Last Post: frostwyrm333

Forum Jump:


Users browsing this thread:
1 Guest(s)

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