Hearts of Iron IV update 1.12.8 is now available to download on PC, Ps4, PS5, and Xbox one. According to the official Hearts of Iron IV patch notes, the latest update 1.12.8 addresses some bugs and crashes.
Previously, a major update 1.12.8 added new changes, fixes, and gameplay improvements.
Unfortunately, players are still experiencing several issues since the release. Today’s Hearts of Iron IV version 1.12.8 will fix a few of these issues.
Check out more details below.
Hearts of Iron IV Patch 1.12.8 Notes – January 25, 2023
Bugfix
##################################
- In unit history file, if a mod tries to create a ship for a country that does not have the required tech, do not create the ship
Hotfix Information
We have seen a spike in crashes when playing with certain mods since the January patch 1.12.8. This hotfix addresses the issue in code.
However, the root cause is found in script, and some less severe errors will still result from it. Modders will need to update their scripting to fully resolve the issue.
In 1.12.8 the default behavior of the effect create_equipment_variant changed. By default, when the effect executes, if the equipment type specified in the effect has not yet been unlocked/researched, the variant will not be created. Instead creation is delayed and will occur first when the tech is acquired.
When researching a hull, chassis or airframe you get a variant representing the naked hull, chassis or airframe. This variant needs to be the first one created of its type. Otherwise it will cause errors later on. This is why we changed the default behavior of create_equipment_variant.
Unfortunately, this means that you cannot depend on create_equipment_variant to always create the variant (by default). For example, if you create a jet fighter variant, and then refer to that variant when executing add_to_stockpile, you might be in trouble. You likely want to add a precondition to only do this if the country has the required tech.
Additionally, when using create_equipment_variant in your history files to set up the initial game state, you want to make sure that you unlock techs before creating variants. You should see any issues in the error log when starting a new game.
Alternatively, you can add allow_without_tech=yes in create_equipment_variant to have the effect behave as it did before 1.12.8. This should be ok to do for non-modular equipment types, e.g. ships if MTG is deactivated (or NSB for tanks, or BBA for planes), since these types don’t have any hull, chassis or airframe variant.