From 89badb3d6deeabced0f92262a7b221a4de708bea Mon Sep 17 00:00:00 2001 From: J-Doiron <139803019+J-Doiron@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:27:26 -0800 Subject: [PATCH] Cleaning up some text --- aots-e/README.md | 2 +- aots-e/aotse.py | 2 +- forzamotorsport/README.md | 1 + horizonzdr/hzdr.py | 5 +++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/aots-e/README.md b/aots-e/README.md index 83c2b5f..6f70a1c 100644 --- a/aots-e/README.md +++ b/aots-e/README.md @@ -5,7 +5,7 @@ This benchmark runs one of the built in benchmarks for the game. ## Prerequisites - Python 3.10+ -- Stellaris installed +- Ashes of the Singularity installed - Keras OCR service ## Options diff --git a/aots-e/aotse.py b/aots-e/aotse.py index 76debb1..605e4dc 100644 --- a/aots-e/aotse.py +++ b/aots-e/aotse.py @@ -82,7 +82,7 @@ def start_game(): def run_benchmark(process_name, command_to_run): """Run the benchmark and wait for the benchmark process to finish.""" - # Start Steam via subprocess.Popen + # Start Ashes Exe via subprocess.Popen with subprocess.Popen(command_to_run, cwd=GAME_DIR, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) as proc: # Wait for the actual benchmark process to start and finish diff --git a/forzamotorsport/README.md b/forzamotorsport/README.md index 014e615..d8feabe 100644 --- a/forzamotorsport/README.md +++ b/forzamotorsport/README.md @@ -7,6 +7,7 @@ This script navigates through in-game menus to the built in benchmark and runs i - Python 3.10+ - Forza Motorsport via Steam - Keras OCR service +- RTSS installed - https://rivatuner.net/ ## Output diff --git a/horizonzdr/hzdr.py b/horizonzdr/hzdr.py index 4c1a2bd..1117e18 100644 --- a/horizonzdr/hzdr.py +++ b/horizonzdr/hzdr.py @@ -66,7 +66,7 @@ def run_benchmark() -> tuple[float]: logging.info("Could not find the main menu. Did the game load?") sys.exit(1) - # Navigate to display menu + # Navigate to options menu user.press("down") time.sleep(0.5) user.press("down") @@ -74,7 +74,7 @@ def run_benchmark() -> tuple[float]: user.press("enter") time.sleep(0.5) - # Verify that we have navigated to the video settings menu and take a screenshot + if kerasService.wait_for_word(word="language", timeout=30, interval=1) is None: logging.info("Did not find the video settings menu. Did the menu get stuck?") sys.exit(1) @@ -82,6 +82,7 @@ def run_benchmark() -> tuple[float]: user.press("e") time.sleep(0.5) + # Verify that we have navigated to the display settings menu and take a screenshot if kerasService.wait_for_word(word="monitor", timeout=30, interval=1) is None: logging.info("Did not find the display settings menu. Did the menu get stuck?") sys.exit(1)