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:
@@ -80,13 +80,20 @@ func test_offline_play_goes_through_the_same_client_against_a_local_server() ->
|
||||
assert_eq(session.game.bad_packets, 0)
|
||||
assert_eq(session.local.game.bad_inputs, 0)
|
||||
assert_true(session.game.prediction.max_correction < 1.0, "largest correction %.2f m" % session.game.prediction.max_correction)
|
||||
# On seed 2 a bot finds the scripted player soon after. From then on the client
|
||||
# watches whoever it is given to watch.
|
||||
for frame: int in 60 * 60:
|
||||
# A bot brings the scripted player down. (It used to be left to the bots, but since
|
||||
# H3 they hold their ground and how soon one turns up is luck.) From then on the
|
||||
# client watches whoever it is given to watch.
|
||||
for frame: int in 60 * 20:
|
||||
session.pump(FRAME)
|
||||
if mine.eliminated or came_down.distance_to(mine.position) > 3.0:
|
||||
break
|
||||
var walked_to: Vector3 = mine.position
|
||||
Weapons.damage_player(server.sim, mine, Tuning.PLAYER_MAX_HEALTH + Tuning.PLAYER_MAX_ARMOR, server.bots[0].player_id)
|
||||
for frame: int in 60 * 10:
|
||||
session.pump(FRAME)
|
||||
if mine.eliminated and session.mirror.watched_id != 0 and session.mirror.watched_id != mine.id:
|
||||
break
|
||||
assert_true(came_down.distance_to(mine.position) > 3.0, "it walked: the server took its commands")
|
||||
assert_true(came_down.distance_to(walked_to) > 3.0, "it walked: the server took its commands")
|
||||
assert_true(mine.eliminated, "the scripted player fell")
|
||||
assert_false(session.game.playing())
|
||||
assert_eq(session.mirror.own_id, 0)
|
||||
|
||||
Reference in New Issue
Block a user