Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ extracted scripts, binaries or credentials belong in this repository.
## Before the Dawn Zombies candidate

`modes/zombies/mode.cfg` selects the original `mods/btd_alpha_001` directory;
`server.cfg` selects `war` and the original package's 15-map rotation. District
and Killhouse remain excluded as documented by the original authors. Player capacity
`server.cfg` selects `war`, preserves the original 15 maps in order and appends
Killhouse using the reviewed navigation preparation. District remains excluded.
Killhouse requires real-client homologation qualification before it is qualified. Player capacity
is explicitly 12; zombie counts are the mod's own wave policy, not
Promod Auto-Fill. `bot_enable=0` prevents attaching the Promod integration.
Promod retains its existing Bot Warfare auto-fill behavior with explicit mode-owned
Expand Down
73 changes: 71 additions & 2 deletions docs/zombies-voting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,27 @@

Enable existing native voting for `/callvote map mp_crash` (select next map)
and `/callvote map_rotate` (switch through the existing engine transition).
Only rotation maps are accepted. Killhouse remains excluded; native BTD startup
fails in its waypoint loader and supervised gameplay is not qualified.
Only rotation maps are accepted. `/callvote map mp_killhouse` is now eligible;
Killhouse is appended after the original 15 maps, with `war` throughout.
District (`mp_citystreets`) and unknown maps remain rejected. The existing
human-only voting, quorum, cooldown and vote limits remain enabled.

