Skip to content

Commit 69c0108

Browse files
authored
1.16 support (#1723)
* Update supported HoI4 version * Update province mappings * Update modified files through /common/dynamic_modifiers * Update modifier files through /common * Finalize blank_mod update * Blank new country specific files * Update configurables * Fix landmarks overriding state naval bases * Clean up error log * Update HPM province mappings * Update PDM province mappings * Clean up error log * Fix SufficientDivisionsConvert test * Fix ConfigurationTests for Windows style paths on Linux * Remove a stray semicolon * Roll version * Add banner * Update common_items to avoid recursive error * Update common_items
1 parent 4e497d5 commit 69c0108

File tree

114 files changed

+3420
-1442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+3420
-1442
lines changed

.github/workflows/windows_build_test_and_push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
- name: "Prepare release"
4747
run: |
4848
cd "C:\Program Files\7-Zip\"
49-
.\7z.exe a $Env:GITHUB_WORKSPACE\Vic2ToHoI4-1.3Umberto-II-win-x64.zip $Env:GITHUB_WORKSPACE\build\Release\*
49+
.\7z.exe a $Env:GITHUB_WORKSPACE\Vic2ToHoI4-1.4Vasilevsky-win-x64.zip $Env:GITHUB_WORKSPACE\build\Release\*
5050
5151
- name: "Prepare installer"
5252
run: |
5353
c:\"Program Files (x86)\Inno Setup 6\iscc" Vic2ToHoI4-Installer.iss
54-
cp $Env:GITHUB_WORKSPACE\Output\Vic2ToHoI4-latest-win-x64.exe $Env:GITHUB_WORKSPACE\Output\Vic2ToHoI4-1.3Umberto-II-win-x64.exe
54+
cp $Env:GITHUB_WORKSPACE\Output\Vic2ToHoI4-latest-win-x64.exe $Env:GITHUB_WORKSPACE\Output\Vic2ToHoI4-1.4Vasilevsky-win-x64.exe
5555
5656
- name: "Upload binaries to release"
5757
if: ${{ github.event_name == 'push' }}
@@ -61,7 +61,7 @@ jobs:
6161
allowUpdates: true
6262
omitBodyDuringUpdate: true
6363
omitNameDuringUpdate: true
64-
artifacts: Vic2ToHoI4-1.3Umberto-II-win-x64.zip, Output\Vic2ToHoI4-1.3Umberto-II-win-x64.exe
64+
artifacts: Vic2ToHoI4-1.4Vasilevsky-win-x64.zip, Output\Vic2ToHoI4-1.4Vasilevsky-win-x64.exe
6565
token: ${{ secrets.API_TOKEN_GITHUB }}
6666

6767
- name: "Prepare pull request artifact"

Vic2ToHoI4-Installer.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "Vic2 to HoI4"
5-
#define MyAppVersion "1.3 Umberto II"
5+
#define MyAppVersion "1.4 Vasilevsky"
66
#define MyAppPublisher "Paradox Game Converters Group"
77
#define MyAppURL "https://paradoxgameconverters.com/"
88
#define MyAppExeName "ConverterFrontend.exe"

data/!provincenames_l_english.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12582,4 +12582,5 @@
1258212582
PROV13362:0 "Santa Elena de Uairén"
1258312583
PROV13363:0 "Kitega"
1258412584
PROV13364:0 "Nyanza"
12585-
PROV13365:0 "Nkamba"
12585+
PROV13365:0 "Nkamba"
12586+
PROV13369:0 "Khasab"

data/ReadMe.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Development version download: https://github.com/ParadoxGameConverters/Vic2ToHoI
1212
----
1313
REQUIREMENTS
1414
----
15-
HoI4 - 1.15
15+
HoI4 - 1.16
1616
V2 - HoD required
1717

1818

File renamed without changes.

data/blank_mod/common/abilities/generic_leader_abilities.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ ability = {
275275
allowed = {
276276
has_ability = extra_suplies
277277
is_border_war = no
278+
OWNER = {
279+
NOT = { has_country_flag = has_quinine }
280+
}
278281
}
279282

280283
unit_modifiers = {

data/blank_mod/common/ai_equipment/generic_tank.txt

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,3 +2409,89 @@ generic_amphibious_tanks = {
24092409
}
24102410
}
24112411
}
2412+
2413+
2414+
2415+
generic_land_cruiser_tanks = {
2416+
category = land
2417+
2418+
roles = {
2419+
land_mega_heavy_breakthrough_tank
2420+
}
2421+
2422+
priority = {
2423+
factor = 200
2424+
modifier = {
2425+
num_of_factories < 100
2426+
factor = 0
2427+
}
2428+
}
2429+
2430+
basic_land_cruiser_default = {
2431+
target_variant = {
2432+
match_value = 1000
2433+
type = land_cruiser_chassis_1
2434+
modules = {
2435+
lc_main_armament_slot = lc_heavy_naval_guns
2436+
lc_secondary_armament_slot = lc_medium_naval_guns
2437+
lc_special_features_slot_1 = lc_radio_module
2438+
lc_special_features_slot_2 = empty
2439+
lc_special_features_slot_3 = empty
2440+
lc_additional_armament_slot_1 = lc_heavy_naval_guns
2441+
lc_additional_armament_slot_2 = empty
2442+
lc_additional_armament_slot_3 = empty
2443+
lc_additional_armament_slot_4 = empty
2444+
}
2445+
upgrades = {
2446+
tank_nsb_engine_upgrade = 12
2447+
tank_nsb_armor_upgrade = {
2448+
base = 10
2449+
modifier = {
2450+
add = 5
2451+
has_war = yes
2452+
}
2453+
modifier = {
2454+
any_enemy_country = {
2455+
is_major = yes
2456+
}
2457+
add = 5
2458+
}
2459+
}
2460+
}
2461+
}
2462+
2463+
allowed_modules = {
2464+
2465+
lc_heavy_naval_guns
2466+
lc_super_heavy_railway_gun
2467+
lc_high_impact_obliterator_cannon
2468+
lc_heavy_anti_air_platform
2469+
lc_medium_naval_guns
2470+
lc_hull_mounted_railway_gun
2471+
lc_super_heavy_howitzer
2472+
lc_heavy_high_velocity_cannons
2473+
lc_heavy_anti_air_battery
2474+
lc_medium_cannon_turret
2475+
lc_assault_gun
2476+
lc_high_velocity_cannon_turret
2477+
lc_light_anti_air_battery
2478+
lc_flamethrower_turret
2479+
lc_rocket_launcher
2480+
lc_radio_1
2481+
lc_radio_2
2482+
lc_radio_3
2483+
lc_command_center
2484+
lc_radar
2485+
lc_aircraft_catapult
2486+
lc_helipad
2487+
lc_armored_skirts
2488+
lc_bunker_emplacement
2489+
lc_obstacle_clearance_gear
2490+
lc_internal_fuel_tanks
2491+
lc_internal_ammunition_compartments
2492+
lc_wet_ammunition_storage
2493+
lc_smoke_generators
2494+
lc_stabilizers
2495+
}
2496+
}
2497+
}

data/blank_mod/common/ai_strategy/RAJ.txt

Whitespace-only changes.

data/blank_mod/common/ai_strategy/SIA.txt

Whitespace-only changes.

data/blank_mod/common/ai_strategy/default.txt

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ default_unit_production = {
55
}
66
abort_when_not_enabled = yes
77

8+
# Land division factors
89
ai_strategy = {
910
type = role_ratio
1011
id = paratroopers
@@ -35,7 +36,7 @@ default_unit_production = {
3536
value = 80
3637
}
3738

38-
#Air unit factors
39+
# Air unit factors
3940
ai_strategy = {
4041
type = unit_ratio
4142
id = fighter
@@ -128,6 +129,33 @@ default_unit_production = {
128129
}
129130
}
130131

132+
default_unit_production_super_heavies = {
133+
enable = {
134+
is_major = yes
135+
num_of_military_factories > 150 # nly if we have loads of factories
136+
date > 1943.6.1 # Lets wait until late war
137+
NOT = { has_tech = main_battle_tank_chassis } # Abandon Super heavy projects if we start doing modern tanks instead
138+
}
139+
abort_when_not_enabled = yes
140+
ai_strategy = {
141+
type = role_ratio
142+
id = super_heavy_breakthrough_role
143+
value = 1
144+
}
145+
}
146+
147+
default_unit_production_land_cruiser = {
148+
enable = {
149+
is_special_project_completed = sp:sp_land_land_cruiser
150+
}
151+
abort_when_not_enabled = yes
152+
ai_strategy = {
153+
type = role_ratio
154+
id = mega_heavy_breakthrough_role
155+
value = 2
156+
}
157+
}
158+
131159
default_role_ratios = {
132160
enable = {
133161
not = {
@@ -305,7 +333,7 @@ bba_air_prod_1 = {
305333
id = cas
306334
value = 20 #because doctrine this = 15
307335
}
308-
336+
309337
ai_strategy = {
310338
type = unit_ratio
311339
id = naval_bomber
@@ -876,15 +904,15 @@ default_market_stockpile_management = {
876904
}
877905

878906
# Better not put all your boats up for sail
879-
ai_strategy = {
880-
type = equipment_market_for_sale_threshold
881-
id = convoy
882-
value = 100 # only start considering selling convoys if surplus more than 100
883-
}
907+
# ai_strategy = { # Commented because handled dynamically in code through the EQUIPMENT_MARKET_WANTED_CONVOY_USAGE_RATIO define
908+
# type = equipment_market_for_sale_threshold
909+
# id = convoy
910+
# value = 100 # only start considering selling convoys if surplus more than 100
911+
# }
884912
ai_strategy = {
885913
type = equipment_market_min_for_sale
886914
id = convoy
887-
value = 30 # only put up for sale in chunks of 5
915+
value = 20 # only put up for sale in chunks of 20
888916
}
889917

890918
# Don't let all your planes just fly out the window.
@@ -975,7 +1003,7 @@ default_market_convoy_purchases = {
9751003
ai_strategy = {
9761004
type = equipment_market_buying_threshold
9771005
id = convoy
978-
value = 30 # Consider buying if we have too few (less than 30) convoys
1006+
value = 30 # Consider buying if we have too few (less than 30) convoys. Also interacts with the EQUIPMENT_MARKET_WANTED_CONVOY_USAGE_RATIO define.
9791007
}
9801008
}
9811009

@@ -1437,10 +1465,10 @@ default_build_a_lw_facility = {
14371465

14381466
default_build_an_air_facility = {
14391467
enable = {
1440-
1468+
14411469
is_major = yes # Minors don't bother until strong enough to be considered major
1442-
num_of_military_factories > 40 # We should first build up our military industry
1443-
1470+
num_of_military_factories > 40 # We should first build up our military industry
1471+
14441472
OR = { # Don't start until we can build decent aircraft
14451473
has_tech = basic_small_airframe
14461474
has_tech = basic_medium_airframe
@@ -1561,7 +1589,7 @@ if_we_can_build_v1_rockets_we_want_rockets = {
15611589
abort_when_not_enabled = yes
15621590

15631591
ai_strategy = {
1564-
type = equipment_production_min_factories_archetype
1592+
type = equipment_production_min_factories_archetype
15651593
id = guided_missile_equipment
15661594
value = 1
15671595
}
@@ -1574,7 +1602,7 @@ if_we_can_build_v2_rockets_we_want_v2_rockets = {
15741602
abort_when_not_enabled = yes
15751603

15761604
ai_strategy = {
1577-
type = equipment_production_min_factories_archetype
1605+
type = equipment_production_min_factories_archetype
15781606
id = ballistic_missile_equipment
15791607
value = 1
15801608
}
@@ -1586,7 +1614,7 @@ if_we_can_build_sams_we_want_sams = {
15861614
abort_when_not_enabled = yes
15871615

15881616
ai_strategy = {
1589-
type = equipment_production_min_factories_archetype
1617+
type = equipment_production_min_factories_archetype
15901618
id = sam_missile_equipment
15911619
value = 1
15921620
}
@@ -1598,7 +1626,7 @@ if_we_can_build_nuclear_missiles_we_want_nuclear_missiles = {
15981626
abort_when_not_enabled = yes
15991627

16001628
ai_strategy = {
1601-
type = equipment_production_min_factories_archetype
1629+
type = equipment_production_min_factories_archetype
16021630
id = nuclear_missile_equipment
16031631
value = 1
16041632
}

0 commit comments

Comments
 (0)