aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit d2a8fc8b56f3ed02901a157bd17f60198b82e0b3
parent 4bad3548480b5b0bc7f169668ac016951153adc7
Author: anon <anon@example.com>
Date:   Sat, 17 Oct 2026 00:27:53 +0000

Require completed scene loading before playfield validation

Diffstat:
Mdocs/playfield-validation.md | 17+++++++++++++----
Mtools/client/sweep_playfields.py | 13++++++++++---
2 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/docs/playfield-validation.md b/docs/playfield-validation.md @@ -46,8 +46,11 @@ The four added arrivals (124, 641, 706 and 4704) use district centres from the release database. The arenas use their named Arena districts rather than the first district, which can be empty terrain or the wrong side of a wall. -`results.jsonl` is appended after each scene. `ready-and-rendering` requires a -server acknowledgement followed by at least ten seconds and 30 rendered frames. +`results.jsonl` is appended after each scene. `ready-and-rendering` requires the +client's `CharacterReady` packet followed by at least ten seconds and 30 rendered +frames. Socket registration alone is insufficient: it precedes scene loading. +The isolated server log supplies this packet evidence; `character_ready: true` +records that the stricter check was used. It establishes loading/presentation liveness, not visual or gameplay correctness. Screenshots need review, and the FPS values at these catalog arrivals are not comparable to the fixed Bronto Burger/Lush Fields performance cameras. A build @@ -74,8 +77,14 @@ show the arena interiors. Screenshots and the module digest are retained in This is representative browser coverage, not a complete browser sweep or deterministic cross-platform movement replay. -More than 100 native arrivals completed without another crash after the fixes; -the complete native sweep and cold-launch pass are still in progress in +The first 119 native arrivals completed without another crash after the fixes. +Those rows started their observation at socket registration. A server-log audit +confirmed every arrival subsequently sent `CharacterReady`, with at least six +seconds remaining before its capture; they do not establish the stricter +ten-second observation after loading. The subsequent cold pass will use that +stricter criterion for every scene. +Checkpoint resumption was also exercised successfully. The complete native +sweep and cold-launch pass are still in progress in `local/playfield-sweep/playfield-sweep-20261016-165029/`. Browser coverage must be run separately: paged memory, WebGL, asset fetching and asynchronous WebSocket cleanup can fail diff --git a/tools/client/sweep_playfields.py b/tools/client/sweep_playfields.py @@ -141,6 +141,7 @@ def run_zone(zone, phase): while json.loads(request('/map-players'))['players'][0]['connected']: assert time.monotonic() < deadline, 'server did not observe client disconnect' time.sleep(.1) + server_log_start = (output / 'server.log').stat().st_size request('/teleport/73', {'playfield': zone['id']}) request('/time', {'hour': 13, 'minute': 30}) started = time.monotonic() @@ -166,9 +167,15 @@ def run_zone(zone, phase): break player = json.loads(request('/map-players'))['players'][0] if player['playfield'] == zone['id'] and player['connected'] and ready is None: - ready = time.monotonic() - result['ready_seconds'] = ready - started - result['position'] = player['position'] + # Connection registration precedes scene loading; wait for CharacterReady. + with (output / 'server.log').open('rb') as log: + log.seek(server_log_start) + received = log.read() + if re.search(rb'World C2S: dfdf000a[0-9a-f]{24}570c20390000c3500000004901', received): + ready = time.monotonic() + result['character_ready'] = True + result['ready_seconds'] = ready - started + result['position'] = player['position'] if (active / 'frame.json').exists(): frame = json.loads((active / 'frame.json').read_text()) if ready is not None and frame['time'] >= ready: