• 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.
Showing developer posts only. Show all posts in this thread.

KaiserJohan

Tech Lead Victoria 3
Paradox Staff
22 Badges
Sep 28, 2017
1.101
4.021
  • Europa Universalis IV
  • Europa Universalis IV: Mandate of Heaven
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
16_9 (9).jpg


Ave and welcome to another Dev Diary! Today I will be talking about how Battles work and what their consequences are. If you haven't already, I suggest you first read through the dev diary on Fronts and get acquainted with the concepts explained there.

Let's start off with a somewhat updated version of the Front panel. Do note that this is all still very much WIP and not all values are hooked in, balanced or polished. For example at the moment there are a lot more deaths in battles than there should be.

Who could’ve seen this war coming?

DD44 01.png


In order for a battle to happen one side must have at least one General with an Advance order. Once this happens an advancement meter will slowly start to fill up and once it’s full a new battle will be launched. Various factors can increase or decrease the time it takes.

When the battle is created a sequence of actions unfolds before the fighting begins. All of these are in script and can be tweaked by mods as desired.
  • The attacker picks their leading General
  • The defender picks their leading General
  • The battle province is determined along the frontline
  • The attacker determines the number of units they can bring
  • The defender determines the number of units they can bring
  • Both sides selects their units
While there can be several Generals on the Front, only one is selected for each side in a Battle. They are not limited to selecting their own units and so may borrow additional ones from other Generals or the local Garrisons.

In addition each side randomizes a Battle Condition which provides bonuses (or penalties) to their units similar to Combat Tactics in Hearts of Iron 4. Unlike HOI4 though these are fixed for the duration of the battle. For example a General with the Engineer trait has a higher chance of selecting the “Dug In” Battle Condition which provides defensive modifiers.

Königgrätz anyone?
DD44 02.png


Now the shooting (and dying) finally starts! The battle takes place over a number of rounds and will continue until one side is either wiped out or retreats. The round sequence is roughly as follows:
  • Each side determines how many fighting-capable men it still has
  • Each side inflicts casualties on the other side
  • Each side attempts to recover wounded casualties
  • Each side also suffers morale damage according to casualties
  • If one side is wiped or retreats, the battle ends

Units have two primary combat values: Offense is used when attacking and Defense is used when defending. It is wise to plan ahead and specialize your armies for the war you are planning to fight. There are of course a whole bunch of additional modifiers used in conjunction with battles.

Crack open the fortress of Liège!
DD44 03.png


Casualties are determined by both sheer numbers and the relative combat stats between the two sides. For example a numerically inferior force equipped with more modern weapons may still emerge victorious against a larger foe.

When a side takes casualties it is randomly distributed amongst its units with some caveats.
Each unit has a majority culture depending on the pops in its barracks and casualties are applied roughly in proportion to unit culture. So with 4 French/1 Flemish units fighting on the same side the French will take roughly 80% of the casualties.

Not all pops who take casualties will end up dead though. A portion of these may instead end up as Dependents of other pops. After a long bloody war a nation may thus end up with a large number of wounded war-veterans who need to be supported by the rest of the population. In the long term this may be a cause of unrest and financial strain on the economy.

Morale damage is inflicted in proportion to the casualties and will slowly recover over time outside of battles presuming the units are in good supply.

One step closer to Unification
DD44 04.png


After the battle is over two things will happen:

A number of provinces are Captured depending on how decisive the victory was, unit characteristics, Generals, etc. This will alter the frontline and the winner will occupy those provinces until retaken or the end of the war.
A victorious defender will only take back land that was previously lost to the enemy while a victorious attacker will push into enemy land and take control of more provinces owing to their aggressive posture.

Devastation is also inflicted on the State in which the battle was fought. Large, brutal battles waged with modern weaponry will increase the devastation caused. It reduces infrastructure and building throughput, increases mortality and causes emigration. These effects persist after the war and will take quite some time to recover.

That’s it for this week! Next week we switch over to the political battlefield and discuss Elections! *ducks back into the trenches*
 
Last edited by a moderator:
  • 237Like
  • 124
  • 46
  • 29Love
  • 10
  • 4Haha
