Using the auto-splitter script
Przewodniki
/
Using the auto-splitter script
Zaktualizowany 1 year ago przez GFD

If you time your runs with LiveSplit, using the auto‐splitter script I created (available in the Resources section) is highly recommended. It will generate a proper save file, launch the game, send LiveSplit the in‐game time, and perform splits for you. It will also log split times and IL times to the terminal.

This script sends commands to the LiveSplit Server component. In LiveSplit, make sure to set your comparison to “Game Time” and add a “LiveSplit Server” control to your layout. Before running the script, remember to start the server by right‐clicking LiveSplit and selecting “Control” → “Start Server”.

You can open the auto‐splitter script in a text editor to change some settings at the beginning of the file, including where the Speedrunning Edition executable is located, whether you’re doing full‐game runs or IL runs, whether VSync should be enabled, and what IP and port to use for connecting to the LiveSplit Server. The default settings will work for full‐game runs if you run the script from the same directory that the Speedrunning Edition executable is in.

Running the auto‐splitter script requires Python 3. It also requires the win32gui library to read from the game window, which you can install by running python.exe -m pip install pywin32 from CMD/Powershell. Then simply open the .py file with python.exe, and it will start the game and connect to the LiveSplit Server. When the game is closed, the script will terminate. (Sometimes running the script again doesn’t seem to restart the timer in LiveSplit unless you also restart LiveSplit. I don’t know what causes this; it could be LiveSplit’s fault.)

Version changelogs:

Version 2

  • Fixed splits without IL times logging the last IL time anyway.
  • The final IGT sent to the LiveSplit Server now matches the in‐game IGT, rather than the sum of the run’s split times. This was sometimes resulting in a variation of ±0.02s on the final time between the game and the script due to rounding errors, so this variation now applies to the final split time instead.
  • When completing a full‐game run, the script now terminates and logs the final IGT.

Version 3

  • Fixed several logic issues, including one where sometimes all splits would be set to the second split time immediately after said split.
  • Compatible with Speedrunning Edition version 3’s window title formatting.
  • Added a configuration option to not use LiveSplit at all (just set up the game and log times to the terminal).
  • Disabled VSync by default.
  • Reformatted the way times are printed to the terminal.
  • Pauses after the script terminates, so the terminal remains open for review afterwards when using python.exe directly.
Statystyki gry
Obserwujący
10
Przebiegi
111
Gracze
2
Najnowsze przebiegi
Moderatorzy