Killhouse requires the reviewed pinned navigation preparation from
[engine PR #23](https://github.com/ghptc/cod4x-server/pull/23) and packaging contract
[workspace PR #16](https://github.com/ghptc/ec2-workspace/pull/16), both merged into
protected master. Homolog artifact `sha256:9aa4247e7ff9b1bd2c03266f18b8ee7b7a168bafa3c8b68412059be150bc98f8`
was inspected read-only: its navigation overlay SHA-256 is
`10fb2268d2ea64c14d0a7040e180151265a4b2827ebc44068e82831a18ff9c56`, matching
the preparation manifest; its active catalog still contains the original 15 maps.
[Engine PR #24](https://github.com/ghptc/cod4x-server/pull/24) must also be
merged to declare repaired Killhouse in the prepared asset map list. Without it, packaging correctly rejects this catalog. Never edit
private manifests or vendor assets to bypass that gate.

After green mandatory CI, independent review and operator-approved merges,
prepare/deploy only through the existing homologation workflow. Do not merge or
deploy automatically. After deployment, require real-client navigation, combat,
waves, death, respawn and stationary/elevated camping tests before declaring
Killhouse qualified. Native synthetic-client evidence does not replace this gate.

Zombies mode sets configurable `g_voteCooldown=5`, `g_voteTime=30`,
`g_voteMaxVotes=2`, `g_voteAbstainWeight=1`. Kick, restart and gametype votes
Expand All @@ -29,3 +48,53 @@ Require independent review, green mandatory Configuration tests and owner merge.
Operator-supervised gameplay and explicit approval remain necessary for deployment.
Rollback by reverting this focused policy change through the existing reviewed
workflow. No running service was changed.


## Killhouse activation verification (2026-10-27)

Configuration policy and all 22 workspace catalog/packaging tests pass. Exact
native handler tests using this catalog accept each of the 16 maps and reject
District, unknown names, partial names, injection/path inputs and bot callers;
existing cooldown/quorum protections also pass. All settings except the appended
rotation entry are unchanged. Shared and Promod configurations are byte-identical.

Private generated preparation and workspace packaging pass with engine PR #24.
BTD integration passes 73/73 checks across the original 15 maps, Killhouse and
restart (`/tmp/cod4-btd-qualified-5r_ixsre`); Promod passes 53/53
(`/tmp/cod4x-promod-integration-1v8iw1em`). Engine unit suite passes 60 tests
with one skip; native rotation and voting suites and mocked operations pass.
Final native Killhouse regression passes 12/12
(`/tmp/btd-navigation-w7ngrvsr`): 101 nodes, 25 linked spawns, pathing, chase,
melee, bullet combat, wave progression, respawn, camping and map transitions.
BTD lifecycle also passes (`/tmp/btd-death-regression-a2gi__hy`), including
death, respawn, wave progression, admission and administrative transitions.
Independent agent review found no code blockers in either PR and independently
reran all 12 preparation tests. Full logs, private assets and disposable test
fixtures stay outside these PRs. Synthetic clients and accelerated fixtures
remain local regression evidence only.

## Operator-only homologation command

After both PRs pass mandatory CI and the operator approves their manual merges,
run from the reviewed workspace checkout in an interactive terminal. The existing
workflow fetches clean canonical engine/configuration master checkouts, rebuilds,
validates and targets only homologation. The explicit original private inputs
below existed and passed hash verification during this session; if relocated,
provide their verified original paths instead. Do not substitute a prepared
runtime for the original BTD package.

```bash
cd /home/gabriel/Projects/ec2-workspace
COD4_BTD_ASSETS='/tmp/cod4-btd-package/Before The Dawn Alpha 001' \
COD4_INTEGRITY_HEADERS='/tmp/btd-killhouse-nav-prepared-20261027/integrity/addiwdheaders' \
./scripts/deploy-homolog.sh zombies
```

This command is prepared, not executed. Keep the existing rollback baseline.
Do not approve the candidate until a real client has tested navigation, combat,
wave progression, death, respawn and stationary/elevated camping on Killhouse.
Confirm `/callvote map mp_killhouse`, unsupported-map rejection and the original
15 maps on the deployed image. Record the exact new image digest, source/config
SHAs, client results and operator approval. Do not promote to production.
Revert the focused configuration commit and rebuild through the same reviewed
workflow if the catalog change needs rollback; never rewrite private assets.
5 changes: 3 additions & 2 deletions modes/zombies/server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ set sv_randomMapRotation "0"
set sv_hostname "CoD4 Before the Dawn Zombies"
set sv_maxclients "12"
set g_gametype "war"
// Original package rotation; District and Killhouse are explicitly unsupported.
set sv_mapRotation "gametype war map mp_convoy gametype war map mp_bloc gametype war map mp_bog gametype war map mp_broadcast gametype war map mp_countdown gametype war map mp_crash gametype war map mp_creek gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant gametype war map mp_cargoship"
// Preserve original map order; append Killhouse with reviewed navigation preparation.
// District remains unsupported. Real-client Killhouse qualification is required.
set sv_mapRotation "gametype war map mp_convoy gametype war map mp_bloc gametype war map mp_bog gametype war map mp_broadcast gametype war map mp_countdown gametype war map mp_crash gametype war map mp_creek gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant gametype war map mp_cargoship gametype war map mp_killhouse"
// Zombies are provided by BTD; never attach the Promod Bot Warfare integration.
set bot_enable "0"
// Native vote UI; only rotation maps may be selected. Bots are ineligible.
Expand Down
14 changes: 12 additions & 2 deletions tests/test_zombies_voting.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,15 @@ def test_native_map_votes_only(self):
self.assertEqual(values[name], value)
maps = re.findall(r'\bmap (mp_\w+)', values['sv_mapRotation'])
self.assertIn('mp_crash', maps)
self.assertNotIn('mp_killhouse', maps, 'requires supervised qualification')
self.assertEqual(len(maps), 15)
original_maps = ['mp_convoy', 'mp_bloc', 'mp_bog', 'mp_broadcast',
'mp_countdown', 'mp_crash', 'mp_creek', 'mp_crossfire',
'mp_farm', 'mp_overgrown', 'mp_pipeline', 'mp_showdown',
'mp_strike', 'mp_vacant', 'mp_cargoship']
self.assertEqual(maps, original_maps + ['mp_killhouse'])
self.assertEqual(values['g_gametype'], 'war')
self.assertEqual(values['sv_mapRotation'].split(),
[token for name in maps for token in ('gametype', 'war', 'map', name)])
self.assertNotIn('mp_citystreets', maps)
self.assertNotIn('mp_unknown', maps)
self.assertEqual(values['sv_randomMapRotation'], '0')
self.assertEqual(values['btd_anticamp'], '0')
Loading