This project is intended for people who play Riot Games' tactical shooter, Valorant. The program records the user's score into a file when practicing in the "Shooting Range" to keep track of the user's overall improvement in the Range.
- Windows 10
- Ability to change windows when in-game (Alt+Tab)
- Download the source code as a zip file from the latest release here.
- Unzip the files.
The following steps are optional but recommended:
- Navigate to the directory "dist/range_recorder/" within the unzipped files.
- Create a shortcut for "range_recorder" (Right click "range_recorder" > Create shortcut)
- Move shortcut onto desktop for convenience.
- Start "VALORANT.exe".
- Navigate to the Shooting Range (Play > Practice > Shooting Test > Enter Range)
- Start "range_recorder" by clicking on the desktop shortcut OR navigating to "dist/range_recorder/range_recorder.exe"
- If starting the program creates a "dangerous file" prompt, click "More info," then click "Run anyway".
- Wait for program to output "RANGE RECORDER HAS STARTED!"
- Start practicing with the speed of your choice! Range scores are recorded in "dist/range_recorder/output_files/scores.csv" while the recorder window is open.
- You only have to run the program once for multiple trials.
- Program does not currently work for the "Streak" mode and only works for the "Speed" mode (shoot 30 bots on easy, medium, or hard)
- To exit out of the recorder, press 'ESC' before/after shooting the "START" button in-game.
Scores are saved in "dist/range_recorder/output_files/_allscores.csv"
- optical character recognition (OCR)
- HSV color detection
The project went through different versions based on how accurately the program would read the user's score in the Practice Range.
Initially took a screenshot of the region where the scoreboard should be. This method was unreliable since the region might depend on the size of the user's screen, and the user would have to aim at a specific point in order for the image to be detected.
Used HSV color detection to find the largest contour of a certain color. In this case, the HSV algorithms were tuned to search for a color similar to the scoreboard, and the largest contour that appeared was the scoreboard.
Proved to be more reliable than taking a screenshot of the center. However, the user would have to use similar display settings as the developer to ensure the color is recognized. For example, using a colorblind mode might change the shade or intensity of the scoreboard's color, which would lead to an inaccurate screenshot of the scoreboard.
- Improve accuracy of reading the scoreboard.
- Add customized options for the program to work with the user's display settings (i.e. colorblind options).
- Track overshooting/undershooting when aiming at the bots; could help users improve their aim.
- Webpage to create a leaderboard for the Valorant community.
- Have program able to work for different challenges (streak mode)
- Read and record difficulty of range
- Record what gun is being used
- The recorder might not work depending on the game's color intensity since the program relies on color detection. A new version is being created to account for these differences, but in the meantime, the graphics settings that work with the program are shown here.
- Let me know via email (on my profile) if there are any other bugs!