Darkest Hour - Dev Diary #22 - Countries Release and Rebel Systems

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

^_AC_^

Field Marshal
83 Badges
Feb 24, 2009
5.692
327
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Knights of Pen and Paper +1 Edition
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Stellaris
  • War of the Roses
  • 500k Club
  • Stellaris Sign-up
  • Europa Universalis IV: El Dorado
  • Imperator: Rome Sign Up
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Cadet
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Green Cities
  • Prison Architect
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Imperator: Rome
  • Europa Universalis III Complete




Today, we’ll introduce to our the changes and improvements that we made to the countries release and rebel systems.

First of all, we got rid of some hard-coded limitations to the automatic release system:
  • all government types can release puppets (previously only Democracies were allowed to release countries);
  • puppets can be released at war too, but with reduced chance (previously that was allowed only in peace);
  • removed requirement that no Axis countries should exist;
  • fixed a bug preventing release of countries with Communist and Fascist intrinsic_gov_type (set in Revolt.txt). Such countries can be released from only by Communist and Fascist countries. Democratic countries (no intrinsic_gov_type set) can be released by any countries.
And then we started making a few changes:
  • AI can release as puppets only countries specified into its liberate list. Liberate chances are: 15% in peace, 10% in war, 5% for colonial countries;
  • removed dissent hit for the AI from country releasing;
  • only one country can be released at a time (checked every few days);
  • added new AI parameter – liberate_nation = { }. It is similar to liberate = { }, but determines which countries the AI is going to relieve from puppet status (give them independence);
These changes are optional, we've added a new parameter to misc.txt (“ai” section):
Code:
- Use new AI release rules – all countries can release puppets even when at war. 1 – Yes, 0 – No
Please note that now it is also possible to negotiate occupied, and not only owned provinces with your allies.

And now, let's take a closer look at revolt.txt. We've added a few useful parameters:
  • added countries list that can liberate that country (no other countries can liberate it): country = { TAG1 TAG2 … TAGx };
  • added a list of countries that prevent this country creation if any of those exist at the moment: NOT= { TAG1 TAG2 … TAGx };
  • added a parameter that prevent a country from being liberated (unless it revolts or is given independence by event): liberate = no;
  • added a list of claims that populates claimedprovinces list: claims = { PROV_ID …};
  • min = X: allows release if at least X provinces of minimum list are controlled by releaser country. By default (no entry or min = -1) it is equal to provinces in minimum list;
  • min_extra = X: allows release if at least X provinces of extra list are controlled by releaser country. By default (no min_ extra entry) it is 0;
  • value = X.X (0.0 – 1.25): used by the old release model (when no min or min_extra are defined). When “score” is above that value the country will be available for release. By default (no value) it is 0.51.

And now a few words about the country release logic. First of all, we kept the old release model which used a default score of 0.51. We've made this value moddable in revolt.txt and we've made a few change and bug fixes to improve this old release model:
  • new country capital is counted even if it is a core for the liberator (gives +25% chance for liberation);
  • non-controlled provinces can be used to trigger liberation even if all other provinces are cores for the liberator
  • a country will be available for liberation if it has at least 0.51 (can be changed in revolt.txt – see above) final score (claims, cores and current capital excluded). Capital province gives 0.25 and (available minimum provinces / total minimum) provinces gives the rest;
  • liberation takes into account liberator’s national and claimed provinces (these should not be transferred to the liberated country);
  • on liberation claimed by the new country provinces will be also seceded if these are not claims, cores or current capital of the liberator and if they are owned (not just occupied);
We decided to keep the old model for compatibility reasons, but we've also also introduced a new, more flexible model, based on the min and min_extra parameters that we added in revolt.txt.
  • if a country owns or occupies a province which is a core for one of its allies (and is not a core of a claim for the owner/occupier), it will automatically secede that province to its ally over time;
  • a country can be liberated if at least X provinces (where X is the min = X parameter set in revolt.txt) from it's minimum = {} list are owned or occupied;
  • no countries will be released if any of the provinces they need changed hands in the last XXX days (set in misc.txt);
  • if minimum list is empty, but extra is not, then extra list will be used in place of the minimum. Otherwise extra list is not used.
  • rebels still require all provinces in minimum = {…} list to be controlled by them to create the country and at least one province must be controlled for at least XXX days (set in misc.txt – this was hard-coded to 3 months);

