Skip to content

Commit

Permalink
Merge pull request #188 from Kaiserreich/master
Browse files Browse the repository at this point in the history
CWTools hoi4 config maintenance update - May-June 2024
  • Loading branch information
Pelmen323 authored Jun 18, 2024
2 parents e71c4d6 + 8292776 commit ff2ad08
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 37 deletions.
1 change: 1 addition & 0 deletions Config/common/characters.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ enums = {
civilian
army
navy
operative
}
enum[character_portrait_sizes] = {
large
Expand Down
3 changes: 3 additions & 0 deletions Config/common/equipment.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ types = {
### All parent module slots will directly inherited with no modifications.
module_slots = inherit
}
subtype[railway_gun] = {
archetype = railway_gun_equipment
}
}
type[upgrade] = {
skip_root_key = upgrades
Expand Down
10 changes: 10 additions & 0 deletions Config/common/equipment_groups.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ equipment_group = {
enum[equipment_bonus_type]
## cardinality = 0..inf
<equipment_group>
## cardinality = 0..inf
enum[equipment_group_exceptions]
}
}

enums = {
enum[equipment_group_exceptions] = {
modern_tank_amphibious_chassis
super_heavy_tank_flame_chassis
modern_tank_flame_chassis
}
}
12 changes: 9 additions & 3 deletions Config/common/mio_policies.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,25 @@ mio_policy = {
equipment_bonus = {
## cardinality = 0..inf
enum[equipment_bonus_type] = {
## cardinality = ~1..inf
## cardinality = 0..inf
enum[equipment_stat] = variable_field
## cardinality = 0..inf
enum[production_stat] = variable_field
}
## cardinality = 0..inf
<equipment_group> = {
## cardinality = ~1..inf
## cardinality = 0..inf
enum[equipment_stat] = variable_field
## cardinality = 0..inf
enum[production_stat] = variable_field
}
### can use this keyword to apply to all equipments in departments of the attached MIO
## cardinality = 0..inf
same_as_mio = {
## cardinality = ~1..inf
## cardinality = 0..inf
enum[equipment_stat] = variable_field
## cardinality = 0..inf
enum[production_stat] = variable_field
}
}

Expand Down
3 changes: 3 additions & 0 deletions Config/common/scripted_guis.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ scripted_gui = {
## cardinality = 0..1
### Any GUI container name. Use only if parent_window_token doesn't have a corresponding token.
parent_window_name = <containerWindowType>_instance
## cardinality = 0..1
### Any GUI container name. Use only if parent_window_token doesn't have a corresponding token.
parent_window_name = value[containerWindowTypeChild]
## cardinality = 0..inf
### By default the scripted guis will update the gui with every gameplay change (every hourly tick. every time you click something that affects game etc). For large scripted guis this can become quite heavy. If you scripted gui is not updated regularly and you know when it will needs an update, you can use the dirty variable feature. dirty = var_name Once this is defined, the game will check if the value of variable named "var_name" is updated or not. It will only update the scripted gui if that value is changed. It will read the variable from the scope of the scripted gui (player scope or targeted scope etc). When you call an effect that will change the contents of a scripted gui, you can also call `add_to_variable = { var_name = 1 }` to change that dirty variable to retrigger and update on the interface
dirty = value_set[variable]
Expand Down
2 changes: 1 addition & 1 deletion Config/common/technologies.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ types = {
## replace_scope = { this = country root = country }
technology = {
## cardinality = 0..1
doctrine_name = localisation
doctrine_name = scalar

## cardinality = 0..1
show_equipment_icon = bool
Expand Down
10 changes: 5 additions & 5 deletions Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,8 @@ alias[effect:create_equipment_variant] = {
## cardinality = 0..1
allow_without_tech = bool
## cardinality = 0..1
show_position = bool
## cardinality = 0..1
upgrades = {
## cardinality = 0..inf
<upgrade> = int
Expand Down Expand Up @@ -2835,10 +2837,11 @@ alias[effect:clear_division_template_cap] = {
division_template = localisation_inline
}

### Set division template to allow force recruiting.
### Set division template to allow force recruiting. force_allow_recruiting defaults to true if unset
## scope = country
alias[effect:set_division_force_allow_recruiting] = {
division_template = localisation_inline
## cardinality = 0..1
force_allow_recruiting = bool
}

Expand Down Expand Up @@ -3472,10 +3475,7 @@ alias[effect:while_loop_effect] = {
### Meta effects can be used for building effects from strings and running them. following example will give Germany 42 pp.
## scope = any
alias[effect:meta_effect] = {
text = {
## cardinality = 1..inf
alias_name[effect] = alias_match_left[effect]
}
text = ignore_field
## cardinality = 1..inf
scalar = localisation
}
Expand Down
4 changes: 4 additions & 0 deletions Config/effects_bba.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,7 @@ alias[effect:remove_civil_war_target] = scope[country]

## scope = country
alias[effect:remove_civil_war_target] = enum[country_tags]

### Destroys the currently-scoped division.
## scope = unit
alias[effect:destroy_unit] = bool
17 changes: 10 additions & 7 deletions Config/effects_nsb.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ alias[effect:retire_character] = scope[character]
## scope = { character unit_leader }
alias[effect:set_character_name] = localisation
### renames character
## scope = { character unit_leader }
alias[effect:set_character_name] = <spriteType>
### renames character
## scope = { country character unit_leader }
alias[effect:set_character_name] = {
## cardinality = 0..1
Expand Down Expand Up @@ -829,7 +832,7 @@ alias[effect:force_update_map_mode] = {
### Create railway gun effect
## scope = { any }
alias[effect:create_railway_gun] = {
equipment = railway_gun_equipment_1
equipment = <equipment.railway_gun>
## cardinality = 0..1
name = localisation_inline
### optional, created in capital otherwise
Expand Down Expand Up @@ -939,20 +942,20 @@ alias[effect:generate_character] = {
## scope = any
alias[effect:create_entity] = {
entity = <entity>
## cardinality 0..1
## cardinality = 0..1
id = value_set[entity_id]
## cardinality 0..1
## cardinality = 0..1
var = value_set[variable]
x = float
y = float
## cardinality 0..1
## cardinality = 0..1
z = float
province = enum[provinces]
state = <state>
rotation = float
scale = float
min_zoom = float
## cardinality 0..1
## cardinality = 0..1
visible = <scripted_trigger>
}

Expand All @@ -970,7 +973,7 @@ alias[effect:set_entity_movement] = {
start = {
x = float
y = float
## cardinality 0..1
## cardinality = 0..1
z = float
}
target = {
Expand All @@ -987,7 +990,7 @@ alias[effect:set_entity_position ] = {
id = value[entity_id]
x = float
y = float
## cardinality 0..1
## cardinality = 0..1
z = float
province = enum
state = <state>
Expand Down
3 changes: 2 additions & 1 deletion Config/folders.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ interface
localisation
portraits
map
dlc
dlc
integrated_dlc
6 changes: 3 additions & 3 deletions Config/gfx/graphic_db.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ graphic_db = {
filepath[dlc/dlc017_original_soundtrack/]
## cardinality = 0..inf
## severity = hint
filepath[dlc/dlc018_together_for_victory/]
filepath[integrated_dlc/dlc018_together_for_victory/]
## cardinality = 0..inf
## severity = hint
filepath[dlc/dlc019_sabaton_vol2/]
## cardinality = 0..inf
## severity = hint
filepath[dlc/dlc020_death_or_dishonor/]
filepath[integrated_dlc/dlc020_death_or_dishonor/]
## cardinality = 0..inf
## severity = hint
filepath[dlc/dlc021_anniversary_pack/]
## cardinality = 0..inf
## severity = hint
filepath[dlc/dlc022_waking_the_tiger/]
filepath[integrated_dlc/dlc022_waking_the_tiger/]
## cardinality = 0..inf
## severity = hint
filepath[dlc/dlc023_man_the_guns/]
Expand Down
18 changes: 9 additions & 9 deletions Config/gfx/model_entities.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ types = {
path = "dlc/dlc014_wallpaper/gfx"
path = "dlc/dlc016_artbook/gfx"
path = "dlc/dlc017_original_soundtrack/gfx"
path = "dlc/dlc018_together_for_victory/gfx"
path = "integrated_dlc/dlc018_together_for_victory/gfx"
path = "dlc/dlc019_sabaton_vol2/gfx"
path = "dlc/dlc020_death_or_dishonor/gfx"
path = "integrated_dlc/dlc020_death_or_dishonor/gfx"
path = "dlc/dlc021_anniversary_pack/gfx"
path = "dlc/dlc022_waking_the_tiger/gfx"
path = "integrated_dlc/dlc022_waking_the_tiger/gfx"
path = "dlc/dlc023_man_the_guns/gfx"
path = "dlc/dlc024_man_the_guns_wallpaper/gfx"
path = "dlc/dlc025_axis_armor_pack/gfx"
Expand Down Expand Up @@ -64,11 +64,11 @@ types = {
path = "dlc/dlc014_wallpaper/gfx"
path = "dlc/dlc016_artbook/gfx"
path = "dlc/dlc017_original_soundtrack/gfx"
path = "dlc/dlc018_together_for_victory/gfx"
path = "integrated_dlc/dlc018_together_for_victory/gfx"
path = "dlc/dlc019_sabaton_vol2/gfx"
path = "dlc/dlc020_death_or_dishonor/gfx"
path = "integrated_dlc/dlc020_death_or_dishonor/gfx"
path = "dlc/dlc021_anniversary_pack/gfx"
path = "dlc/dlc022_waking_the_tiger/gfx"
path = "integrated_dlc/dlc022_waking_the_tiger/gfx"
path = "dlc/dlc023_man_the_guns/gfx"
path = "dlc/dlc024_man_the_guns_wallpaper/gfx"
path = "dlc/dlc025_axis_armor_pack/gfx"
Expand Down Expand Up @@ -109,11 +109,11 @@ types = {
path = "dlc/dlc014_wallpaper/gfx"
path = "dlc/dlc016_artbook/gfx"
path = "dlc/dlc017_original_soundtrack/gfx"
path = "dlc/dlc018_together_for_victory/gfx"
path = "integrated_dlc/dlc018_together_for_victory/gfx"
path = "dlc/dlc019_sabaton_vol2/gfx"
path = "dlc/dlc020_death_or_dishonor/gfx"
path = "integrated_dlc/dlc020_death_or_dishonor/gfx"
path = "dlc/dlc021_anniversary_pack/gfx"
path = "dlc/dlc022_waking_the_tiger/gfx"
path = "integrated_dlc/dlc022_waking_the_tiger/gfx"
path = "dlc/dlc023_man_the_guns/gfx"
path = "dlc/dlc024_man_the_guns_wallpaper/gfx"
path = "dlc/dlc025_axis_armor_pack/gfx"
Expand Down
6 changes: 3 additions & 3 deletions Config/interface/gfx.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ types = {
path = "dlc/dlc014_wallpaper/interface"
path = "dlc/dlc016_artbook/interface"
path = "dlc/dlc017_original_soundtrack/interface"
path = "dlc/dlc018_together_for_victory/interface"
path = "integrated_dlc/dlc018_together_for_victory/interface"
path = "dlc/dlc019_sabaton_vol2/interface"
path = "dlc/dlc020_death_or_dishonor/interface"
path = "integrated_dlc/dlc020_death_or_dishonor/interface"
path = "dlc/dlc021_anniversary_pack/interface"
path = "dlc/dlc022_waking_the_tiger/interface"
path = "integrated_dlc/dlc022_waking_the_tiger/interface"
path = "dlc/dlc023_man_the_guns/interface"
path = "dlc/dlc024_man_the_guns_wallpaper/interface"
path = "dlc/dlc025_axis_armor_pack/interface"
Expand Down
2 changes: 1 addition & 1 deletion Config/interface/gui.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ containerWindowType = {
}
###Container Window
alias[gui:containerWindowType] = {
name = scalar
name = value_set[containerWindowTypeChild]
## cardinality = 0..1
### Mouse Draggable
moveable = bool
Expand Down
10 changes: 10 additions & 0 deletions Config/on_actions.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ types = {
path = "game/common/on_actions"
skip_root_key = on_actions
}
## type_key_filter = on_force_government
type[on_force_government] = {
path = "game/common/on_actions"
skip_root_key = on_actions
}
## type_key_filter = on_liberate
type[on_liberate] = {
path = "game/common/on_actions"
Expand Down Expand Up @@ -703,6 +708,11 @@ on_action = {
## replace_scope = { THIS = country ROOT = country FROM = country }
on_puppet = single_alias_right[country_event_effect]

### Trigger the following commands whenever a country is forcing government change in a peace conference only. ROOT is the nation having the government changed, FROM is the overlord.
## cardinality = 0..inf
## replace_scope = { THIS = country ROOT = country FROM = country }
on_force_government = single_alias_right[country_event_effect]

### Trigger the following commands whenever a country is liberated in a peace conference only. ROOT is the nation being liberated, FROM is the leader of the liberators.
## cardinality = 0..inf
## replace_scope = { THIS = country ROOT = country FROM = country }
Expand Down
5 changes: 1 addition & 4 deletions Config/triggers.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -2173,10 +2173,7 @@ alias[trigger:casualties_k] = int
### Meta triggers can be used for building triggers from strings and running them. following example will test if Germany has 42 pp.
## scope = any
alias[trigger:meta_trigger] = {
text = {
## cardinality = 1..inf
alias_name[trigger] = alias_match_left[trigger]
}
text = ignore_field
## cardinality = 1..inf
scalar = localisation
}
Expand Down

0 comments on commit ff2ad08

Please sign in to comment.