ai_strategy values suddenly stop working? (possible bug?)

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

FoxDie24

Corporal
15 Badges
Apr 10, 2019
31
25
  • Europa Universalis IV
  • Cities: Skylines
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron III
This is related to a bug report I made:


Basically, the values for role_ratio for Battleships and Battlecruisers and unit_ratio for capital ships just stop working for no reason. (For what I've tested)

So I was playing around with debug mode and ai_strategy view and noticed something: It's not only role_ratios for ships, but also other strategy values?

I made a mod that makes Germany reject Italy's request to join the war until the Benelux has fallen (a dont_join_wars_with strategy), and I noticed that the values for the strategy were gone despite the strategy being active. And I know it was a bug because when I reloaded the save everything was fine.

So I make this post asking if anyone else has experienced or seen this bug or it's just something that happens to me.
 
  • 5
Reactions:

stjern

Major
11 Badges
Mar 28, 2016
794
266
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
This is related to a bug report I made:


Basically, the values for role_ratio for Battleships and Battlecruisers and unit_ratio for capital ships just stop working for no reason. (For what I've tested)

So I was playing around with debug mode and ai_strategy view and noticed something: It's not only role_ratios for ships, but also other strategy values?

I made a mod that makes Germany reject Italy's request to join the war until the Benelux has fallen (a dont_join_wars_with strategy), and I noticed that the values for the strategy were gone despite the strategy being active. And I know it was a bug because when I reloaded the save everything was fine.

So I make this post asking if anyone else has experienced or seen this bug or it's just something that happens to me.
Hi, the ai strategies are not properly aborted/enabled. Its a very old known issue that we hope paradox will fix one day.

example: if the abort condition checks if a tech or a focus has NOT been completed, it will never properly evaluate until you reload the save.
I know its frustrating but there are workarounds you just have to test that each ai strategy you add actually works, paradox probably doesnt have the programmers that understood this part of the code anymore.
 
  • 4
Reactions:

FoxDie24

Corporal
15 Badges
Apr 10, 2019
31
25
  • Europa Universalis IV
  • Cities: Skylines
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron III
Hi, the ai strategies are not properly aborted/enabled. Its a very old known issue that we hope paradox will fix one day.

example: if the abort condition checks if a tech or a focus has NOT been completed, it will never properly evaluate until you reload the save.
I know its frustrating but there are workarounds you just have to test that each ai strategy you add actually works, paradox probably doesnt have the programmers that understood this part of the code anymore.
I made a mod that increases the role_ratio for Battleships and Battlecruisers for the Major powers and I need to constantly reload the game every half a year because of this.

I don't remember the game being so bad bug wise before. I don't know, probably because I didn't pay that much atention before.

I feel that ever since Dan Lind left, the quality of the game has been going down. They keep adding these new systems to the game instead of refining the ones that already exist (just look at the supply system)
 
  • 1
Reactions:

stjern

Major
11 Badges
Mar 28, 2016
794
266
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
I made a mod that increases the role_ratio for Battleships and Battlecruisers for the Major powers and I need to constantly reload the game every half a year because of this.

I don't remember the game being so bad bug wise before. I don't know, probably because I didn't pay that much atention before.

I feel that ever since Dan Lind left, the quality of the game has been going down. They keep adding these new systems to the game instead of refining the ones that already exist (just look at the supply system)
You need to change the abort conditions until they evaluate at Runtime rather than only at reload. I know its incredibly frustrating.
 
  • 2
Reactions:

FoxDie24

Corporal
15 Badges
Apr 10, 2019
31
25
  • Europa Universalis IV
  • Cities: Skylines
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron III
You need to change the abort conditions until they evaluate at Runtime rather than only at reload. I know its incredibly frustrating.
Can you elaborate on that?

I think this bug goes beyond any workaround. I tried adding the strategies as flat values ( by an add_ai_strategy command ) and still doesn't work, the same bug happens. If it's a problem with the abort conditions, adding the strategies as flat values should solve it, right?

...right?
 
Last edited: