Kaiserreich / Kaiserreich-4-Bug-Reports

Issue tracker for Kaiserreich for Hearts of Iron 4
110 stars 40 forks source link

SQI - Bomber focus causes persistent crashes #6321

Closed ReiVL closed 4 years ago

ReiVL commented 4 years ago

Quick questions OS: Win 10 HOI4 version: 1.8.1 Kaiserreich version: Dev 1/13 List any other mods used: KR music Were you using Steam? Yes Were you in multiplayer? No Checksum (four-letter code at the bottom of your title menu): 7e94 Which expansions do you NOT have?: The cosmetic ones

Explanation of the issue:

I was playing Tibet and the game crashed persistently on the 22nd. I went into the game log and checked this: game.log

[11:53:00][effectbase.cpp:1842]: 1:00, 21 June, 1938: Sardinia: add tech infantry_weapons2 [11:53:00][effectbase.cpp:1842]: 1:00, 21 June, 1938: Serbia: add tech support_weapons2 [11:53:00][effectbase.cpp:1842]: 1:00, 21 June, 1938: Princely Federation: add tech grand_battle_plan [11:53:00][effectbase.cpp:1842]: 1:00, 21 June, 1938: Armenia: add tech interwar_antiair [11:53:00][effectbase.cpp:1842]: 1:00, 21 June, 1938: Iran: add tech mechanical_computing [11:53:00][effectbase.cpp:1842]: 1:00, 21 June, 1938: Nationalist Chile: add tech computing_machine [11:53:01][effectbase.cpp:1842]: 5:00, 21 June, 1938: Russian Republic: event russia.2005 [11:53:01][effectbase.cpp:1842]: 14:00, 21 June, 1938: Sichuan Clique: Decision remove SZC_Anti_Smuggling_Measures [11:53:01][effectbase.cpp:1842]: 14:00, 21 June, 1938: Sichuan Clique: add idea SZC_opium_smuggling_2 [11:53:02][effectbase.cpp:1842]: 20:00, 21 June, 1938: Anqing: event anq.26 [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Commune of France: Focus FRA_department_revolutionary_ideals [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Iceland: add tech grand_battle_plan [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Ireland: Focus IRE_FRIENDS [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Union of South Africa: Focus SAF_nationalist_victory [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Union of South Africa: event saf.27 [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Socialist Republic of Italy: Focus SRI_reenforce_the_south [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: American Union State: add tech defence_in_depth [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: Galicia-Lodomeria: add tech interwar_antiair [11:53:02][effectbase.cpp:1842]: 1:00, 22 June, 1938: White Ruthenia: Focus WHR_censor_press [11:53:03][effectbase.cpp:1842]: 1:00, 22 June, 1938: Shandong Clique: Focus SQI_Purchasing_Bombers

The purchasing of bombers focus was recently edited. So I console annexed SQI as Qing (they were AuthDem anyway so no biggie would've happened anyway) and then I could play on. To further isolate it, I started a new game as Shandong and removed all focus checks and...

image

Don't even need to include a save file for this, just do this. Anyway!

The cause:

I figured out what it was. The focus gives you 25 Shandong tactical bombers, a unit type that doesn't exist in 1936 and likely not for years and years after because of their 2 research slots and land priority.

image image

I used research_on_icon_click to give the interwar bomber and tac I techs and...

image

There we go! Works wonders!

Possible solutions:

Give Shandong the tactical tech or have them get their bombers from a tag that has access to them.

Assigning Alp since OMD is on vacation and this needs an urgent fix.

ReiVL commented 4 years ago

Changed the title from what I originally had in mind since it's very avoidable if you're willing to tag switch and cheat to give Shandong some text in order to continue your game. 👍 Somehow I doubt AuthDem having interwar tac tech will break the balance of the game.

Alpinia commented 4 years ago

Fixed.