We've also made quite a few changes to the rebel system. We've already introduced some of them before, but we're always working on this, so don't be surprised if we add a few more tweaks before the release. ;)
  • rebels army composition - chance for infantry over militia: 0 - only militia, 100 - only infantry, 50 - 50%/50% and so on (new modifiers in misc.txt - mods section);
  • rebels army tech level, based on the available model in the country that controls the province (new modifiers in misc.txt - mods section):
    • -1: only model 1
    • 0: only the Latest model
    • other positive values: random model in the range from (latest model - THIS) to (latest model);
    So, for example if the controlling country has infantry model 6 as its most advanced model and in misc.txt we set value 2, the rebel unit will be assigned a random model in the range 4 - 6 (from latest model minus 2 models to the latest model). We hope it's clear enough, please ask if you have doubts. :)
  • revolt risk is now tied to province manpower: introduced max base (unmodified) revolt risk (optional, set in misc.txt);
  • higher chance to rebel next to rebellious province;
  • occupied provinces have higher rebel chance too;
It might be worth to mention here that we also fixed a bug with lost air units on civil war outbreak (destroyed all air fleets located on revolted provinces): air units will now switch side on air base captured by revolted/regular ID countries.

In the first Dev. Diary, we said that Darkest Hour is a game by fans for the fans and that we wanted to stay true to the community. Well, this week we've seen a few posts that supported the idea that partisan activity should be dependent on the terrain type. We liked the idea and we decided to make this completely moddable, to let you adjust the values to your heart's content.
Here's the complete list modifiers related to rebels that we've added to misc.txt (“mods” section):
Code:
- Rebels army min. STR on creation: 1.0-100.0 – 100.0 #100.0
- Rebels army max. STR on creation: 1.0-100.0- 100.0 #100.0
- Rebels ORG regain (including when in combat) - 0.2 #0.2
- Extra bonus for rebelling for every rebel controlled neighboring province - 5 #0
- Extra bonus for rebelling for occupied enemy provinces - 5 #0
- Extra rebel bonus for mountain terrain - 0 #0
- Extra rebel bonus for hill terrain - 0 #0   
- Extra rebel bonus for forest terrain -    0 #0
- Extra rebel bonus for jungle terrain -   0 #0   
- Extra rebel bonus for swamp terrain - 0 #0   
- Extra rebel bonus for deserts - 0 #0
- Extra rebel bonus for plains terrain - 0 #0   
- Extra rebel bonus for urban provinces - 0 #0
- Extra rebel bonus for provinces with Air or Naval bases - 0 #0
- Return rebellious province to the original owner after X months if there are no rebel armies into the province anymore. - 30 #1000000 (never)


So, to sum up the content of this Development Diary, what you really need to know is:
  1. we do not need events anymore to recreate post-war countries, the automatic release of nations can take care of that on its own;
  2. rebels are stronger now (infantry, latest models, organization regain, revolts spreading to neighbouring provinces, etc.);
  3. all is 100% moddable and fully optional. as always;

See you next week!



 
Last edited:

the_legion

Colonel
68 Badges
Aug 8, 2009
948
194
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • The Kings Crusade
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Res Publica
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Heir to the Throne
  • Darkest Hour
  • Deus Vult
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Steel Division: Normandy 44
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Mandate of Heaven
  • 500k Club
  • War of the Roses
  • Victoria 2
  • Europa Universalis IV
In the first Dev. Diary, we said that Darkest Hour is a game by fans for the fans and that we wanted to stay true to the community. Well, this week we've seen a few posts that supported the idea that partisan activity should be dependent on the terrain type. We liked the idea and we decided to make this completely moddable, to let you adjust the values to your heart's content.
Here's the complete list modifiers related to rebels that we've added to misc.txt (“mods” section)
I love you.
 

Akaki

Wile E. Coyote, Genius
38 Badges
May 29, 2004
1.302
9
  • Age of Wonders III
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Magicka 2
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Golden Century
  • Surviving Mars: First Colony Edition
  • Hearts of Iron III: Their Finest Hour
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Cities in Motion 2
  • Hearts of Iron III Collection
  • Magicka
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
Just asking - will the player be able to easily mod other country, so it doesn't release any puppets? Let's say, I'm playing a succesful Soviet Union, defeating Germany early and so on, aiming for global domination and "creating republics" (roleplay) within Soviet Union. And then switch to USA to fight off the communist tide...
 

LeeDub

Cynical, withered husk of a man
111 Badges
Oct 1, 2008
1.395
1.071
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Magicka
  • Majesty 2
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Knights of Pen and Paper +1 Edition
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Crusader Kings II: Monks and Mystics
  • Pillars of Eternity
  • Tyranny - Tales from the Tiers
  • Stellaris: Galaxy Edition
  • For the Motherland
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Europa Universalis IV
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Hearts of Iron IV: No Step Back
  • Victoria 2
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
"Soviet Occupation Zone!" Somebody must do a WC with this thing. :D

