HOI4 Dev Diary - We're back! (and 1.4.2 patch)

Hi everyone! The HOI team is now back after recharging batteries on summer vacation (although yet again I failed to go visit the submarine museum in Kiel :().
We decided to start our time off with a little patch (Oak 1.4.2) since there were still a bunch of things we wanted to deal with for which there was no time before summer.

Here is changelog:
Code:
######################################
###########  Hotfix 1.4.2 "Oak" ###########
#####################################

##################################
# AI
##################################
- Added AI strategy to avoid some naval strategic regions
- AI now realises that puppets will also join the war when their overlord does ( fixes situation where China does not put any troops on their border with Japan's puppets )
- AI should now prefer even shorter naval routes when picking what ports to navally transfer between
- Nations with low manpower are now less likely to burn pp on relation boosting as they need it for laws
- AI should be less likely to waste PP on guarantees when low on manpower and at war
- Removed AI weight modifier is_in_faction from JAP axis leaning focus
- Tweaked ai weights for carrier plane research. AI will now always research the most modern carrier version available and not research any carrier planes if they don't have carriers, the US and Japan will also be more eager to research carrier planes and particularly so when at war with each other
- Tweaked AT gun research to take enemy armor values into account (AI will be more willing to research AT upgrades if facing an enemy with high armor divisions)
- AI will no longer research basic heavy tanks if it can already research improved heavy tanks
- AI now clears the trades that are not being fulfilled due to having no access to trade country
- Italy should now be more careful about transports across the Med
- Enemies of UK will now be wary of transporting through the english channel

##################################
# Modding
##################################
- Can now use "relation" as target for pp_spend_priority ai strategy
- Can now use "guarantee" as target for pp_spend_priority ai strategy

##################################
# Database
##################################
- Added flavor names for German named fighter squadrons
- Added namelist for FAA squadrons in the 800-list
- Added a number of shipnames to the German roster (thanks davewolf!)
- Added Night Witches to the Soviet “Women in Aviation” focus
- Added German historic airwing names after player feedback
- New icons for Italian small arms and truck
- New icons for French infantry weapons (prime condition, only dropped once)
- Added a flavor name for a Yugoslavian light cruiser class
- New leader portraits for Yemen, Haiti, Malaysia, Luxembourg, Indonesia/Dutch East Indies, El Salvador, Buthan, Cuba, Panama, Dominican Republic, Netherlands (alternative)
- Commonwealth leaders now fallback on British portraits if TfV is not activated

##################################
# Audio
##################################
- Adjusted volume on some of the airplane sound effects

##################################
# Balance
##################################
- First level Radar now have a much longer range to make initial investment more attractive
- Expanded bypass criteria for puppet Bulgaria focus to allow focus to bypass if Romania holds all of Bulgaria in a war
- Albania should now not fold to Italian pressure if in a faction with Yugoslavia
- Added bypass to anschluss if AUS is a puppet
- Turkey will now only join the Axis through the German focus if they are fascist.
- Anschluss event now takes guarantees into account
- Lowered upgrade bonus to self propelled AA variants air attack from 30% per level to 15%
- Changed Demand Sudetenland focus to fire fallback event if England is a subject
- Changed South Tyrol to be a core of Austria
- Nerfed CZE fascism gain through focus by 50%
- Reduced starting fascism in CZE to 5% (down from 25%)
- Fixed wrong tech bonus in a Romanian focus
- A country that initiates coup on an another country gets a bonus while inviting revolting country to its faction

##################################
# Bugfix
##################################
- Fixed an issue where frontlines could sometimes dissapear
- It is now ok to transfer resources from your territories through subjects at war time
- Fixed issue where declaring war on a puppet could pull the puppet into an existing war on the wrong side of the war
- Subjects are now added to a faction if their master is
- Convoys used for naval transfers are no longer locked in a state of being permanently "in use" when saving/loading while navally transferring
- Fixed issue where merged wars made it impossible to surrender because you were not marked as war leader
- License production description now updates properly
- Fixed bug where division size affected how much attrition they took and how their supply status was affected by being out of supply
- Fixed a bug where volunteers could appear in an impassible area
- Fix for incorrect use of has_government = fascist/communist instead of fascism/communism
- Fixed a horrific bordergore issue in Romanian "Split CZE" focus
- Ensured that split CZE event chain did not result in CZE units sitting around after their country got annexed
- Doing the Indian focus "Battaglione Azad Hindoustan" should now fire the proper event for Italy rather than give them the option to collect money for the RAF
- Cheating on the Austria-Hungary Referendum and going with the annexation should no longer report that Hitler was assassinated. (the proper news event should fire instead)
- France now joins the Czech entente if they decide to support the Czechs and Czechs have their own faction
- Fixed a wrong tag in URG loc string
- Fixed Italy Befriend Bulgaria strategy not requiring Bulgaria to exist
- Reenabled Vichy France cosmetic tag in a cynical move to squeeze out a tiny bit of profit
- Fixed an event firing several times for Romania
- Fixed an issue with continuous naval/air production idea not being localised
- Fixed a situation that could cause an infinite loop of naval transports
- Made game several times less fun ( Fixed an exploit with nukes persisting after loading or starting new game )
- Design companies should no longer be lost when loading and older savegame in a new version (from next patch update on, it wont work with older sadly)

##################################
# Stability
##################################
- Fixed a division by zero CTD in airmissions when aircraft are fighting missiles
- Fixed various rare CTDs

As usual for patches between DLC releases we put them in public beta first. I snuck this one up yesterday and it was updated with some extra fixes today. If you want to test it out in beta you can find out how here. If all looks ok we may update live tomorrow evening (earliest), or on monday.

Looking over changelog list you'll notice how we have again added more portraits for free. This is part of our ongoing project to make sure all starting nations have unique portraits and its not that much left now either. I expect us to have accomplished it by 1.5 hopefully! Here are the portraits that were added:
portraits.png


We have also been working at an old and very difficult AI problem. The classic where Italy ships troops to Germany to help out (often from africa) leading to slaughter as they go through the channel. Our solution for 1.4.2 is specifically to deal with issues in the channel and the Mediterranean and works by us highlighting particularly dangerous areas to AI. Whenever AI needs to transport through such an area to reach another front and danger is high enough it will instead use those troops somewhere else. So for example Italy would leave troops in africa and fight on those fronts rather than get them killed moving to more high priority fronts. Long term we want to come up with a dynamic solution for this that doesnt need us pointing our danger to the AI and ways it can adapt its strategies based on this. AI however is always a work in progress for improvements and I think we have made a good step forward for a more competent transportation AI.

For today's World War Wednesday stream we are going to try something different: A massive co-op game where each general in germany is a different player on the dev team and me and Daniel run the government. Its going to get interesting so tune in at 16:00CEST on https://www.twitch.tv/paradoxinteractive!

See you next week for another diary!
 
Last edited:

podcat

Game Director
Super Moderator
12 Badges
Jul 23, 2007
12.777
38.039
  • 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
I was hoping the new DLC would be hinted at or even announced :-/ Running on empty with only DoD and TFV after all this time.

We have worked about one week since we released Death or Dishonor + made 1.4.1 patch for it. And we spent this week making 1.4.2. Its much too early to spill the beans on next DLC already :D We need to at least do some of the features in it.
 

hiddengearz

Colonel
45 Badges
Nov 12, 2013
925
356
  • Crusader Kings II: Legacy of Rome
  • Stellaris - Path to Destruction bundle
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
  • Europa Universalis IV
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
@podcat @SteelVolt Great to have you guys back! It's always nice to have new AI strategies but one of the main issues with AI strategies in my opinion right now is that it isn't dynamic.

All of the AI strategies face the same problem that the new AI strategy to avoid naval regions face. You have to manually script everything, for everyone, for every possible scenario. Which is a bit ridiculous.

@Cold Evil from the MD4 team has resorted to making a script that repeats the same AI strategy for every country to solve this exact issue and we end up with 1000s of lines of code to solve something that could be solved if we could use dynamic targets for AI strategies like THIS, ROOT, FROM and etc.

For example

Code:
enable = { #This works
        any_country = { is_in_faction_with = USA }
    }
    abort = { #This works
        NOT = { is_in_faction_with = USA }
    }
    ai_strategy = {
        type = ALLIANCE
        id = this #This doesn't works
        value = 25
    }

Do you think this would be possible in the near future?
 

podcat

Game Director
Super Moderator
12 Badges
Jul 23, 2007
12.777
38.039
  • 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
So how do we get to see Colijn's portrait in game? :D

He is the neutral leader for now, consider it future proofing though for a nation in need of some special events

upload_2017-8-16_15-28-45.png

You guys are wierd sometimes....
 

podcat

Game Director
Super Moderator
12 Badges
Jul 23, 2007
12.777
38.039
  • 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
@Cold Evil from the MD4 team has resorted to making a script that repeats the same AI strategy for every country to solve this exact issue and we end up with 1000s of lines of code to solve something that could be solved if we could use dynamic targets for AI strategies like THIS, ROOT, FROM and etc.

For example
<snip>

Do you think this would be possible in the near future?

probably yea, its something we ourselves really want to have
 

grandad1982

Field Marshal
102 Badges
May 1, 2012
3.513
4.706
  • Sengoku
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis IV: Third Rome
  • Knights of Pen and Paper +1 Edition
  • March of the Eagles
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Crusader Kings II
  • Sword of the Stars
  • Europa Universalis IV: Cossacks
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • For the Motherland
  • Cities in Motion 2
  • 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
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Stellaris
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Battle for Bosporus
  • Europa Universalis IV
I'm not sure it's that wierd podcat. I think that people where expecting more, regardless of whether you've been back to produce more or not.

I'm not sure what others or even I was expecting in this dev diary but that doesn't stop people from feeling disappointed.

Hopefully next week will be more of an indication of what 1.5 will be about, even if it's not specifics.