Page 1 of 1

Custom nation names and flags

Posted: Wed Mar 29, 2017 5:59 pm
by AndreasR
I've been thinking about adding support for allowing players to set their own nation names and upload nation flags to Freeciv-web.
Uploading custom flags could be restricted to players with accounts.

Is this something that would be useful? What are the risks? What do you think?

Andreas

Re: Custom nation names and flags

Posted: Wed Mar 29, 2017 8:59 pm
by XYZ
Bring it on! No new nations has been added since a long time although a lot of new nations are in the pipeline. I wanna see the Second Spanish Republic flag as much the Medici flag.

The risks include copyright issues and uploading undesired/insulting flags in my opinion.

What about the rest. Will the city names, leaders etc. just be taken from somewhere else?

Re: Custom nation names and flags

Posted: Thu Mar 30, 2017 5:46 pm
by Lachu
I prefer play GTK3 client instead a web one, but I have idea. Force players to select normal nation from list. This is because game needs ruler title and name. Additionally, add option per player called "allow using custom data". If player don't select this option and other player select Spanish, then normal Spanish flag and leader name/title will be presented to players, who don't select this option(as fallback).

Re: Custom nation names and flags

Posted: Sat Apr 01, 2017 7:46 am
by AndreasR
I have added support for customizing the nation name and uploading a custom flag to Freeciv-web now.

The customization will only last for the current game session and only be visible to the current player, to prevent the risks mentioned here previously.

Re: Custom nation names and flags

Posted: Sat Apr 01, 2017 1:48 pm
by XYZ
I experimented a bit with flags. Basic flags with 2 or 3 stripes dont have problems. Took the unedited flag from Wikipedia of Austria-Hungary and only had a slightly less good looking result (Im sure I can only spot it...) than when taking the flag I had prepared for the ruleset.
The red stripe of Manchukuo flag in the upper left corner gets zoomed out but we are talking about a minimal detail in a more complex flag.

One big difference is the missing shield for units. You can only choose between a rectangular shield and a normal city flag or a normal shield but a "shieldish" city flag. (See 2. Spanish Republic). I woudnt take the latter :D

In short: Great job!

Re: Custom nation names and flags

Posted: Sat Apr 01, 2017 3:08 pm
by AndreasR
Thanks for testing this! I have now made a bugfix, so that the new flag is drawn onto a new canvas instead of drawing over the old flag. This will give better support for images with transparency.