Skip to content

Commit

Permalink
Pre-Open Beta 0.17.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolferos committed Jan 27, 2022
1 parent f6a081e commit 198fa0f
Show file tree
Hide file tree
Showing 708 changed files with 1,336 additions and 1,524 deletions.
2 changes: 1 addition & 1 deletion mod/TheGreatWar.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ tags={
}
picture="tgw_picture.png"
version="0.17.3"
supported_version="1.11.4"
supported_version="1.11.5"
remote_file_id="699709023"
Empty file.
45 changes: 0 additions & 45 deletions mod/thegreatwar/common/continuous_focus/generic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,51 +168,6 @@ continuous_focus_palette = {
available_if_capitulated = yes
}

focus = {
id = continuous_tech_share

icon = GFX_goal_continuous_research

available = {
hidden_trigger = { has_dlc = "Together for Victory" }

}

enable = {
is_in_faction = yes
num_faction_members > 1

custom_trigger_tooltip = {
tooltip = NO_OTHER_SHARING_GROUPS
OR = {
AND = {
is_in_tech_sharing_group = continuous_tech_share
num_tech_sharing_groups < 2
}
num_tech_sharing_groups < 1
}
}
}

select_effect = {
add_to_tech_sharing_group = continuous_tech_share
}

cancel_effect = {
remove_from_tech_sharing_group = continuous_tech_share
}

ai_will_do = {
factor = 0
}

supports_ai_strategy = ai_focus_military_advancements

daily_cost = 1

available_if_capitulated = yes
}

