From 529b5d8ea283f53614413c7c4d3a7f4783c090b9 Mon Sep 17 00:00:00 2001 From: ness056 Date: Fri, 3 May 2024 18:17:52 +0200 Subject: [PATCH] Changes to the pathfinder settings --- maps/biter_battles_v2/ai.lua | 1 + maps/biter_battles_v2/init.lua | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/maps/biter_battles_v2/ai.lua b/maps/biter_battles_v2/ai.lua index 523e4d1a..55325c5d 100644 --- a/maps/biter_battles_v2/ai.lua +++ b/maps/biter_battles_v2/ai.lua @@ -238,6 +238,7 @@ local function create_attack_group(surface, force_name, biter_force_name) local unit_group_boss = surface.create_unit_group({position = unit_group_position, force = boss_force_name}) for _, unit in pairs(units) do + unit.ai_settings.path_resolution_modifier = -1 if unit.force.name == boss_force_name then unit_group_boss.add_member(unit) else diff --git a/maps/biter_battles_v2/init.lua b/maps/biter_battles_v2/init.lua index 148b693a..1b724f0b 100644 --- a/maps/biter_battles_v2/init.lua +++ b/maps/biter_battles_v2/init.lua @@ -47,10 +47,13 @@ function Public.initial_setup() game.map_settings.path_finder.fwd2bwd_ratio = 2 game.map_settings.path_finder.goal_pressure_ratio = 3 - game.map_settings.path_finder.short_cache_size = 30 + game.map_settings.path_finder.general_entity_collision_penalty = 3 + game.map_settings.path_finder.general_entity_subsequent_collision_penalty = 0 + game.map_settings.path_finder.short_cache_size = 500 game.map_settings.path_finder.long_cache_size = 50 - game.map_settings.path_finder.short_cache_min_cacheable_distance = 8 - game.map_settings.path_finder.long_cache_min_cacheable_distance = 60 + game.map_settings.path_finder.short_cache_min_cacheable_distance = 12 + game.map_settings.path_finder.short_cache_min_algo_steps_to_cache = 20 + game.map_settings.path_finder.long_cache_min_cacheable_distance = 100 game.map_settings.path_finder.max_clients_to_accept_any_new_request = 4 game.map_settings.path_finder.max_clients_to_accept_short_new_request = 150 game.map_settings.path_finder.start_to_goal_cost_multiplier_to_terminate_path_find = 10000