feat(scenes): ✨ Add result tracking and output directory configuration for auto_play test script
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
83cf533834
commit
06c46cef89
1 changed files with 6 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue