8000 stickshaker/config.toml at main · dominiccooney/stickshaker · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
109 lines (95 loc) · 3.51 KB

config.toml

File metadata and controls

109 lines (95 loc) · 3.51 KB
# stickshaker config
#
# The HUD auto-sizes each resource field to its digit count, so fields
# drift continuously as numbers grow over a match - fixed-fraction crops
# for population/wood/idle don't hold up. Instead, those three are found
# by template-matching their icon (fixed size, but its position moves)
# within a wide search band each tick, then reading the number at a fixed
# pixel offset from wherever the icon actually was this frame. Use the
# "Dump calibration snapshot" button in the app (or `stickshaker
# --calibrate`) to verify/tune against your real game - it writes the full
# frame, the search band, each found icon position, and each text crop to
# ./calibration/.
[capture]
# Which monitor to capture. If a monitor matching target_width x
# target_height exists, it's preferred; otherwise falls back to
# monitor_index.
target_width = 2560
target_height = 1080
monitor_index = 0
process_name = "AoE3DE_s.exe"
poll_interval_secs = 10
[roi.icon_search]
# Generous band covering the whole resource bar at any digit width -
# not a per-field crop, just where to look for the anchor icons.
x0 = 0.0234
y0 = 0.0000
x1 = 0.7500
y1 = 0.0650
[roi.queue]
x0_px = 28
y0_px = 102
size_px = 44
y_pitch_px = 54
max_slots = 10
[roi.idle_indicator]
# A fixed-position notification slot near the civ badge (top-left) that
# shows a sleeping-villagers icon *only* when idle villagers exist, and
# shows something unrelated (e.g. an available-shipment icon) otherwise.
# Confirmed against two reference screenshots: present when idle=6,
# replaced by a different icon when idle=0. This is a straight presence
# check, not OCR - much more reliable than reading the resource bar's
# idle-count digit ever was, and it's in the fixed-position area (not the
# auto-sizing resource bar), so a plain fractional ROI holds up.
x0 = 0.0390
y0 = 0.0699
x1 = 0.0600
y1 = 0.1078
[anchors.villager_assigned_frame_left]
icon = "villager_assigned_frame_left.png"
[anchors.villager_assigned_frame_right]
icon = "villager_assigned_frame_right.png"
[anchors.pop_limit_slash]
icon = "pop_limit_slash.png"
[anchors.status_house]
icon = "icon_house.png"
[anchors.status_food]
icon = "icon_food.png"
[anchors.status_wood]
icon = "icon_wood.png"
[anchors.status_gold]
icon = "icon_gold.png"
[thresholds]
# Warn HOUSE when pop_cur >= population_limit * pop_cap.
population_limit = 0.8
# Stop warning HOUSE when the population is naturally capped.
population_max = 200
# Warn WOOD when no villager queued and wood is below this.
wood_low_no_villager = 100
# Warn WOOD when population is near cap and wood is below this.
wood_low_near_cap = 80
# Warn WOOD when both of the above are true and wood is below this.
wood_low_both = 180
# Template-match confidence (normalized cross-correlation) required to
# count a build-order queue slot as containing a villager.
template_match_threshold = 0.8
# Same, for locating a resource-bar anchor icon within the search band.
icon_match_threshold = 0.75
[warnings]
# Every currently-active warning (that's also individually enabled below)
# is spoken each poll tick, in this priority order - not just one via
# rotation, so a compound problem (e.g. no villager AND short on wood) is
# heard in full instead of piecemeal.
speak_order = ["villager", "idle", "wood", "house"]
enabled = true
house_enabled = true
villager_enabled = true
wood_enabled = true
idle_enabled = true
[tts]
voice = "" # empty = default SAPI voice
rate = 0 # SAPI rate, -10..10, 0 = normal
house_phrase = "House"
villager_phrase = "Villager"
wood_phrase = "Wood"
idle_phrase = "Idle"
0