Custom nation names and flags

Web version of freeciv. Please mention the site you're using, if speaking things other than general freeciv-web codebase.
Post Reply
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

Custom nation names and flags

Post 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
XYZ
Elite
Posts: 432
Joined: Fri Jan 31, 2014 12:00 pm

Re: Custom nation names and flags

Post 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?
Lachu
Elite
Posts: 472
Joined: Sat May 04, 2013 2:19 pm

Re: Custom nation names and flags

Post 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).
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

Re: Custom nation names and flags

Post 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.
XYZ
Elite
Posts: 432
Joined: Fri Jan 31, 2014 12:00 pm

Re: Custom nation names and flags

Post 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!
Attachments
Spanish shield small.GIF
Manchouku.GIF
Austria-Hungary small.GIF
Austria-Hungary normal flag.GIF
Last edited by XYZ on Sat Apr 01, 2017 5:10 pm, edited 1 time in total.
AndreasR
Elite
Posts: 754
Joined: Thu May 02, 2013 10:26 pm

Re: Custom nation names and flags

Post 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.
Post Reply