• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Victoria 3 - Dev Diary #28 - Flags

16_9.jpg

Hi folks, welcome to another dev diary, and get hyped for what I know you're longing for: flags. I'm Ofaloaf, one of the designers on the game, and somehow they let me write a dev diary. Let's go!

Let's start at the beginning. What is a flag?

20211201_103509_sm.jpg

A flag is a thing of beauty.
A flag is a decorative design on a bit of fabric, often used to communicate something, such as a message or identity, to the viewer. In Victoria 3, all flags are flags associated with countries. They're neat designs that serve as visual shorthand for a state, and they just look pretty too, most of the time.

orange free state.PNG

In the Victorian era, what counts as the flag of a country was a bit… vague, depending on who you were asking. Some countries, like the United States and France, very clearly had a single flag that served as the national flag that everybody knew them by, but others weren't so clear.

Look - here's some period examples of what people considered Russia's flag to be:

Selection from 'The maritime flags of all nations', 1832, as seen on Wikimedia Commons
The_maritime_flags_of_all_nations,_1832_(FOL_LA_ROQ_1542_NOR)_croppo.jpg


Selection from 'Pavillons et cocardes des principales puissances du globe d'apres des documens officials', 1850, as seen in the David Rumsey Map Collection.
russie.png

First thing that's noticeable is that it's not just one flag. The tricolor that is used as the Russian Federation's flag now was just one of several in use in the 19th century up through to the 1850s, as a merchant flag or civil ensign used to identify civilian ships in foreign ports. The Romanov dynasty's emblem is also used as a Russian flag, and then there's two naval jacks - the flags with the blue saltires or diagonal crosses stretching across them- which are also widely recognized. Eventually, the Russian government started trying to consolidate everything and issued a decree on June 23rd, 1858, proclaiming a single "state flag", a black-gold-white tricolor. In 1883, the white-blue-red "merchant" flag was officially accepted as a national flag to be used on special occasions, and in 1896 it wholly replaced the black-gold-white tricolor as Russia's state flag.

Man, ain't that a doozy of flags to pick from! How are we supposed to pick which one to use in Victoria 3? Well, good news there - we can use more than one flag! We got dynamic flags triggered by script!

russianflags.png

Any trigger which is valid for a country, like checking if a specific state is owned by the player or if a war is happening, can be used to trigger a different flag in the game. We've used that to spice up flag varieties in different situations - for example, a united Scandinavian monarchy has a different flag depending on whether the Danes are in charge or not:

scandinavia.png

Spicy! And that's on top of just using the usual checks like governments, the number of states in a country, and so forth - right, yes, you probably want to see the stars in the American flag, don't you? I know I do. They do change based on the number of states in the Union.

I can taste the freedom.
freedom.png

There's even some unique flags for when one country becomes the puppet of another. In some cases, a generic "oh no I am a puppet now" design is used for the puppeted country's flag with the "master" country's flag inserted as a canton in the upper-left corner of the puppeted country's flag, while in other cases a wholly unique flag is made for a particular combination of puppeteer and puppet.

puppeteer and puppet.png

There's also a sort of fallback system, to provide flags for every polity even if we can't really settle on one particular design, or if they're feisty dynamic rebels, or what-have-you. Flags can be randomly generated, with particular triggers set so some flag elements only appear if a tag is of a particular culture, religion, or ideology, among other things.

randomflags.png

And, for the modders out there, it shouldn't be difficult for you folks to put together more flags if you want (and of course you want to make more flags, right?) - we use a system similar to the one Crusader King 3 uses for its coats of arms. France's default flag is a simple example of how the system works:

Code:
FRA = {
    pattern = "pattern_solid.tga"
    color1 = "blue"

    colored_emblem = {
        texture = "ce_tricolor_vertical.dds"
        color1 = "white"
        color2 = "red"
    }
}

All that's going on there is that a plain blue field is set as the background, and then a single graphical element with the central third and right third of the tricolor as colorable sections is slapped on top, with white and red respectively added in there to make a nice and tidy blue-white-red tricolore. Magnifique!

And to plug that bad boy into the game, all you need is a little scripting in another file that goes a little something like this:

Code:
FRA = { # France
    flag_definition = {
        coa = FRA
        subject_canton = FRA
        allow_overlord_canton = yes
        coa_with_overlord_canton = FRA_subject        
        priority = 1
    }
    flag_definition = {
        coa = FRA
        subject_canton = FRA
        allow_overlord_canton = yes        
        overlord_canton_scale = { 0.337 0.337 }            
        priority = 10
        trigger = { 
            coa_def_republic_flag_trigger = yes
        }
    }
    [And so forth. Find more flags by playing the game!]    
}

