H3: Balance pass from 200 bot matches (make balance)
make balance (tools/balance.sh, tools/balance.gd, BalanceReport) plays 200 bot-only matches in four processes under nice and reports match length, players standing over time, causes of death, eliminations by weapon and by difficulty, judged against the new BALANCE_* targets in Tuning and the GDD's Balance section. Before: median match 5.0 min, 3.4 of 24 standing at 2 min, the boathook 41% of eliminations. After, over seeds 1001-1200: median 13.1 min (p10 9.2, p90 14.6), top weapon the rivet repeater at 31.7%. Passes. Changes, each traced from single-match runs (docs/BALANCE.md): - Fix: bots leapt from the barge on a timer and landed hundreds of metres short of their spot; they now leap when it's in gliding reach or the barge starts drawing away from it. - Bots spread their landings, only brawl whoever hit them, pick out new opponents within 30 m, roam locally and hold ground, run from a gun when unarmed, and (normal and hard) break off when badly hurt. - Aim error widened; rivet repeater damage 17 to 15. - Tide: lower early levels, longer holds; every match ends within 17.75 min. Tests: BalanceReport, the new bot behaviours, the tide length. Tests that leaned on old bot luck now pin or set up what they check. make match moves to seed 29, where the scripted player still builds. Closes #56 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+39
-12
@@ -217,13 +217,13 @@ const PROP_POI_CLEARANCE: float = 3.0
|
||||
# must exceed ISLAND_MAX_HEIGHT, so that every match ends.
|
||||
const ISLAND_MAX_HEIGHT: float = 70.0
|
||||
const TIDE_PHASES: Array[Dictionary] = [
|
||||
{"hold": 150.0, "rise": 60.0, "level": 8.0, "drown_dps": 2, "surge": 0},
|
||||
{"hold": 100.0, "rise": 50.0, "level": 18.0, "drown_dps": 4, "surge": 40},
|
||||
{"hold": 80.0, "rise": 45.0, "level": 30.0, "drown_dps": 6, "surge": 60},
|
||||
{"hold": 60.0, "rise": 40.0, "level": 42.0, "drown_dps": 8, "surge": 80},
|
||||
{"hold": 45.0, "rise": 35.0, "level": 54.0, "drown_dps": 12, "surge": 100},
|
||||
{"hold": 30.0, "rise": 30.0, "level": 64.0, "drown_dps": 16, "surge": 120},
|
||||
{"hold": 20.0, "rise": 40.0, "level": 75.0, "drown_dps": 25, "surge": 150},
|
||||
{"hold": 150.0, "rise": 60.0, "level": 6.0, "drown_dps": 2, "surge": 0},
|
||||
{"hold": 130.0, "rise": 50.0, "level": 14.0, "drown_dps": 4, "surge": 40},
|
||||
{"hold": 120.0, "rise": 45.0, "level": 24.0, "drown_dps": 6, "surge": 60},
|
||||
{"hold": 110.0, "rise": 40.0, "level": 34.0, "drown_dps": 8, "surge": 80},
|
||||
{"hold": 90.0, "rise": 35.0, "level": 46.0, "drown_dps": 12, "surge": 100},
|
||||
{"hold": 60.0, "rise": 30.0, "level": 58.0, "drown_dps": 16, "surge": 120},
|
||||
{"hold": 45.0, "rise": 40.0, "level": 75.0, "drown_dps": 25, "surge": 150},
|
||||
]
|
||||
## Each island's levels are planned from its terrain (SafeGround): a phase's level is
|
||||
## lowered, if need be, to this far under the top of the largest piece of land still
|
||||
@@ -270,11 +270,12 @@ const BOT_PATH_CHECK_TICKS: int = 15
|
||||
## Per difficulty: `reaction` is seconds between first seeing an opponent and firing,
|
||||
## `aim_error` the most their aim wanders off the target in degrees, `sight` how far
|
||||
## they can pick an opponent out in metres, and `lead` how much of a moving target's
|
||||
## travel they allow for with slow shots (0 none, 1 all of it).
|
||||
## travel they allow for with slow shots (0 none, 1 all of it), and `retreat` the health
|
||||
## plus armor at or under which they break off a fight to heal (0 never).
|
||||
const BOT_DIFFICULTIES: Array[Dictionary] = [
|
||||
{"name": "easy", "reaction": 0.9, "aim_error": 7.0, "sight": 45.0, "lead": 0.0},
|
||||
{"name": "normal", "reaction": 0.5, "aim_error": 3.5, "sight": 65.0, "lead": 0.5},
|
||||
{"name": "hard", "reaction": 0.25, "aim_error": 1.5, "sight": 90.0, "lead": 1.0},
|
||||
{"name": "easy", "reaction": 0.9, "aim_error": 9.0, "sight": 45.0, "lead": 0.0, "retreat": 0},
|
||||
{"name": "normal", "reaction": 0.5, "aim_error": 5.5, "sight": 65.0, "lead": 0.5, "retreat": 35},
|
||||
{"name": "hard", "reaction": 0.25, "aim_error": 3.0, "sight": 90.0, "lead": 1.0, "retreat": 50},
|
||||
]
|
||||
## Each bot looks around once in this many ticks.
|
||||
const BOT_SENSE_TICKS: int = 6
|
||||
@@ -288,6 +289,22 @@ const BOT_MEMORY_SECONDS: float = 4.0
|
||||
const BOT_AIM_WANDER_TICKS: int = 12
|
||||
## Bots ease off the trigger while bloom is above this, in degrees.
|
||||
const BOT_BLOOM_PAUSE_DEGREES: float = 3.0
|
||||
## Bots pick out a new opponent only this close (or their `sight`, if less). Anyone who
|
||||
## shoots them is fought as far off as they can see. Without it bot lobbies emptied in
|
||||
## the first two minutes; see docs/BALANCE.md.
|
||||
const BOT_ENGAGE_METRES: float = 30.0
|
||||
## A bot breaking off a fight runs for this long towards safe ground about this far
|
||||
## away from its opponent, and won't break off again until as long again has passed.
|
||||
const BOT_RETREAT_SECONDS: float = 6.0
|
||||
const BOT_RETREAT_METRES: float = 30.0
|
||||
## A bot weighs this many landing spots near the barge's line and takes the one with
|
||||
## the fewest other bots' landings within BOT_LANDING_SPREAD_METRES.
|
||||
const BOT_LANDING_CHOICES: int = 8
|
||||
const BOT_LANDING_SPREAD_METRES: float = 60.0
|
||||
## With nothing to loot, a bot roams to safe ground at most this far from where it is.
|
||||
const BOT_ROAM_METRES: float = 60.0
|
||||
## Having roamed there, it holds that ground this long before moving on.
|
||||
const BOT_HOLD_SECONDS: float = 45.0
|
||||
## Bots notice items lying within this distance.
|
||||
const BOT_LOOT_SIGHT_METRES: float = 12.0
|
||||
## A bot with no gun goes for an opponent in view this close with its boathook, in
|
||||
@@ -412,7 +429,7 @@ const WEAPONS: Dictionary = {
|
||||
"spread": 0.8, "bloom": 0.6, "ammo": "cartridges", "headshot": 2.0,
|
||||
},
|
||||
"rivet_repeater": {
|
||||
"damage": 17, "fire_rate": 11.0, "magazine": 35, "reload": 2.0,
|
||||
"damage": 15, "fire_rate": 11.0, "magazine": 35, "reload": 2.0,
|
||||
"range_full": 12.0, "range_max": 45.0, "falloff_min": 0.4, "rarity": 0,
|
||||
"spread": 2.4, "bloom": 0.25, "ammo": "cartridges", "headshot": 1.5,
|
||||
},
|
||||
@@ -512,3 +529,13 @@ const LOOT_THROWN_COUNT: int = 2
|
||||
const CHEST_RANGE: float = 2.5
|
||||
## Loot from one spot lands on a ring this far from it.
|
||||
const LOOT_SCATTER_METRES: float = 0.7
|
||||
|
||||
# Balance targets (H3), judged by `make balance` over bot-only matches; see docs/BALANCE.md.
|
||||
## The pass needs at least this many matches.
|
||||
const BALANCE_MIN_MATCHES: int = 200
|
||||
## The median match, from the barge leaving to the last player standing, lasts this
|
||||
## many minutes.
|
||||
const BALANCE_MEDIAN_MINUTES_MIN: float = 12.0
|
||||
const BALANCE_MEDIAN_MINUTES_MAX: float = 18.0
|
||||
## No one weapon takes more than this share of the eliminations made with weapons.
|
||||
const BALANCE_MAX_WEAPON_SHARE: float = 0.35
|
||||
|
||||
Reference in New Issue
Block a user