Colorful in-game chat - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12) +--- Thread: Colorful in-game chat (/showthread.php?tid=4422) |
Colorful in-game chat - Melanosuchus - 08-30-2013 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:
xonotic20130830185337-00.jpg (Size: 9.39 KB / Downloads: 326) RE: Colorful in-game chat - Mario - 08-30-2013 Very impressive, nice work. RE: Colorful in-game chat - machine! - 08-30-2013 Nice, thanks! RE: Colorful in-game chat - Melanosuchus - 08-30-2013 I've updated the script. I have removed the hard-coded light-to-dark and dark-to-light to allow arbitary 2-color gradients. xonotic20130830220654-00.jpg (Size: 4.05 KB / Downloads: 296) RE: Colorful in-game chat - deoxys - 08-30-2013 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 RE: Colorful in-game chat - kammy - 08-30-2013 Impressive :O I never thought it was possible with the console commands RE: Colorful in-game chat - Melanosuchus - 08-31-2013 (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 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! RE: Colorful in-game chat - Melanosuchus - 09-01-2013 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... xonotic20130901145019-00.jpg (Size: 13.79 KB / Downloads: 216) RE: Colorful in-game chat - Samual - 09-04-2013 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) RE: Colorful in-game chat - neXus - 09-05-2013 does it work in nexuiz too? RE: Colorful in-game chat - Samual - 09-05-2013 Nope, iirc some of the operations it uses require Xonotic. RE: Colorful in-game chat - Melanosuchus - 09-05-2013 I guess it can be ported if there are incompatibilities. But I don't think that I'll do that. RE: Colorful in-game chat - rocknroll237 - 09-05-2013 (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. RE: Colorful in-game chat - Mr. Bougo - 09-05-2013 (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. |