The ja DIFFICULTY capture failed because focus_persistence.py's round trip -- menu, B to title, A back -- did not return, leaving the game off-menu, and the sweep that followed timed out with nothing to work with. Arriving at the menu is the cheap part; the round trip is that probe's own experiment and is not every caller's. --reach-only stops once the menu is reached, and the session script passes it through REACH_ONLY. Committed before running. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wuu56cE8vJGTBtn1ppsk8v
26 lines
1.4 KiB
Bash
Executable File
26 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Boot and run extras_focus_persistence.py. Plate-pulse path, not skip_intro.
|
|
set -u
|
|
export HOME=/sylph-home/re SDL_AUDIODRIVER=dummy DISPLAY=:98
|
|
SD="$(cd "$(dirname "$0")" && pwd)"
|
|
OUT="${OUT:-/sylph-home/re/extrasfocus}"; mkdir -p "$OUT"
|
|
LOG="$OUT/canary.stdout"
|
|
bash "$SD/ensure_single_emulator.sh"
|
|
if ! xdpyinfo -display "$DISPLAY" >/dev/null 2>&1; then
|
|
rm -f "/tmp/.X${DISPLAY#:}-lock" 2>/dev/null || true
|
|
nohup bash -c 'Xvfb "$0" -screen 0 1280x720x24 -ac -nolisten tcp \
|
|
+extension GLX +extension RANDR >/tmp/xvfb98.log 2>&1' "$DISPLAY" </dev/null >/dev/null 2>&1 &
|
|
for _ in $(seq 1 50); do xdpyinfo -display "$DISPLAY" >/dev/null 2>&1 && break; done
|
|
nohup env DISPLAY="$DISPLAY" HOME=/sylph-home openbox </dev/null >/tmp/openbox98.log 2>&1 &
|
|
fi
|
|
XUID="${SYLPH_XUID:-$(ls "${XENIA_CONTENT:-$HOME/.local/share/Xenia/content}" 2>/dev/null | head -1)}"
|
|
[ -n "$XUID" ] || { echo "NO PROFILE"; exit 2; }
|
|
echo "── EFFECTIVE CONFIG ──"; echo " out=$OUT profile=$XUID gate=plate pulse"
|
|
cd /sylph-home/re
|
|
nohup run-canary --apu=sdl --log_mask=13 --log_level=2 \
|
|
--logged_profile_slot_0_xuid="$XUID" </dev/null >"$LOG" 2>&1 &
|
|
# reach the title and the menu with the probe that already does it
|
|
python3 "$SD/focus_persistence.py" "$LOG" "$OUT/reach" 900 ${REACH_ONLY:+--reach-only} >"$OUT/reach.log" 2>&1
|
|
echo "-- reached the menu; now the EXTRAS question --"
|
|
python3 "${SWEEP:-$SD/extras_focus_persistence.py}" "$LOG" "$OUT" 600
|