Req: Colorblind mode/mod for those of us that are RG blind.

Make suggestions for improving one of the best games on the net!
Post Reply
newbie191
Private
Private
Posts: 4
Joined: Sun Feb 08, 2009 7:24 pm

Req: Colorblind mode/mod for those of us that are RG blind.

Post by newbie191 » Sun Feb 08, 2009 7:30 pm

Hey all, small (?) request, can you please allow people to choose the color displayed for various teams in the options menu? I'm more than a bit red/green color blind so teammates tend to get shot (or I get shot while I try to figure out if that's a red tank or a green tank.)

one of the reasons I tend to suck in online multiplayer games, apparently there are no color blind testers/designers out there :)

Thanks muchly, seems like a cool game if you can easily tell who is on which team :)

trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by trepan » Sun Feb 08, 2009 7:39 pm

There are several BZDB variables which may help you:

roguecolor
redcolor
greencolor
bluecolor
purplecolor
rogueradar
redradar
greenradar
blueradar
purpleradar

These can be set in your config.cfg file, ex:
set redcolor "1 0 0"

The 3 numbers are RGB value (red, green, blue)

You can also edit the some textures in your data folder to change
their colors to better suit you.

edit: added missing quotation marks
Last edited by trepan on Sun Feb 08, 2009 10:33 pm, edited 1 time in total.

newbie191
Private
Private
Posts: 4
Joined: Sun Feb 08, 2009 7:24 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by newbie191 » Sun Feb 08, 2009 8:39 pm

