Coder Diary #8 -- Variable Unit Highlight Colors

John Tiller's Campaign Series exemplifies tactical war-gaming at its finest by bringing you the entire collection of TalonSoft's award-winning campaign series. Containing TalonSoft's West Front, East Front, and Rising Sun platoon-level combat series, as well as all of the official add-ons and expansion packs, the Matrix Edition allows players to dictate the events of World War II from the tumultuous beginning to its climatic conclusion. We are working together with original programmer John Tiller to bring you this updated edition.

Moderators: Jason Petho, Peter Fisla, asiaticus, dogovich

Post Reply
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »


Coder Diary #8 -- Variable Unit Highlight Colors


A while back, one player posted:
Please let us change the "highlight" colors because I have severe red-green color blindness and cannot easily see the change in colors when you highlight organization or any other display. I can see it while looking directly at it, but cannot zoom out and see the differences, especially in 2D.
It's no small thing. It is estimated that up to 8% of the general male population may suffer from red-green color blindness. From Wikipedia, http://en.wikipedia.org/wiki/Color_blindness:
Color blindness affects a large number of individuals, with protanopia and deuteranopia being the most common types.[6] In individuals with Northern European ancestry, as many as 8 percent of men and 0.5 percent of women experience the common form of red-green color blindness.
8% of our player base -- that's not insignificant.

To see what color-blind players are up against, consider this screenshot from Vietnam War, with all HQs highlighted in red:

Image

Red-green color-blind players might effectively see this:

Image

See the problem? (Or not? [;)])

Beyond the color blindness problem, some normal sighted players (me!) just hate the default magenta highlight color, as we see here (in a screenshot from West Front):

Image

What we want is to give the players the option to select their own highlight colors, by way of the Options menu. That way they can deselect colors they may be color blind to, or for aesthetic reasons just dislike. Players can also select a highlight color that works best with the current scenario's nations (with their distinctive colors) and terrain (tropics, desert, snow, etc.).

Here you go (screenshot from Middle East):

Image

To my eyes, those yellow unit highlights are much more appealing than the traditional magenta. You don't think so? You have 15 different alternative colors to choose from, including that old standby, magenta.

(BTW, if you're wondering about the color selection: Those colors are the colors in the standard Colors.bmp file, in the order they are displayed in that file. Rather rich in the purples, but that's the way JT designed it.)

Here's an especially appealing color (light blue) for the Vietnam War highlights:

Image

What about that red hot spot color? If you're red-green color blind, might not that present problems too?

The preceding screenshot was taken several days ago. Since then, I have implemented variable hot spot outlines, as in: whatever color you select to highlight units, that color becomes the hot spot hex outline color also (screenshot taken from the game West Front):

Image

What about 2D? Take a look at this screenshot from Vietnam War:

Image

The 2D maps are so "busy", and the hexes and units so small, that it's still not quite easy to pick out the highlighted units, even with 16 different highlight colors available. But it's still much better than being stuck with the traditional lone highlight color, magenta. Experiment with different colors until you find one that suits you best.

(As with the 3D hot spot hex outline, the 2D blinking hot spot is no longer a forced red, rather, whatever highlight color you select in the Options>Highlight Colors menu.)

Variable highlight colors fix a serious ergonomics issue for color-blind players, and enhance playability and aesthetics for all players, I hope you agree.

Until the next time ...
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by junk2drive »

I'm not color blind but the magenta wasn't always easy to see on some terrain.

Have you tried this new feature in Linux? It's been a while since I ran Ubuntu with Wine. When I did, the outlines were translucent squares of the color rather than outlines. I suspected that was caused by the 8 bit nature of the game. There is a new release of Wine, 1.6 that is supposed to have a lot of fixes.
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »

ORIGINAL: junk2drive