focus = {
id = continuous_boost_freedom

Expand Down
20 changes: 7 additions & 13 deletions mod/thegreatwar/common/defines/00_defines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,8 @@ NAI = {
MAX_MICRO_ATTACKS_PER_ORDER = 3, -- AI goes through its orders and checks if there are situations to take advantage of
FALLBACK_LOSING_FACTOR = 1.0, -- The lower this number, the longer the AI will hold the line before sending them to the fallback line
PRODUCTION_MAX_PROGRESS_TO_SWITCH_NAVAL = 0.1, -- AI will not replace ships being built by newer types if progress is above this
PRODUCTION_WAIT_TO_FINISH_IF_EXPENSIVE = 0.25, -- If produced item is expensive (producing less than one/week), wait to finish item if progress is above this
PRODUCTION_WAIT_TO_FINISH_IF_CHEAP = 0.75, -- If produced item is cheap (producing more than one/week), wait to finish item if progress is above this
STATE_CONTROL_FOR_AREA_DEFENSE = 0.4, -- To avoid AI sending area defense to area with very little foothold
FORCE_FACTOR_AGAINST_EXTRA_MINOR = 0.15, -- AI considers generating wargoals against minors below this % of force compared to themselves to get at a bigger enemy.
MAX_EXTRA_WARGOAL_GENERATION = 2, -- AI may want to generate wargoals against weak minors to get at larger enemy, but never more that this at any given time.
Expand Down Expand Up @@ -2267,9 +2269,6 @@ NAI = {
MIN_FIELD_STRENGTH_TO_BUILD_UNITS = 0.7, -- Cancel unit production if below this to get resources out to units in the field
MIN_MANPOWER_TO_BUILD_UNITS = 0.7, -- Cancel unit production if below this to get resources out to units in the field

SUBJECT_SUPPLY_RATIO_FOR_UNIT_PRODUCTION = 0.2, -- supply ratio of subject supply chunks will be added to our own supply chunks (since we will fight around subjects as well) modified by produce_unit_for_subject_supply_chunks strat
ALLY_SUPPLY_RATIO_FOR_UNIT_PRODUCTION = 0.00, -- supply ratio of ally supply chunks will be added to our own supply chunks (since we will fight around allies as well) modified by produce_unit_for_ally_supply_chunks strat

AVERAGE_SUPPLY_USE_PESSIMISM = 1.5, -- Multiplier for when AI calculates average supply use of entire army.

REQUEST_LEND_LEASE_PROTECT_VALUE = 75, -- Limit for protect enemy desire for reducing lend lease desire
Expand Down Expand Up @@ -2404,6 +2403,7 @@ NAI = {
ENEMY_FORTIFICATION_FACTOR_FOR_FRONT_REQUESTS = 2.0, -- front unit request factor at max enemy fortification
ENEMY_FORTIFICATION_FACTOR_FOR_FRONT_REQUESTS_MAX = 0.7, -- max factor that can be added by enemy fortification

MANPOWER_RATIO_CAREFULNESS_THRESHOLD = 0.05, -- if manpower ratio (available/used-by-army) is less than this, start being more careful with plan execution (i.e. don't throw your men into the meat grinder if you're running out of manpower)

PLAN_ACTIVATION_SUPERIORITY_AGGRO = 1.0, -- How aggressive a country is in activating a plan based on how superiour their force is.
WAIT_YEARS_BEFORE_FREER_BUILDING = 3, -- The AI will skip considering certain buildings during the buildup phase, after htese many years it starts building them regardless of threat.
Expand Down Expand Up @@ -2457,16 +2457,6 @@ NAI = {
MIN_CAPITALS_FOR_CARRIER_TASKFORCE = 10, -- carrier fleets will at least have this amount of capitals
CAPITALS_TO_CARRIER_RATIO = 1.5, -- capital to carrier count in carrier taskfoces
SCREENS_TO_CAPITAL_RATIO = 4.0, -- screens to capital/carrier count in carrier & capital taskforces

MIN_MAIN_SHIP_RATIO = 0.3, -- if main ship ratio is below this, steal other ships.
MIN_SUPPORT_SHIP_RATIO = 0.7, -- if support ship ratio is below this, steal other ships.
MIN_MAIN_SHIP_RATIO_TO_REINFORCE = 0.5, -- the main ships will be tried to reinforce this level.
MIN_SUPPORT_SHIP_RATIO_TO_REINFORCE = 0.9, -- the support ships will be tried to reinforce this level.
MIN_MAIN_SHIP_TO_SPARE = 0.7, -- can only steal ships from a task force if their main ship ratio is above this.
MIN_SUPPORT_SHIP_TO_SPARE = 1.0, -- can only steal ships from a task force if their support ship ratio is above this.
MIN_MAIN_SHIP_RATIO_TO_MERGE = 0.7, -- try merge task force if main ship ratio is lower than this.
MAX_MAIN_SHIP_RATIO_TO_MERGE = 1.001, -- if resulting main ship ratio would be at most this, allow merging into this task force.
MAIN_SHIP_RATIO_TO_SPLIT = 1.8, -- if main ship ratio in a task force is larger than this, split it. (If a carrier TF wants 4 carriers (see defines above), but it has more than [this * 4] carriers, then we try to split the TF.)

MIN_MAIN_SHIP_RATIO = 0.3, -- if main ship ratio is below this, steal other ships.
MIN_SUPPORT_SHIP_RATIO = 0.7, -- if support ship ratio is below this, steal other ships.
Expand Down Expand Up @@ -2661,6 +2651,10 @@ NAI = {
NAVAL_INVADED_AREA_PRIO_MULT = 1.2, -- fronts that belongs to recent invasions gets more prio
MIN_NUM_CONQUERED_PROVINCES_TO_DEPRIO_NAVAL_INVADED_FRONTS = 20, -- if you conquer this amount of provinces after a naval invasion, it will lose its prio status and will act as a regular front

FAILED_INVASION_AVOID_DURATION = 135, -- after a failed invasion, AI will down-prioritize invading the same area again for this number of days
FAILED_INVASION_AREA_PRIO_FACTOR = 0.5, -- for every failed invasion on an area, factor that area's invasion prio with this value
FAILED_INVASION_PORT_PRIO_FACTOR = 0.66, -- for every failed invasion on a target port (province), factor the chance that we try to invade that same port again (relative to other ports)

BUILDING_TARGETS_BUILDING_PRIORITIES = { -- buildings in order of pirority when considering building targets strategies. First has the greatest priority, omitted has the lowest. NOTE: not all buildings are supported by building targets strategies.
'industrial_complex',
},
Expand Down
12 changes: 0 additions & 12 deletions mod/thegreatwar/common/on_actions/01_tfv_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,6 @@ on_actions = {
}
}

#Add to commonwealth tech group
if = {
limit = {
OR = {
has_autonomy_state = autonomy_colony
has_autonomy_state = autonomy_dominion
}
OVERLORD = { is_in_tech_sharing_group = commonwealth_research }
}
add_to_tech_sharing_group = commonwealth_research
}

if = {
limit = {
tag = RAJ
Expand Down
2 changes: 1 addition & 1 deletion mod/thegreatwar/common/units/artillery.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub_units = {
active = yes
affects_speed = no
type = { infantry support }
need = { light_field_gun_equipment = 24 }
need = { artillery_equipment = 24 }
categories = { category_support_battalions
category_army
category_artillery
Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/common/units/artillery_brigade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sub_units = {
active = yes
type = {infantry
artillery }
need = { light_field_gun_equipment=36 }
need = { artillery_equipment=36 }
categories = { category_army
category_line_artillery
category_artillery
Expand Down Expand Up @@ -58,7 +58,7 @@ sub_units = {
transport = motorized_equipment
manpower = 500
need = {
light_field_gun_equipment = 36
artillery_equipment = 36
motorized_equipment = 35
}

Expand Down
2 changes: 1 addition & 1 deletion mod/thegreatwar/descriptor.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ tags={
}
picture="tgw_picture.png"
version="0.17.3"
supported_version="1.11.4"
supported_version="1.11.5"
remote_file_id="699709023"
Binary file modified mod/thegreatwar/gfx/interface/logo_game.dds
Binary file not shown.
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/1-France.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ state = {
add_core_of = FRA
victory_points = { 3838 1 }
buildings = {
infrastructure = 4
infrastructure=3
industrial_complex = 1
air_base = 1
3838 = { naval_base = 3 }
}
}

buildings = {
infrastructure = 4
infrastructure=3
industrial_complex = 2
3838 = { naval_base = 3 }
}
Expand Down
16 changes: 2 additions & 14 deletions mod/thegreatwar/history/states/10-Poland.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,10 @@ state = {
history={
victory_points={ 3544 20 }
owner=RUS
#add_core_of=POL
add_core_of=RUS
1936.1.1={
owner=POL
#add_core_of=POL
victory_points={ 3544 20 }
buildings={
infrastructure=7
industrial_complex=2
air_base=5
arms_factory=6
anti_air_building=2
}
}

buildings={
infrastructure=7
infrastructure=4
industrial_complex=2
air_base=1
arms_factory=1
Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/102-Slovenia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ state = {
9627 3
}
buildings = {
infrastructure = 6
infrastructure=4
}
}
buildings = {
infrastructure = 6
infrastructure=4
}

1919.1.1 = {
Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/103-Croatia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ state = {
add_core_of=CRO
victory_points={ 3924 1 }
buildings={
infrastructure=5
infrastructure=3
industrial_complex=3
dockyard=1
3924={ naval_base=3 }
6889={ naval_base=1 }
}
}
buildings={
infrastructure=5
infrastructure=3
industrial_complex=0
dockyard=2
3924={ naval_base=3 }
Expand Down
2 changes: 1 addition & 1 deletion mod/thegreatwar/history/states/104-Bosnia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ state = {
owner=AUH
}
buildings={
infrastructure=5
infrastructure=3
industrial_complex=1
}

Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/105-Montenegro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ state = {
owner=YUG
add_core_of=YUG
buildings={
infrastructure=3
infrastructure=2
industrial_complex=1
9809={ naval_base=1 }
}
}
buildings={
infrastructure=5
infrastructure=3
industrial_complex=1
arms_factory=1
9809={ naval_base=1 }
Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/106-Macedonia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ state = {
add_core_of=YUG
victory_points={ 3882 1 }
buildings={
infrastructure=4
infrastructure=3
industrial_complex=1
air_base=2
}
}
buildings={
infrastructure=4
infrastructure=3
industrial_complex=1
}

Expand Down
25 changes: 8 additions & 17 deletions mod/thegreatwar/history/states/107-Kosavo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,23 @@ state = {
provinces={ 797 3609 3956 3984 6634 9599 11583 11586 }
resources={
wood=8
}
}

history={
victory_points={ 11586 15 }
owner=SER
#add_core_of=YUG

add_core_of=SER
1936.1.1={
owner=YUG
add_core_of=YUG
add_core_of=SER
victory_points={ 11586 15 }
buildings={
infrastructure=6
industrial_complex=4
air_base=5
arms_factory=3
}
}

buildings={
infrastructure=6
infrastructure=4
industrial_complex=4
arms_factory=3
}
}

1919.1.1 = {
owner = YUG
add_core_of = YUG
}
}
}
}
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/108-Eastern Serbia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ state = {
add_core_of=YUG
add_core_of=SER
buildings={
infrastructure=4
infrastructure=3
arms_factory=2
industrial_complex=2
}
}
buildings={
infrastructure=4
infrastructure=3
arms_factory=2
industrial_complex=2
}
Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/109-Eastern Croatia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ state = {
11581 3
}
buildings = {
infrastructure = 6
infrastructure=4
industrial_complex = 3
}
}
buildings = {
infrastructure = 6
infrastructure=4
industrial_complex = 2
}

Expand Down
4 changes: 2 additions & 2 deletions mod/thegreatwar/history/states/11-Kaunas.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ state = {
6296 5
}
buildings = {
infrastructure = 5
infrastructure=3
industrial_complex = 3
air_base = 4
arms_factory = 1
}
}
buildings = {
infrastructure = 5
infrastructure=3
industrial_complex = 1

6296 = {
Expand Down
2 changes: 1 addition & 1 deletion mod/thegreatwar/history/states/110-Norway.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ state = {
owner=NOR
add_core_of=NOR
buildings={
infrastructure=6
infrastructure=4
industrial_complex=3
arms_factory=1
dockyard=1
Expand Down
Loading

0 comments on commit 198fa0f

Please sign in to comment.