Files
j-lin-lmg 6f47569db6 Jl harness (#136)
- adds logging to output.py in harness utils, to remove the need to
write the logging function for every harness
- writes a more convenient function to call keras and parse keras args
within misc.py in harness_utils, does not remove any functionality from
other harnesses
- added function to call time function while rounding to int 
- added default paus value for press n times
- dota2: changing to path instead of os
- ac shadows: os to path conversion, uses imported functions instead of
writing
- general linting 
- the last of us part 1 lint
- new the last of us part 2 harness
2025-05-13 14:53:25 -07:00
..
2023-09-19 13:58:20 -07:00
2025-05-13 14:53:25 -07:00

The Last of Us Part I

This script loads the game at a specific checkpoint then waits for the scene to play out before quitting the game.

Prerequisites

  • Python 3.10+
  • The Last of Us Part I installed
  • Keras OCR service

Options

  • kerasHost: string representing the IP address of the Keras service. e.x. 0.0.0.0
  • kerasPort: string representing the port of the Keras service. e.x. 8080

Test Setup

After initial installation of the game or after an update has been installed, the game will typically display a warning about building shaders. Allow the game to finish building shaders before running the test harness, as running the harness before this process is complete can negatively impact performance of the game and the reliability of the harness.

Shader Warning

The shader warning as seen in game.

The test harness expects to be running from a specific checkpoint in the game, namely the Hometown - Prologue checkpoint. As such a save file needs to be present as the last item in the list for the harness to navigate the menus correctly and load into the correct point in the game.

Load Game Menu

The necessary checkpoint for the harness to run.

Output

report.json

  • resolution: string representing the resolution the test was run at, formatted as "[width]x[height]", e.x. 1920x1080
  • start_time: number representing a timestamp of the test's start time in milliseconds
  • end_time: number representing a timestamp of the test's end time in milliseconds