Fix Tampermonkey Splice Bug

Customer: AI | Published: 29.10.2025
Бюджет: 50 $

Summary Seeking an experienced JavaScript developer to fix a QA/Tool-Assisted Speedrun (TAS) control panel for a browser racing game. The project is 90% complete. The tool is a standalone HTML/JS GUI that communicates with an in-game agent (a Tampermonkey userscript) to control the game. The "Splice Mode" is intended to allow a TAS file to play the game until the user presses a key (e.g., WASD), at which point the user should take over manual control. Currently, the TAS playback works correctly, but the player is unable to take control. The key press is detected, but the mechanism to switch from the TAS input to the live player input within the game's simulation worker is not functioning as intended. All relevant files will be provided. The heavy lifting of setting up the GUI, agent, and communication channels is already done. This is a debugging and refactoring task, not a "from-scratch" project. Deliverables A fully functional "Splice Mode" where the user can load a TAS file via the control panel, the TAS playback begins in-game when the trigger key is pressed, and the moment the user pressed any gameplay key (such as accelerate, brake, or steer), the TAS playback stops, and the user has immediate, seamless manual control of the car. Clean, commented code for the implemented fix within the agent.user.js file.