sweet thanks! that would definitely work for my needs. One question though, if I edit the config.cfg file in ~/.bzf/2.0/ then launch bzflag -config config.cfg (and connect to a 2 team server that's using red and green) it seems to be ignoring the line:

set redcolor 0 0 1

as the red tanks are still mostly red and not in fact blue. I've also tried

set redcolor 255 255 255 but the tanks aren't black (or white)


is there something else I need to do for the simple fix (before mucking with the textures) or is the config.cfg only used if I host a game?

z[h]ero
Private First Class
Private First Class
Posts: 204
Joined: Mon Jan 31, 2005 12:00 am
Location: hiding behind box...a real Bz coward :/

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by z[h]ero » Sun Feb 08, 2009 10:15 pm

Edit:
Quotation marks are needed.
So
set redcolor "0 0 1"
would be blue.

And
set redcolor "1 1 1"
would be white.
Last edited by z[h]ero on Sun Feb 08, 2009 10:24 pm, edited 1 time in total.
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster."

newbie191
Private
Private
Posts: 4
Joined: Sun Feb 08, 2009 7:24 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by newbie191 » Sun Feb 08, 2009 10:23 pm

re config not being read:
Ah ha, forgot to mention, when I run bzflag without the -config config.cfg variable on my system it also replaces any changes I've made in config.cfg. But if I run via the command bzflag -config config.cfg it doesn't change the config file, so I assumed it was using the file...

re: "'s great, I'll play with it in the am :0
Last edited by newbie191 on Mon Feb 09, 2009 12:24 am, edited 1 time in total.

z[h]ero
Private First Class
Private First Class
Posts: 204
Joined: Mon Jan 31, 2005 12:00 am
Location: hiding behind box...a real Bz coward :/

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by z[h]ero » Sun Feb 08, 2009 10:28 pm

newbie191 wrote:Ah ha, forgot to mention, when I run bzflag without the -config config.cfg variable on my system it also replaces any changes I've made in config.cfg.
It IS correct to not use "-config config.cfg". But in your case it deleted your changes as they were syntactical incorrect. You need to add quotation marks, like that (to get blue color):
set redcolor "0 0 1"
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster."

newbie191
Private
Private
Posts: 4
Joined: Sun Feb 08, 2009 7:24 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by newbie191 » Mon Feb 09, 2009 3:47 pm

Ok, ran without the -config .... line, and it replaced my config.cfg with the default one, removing all of the below lines:

#The 3 numbers are RGB value (red, green, blue)
set redcolor "0 0 1"


the "#the 3... : should be remmed and as such not read by the program therefor not removed right?

anyways not only did it remove the line `set redcolor "0 0 1"`but during the game, the red tanks were not in fact blue. (this is with the ubuntu package fwiw)

User avatar
blast
General
General
Posts: 4744
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by blast » Mon Feb 09, 2009 4:23 pm

The value stays in the configuration file for me. It might move it around though (I think it sorts alphabetically). However, it only seemed to make the team flag color change, not the radar icons for the tanks.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

z[h]ero
Private First Class
Private First Class
Posts: 204
Joined: Mon Jan 31, 2005 12:00 am
Location: hiding behind box...a real Bz coward :/

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by z[h]ero » Mon Feb 09, 2009 4:26 pm

newbie191 wrote:the "#the 3... : should be remmed and as such not read by the program therefor not removed right?
First, my english translators doesn't know the term "remmed" or "remm" :wink: . But true, I didn't expect, too, that Bz removes comment-lines.
newbie191 wrote:anyways not only did it remove the line `set redcolor "0 0 1"`but during the game, the red tanks were not in fact blue. (this is with the ubuntu package fwiw)
When you add this line somewhere in the config.cfg and start Bz, then after closing Bz, it automatically sorts and put away 'set redcolor "0 0 1" alphabetical, like "Blast" mentioned!
In my config.cfg the 'set redcolor"-line is about in the middle of the file. It should be listed in your config.cfg, too, right?

Edit:
However, it only seemed to make the team flag color change, not the radar icons for the tanks.
Didn't check the color of the flag and radar icons. However it changed the color of the red tanks into blue, like expected.
Last edited by z[h]ero on Mon Feb 09, 2009 9:48 pm, edited 2 times in total.
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster."

User avatar
blast
General
General
Posts: 4744
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by blast » Mon Feb 09, 2009 4:31 pm

I found another setting you can change in addition to redcolor.

set redradar "0 0 1"

Then the only other thing you would have to change is the tank textures.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

z[h]ero
Private First Class
Private First Class
Posts: 204
Joined: Mon Jan 31, 2005 12:00 am
Location: hiding behind box...a real Bz coward :/

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by z[h]ero » Mon Feb 09, 2009 4:43 pm

Now I know why it seemed to just work on my system, and not on yours systems, as I had textures deactivated.

@newbie191:
Alternatively to blast's proposal you could deactivate textures, if you don't care about visualisation quality:
Options => Display settings => Texturing => Off
Then the "set color" command should work on your system, too.
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster."

User avatar
Wreckage
Private First Class
Private First Class
Posts: 108
Joined: Sat Sep 23, 2006 6:07 pm
Location: Junkyard

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by Wreckage » Tue Feb 10, 2009 1:50 am

Hmm, sorry if I am missing something obvious..

I have trouble differentiating rogue from green team tank dots on the radar. So how could I get a darker green? Or do I just need to make rogue black (is that possible)...
set greenradar "?"
Image

z[h]ero
Private First Class
Private First Class
Posts: 204
Joined: Mon Jan 31, 2005 12:00 am
Location: hiding behind box...a real Bz coward :/

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by z[h]ero » Tue Feb 10, 2009 9:53 am

Firstly the values for each color (red, green, blue) goes from 0 to 1.

Setting green radar icon: set greenradar "0 x 0" (x is the value for green color, like trepan mentioned)
So set greenradar "0 1 0" would be the original green radar-tank-icon.
The more close the second number is to 0, all the more dark the green color gets, so for example set greenradar "0 0.7 0" would be a little bit darker green than the original color.

Yep, you can change the rogue-radar color to whatever color you want.
set rogueradar "0 0 0" would transform rogue into black.
Wirth's law: "Software is getting slower more rapidly than hardware becomes faster."

User avatar
Wreckage
Private First Class
Private First Class
Posts: 108
Joined: Sat Sep 23, 2006 6:07 pm
Location: Junkyard

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by Wreckage » Tue Feb 10, 2009 2:27 pm

z[h]ero wrote: Firstly the values for each color (red, green, blue) goes from 0 to 1.
Ohh, thanks that's what I didn't understand. I was trying things like "0 127 0", guess I got confused from "set redcolor 255 255 255".

Thanks z[h]ero

If I don't post again it's working fine...
Image

User avatar
blast
General
General
Posts: 4744
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by blast » Tue Feb 10, 2009 6:20 pm

I imagine you can also use names of colors. There is a list of colors on the wiki that you could try.

http://my.bzflag.org/w/Color(BZW)
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by Agent West » Wed Feb 11, 2009 2:38 pm

also ya'll can edit the textures themselves. go to "c:\program files\bzflag2.0.10\data\..." (default location in WinXP)
instead of 2.0.10, it might be 2.0.12 BZFlag version (depending on what you got)
open a texture in MSPaint (simplest) or any other immage aditor, and start editing! :)
as you might have guessed, that would only change color of tanks on HUD, and not on the radar
Rest in peace, AliceD (AKA Happy Alice)! miss ya!

