Login

russian armor

CoH2 Campaign Speedrun auto-split support for LiveSplit

4 Jul 2020, 20:46 PM
#1
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

Inspired by by recently popularized attempts (Chihuahua_Charity
and elpern) of completing the Company of Heroes 2 Eastern Front Singleplayer Campaign as quickly as possible (Any%), I wrote a script to automatically split the mission times and pause the timer during loading screens.

Instructions and necessary downloads are available on GitHub: https://github.com/Janne252/LiveSplit.CoH2CampaignAutoSplit

Quick summary of supported features: Detection of starting a mission, detection of restarting of a mission (either via pause menu or by loading a savegame of the same mission), detection of ending a mission, loading screen time skipping, "Game paused" time skipping.

The script is ready for testing and has already been successfully used by Chihuahua_Charity on a full campaign playthrough. See the GitHub page for usage instructions, notes about known issues, and "good to know" details.

Thanks to Chihuahua_Charity for helping with testing the script.

LiveSplit: https://livesplit.org
CoH2 Speedrun world records: https://www.speedrun.com/coh2
Current world record: 3h 02m 19s
4 Jul 2020, 21:00 PM
#2
avatar of Rosbone

Posts: 2100 | Subs: 2

Janne, I noticed three entries in the LOG file for missions:

Code
17:55:40.88 GAME -- Scenario: DATA:scenarios\sp\coh2_campaign\m08-tiger_hunting\tiger_hunting
17:56:09.95 PerformanceRecorder::StartRecording for game size 4
18:07:54.14 PerformanceRecorder::EndRecording - game size=4, max average=0.045077, worst frame=0.010000


Which entry are you using to start the timer? It seems like the STARTRECORDING entry would be the correct one, but the GAME -- SCENARIO entry gave closer times to the test plays I had looked at.

PS
Amazing work as always!
4 Jul 2020, 21:12 PM
#3
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

I used
Code
GAME -- Starting mission:


Because the line also contains the unique path of the mission scenario file. Seemed to trigger at the right time & easy detection of progression per mission, especially with restarting a mission.

Code
MOD -- Game Over at frame

Was used for pausing the timer until the next mission starts.
4 Jul 2020, 22:56 PM
#4
avatar of Rosbone

Posts: 2100 | Subs: 2

Thanks!

I started writing an app to watch this for Olvadi. But I am very happy that some one good wrote it up! I bow to your greatness sir!
4 Jul 2020, 23:52 PM
#5
avatar of Olvadi

Posts: 43

we have now a auto spliiter we just a guide for a good strat. PogChamp
6 Jul 2020, 14:32 PM
#6
avatar of JibberJabberJobber

Posts: 1614 | Subs: 3

Unrelated, but speedrunning on the lowest difficulty is bound to kill your soul.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

423 users are online: 1 member and 422 guests
Lady Xenarra
8 posts in the last 24h
44 posts in the last week
149 posts in the last month
Registered members: 44933
Welcome our newest member, Irmeger
Most online: 2043 users on 29 Oct 2023, 01:04 AM