jump.tf Forums
Welcome B)

Patching TAS bugs

AI · 1 · 825

AI

  • Administrator
  • Proficient
  • *****
    • Posts: 419
    • Frags: +0/-0
  • Plugins Developer
    • View Profile
    • Jump Academy
While helping with the JA2 map release videos, I had to fix a TAS bug that caused a stutter during a wallpogo (seen here using tas show_path):



I wrote up a parser for these TAS recordings (thanks to nolem for sharing the file schema with me a while back), which you can find here: https://github.com/geominorai/tasparse

The repo has the IPython Notebook with the code I used to analyze and patch the recording, which I will briefly describe the process here.

Using tas frame_count, I was able to pinpoint the affected ticks to be around 8000-8200 in the recording file:



The graphs above show z-coordinates within the tick interval.  The second one zooms into the anomaly, which we will try to replace with a cubic line fit using the points outside the affected window:



The output file was compatible with the TAS plugin and thus can be played back like normal.

You should be able use a similar analysis to patch other position and angle-related discontinuities in recordings.
« Last Edit: December 20, 2018, 04:54:15 AM by AI »