M6: Bots that build
Bots now gather materials with the boathook and build with the same build command and Building.check a player's client goes through: - Gathering: an armed bot with nothing more pressing gathers from props nearby (12 m while looting, 24 m once there's nothing left to loot) up to 60 of a material, or 120 in the last three tide phases. Not within 10 s of seeing an opponent or being hit, and not when hurt. - Cover: a wall toward a shooter who catches it reloading, from ambush or worn down to 60, then waits behind it to reload or heal. - Wall and heal: a badly hurt bot that would break off walls itself off and heals where it stands instead, if it can afford a wall. - Ramps: a staircase of ramps, each from the top of the last, up to an opponent on a cliff or a steep rise (at most 5 a fight). - Breakwaters: late in the match, a bot the tide would catch before it reached dry ground, or one at the last stand, rings its cell with four breakwaters and stays inside while they hold. Measured with the new `make bot-builds` (tools/bot_builds.gd): every other bot builds and the rest are a control group. Over 40 matches, seeds 501 to 540: builders built in 53% of the fights they began with materials for a wall (12% of all fights; most fights are in the landing, before anyone has gathered), lost 58% of the fights they built in against 67% of the rest, and placed 12.1 on average against the control's 12.8. Overall fight losses (65.8% / 65.7%) and wins (20 / 20) came out level; docs/BALANCE.md has the numbers and the earlier batches that led to the careful gathering. Worst p99 tick 3.4 ms of the 12 ms budget. Closes #29 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -300,8 +300,8 @@ What isn't sent: props, chests' places and their contents, which the client roll
|
||||
itself from the seed, as it does the island; and a piece's health, which follows from
|
||||
how far its building had got, the ticks since, and the damage it has taken. So a
|
||||
piece being built costs nothing on the wire. A scripted match of 12,198 ticks with 24
|
||||
players made 121 messages, 2.3 KB in all. Bots don't build yet, so a match of people
|
||||
building will make far more: a new piece is about 16 bytes to each client.
|
||||
players made 121 messages, 2.3 KB in all. That was before bots built (M6); a match with
|
||||
building makes more: a new piece is about 16 bytes to each client.
|
||||
|
||||
`ClientWorld` applies them to the client's world. `NetWorld.world_hash()` covers
|
||||
everything replicated this way, and a client that has applied every message up to a
|
||||
|
||||
Reference in New Issue
Block a user