Reactions:
This comment has been reserved by the community team to gather up dev responses in for ease of reading.

Great work!

But please consider naming battles after cities rather than states. As even the caption "Königgratz anyone?" recognizes, names like "Battle of Nanjing" are much more flavorful than "Battle of North Zhejiang".

Yeah, that's pretty much a no-brainer, you're right.
Now the only challenge is to see if @KaiserJohan approves of my code...

View attachment 833266

I dont like the flames when zoomed-in.

Placeholder graphics; this DD was written ~a month ago, it's different now

A few questions


  1. Borrowing from local garrisons make sense, but how does borrowing from other generals along a front work? On the Fronts DD it was said that fronts weren't split except by natural barriers (oceans, non-involved nations, etc.).
    1. With the US Civil war example, does this mean my general in along the Mississippi can borrow troops from Virginia? Am I required to have infrastructure to connect provinces to facilitate this or do they teleport around the front? What happens if there are battles in short succession along the front, what criteria prevents/allows for barrowing troops.
  2. Its not super clear from the DD but what does a player do outside of selecting generals? Are players determining the amount of troops to bring, or is that the AI (general)?

Somewhat worried that this may be overly passive mechanic from a player perspective.

1. As long as the other generals are stationed at the front and not in battle their units may be borrowed like the garrisons.
2. Beyond giving the generals their orders the movements of the front & battles is largely automated.

I have two questions:
1. Will general borrow units up to his command limit or beyond it?
2. Is there a difference in combat effectiveness between units under generals and garrisoned (borrowed) ones?

1. Yes that may happen (there are alot of factors that goes into determining the size of the battle; for example a larger front tends to create larger battles)
2. Yes only troops under the generals direct command will inherit his commander modifiers
 
  • 20
  • 5Like
  • 2
Reactions:
Great work!

But please consider naming battles after cities rather than states. As even the caption "Königgratz anyone?" recognizes, names like "Battle of Nanjing" are much more flavorful than "Battle of North Zhejiang".
Yeah, that's pretty much a no-brainer, you're right.
Now the only challenge is to see if @KaiserJohan approves of my code...

1651166171340.png
 
  • 75Like
  • 34Love
  • 3
  • 3
  • 1Haha
  • 1
Reactions:
I have a couple questions about casualties:
  1. Is there some way to see how many of the casualties have become dependents? They aren't specifically listed on the battle screen, as far as I can tell, but perhaps they should be.
  2. Is the fact that these battles all have several times more dead than wounded part of the WIP nature of the screenshots? If not, I think it should be. In the real world, battles tend to have several times more wounded than dead. Somehow I completely missed the part where this was mentioned as a known issue. My bad!
I believe it's in the tooltip
I dont like the flames when zoomed-in.
Placeholder graphics; this DD was written ~a month ago, it's different now

A few questions


  1. Borrowing from local garrisons make sense, but how does borrowing from other generals along a front work? On the Fronts DD it was said that fronts weren't split except by natural barriers (oceans, non-involved nations, etc.).
    1. With the US Civil war example, does this mean my general in along the Mississippi can borrow troops from Virginia? Am I required to have infrastructure to connect provinces to facilitate this or do they teleport around the front? What happens if there are battles in short succession along the front, what criteria prevents/allows for barrowing troops.
  2. Its not super clear from the DD but what does a player do outside of selecting generals? Are players determining the amount of troops to bring, or is that the AI (general)?

Somewhat worried that this may be overly passive mechanic from a player perspective.
1. As long as the other generals are stationed at the front and not in battle their units may be borrowed like the garrisons.
2. Beyond giving the generals their orders the movements of the front & battles is largely automated.

I have two questions:
1. Will general borrow units up to his command limit or beyond it?
2. Is there a difference in combat effectiveness between units under generals and garrisoned (borrowed) ones?
1. Yes that may happen (there are alot of factors that goes into determining the size of the battle; for example a larger front tends to create larger battles)
2. Yes only troops under the generals direct command will inherit his commander modifiers
 
  • 38
  • 22Like
  • 2
  • 1Love
  • 1
Reactions: