Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to the pathfinder settings #502

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions maps/biter_battles_v2/ai.lua
Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions maps/biter_battles_v2/init.lua
Expand Up @@ -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
clifffrey marked this conversation as resolved.
Show resolved Hide resolved
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
clifffrey marked this conversation as resolved.
Show resolved Hide resolved
game.map_settings.path_finder.short_cache_min_algo_steps_to_cache = 20
game.map_settings.path_finder.long_cache_min_cacheable_distance = 100
clifffrey marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down