Skip to content

Commit

Permalink
Merge pull request #217 from AresSC2/feat/tactical-grid
Browse files Browse the repository at this point in the history
feat: tactical grid
  • Loading branch information
raspersc2 authored Feb 17, 2025
2 parents e26133b + 6ae8199 commit 0bcc1bc
Show file tree
Hide file tree
Showing 9 changed files with 1,197 additions and 1,012 deletions.
963 changes: 486 additions & 477 deletions poetry.lock

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions src/ares/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,31 @@ GameStep: 2
DebugGameStep: 2

DebugOptions:
# one of: Air, AirVsGround, Ground, GroundAvoidance, AirAvoidance, GroundToAir
ActiveGrid: GroundToAir
# one of: Air, AirVsGround, Ground, GroundAvoidance, AirAvoidance, GroundToAir, TacticalGround
ActiveGrid: Ground
ChatDebug: True
DebugSpawn: False
ShowPathingCost: False
ShowPathingCost: True
ShowBuildingFormation: False
ResourceDebug: False

Chat:
Enabled: True
AiarenaTags: True

Distances:
FlyingEnemyNearBases: 20.
GroundEnemyNearBases: 15.
GroundEnemyLeavingBases: 24.
FlyingEnemyLeavingBases: 22.

# Turn ares features on/off for performance reasons
Features:
# this grid is useful for disruptor balls and maybe some other uses
# off by default to save computation
TacticalGroundGrid: False

Building:
# how many seconds before giving up on a construction order?
CancelOrder: 18

Mining:
MineralBoost: True
# shouldn't ever need to turn this off, adds 3-4% income without any tricks
MineralStacking: True
# make sure VespeneBoost code is uncommented if setting to True
VespeneBoost: False
BoostBackToTownHall: True
GeyserDistanceFactor: 1.05
GeyserThreshold: 0.05
MineralDistanceFactor: 1.25
Expand Down
6 changes: 6 additions & 0 deletions src/ares/consts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Keep constants here for ease of use."""
from __future__ import annotations

from enum import Enum, auto
from typing import List, Set

Expand Down Expand Up @@ -36,6 +38,7 @@
DEBUG_OPTIONS: str = "DebugOptions"
EFFECTS: str = "Effects"
EFFECTS_RANGE_BUFFER: str = "EffectsRangeBuffer"
FEATURES: str = "Features"
FLYING_ENEMY_LEAVING_BASES: str = "FlyingEnemyLeavingBases"
FLYING_ENEMY_NEAR_BASES: str = "FlyingEnemyNearBases"
GAME_STEP: str = "GameStep"
Expand Down Expand Up @@ -69,6 +72,8 @@
SHOW_PATHING_COST: str = "ShowPathingCost"
STORM: str = "Storm"
STRATEGY_MANAGER: str = "StrategyManager"
TACTICAL_GROUND: str = "TacticalGround"
TACTICAL_GROUND_GRID: str = "TacticalGroundGrid"
TOWNHALL_DISTANCE_FACTOR: str = "TownhallDistanceFactor"
UNIT_CONTROL: str = "UnitControl"
UNIT_SQUADS: str = "UnitSquads"
Expand Down Expand Up @@ -293,6 +298,7 @@ class ManagerRequestType(str, Enum):
GET_GROUND_TO_AIR_GRID = "GET_GROUND_TO_AIR_GRID"
GET_MAP_DATA = "GET_MAP_DATA"
GET_PRIORITY_GROUND_AVOIDANCE_GRID = "GET_PRIORITY_GROUND_AVOIDANCE_GRID"
GET_TACTICAL_GROUND_GRID = "GET_TACTICAL_GROUND_GRID"
GET_WHOLE_MAP_ARRAY = "GET_WHOLE_MAP_ARRAY"
GET_WHOLE_MAP_TREE = "GET_WHOLE_MAP_TREE"
IS_POSITION_SAFE = "IS_POSITION_SAFE"
Expand Down
Loading

0 comments on commit 0bcc1bc

Please sign in to comment.