You can create as many flag definitions as you like, and you can plug the same flag design into multiple definitions or make a unique one for every definition if you want to go insane scripting it all up. Triggers are straightforward to plug in (and you can script generic triggers if you don't want to write the same combination of checks over and over again). If you want to mod flags, there's a delightful amount of flexibility with this system.

So there you have it! We got flags. We got lots of flags! We got randomized combinations of flags that go on for days! You could script more flags if you really want to poke at the game's innards! Flags.

Now, as we march towards the Holiday season, the dev diaries are taking a bit of a break. We will be back in January with a brand new topic in our first dev diary for 2022. Happy Holidays and a Happy New Year!
 
  • 256Like
  • 170Love
  • 20
  • 4
  • 2Haha
  • 1
Reactions:
Any chance we could get the British Republican flag as it existed from the early 19th to mid 20th centuries?
Unless something has changed since I last worked on this, that tricolour is the standard British republican flag used in V3. The Cromwell-esque banner shown in the teaser was specifically for a British republic under more dictatorial circumstances.
 
  • 30Like
  • 17Love
  • 13
Reactions:
Unless something has changed since I last worked on this, that tricolour is the standard British republican flag used in V3. The Cromwell-esque banner shown in the teaser was specifically for a British republic under more dictatorial circumstances.
That is the case, yeah. The flag of Oliver Cromwell, Lord Protector of England (Puritan! Born in 1599 and died in 1658 September! etc.), is the dictatorial republican flag, sans escutcheon, while the Chartist tricolor is still the democratic republican flag.
 
  • 25
  • 15Like
  • 4Love
  • 2Haha
Reactions:
Oh hey, here's another quick question: do the emblems / coats of arms of dynamic subject state flags change depending on any factors? Like if Britain was a communist country and puppeted Spain would Spain still use that coat of arms or would it change to something more suitably non-monarchist? Is it moddable?
 
  • 1
Reactions:
You know I'm right. The US should have the ability to have 1000 states incorporated without having its flag screwed up.

View attachment 786795

Way ahead of you. We just need a different symbol. I've got a version where the Nato compass and a star for every continent and ocean are in the canton on my personal computer.
 
  • 2Haha
Reactions:
Interesting diary, questions and answers.

Last diary we saw Portugal with a "wrong" flag, the John V's Flag, which was used by Miguelist followers instead of the Blue-White Liberal Flag. Can flags change not only because of regime changes but different types of same regime (absolutist vs liberal or different dynasties).

Also guess we can have some flags being the same for different regimes?. Things like white-blue-red russian as monarchist since 1890s but also as republican or the French tricolour for Orleanist/Bonapartis France but also for Republic.
 
  • 1
Reactions:
Like if Britain was a communist country and puppeted Spain would Spain still use that coat of arms or would it change to something more suitably non-monarchist?
I assume that Spain's main flag would continue to reflect its own governance. If it's a monarchy that just happens to be subject to Communist Britain, it would use the royal coat of arms. If Britain decides to export a little revolution and forces Spain to adopt a different governing model, then the flag would change to suit it.
 
  • 1Like
Reactions:
also a little heraldic style WYSIWYG flag designer with automated space splitters, insertable heraldic devices that can switch colors.. like a gold cross on purple.. or just a plain grey flag with a black lozenge (used that for many rpg knights and houses or variations). black-puple split right-left and a design in the mddle whether grey,white or something lozenge or trident.

Later, yeah. Making game not fancy extras. But some day.. hahaha!

Could prove useful as a inhouse tool tho if it does not already exist. ;)
 
  • 1
Reactions:
Also guess we can have some flags being the same for different regimes?
Yes. Forget the rigid V2 system where there are 4 regimes and 4 flags.

In V3 some flags are very general and some are very specific. France for example can use the tricolour whether they are monarchist or republican, but maybe a particularly absolutist monarchy would adopt the ancient fleury banner.
 
  • 32Love
  • 18Like
  • 5
Reactions:
I have a few questions.

1) is there a maximum number of US States that could get representation
2) Would the scandinavian principle also go for Germany? Different flags depending on who does it?
 
  • 1
  • 1Like
Reactions:
Hey hey, what about a Spanish puppeted UK
I suppose not a canton as that was not used in Spain, what we know Spain used was:
1) Spanish Flag in most colonies.
2) Burgundy Cross with Local CoAs in Cross Borders (Pre-V3 Colonial Flags).
3) There was an unofficial flag of Cuba and one of Puerto Rico, but can't say they should be used as model other than for them.

Most possibly if Spain had given Flags to their African Colonies would have done the same as Portugal, using Spanish Flag base with Local CoAs.
 
I already suspected this would be the case, judging by the improvements you had made to the flags in HoI 4, but this is still a delight to read. This will be almost as great to witness as the actual mechanics of the game.
 
Spicy! And that's on top of just using the usual checks like governments, the number of states in a country, and so forth - right, yes, you probably want to see the stars in the American flag, don't you? I know I do. They do change based on the number of states in the Union.

So, question. Let's say the US reaches, idk, 38 states. They have a 38 star flag.

Now, Mexico comes in and thrashes them in a war, and drops them back down to 35. Will they go back down to 35 stars, or keep a 38 star flag as a refusal to acknowledge that loss and/or commemorate it? Since I can see it going either way. That is, are the US flag flags (heh) pegged to the current state count, or maximum historically achieved state count?

I suppose also, will the player be able to choose if they want to reject a possible flag change, at least in certain possible outcomes where it makes sense? ie, if there is a Scandinavian flag for a republic and one for a Danish-led monarchy, and what you have is a Danish-dominated republic, then do you pick between the both or does it automatically pick one (probably the republic in this hypothetical, I'd imagine)? Another case of this might be if you hit the US star maximum but add another state, can you pick between staying at that limit or just having one big star?
 
  • 3Like
  • 1
Reactions: