Custom nation names and flags

Web version of freeciv at play.freeciv.org
User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Custom nation names and flags

Postby AndreasR » Wed Mar 29, 2017 5:59 pm

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

User avatar
XYZ
Elite
Posts: 371
Joined: Fri Jan 31, 2014 12:00 pm

Re: Custom nation names and flags

Postby XYZ » Wed Mar 29, 2017 8:59 pm

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: 413
Joined: Sat May 04, 2013 2:19 pm

Re: Custom nation names and flags

Postby Lachu » Thu Mar 30, 2017 5:46 pm

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).

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Custom nation names and flags

Postby AndreasR » Sat Apr 01, 2017 7:46 am

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.

User avatar
XYZ
Elite
Posts: 371
Joined: Fri Jan 31, 2014 12:00 pm

Re: Custom nation names and flags

Postby XYZ » Sat Apr 01, 2017 1:48 pm

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.

User avatar
AndreasR
Elite
Posts: 701
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: Custom nation names and flags

Postby AndreasR » Sat Apr 01, 2017 3:08 pm

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.