p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
https://sar.portal2.sr/
MIT License
93 stars 29 forks source link

TAS `start now` never relinquishes control #120

Open ThisAMJ opened 1 year ago

ThisAMJ commented 1 year ago

Enter a map, then sar_tas_play test; toggleconsole

// test.p2tas
version 6
start now
0>
60>|1 0
+60>

After 120 ticks, the TAS should end and control should be given back to the player. Instead, the player cannot move until sar_tas_stop is ran.

This is unique to start now, as can be seen by replacing start now with start map sp_a2_laser_chaining, for example.

mlugg commented 1 year ago

If I remember correctly, this is also specific to running the command manually in console - if you bind it to a key and hit that key, it works fine. Therefore, I assume this is something to do with the tick count being Really Weird during a console pause, and a count therefore probably gets stuck 1 before the final tick during playback.