NeKzor / sdp

Simple Source Engine demo parser. :wrench:
http://sdp.nekz.me/
MIT License
1 stars 0 forks source link

Support SAR Speedrun Timer #1

Open JaioCG opened 10 months ago

JaioCG commented 10 months ago

Currently only sar_timer_[start/stop] is supported, which is deprecated and not used by categories/mtriggers. Instead, sar_speedrun timer should be used for speedrun timing instead.

Currently in sdp, the SAR timer module checks for the commands sar_timer_[start/stop], simply changing these to be the speedrun timer won't work since those aren't manually ran, but instead are automatically checked, and the SpeedrunTimer::Start() function runs in SAR. Not really sure the best way about fixing this.

NeKzor commented 6 months ago

This will take a while because I noticed a lot of issues when porting the library to TypeScript which I want to fix in 1.0. It will most likely be introduced as SarSpeedrunTimer in a separate module. Reusing the code that is used from the autorender project is probably a good start.