This includes annexing the USSR. In Soviet Russia, Zones occupy YOU!
 

Fernando Torres

Darkest Hour Game Designer
48 Badges
Dec 2, 2006
10.182
39
rayan-nezzar.fr
  • Rome: Vae Victis
  • Penumbra - Black Plague
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • Victoria 2
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Elven Legacy Collection
  • Hearts of Iron II: Beta
  • Pride of Nations
  • Rise of Prussia
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Achtung Panzer
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • For The Glory
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • East India Company
  • East India Company Collection
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Arsenal of Democracy
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • Legio
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • March of the Eagles
Just asking - will the player be able to easily mod other country, so it doesn't release any puppets? Let's say, I'm playing a succesful Soviet Union, defeating Germany early and so on, aiming for global domination and "creating republics" (roleplay) within Soviet Union. And then switch to USA to fight off the communist tide...

As easy as to open a file with notepad, search for a specific line and remove it. :)
 
O

OneiricRose

Guest
This is just so awesome...YAY :D Can't wait to start my first game...SU by the time of the revolution, or if there's no scenario for that then WWI and revolution :p
 

Cybvep

Field Marshal
May 25, 2009
8.465
127
Less bugs, full moddability and improvements! This is great!

I have a question, though. Does the AI know how to garrison its provinces properly now? Can we expect no more HQs and ARMs guarding the cities and beaches?

BTW it seems that Japan still can't join the Axis without attacking the Soviet Union? :(
 

Akaki

Wile E. Coyote, Genius
38 Badges
May 29, 2004
1.302
9
  • Age of Wonders III
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Magicka 2
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Golden Century
  • Surviving Mars: First Colony Edition
  • Hearts of Iron III: Their Finest Hour
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Cities in Motion 2
  • Hearts of Iron III Collection
  • Magicka
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
I have a question, though. Does the AI know how to garrison its provinces properly now? Can we expect no more HQs and ARMs guarding the cities and beaches?

BTW it seems that Japan still can't join the Axis without attacking the Soviet Union? :(

I'd like to know that too. And another thing - how will the player be able to shape the borders of puppet states? By claiming the provinces I want to give someone else?
 

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.633
254
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
AI makes difference between unit types and tries to use units for the task they could perform best. Of course it is not flawless and not always do what an experienced player does, but I can assure you it tries to :p
Joke aside I haven noticed the AI using ARM for beach defense or amphib. assaults for example.

Claimed provinces are not given to allies or to released countries, so players can claim all provinces they want to keep and then release a puppet that gets the rest (assuming that those are at least equal to the min. required provinces).


Yes, all European countries have communist shadow countries. ;)
 

unmerged(82211)

Lt. General
2 Badges
Aug 14, 2007
1.613
2
  • Darkest Hour
  • Europa Universalis III Complete
Will we have more options of countries to release, beyond the default ones?
Let's say... European Union, Arab Federation, Assyria, Kashmir, Belize, São Paulo, Benelux, East Timor... just to name some...
 

Ferrim

Major
2 Badges
Feb 13, 2007
602
1
  • Darkest Hour
  • 500k Club
Who's the guy leading the USSR in the first picture? It looks like Julius Martov. If so, I guess there's some event that allows the player to give power to the Mensheviks, that's nice :) But maybe in 1917 it should be Soviet Russia? Or at least Russia with a red flag (I seem to remember that now a country's flag can be switched, but I'm not sure at the moment).
 

^_AC_^

Field Marshal
83 Badges
Feb 24, 2009
5.692
327
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Knights of Pen and Paper +1 Edition
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Stellaris
  • War of the Roses
  • 500k Club
  • Stellaris Sign-up
  • Europa Universalis IV: El Dorado
  • Imperator: Rome Sign Up
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Cadet
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Green Cities
  • Prison Architect
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Imperator: Rome
  • Europa Universalis III Complete

bosman

Major
17 Badges
Jan 30, 2009
750
52
  • Arsenal of Democracy
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • Magicka
  • Iron Cross
  • Hearts of Iron III
  • For the Motherland
  • Age of Wonders III
  • Hearts of Iron IV Sign-up
  • 500k Club
  • Victoria 2
  • For The Glory
  • Darkest Hour
  • Crusader Kings II
  • Victoria 2: A House Divided
Great stuff!
Although I have a feeling, that there is to many options, factors and commands and it all could be more simplified, I hope it will not affect performance too much, but rather provide max of HoI 2 experience.