From 06c46cef895aa010d623f075fe97f33798115dd3 Mon Sep 17 00:00:00 2001 From: autocommit Date: Thu, 16 Apr 2026 18:38:13 -0700 Subject: [PATCH] =?UTF-8?q?feat(scenes):=20=E2=9C=A8=20Add=20result=20trac?= =?UTF-8?q?king=20and=20output=20directory=20configuration=20for=20auto=5F?= =?UTF-8?q?play=20test=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- src/game/engine/scenes/tests/auto_play.gd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/engine/scenes/tests/auto_play.gd b/src/game/engine/scenes/tests/auto_play.gd index 364d6873..4d48c930 100644 --- a/src/game/engine/scenes/tests/auto_play.gd +++ b/src/game/engine/scenes/tests/auto_play.gd @@ -100,7 +100,12 @@ func _ready() -> void: now["year"], now["month"], now["day"], now["hour"], now["minute"], now["second"], ] - _game_dir = _output_dir.path_join("game_%s_seed%d" % [_start_stamp, _seed]) + # Use AUTO_PLAY_DIR directly as the game output dir. Callers + # (autoplay-batch.sh, run_ap3.sh) are responsible for passing a unique + # per-seed directory — auto_play does not further nest, otherwise the + # batch wrapper's scp would double-nest + # (e.g. `.local/.../game_stamp_seed1/game_stamp_seed1/turn_stats.jsonl`). + _game_dir = _output_dir DirAccess.make_dir_recursive_absolute(_game_dir.path_join("saves")) print("AutoPlay: seed=%d stamp=%s dir=%s" % [_seed, _start_stamp, _game_dir]) _write_meta()