NitroType Tier Test and Duel Logger

Input exact player names. When logging is ON, the script waits until each tracked player's race row (exact match) shows a finish time ("secs") then logs a merged summary with sequential numbering. It computes cumulative averages (tiers from rounded averages) and updates a cumulative score (e.g., "1-0" if player A wins). The UI shows total races & current score, allows deletion, and exports formatted results. Data persists.

作者
Caleb Thomas
日安装量
0
总安装量
0
评分
0 0 0
版本
1.15.1
创建于
2025-04-14
更新于
2025-04-15
大小
22.0 KB
许可证
MIT
适用于

NitroType Tier Test Logger Script

This Tampermonkey script is designed to help you track and log NitroType races for specific racers using their exact display names. The script continuously monitors the race results page and processes a race only when every tracked racer’s result row shows a finish time ("secs"). It then creates a merged summary for that race and calculates cumulative averages, determines each player’s tier, and updates a cumulative score. All data is saved persistently across page loads.

Key Features

  • Exact Player Name Tracking:

    • Copy the exact display name from a racer’s profile (as it appears on NitroType).
    • Paste the name into the built-in UI and click Add.
    • The script uses these exact names (trimmed) to match rows on the race results page.
  • Race Monitoring & Processing:

    • When logging is turned ON via the Logging: OFF/ON toggle, the script continuously watches the NitroType race results container.
    • It waits until every row for the tracked players in a race contains a finish time (the third list item includes "secs").
    • Once complete, it merges the entries into one race summary:
    • Sequential Race Numbering: Each race is numbered in order.
    • Sorting: The entries are sorted so that the first name you entered always appears first.
    • Winner Determination: If at least two players are tracked, the script determines the race winner (based on the highest WPM) and assigns a win to player A (if the first entered name wins) or player B (if the second wins).
  • Cumulative Data Calculation:

    • Cumulative Averages: The script keeps running totals and counts of WPM and accuracy for each tracked player. It uses this data to compute a cumulative average.
    • Tier Assignment: Each player’s tier is determined using their cumulative average WPM (rounded to the nearest whole number) against the following boundaries:
    • HT1: 175+ WPM
    • LT1: 160–174 WPM
    • HT2: 145–159 WPM
    • LT2: 130–144 WPM
    • HT3: 115–129 WPM
    • LT3: 100–114 WPM
    • HT4: 85–99 WPM
    • LT4: 70–84 WPM
    • HT5: 50–69 WPM
    • LT5: Below 50 WPM
    • Cumulative Score: The script updates a cumulative score over all processed races (e.g. "1-0" if the first tracked player wins a race).
  • UI Display:

    • The script’s UI (displayed in the top‑right corner) shows:
    • A section for entering and managing tracked player names.
    • A header in the Race Results section showing the total number of races processed and the current cumulative score.
    • A list of race summaries, each with a red Delete button to remove a race. When a race is deleted, the remaining race numbers update sequentially.
  • Exporting & Clearing Data:

    • Save Results: Clicking this button opens a new browser tab with the exported log in the following format:
    NT usernames: <name1> / <name2>
    Previous Ranks: N/A / N/A
    Ranks Attained: <tier for player1> / <tier for player2>
    Av Scores: <avgWpm of player1> vs <avgWpm of player2>
    Result: <winning player> wins <cumulative score>
    
    Scores:
    <race 1 score line>
    <race 2 score line>
    ...
    
    • The "Result" line is generated using data from the latest processed race.
    • The "Scores:" section lists each race's raw scores (e.g., 212 (97.60%) vs 196 (96.39%) — A).
    • Clear Results: This button resets all stored race summaries, cumulative statistics, and the cumulative score.

How to Use the Script

  1. Installation:

    • Copy the entire script code and create a new Tampermonkey script.
    • Save and enable the script in your browser.
  2. Adding Tracked Players:

    • Navigate to any NitroType page (for example, a racer's profile or their garage).
    • Copy the exact display name from a racer’s profile (e.g., leaderboardtestacc or ⚡Nincaleb⚡).
    • Paste the name into the UI’s text input in the top‑right corner and click Add.
    • Repeat this step for each racer you wish to track.
  3. Starting Race Logging:

    • Click the Logging: OFF button to turn logging ON.
    • The script will now continuously monitor the race results page and wait until every tracked player's row has a finish time ("secs") before processing the race.
    • Once processed, the race summary appears in the UI with a sequential race number, details (player performances), cumulative averages (with tiers), and the updated cumulative score.
  4. Managing Race Entries:

    • Next to each race summary in the UI is a red Delete button. Click it to remove that specific race from your log. The script will renumber the remaining races automatically.
    • The header in the Race Results section shows the total number of races processed and the current cumulative score.
  5. Exporting Results:

    • Click the Save Results button to open a new tab with a formatted export.
    • The output will include:
      • NT usernames: Your tracked names separated by " / ".
      • Previous Ranks: Always "N/A" for each.
      • Ranks Attained: Each player's current tier as calculated from their cumulative average.
      • Av Scores: The cumulative average WPM for each player.
      • Result: The winning racer from the last race along with the updated cumulative score.
      • Scores: A line-by-line detailed listing of each race's scores.
  6. Clearing Data:

    • Click the Clear Results button to delete all logged race summaries and reset the cumulative statistics and cumulative score.

Final Note

This script is ideal for NitroType enthusiasts who want to track performance over multiple races. By copying the exact display names from a racer’s profile and entering them into the UI, you ensure accurate tracking. The script provides a comprehensive view of race performance, including cumulative averages, tiers, and scores, while allowing you to manage and export your race data easily.

Enjoy using your NitroType Race Logger!