ts
Dev Monkey
Dev Monkey
Posts: 970
Joined: Fri Jan 14, 2005 6:26 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by ts » Wed Feb 11, 2009 5:02 pm

blast wrote:I imagine you can also use names of colors. There is a list of colors on the wiki that you could try.
Out of curiosity: Is BZFlag colour managed?

Red is not equal to red in different colour spaces (e.g. SRGB versus AdobeRGB) and as consequence the colours may not look like their name would imply. For example a sRGB picture of a human with normal white skin looks like the human had a sunburn in an unmanaged application in displays featuring wide gamut.
GU league: http://www.guleague.org/
An introduction to TCP: http://www.lafkon.net/tc/

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by joevano » Wed Feb 11, 2009 5:15 pm

ts wrote:Out of curiosity: Is BZFlag colour managed?
It's a game, not a publishing app...
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln

ts
Dev Monkey
Dev Monkey
Posts: 970
Joined: Fri Jan 14, 2005 6:26 pm

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by ts » Wed Feb 11, 2009 8:37 pm

joevano wrote:It's a game, not a publishing app...
A browser is also no publishing app and good browsers have colour management. Picture viewers are also no publishing applications. Most non TN panel displays I heard of offer wide gamut.

BZFlag partly needs managed colours (e.g. sky, textures) and I'm considering to buy a wide gamut display - that's why I asked.
GU league: http://www.guleague.org/
An introduction to TCP: http://www.lafkon.net/tc/

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Re: Req: Colorblind mode/mod for those of us that are RG blind.

Post by JeffM » Wed Feb 11, 2009 8:51 pm

that is left up to the OS in our case.

User avatar
optic delusion
Special Forces
Special Forces
Posts: 990
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Req: Colorblind mode/mod for those of us that are RG bl

Post by optic delusion » Tue May 06, 2014 12:37 am

Bumping an old thread because i've had a few people with this issue lately.

Personally, I think editing the tank camouflage textures is an excellent option. Adding some white or another color to the tank textures will do a lot to make tanks more visible, but will not help with seeing team flags on radar.

It's important to note that the location of the config.cfg file may have changed since 2009. I can tell you that on an apple computer, in the finder you hold the option key while clicking the "GO" menu, which shows the "Library" folder. I'm no help on other OS's.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
alfa1
Private First Class
Private First Class
Posts: 115
Joined: Tue Dec 04, 2012 10:21 pm

Re: Req: Colorblind mode/mod for those of us that are RG bl

Post by alfa1 » Thu May 08, 2014 7:44 am


Post Reply