Torn Racing Telemetry

Track racing data and show acceleration status

当前为 2024-12-31 提交的版本,查看 最新版本

作者
Alx Spiker
评分
0 0 0
版本
1.5
创建于
2024-12-29
更新于
2024-12-31
大小
7.0 KB
许可证
MIT
适用于

Torn Racing Telemetry - README

Torn Racing Telemetry

Description

Torn Racing Telemetry is a userscript that tracks racing data and displays the acceleration status of racers in the Torn racing game. The script calculates and displays real-time speed and acceleration metrics for racers during a race, providing a detailed status update.

Manual Installation

1. Install a userscript manager like Tampermonkey or Greasemonkey.

2. Create a new script and paste the code from torn-racing-telemetry.user.js into the script editor.

3. Save the script and ensure it is enabled.

Usage

Once the script is installed and enabled, it will automatically run on the Torn racing pages:

Features

  • Tracks and displays the following race data:
    • Track length and number of laps
    • Total distance of the race
    • Average speed for finished racers
    • Real-time speed and acceleration status for racers in progress
    • Status display for not started and finished racers
  • Custom styles for the status display

Functions

  • getTrackData: Retrieves track length, number of laps, and total distance.
  • parseRaceTime: Parses race time from a string to seconds.
  • calculateAverageSpeed: Calculates the average speed for finished racers.
  • calculateMetrics: Calculates real-time speed and acceleration metrics for racers.
  • updateStatusDisplay: Updates the status display for each racer.
  • updateRacingData: Main function that updates racing data every 1 seconds.

Customization

You can customize the script by modifying the following parameters:

  • Update interval for racing data (default: 1000 ms).

License

This script is open-source and licensed under the MIT License.

Demo

Watch the demo video below:


Photos

For those who prefer images over videos, check out the following photos:

Before Race Starts

Before Race Starts

During Race

During Race

After Race

After Race

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址