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

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
Hello everyone, I hope you are enjoying playing Heart of Darkness. I thought I should do a little dev diary for our modding community and to highlight new things. Naselus of Pop Demand Mod fame and all-around nice guy did a little modder review of the game already here if someone wants more reading after my diary.

The two biggest new areas that are moddable are the new battle plans and the newspaper system.

Battle plans
All you need to start modding this system is referenced from battleplans\bp_settings.txt. It lets you add new drawing tools and icons if you want to add more ways of drawing plans or add more colors.

Newspapers
The newspaper system has extensive support for modding. Its a bit too big to explain in detail here, so if you are interested check out this post where I uploaded documentation for it.
You can not add new article types except for the basic ones (AI likes/dislikes/fears, peace/war, battle, crisis, decisions, goods, inventions, rebels, events and "fakes"). The last two are the ones you can use if you want to add something like a new type. By using events you can set up complex triggers, and fake articles also let you set up triggers and make chains of articles so you can write a series with follow-up articles.
Adding new paper headlines is also pretty easy. You need to make a new picture, or edit one we included and then script in where it should be used. Here is an example for how the communist paper is selected for France (from news_layout.txt)
Code:
case =    {
    trigger = { 
        or = {
            and = {
                is_culture_group = french 
                ruling_party_ideology = communist
            }
            and = {
                civilized = no
                part_of_sphere = yes

                sphere_owner = {
                    is_culture_group = french 
                    ruling_party_ideology = communist
                }
            }
            and = {
                civilized = no
                is_vassal = yes

                overlord = {
                    is_culture_group = french 
                    ruling_party_ideology = communist
                }
            }                    
        }
    }
    picture = "news/FRA_communist_newspaper_title.dds"
}

AI control
We have added a ton of defines that let modders control the AI for things like peace deals and other stuff. To give you an idea here are most of the ones that affect the peace AI:
Code:
PEACE_BASE_RELUCTANCE = 20, -- AI base stubbornness to refuse peace (always applied)
PEACE_TIME_MONTHS = 30, -- months of additional AI stubbornness in a war
PEACE_TIME_FACTOR = 0.6, -- after months of stubbornness the effect of time passed is multiplied by this
PEACE_TIME_FACTOR_NO_GOALS = 2.0, -- this extra time factor is applied after PEACE_TIME_FACTOR if we have no war goals
PEACE_WAR_EXHAUSTION_FACTOR = 0.5, -- AI willingness to peace based on war exhaustion
PEACE_WAR_DIRECTION_FACTOR = 1.0, -- AI willingness to peace based on who's making gains in the war
PEACE_WAR_DIRECTION_WINNING_MULT = 5.0, -- Multiplies AI emphasis on war direction if it's the one making gains
PEACE_FORCE_BALANCE_FACTOR = 0.3, -- AI willingness to peace based on strength estimation of both sides
PEACE_ALLY_BASE_RELUCTANCE_MULT = 2.0, -- Multiplies PEACE_BASE_RELUCTANCE for allies in a war
PEACE_ALLY_TIME_MULT = 1.0, -- Multiplies PEACE_TIME_FACTOR for allies in a war
PEACE_ALLY_WAR_EXHAUSTION_MULT = 1.0, -- Multiplies PEACE_WAR_EXHAUSTION_FACTOR for allies in a war
PEACE_ALLY_WAR_DIRECTION_MULT = 0, -- Multiplies PEACE_WAR_DIRECTION_FACTOR for allies in a war
PEACE_ALLY_FORCE_BALANCE_MULT = 0, -- Multiplies PEACE_FORCE_BALANCE_FACTOR for allies in a war

Colonial system
The new colony system isn't as moddable as the rest but there are despite this a lot of values to tweak. Everything about point generation can be changed and buildings can be scripted for how they generate points. Naval bases for example have this, letting you set per-level gains:
Code:
colonial_points = { 30 50 70 90 110 130 } #points at levels 1-6

Factories
We have got two things here that are moddable. First of all the AI will now reserve slots for advanced factories for the end game, this is done through buildings.txt by marking factories with "advanced_factory = yes". In Heart of Darkness factories get local bonuses from being in areas where their input goods are available. This is fully scriptable like so:
Code:
liquor_distillery = {       
    template = cheap_factory_template
    input_goods = {        
        grain = 5
        glass = 4
    }
    output_goods = liquor 
    value = 5

    # bonus if we have glass or grain!
    bonus = {
        trigger = { has_building = glass_factory } 
        value = 0.15
    }
    bonus = {
        trigger = { trade_goods_in_state = grain }
        value = 0.1
    }
}

War
Units have new stats, particularly ships that can be tweaked. You will find all other values concerning combat easily modifiable in defines.lua as well such as NAVAL_COMBAT_SELF_DEFENCE_CHANCE which decides how ships select targets. The new ticking warscore system is also moddable and you can now tweak wargoals to gain ticks from combat by adding tws_battle_factor to them and there is a new peace option 'po_remove_cores' that works when conquering to remove core claims.

There is also a lot more new stuff in defines to mod: mobilization speed, colonies, more naval combat things, RGO hiring rate, AI fleet sizes, crises, siege and recon effect and ratios, so dig in and hopefully we'll see some cool mods in the future!


