In-game harness: a combat scenario run unattended, input through the game's own seam, values read from the runtime's log (brief 20)

Open
#2,875 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, go, python

Research direction

Start with the nevr-game-harness skill, then read the listed scenario runner files, src/runtime/scenario/scenario_protocol.h, src/runtime/patch/dinput_enumerate_rules.h, and docs/testing/smoke-checklist.md. Verify whether offline combat launches and whether desktop mode exposes usable input, then document the chosen input seam and runner approach in an ADR. Done means an unattended combat run reports per-pass values from the runtime log, records stock ground truth, and shows a deliberately wrong expectation failing.

Written by the indexing model from the issue text.

Description

No tool runs a combat test in the game without a person. The scenario harness drives social features only, so no combat behaviour of the port has a test against the game itself. Its tests compare the port with its own reconstruction.

Evidence at release/v6.20.0 367cf7ffe

  • src/runtime/scenario/scenario_protocol.h: the op set is state, six inject variants, the fire actions (social, dispatch_event, find_arena, invite_create/invite_resolve), fire_action, invite_answers and ability_activate. It has no move, aim, trigger or equipment op.
  • tools/scenario/run_scenario.py, run_all.py, control.py and 27 YAML scenarios (social) plus smoke.yaml: they launch launch-client.sh on a game copy under Wine on Xvfb :101 and judge a run from the game's JSONL log.
  • docs/testing/smoke-checklist.md (299 lines): one row per feature with its platform, player action and proving log line. It has no row for the v6.20.0 combat port.
  • src/runtime/lifecycle/boot.cpp and src/runtime/patch/mode_patches.cpp (PatchEnableOffline): a client can start with -offline -gametype -level.
  • src/runtime/patch/dinput_enumerate_rules.h: in desktop mode the game polls DirectInput pads 054c:0268 and 0810:0001 only.

Not shown

  • Whether desktop mode ("No VR") spawns the local player's hands and weapons, and so whether any input in that mode can fire.
  • Where the game's per-frame controller state lives (the input seam), on PC.
  • Whether -offline -gametype <combat> -level mpl_combat_dyson starts a combat match.

Falsifier

A command already runs a combat scenario unattended and reports per-pass values read from the runtime's log.

Work

  1. A skill, nevr-game-harness, first: how a scenario is written, run and read; the stock and Cat-build ground-truth runs; the must-fail check; the Wine prefix rules.
  2. An ADR for the harness: the input seam chosen and why, Go for new code (ADR 0044), and whether the Python runner is wrapped or ported, with the reason.
  3. Milestones, each reported:
    • launch and join;
    • input driven through the game's own input seam;
    • values read from the runtime's structured log, per pass;
    • a scenario with a deliberately wrong expected value shown red;
    • the stock run recorded as ground truth.
  4. Andrew's run, unattended: launch, lobby, move to the terminal, raise the hand, fire 40 s, idle 40 s, fire 40 s, N passes. One structured result per run.
  5. Capture never changes what it measures: no hook on a per-hit or per-frame path to read a number. Values come from log lines the behaviour already writes, or from reads outside those paths.
  6. The Wine prefix runs as nevr-build. No prefix folder links into a home, and the harness deletes no tree. A run whose record cannot be written fails loudly.

Brief 20 (nevr-pm). Points: integration, with its own budget.

Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.