Torn Racing Telemetry

Track racing data and show acceleration status

目前為 2024-12-29 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Alx Spiker
評價
0 0 0
版本
1.4
建立日期
2024-12-29
更新日期
2024-12-29
尺寸
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.

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.