3.02 Patch
Since I know people will ask, patch development is going well and we will have a public beta out soon(tm). 3.02 will also add a few more modding things, one which is the ability to base newspaper articles around major country decisions. We also have a whole bunch of new defines that let modders control stuff.

There will be a post-mortem diary in the future where I will be talking more patch details and general stuff about the project, so look forward to that!

ps.

Victoria II: Heart of Darkness Developer Diary Archive:
http://forum.paradoxplaza.com/forum...-II-Heart-of-Darkness-Developer-Diary-Archive

Victoria II: Heart of Darkness Interviews & Reviews
http://forum.paradoxplaza.com/forum...a-II-Heart-of-Darkness-Interviews-amp-Reviews


[video=youtube;DqWwJjRhb30]http://www.youtube.com/watch?v=DqWwJjRhb30[/video]
 
Last edited by a moderator:

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
For trademark. The word "soon" is jokingly trademarked by Blizzard (and other game developers have adopted the phrase).

The joke is that "soon" has a very broad definition. Somewhere between a couple days and a couple years (or more).

here it means pretty soon though (tm) :)
 

balooooooo

First Lieutenant
66 Badges
Mar 26, 2008
261
25
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron Anthology
  • Europa Universalis III Complete
  • Iron Cross
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Heir to the Throne
  • Sengoku
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Pre-order
  • Stellaris: Galaxy Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Call to arms event
  • Arsenal of Democracy
  • Cities in Motion
  • 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
  • Commander: Conquest of the Americas
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Stellaris: Galaxy Edition
  • Divine Wind
  • Europa Universalis III
  • East India Company
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • 500k Club
  • Hearts of Iron IV: Expansion Pass
  • Victoria 2
  • Rise of Prussia
  • Crusader Kings II: Way of Life
For trademark. The word "soon" is jokingly trademarked by Blizzard (and other game developers have adopted the phrase).

The joke is that "soon" has a very broad definition. Somewhere between a couple days and a couple years (or more).

Oh I see. Excellent. Thank you Podcat.
 

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory

DBtotalwar

Graf von Minden
7 Badges
Sep 18, 2011
822
4
  • Hearts of Iron III
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • 500k Club
  • Mount & Blade: Warband
Can you add a way to rename ships and brigades like armies and navies in the patch? Pretty please :p
 

ashandresash

Funk to funky
131 Badges
Jul 29, 2008
2.776
4.350
  • 200k Club
  • 500k Club
  • BATTLETECH - Digital Deluxe Edition
  • Age of Wonders: Planetfall Premium edition
  • Hearts of Iron II: Armageddon
  • Deus Vult
  • Victoria: Revolutions
  • Hearts of Iron III: Their Finest Hour
  • Rome Gold
  • Europa Universalis III: Chronicles
  • Victoria 2: Heart of Darkness
  • Sengoku
  • March of the Eagles
  • Crusader Kings II: Holy Fury
  • Europa Universalis 4: Emperor
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 3 Sign Up
Wow, awesome. Good news to modders (and overall, mod users :) ).

Good to know there'll be a post-mortem DD. I really like this idea, of giving some insight of the game production process, as well as incoming things. Very pleasant, all of it.
 

Schubert 24

Private
46 Badges
Feb 9, 2010
18
0
  • Crusader Kings II
  • Europa Universalis III
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • March of the Eagles
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Cadet
  • Sengoku
  • Europa Universalis III Complete
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
any word on whether the "catch and release" problem with dominions is solved? In general right now it`s smarter to hold on to your colonies with coastal provinces b/c if you build the port improvements that will outweigh the upkeep costs.
 

Syphus

Major
10 Badges
Nov 22, 2006
519
4
  • Crusader Kings II
  • Magicka
  • Teleglitch: Die More Edition
  • Cities: Skylines
  • Magicka: Wizard Wars Founder Wizard
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
For trademark. The word "soon" is jokingly trademarked by Blizzard (and other game developers have adopted the phrase).

The joke is that "soon" has a very broad definition. Somewhere between a couple days and a couple years (or more).

In a completely unnecesarry post, I'm pretty sure "Soon" started to come from Valve first. I first remember hearing the joke in '97 or '98, and I don't think it was ever used surrounding Diablo II.
 

DominusNovus

Field Marshal
86 Badges
Oct 2, 2007
7.622
7.048
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines Deluxe Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Res Publica
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Rajas of India
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis: Rome
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • Europa Universalis IV
  • Stellaris: Necroids
In what file are all the colonial point variables found? Also, can you increase the number of points needed for various levels of colonial investment?
 

Closet Skeleton

Field Marshal
52 Badges
Aug 8, 2011
2.503
498
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Crusader Kings II
  • King Arthur II
  • Crusader Kings II: Charlemagne
  • Semper Fi
  • Sengoku
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Pillars of Eternity
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Conquest of Paradise
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Rise of Prussia
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
In a completely unnecesarry post, I'm pretty sure "Soon" started to come from Valve first. I first remember hearing the joke in '97 or '98, and I don't think it was ever used surrounding Diablo II.

Blizzard have been dragging out development times for years longer than Valve. Half-Life wasn't even released until 98. Now that they're 15 years ago 94 and 98 kind of run together but Blizzard had a reputation first. Half-Life 2 wasn't even announced until 2003 and the delays began.