BETA version of script for NT for stats / auto reload / minimap).
A lot of code is used by Toonidy
What's this?
It is improved and highly edited version of old NT scripts (to my taste) that allows you to do 3 important things:
- See stats of your races, including races of the current session, real time of current session (starting with 0 races), your last race, average races, team races, season races, etc.
- Auto reload - it's new greedy auto reload speed, written by me, it is not heavily tested yet, but it works smooth, fast, it updates race after local storage stats changed (by default it checks them every 50ms), I have not noticed any performance issues with that so far, but you can edit the config on top to disable it, or make it slower
- Races minimap - Pretty much the same as the one by Toonidy with slightly different design, and it is also displayed on the bottom of the page, not on top.
Important
!!!(note that in order for season / team races to display correctly you should manually edit the config file after installing the script / changing team / when new season starts, it is necessary to provide updates to these stats without usual delays)!!!
Change TEAM_RACES_DIF
to number of races you did OUTSIDE of your current team in total (Total races - Your current total team races
), make sure to use exact value when you know it for sure, as it's updated slowly, like once every 30 minutes after you finish racing.
Change CURRENT_SEASON_DIF
to the number of races you did OUTSIDE of your current season (Total races - Your number of races this season
).
I will probably add some way to edit these values without editing the config file.
Other configurations
Change the code to enable / disable minimap / page scrolling / auto reload
//scroll page to the bottom, requires a combination with my css theme to work properly
const scrollPage = true;
//if greedy is activated, script will check stats every 50ms, and if new stats are available,
//immediately update the widget and reload (it's really fast and should never fail unlike arbitrary delay using classic update script
const greedyStatsReload = true;
const greedyStatsReloadInt = 50;
//reload on stats (unecessary slow, after stats window is displayed)
const reloadOnStats = true;
//const autoReloadMS = 0;
//difference of total races and races in current team, for more accurate value in team races stats
const TEAM_RACES_DIF = 1493;
//difference of total races and races done outside of current season for more accurate value
const CURRENT_SEASON_DIF = 25 + 5594;
const ENABLE_MINI_MAP = true;
Please use CSS theme!
I highly recommend using this script with my NT CSS theme, as I am pretty much only testing them both at the same time.
Warning
Use it at your own risk (It's MIT licensed after all), don't blame me if you get banned for any reason, as it is against NT TOS in general to interfere with game's code after all, although I'm not using any of this to give any unfair advantage, and never going it. It is only to make your life better while blitzing.
I don't know how to use this website
I have not figured out yet how to update scripts properly here etc. I will remove this as soon as I figure it out. Or I will forget about it. IDK lol.
MIT
Copyright 2024, dphdmn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.