Have you tried this new feature in Linux?
So many things to do, so little time to do them. [:(]
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
PKH
Posts: 242
Joined: Thu Nov 17, 2011 5:26 pm

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by PKH »

If you could do selectable coloring for the hq of the current unit, and for units 1 step below the current that would be good. If the HQ is not present on the map yet, highlighting it's entry hex would be helpful.

I also suggest some kind of coloring of the 2d markers based on unit organizations (like in WITE f.ex), so f.ex. each unit in the same battalion get's the same color marking. This should be selectable during play, so one could choose which organizational level the coloring should be applied at. (i.e. at battalion level, brigade level etc.)

While I'm at it, are you planning to do something about the nightmare which is the unit deployment phase ? I'd like an option to have the units automatically placed in an organized fashion across the map so units are placed with their organizational units. Secondly a group select (by draggable rectangle) and group placement. I'd also like to be able to save the game in the placement phase, and re-enter it when loading. Lastly, an option to have reinforcements always arrive in their vehicles would be helpful.

User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »

ORIGINAL: PKH

If you could do selectable coloring for the hq of the current unit, and for units 1 step below the current that would be good. If the HQ is not present on the map yet, highlighting it's entry hex would be helpful.

I also suggest some kind of coloring of the 2d markers based on unit organizations (like in WITE f.ex), so f.ex. each unit in the same battalion get's the same color marking. This should be selectable during play, so one could choose which organizational level the coloring should be applied at. (i.e. at battalion level, brigade level etc.)
In the near term, we are pretty much stuck with the game's traditional user interface, with some refinements and filling out. Fancier UI extensions and graphics displays will have to wait.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
wings7
Posts: 4586
Joined: Mon Aug 11, 2003 4:59 am
Location: Phoenix, Arizona

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by wings7 »

Good option berto!
Please come and join and befriend me at the great Steam portal! There are quite a few Matrix/Slitherine players on Steam! My member page: http://steamcommunity.com/profiles/76561197988402427
User avatar
Arkady
Posts: 1261
Joined: Fri May 31, 2002 1:37 pm
Location: 27th Penal Battalion
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by Arkady »

whats about highlight color defined in external settings file for easy user modification ?

my idea
default/original things within game exe and lirary files
mod folder to host user modifications
if there is correspondig modification file found, game engine use this, if not or if the mod file is not parsed properly, default values or setting is used ?
Image
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »

ORIGINAL: Arkady

whats about highlight color defined in external settings file for easy user modification ?

my idea
default/original things within game exe and lirary files
mod folder to host user modifications
if there is correspondig modification file found, game engine use this, if not or if the mod file is not parsed properly, default values or setting is used ?
Yes, we might do all of those things eventually.

So much work to do...
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
junk2drive
Posts: 12856
Joined: Thu Jun 27, 2002 7:27 am
Location: Arizona West Coast

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by junk2drive »

bump 8
Conflict of Heroes "Most games are like checkers or chess and some have dice and cards involved too. This game plays like checkers but you think like chess and the dice and cards can change everything in real time."
USS Wyoming
Posts: 24
Joined: Wed Dec 22, 2010 8:41 pm

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by USS Wyoming »

Wow, Been awhile since I returned to the forums and here is my Achilles heel with CS being addressed. it was awhile back I posted about changing highlight colors and I never imagined it might be changed. I only have one other wish and that is for an additional zoom/magnification factor when in 2D overhead view.
User avatar
Warhorse
Posts: 5373
Joined: Fri May 12, 2000 8:00 am
Location: Birdsboro, PA, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by Warhorse »

If you are used to playing in 2D, just you wait to see what is coming up!![:D]
Mike Amos

Meine Ehre heißt Treue
www.cslegion.com
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »

ORIGINAL: USS Wyoming

Wow, Been awhile since I returned to the forums and here is my Achilles heel with CS being addressed. it was awhile back I posted about changing highlight colors and I never imagined it might be changed. I only have one other wish and that is for an additional zoom/magnification factor when in 2D overhead view.
We plan to do that, but not for the immediate next update. Later in 2014, in subsequent updates, most likely.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »


For my Windows 8.1 test system, a 6-1/2 year old Dell Dimension E521, there are no Windows 8 compatible graphics card drivers.

When I boot that system up into Windows 8.1 (it also dual boots into Windows 7, where there are no problems), I am stuck with 1280x1024 maximum screen resolution. [:(]

But in (4-key) 2D mode, hexes and units are just the right size, and the display is gorgeous! [:)]

Not the best long-term solution. The ultimate goal is to support a new native, larger, zoomed-in 2D mode. But in the near term, ratcheting your screen resolution down to 1280x1024 is not a bad kludge. Especially if you have dual monitors (as I do*), and you retain max resolution in your other non-game display.

(*Except that the Windows 8.1 drivers don't recognize the second monitor on this system! [:(])
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
jeffk3510
Posts: 4143
Joined: Mon Dec 03, 2007 5:59 am
Location: Merica

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by jeffk3510 »

ORIGINAL: berto


Coder Diary #8 -- Variable Unit Highlight Colors


A while back, one player posted:
Please let us change the "highlight" colors because I have severe red-green color blindness and cannot easily see the change in colors when you highlight organization or any other display. I can see it while looking directly at it, but cannot zoom out and see the differences, especially in 2D.
It's no small thing. It is estimated that up to 8% of the general male population may suffer from red-green color blindness. From Wikipedia, http://en.wikipedia.org/wiki/Color_blindness:
Color blindness affects a large number of individuals, with protanopia and deuteranopia being the most common types.[6] In individuals with Northern European ancestry, as many as 8 percent of men and 0.5 percent of women experience the common form of red-green color blindness.
8% of our player base -- that's not insignificant.

To see what color-blind players are up against, consider this screenshot from Vietnam War, with all HQs highlighted in red:

Image

Red-green color-blind players might effectively see this:

Image

See the problem? (Or not? [;)])

Beyond the color blindness problem, some normal sighted players (me!) just hate the default magenta highlight color, as we see here (in a screenshot from West Front):

Image

What we want is to give the players the option to select their own highlight colors, by way of the Options menu. That way they can deselect colors they may be color blind to, or for aesthetic reasons just dislike. Players can also select a highlight color that works best with the current scenario's nations (with their distinctive colors) and terrain (tropics, desert, snow, etc.).

Here you go (screenshot from Middle East):

Image

To my eyes, those yellow unit highlights are much more appealing than the traditional magenta. You don't think so? You have 15 different alternative colors to choose from, including that old standby, magenta.

(BTW, if you're wondering about the color selection: Those colors are the colors in the standard Colors.bmp file, in the order they are displayed in that file. Rather rich in the purples, but that's the way JT designed it.)

Here's an especially appealing color (light blue) for the Vietnam War highlights:

Image

What about that red hot spot color? If you're red-green color blind, might not that present problems too?

The preceding screenshot was taken several days ago. Since then, I have implemented variable hot spot outlines, as in: whatever color you select to highlight units, that color becomes the hot spot hex outline color also (screenshot taken from the game West Front):

Image

What about 2D? Take a look at this screenshot from Vietnam War:

Image

The 2D maps are so "busy", and the hexes and units so small, that it's still not quite easy to pick out the highlighted units, even with 16 different highlight colors available. But it's still much better than being stuck with the traditional lone highlight color, magenta. Experiment with different colors until you find one that suits you best.

(As with the 3D hot spot hex outline, the 2D blinking hot spot is no longer a forced red, rather, whatever highlight color you select in the Options>Highlight Colors menu.)

Variable highlight colors fix a serious ergonomics issue for color-blind players, and enhance playability and aesthetics for all players, I hope you agree.

Until the next time ...

Off topic, but where do I get the Middle East scenarios and other scenarios to add to my JTCS game?

thanks.
Life is tough. The sooner you realize that, the easier it will be.
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »

ORIGINAL: jeffk3510

Off topic, but where do I get the Middle East scenarios and other scenarios to add to my JTCS game?
Middle East is an entirely new, standalone game in the series, due out later in 2014. It will not be a freebie update patch to the current Campaign Series.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
jeffk3510
Posts: 4143
Joined: Mon Dec 03, 2007 5:59 am
Location: Merica

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by jeffk3510 »

ORIGINAL: berto

ORIGINAL: jeffk3510

Off topic, but where do I get the Middle East scenarios and other scenarios to add to my JTCS game?
Middle East is an entirely new, standalone game in the series, due out later in 2014. It will not be a freebie update patch to the current Campaign Series.

Looking forward to it.

3rd/4th qtr...any idea?
Life is tough. The sooner you realize that, the easier it will be.
User avatar
berto
Posts: 21461
Joined: Wed Mar 13, 2002 1:15 am
Location: metro Chicago, Illinois, USA
Contact:

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by berto »


We're aiming for 2nd/3rd quarter.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
User avatar
jeffk3510
Posts: 4143
Joined: Mon Dec 03, 2007 5:59 am
Location: Merica

RE: Coder Diary #8 -- Variable Unit Highlight Colors

Post by jeffk3510 »

Count me in.
Life is tough. The sooner you realize that, the easier it will be.
Post Reply

Return to “John Tiller's Campaign Series”