A Python utility for Ultimate Racing 2D 2 that adds sector timing to Time Trial mode, helping players analyze their performance across different track sections.
UR2D2 Sector Tool reads the game's memory to extract a variable representing car progress around the track (from 0 to 1). The decimal part indicates lap progress; the integer part is the lap number (e.g., 2.75 means lap 3, 75% complete).
The tool divides the track into three sectors:
- Sector 1: 0.00 – 0.33
- Sector 2: 0.34 – 0.66
- Sector 3: 0.67 – 1.00
Future versions may allow custom sector counts and boundaries.
Timing starts at the beginning of each lap and stops at the end. Minor timing discrepancies may occur due to lag, but these are generally negligible.
- Real-time sector timing display
- Best sector times tracking
- Lap time tracking
- Automatic sector division
- Logging of sector and lap times to file
- Ensure Python is installed.
- Clone this repository.
- Install dependencies:
pip install -r requirements.txt - Launch the tool:
python src/launcher.py
Start the game before running the tool, and enter Time Trial mode on a track.
- Timing discrepancies, especially on the first lap (recommend slowing down on lap 1 for accuracy)
- Pausing or exiting Time Trial mode may break the tool
- Game updates may change memory addresses, requiring tool updates
- Very long tracks, such as Schwarzwald, do not work properly. The variable used for tracking progress gets stuck at a certain value, so sector times cannot be recorded correctly.
For issues, contact despacito7 on the official UR2D2 Discord server.