bugFreeciv - Bugs: bug #22015, Nation color in ruleset based on...

Show feedback again

bug #22015: Nation color in ruleset based on most common color from nation flag

Submitted by:  Andreas Røsdal <andreasr>
Submitted on:  Tue May 6 19:21:59 2014  
Category: generalSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: None
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue Jan 13 15:42:23 2015, comment #3:

Wouldn't it be much easier to just add "preferred_color" setting in nation .ruleset files.

Jarkko Huttunen <jacew>
Thu May 15 15:12:33 2014, comment #2:

Maybe the color of each nation could be picked from standard ones, but selecting the one matching the nation flag best?

pepeto <pepeto>
Project Member
Mon May 12 00:04:33 2014, comment #1:

The freeciv engine feature exist already, but we can't really use it with the default nation list. With well over 500 nations you cannot hardcode colors for each nation and get all two nation pairs to have clearly distinguishable colors if they appear in the same game.

Marko Lindqvist <cazfi>
Project Administrator
Tue May 6 19:21:59 2014, original submission:

I would like the player's nation color to be chosen from one or a few of the most common colors in the nation's flag, and that color stored in the ruleset. For Freeciv players it will be easier to find players on the minimap. It will also be easier to remember players in the game if their color is based on their flag. At the moment there is a separate column in the nations dialog listing each players color, and this extra color is extra information about a player which adds no value.

When selecting a nation color, steps would have to be taken to reduce the number of color collisions between nation colors.

Perhaps a script could be created to iterate over all the nations, determine a nation color based on the nation's flag, while also keeping the number of color collisions to a minimum, then write that color back to the nations ruleset file.

Andreas Røsdal <andreasr>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jacew (Posted a comment)
  • -unavailable- added by pepeto (Posted a comment)
  • -unavailable- added by cazfi (Posted a comment)
  • -unavailable- added by andreasr (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup