Possible fix for an issue where the PB would sometimes not load on map entry (ty Airwam for helping with the debugging, as it was, ofc, working on my end Classic :xdd:)
| Downloads | 1,008 |
|---|---|
| Updated | 18 days ago |
| Released | 1 year ago |
| Numeric ID | 648 |
| Min. Openplanet | 1.26.0 |
This plugin was developed using generative AI.
From the developer: Some code that survived the 0.3.0 code migration is likely AI generated, been a while so I'm not fully sure what parts of the code is Gen AI at this point :xdd:, and I'm sure some small bits and pices of code added after 0.3.0 are also Gen AI. Other than that nothing comes to mind off of the top of my head atleast :xdd:
In a recent Trackmania update, Nando removed automatic loading of your personal-best (PB) ghost when you open a map. This plugin restores (and slightly extends) the original behaviour.
After installation, the plugin will automatically download your PB ghost on map load from the Nadeo leaderboard, it then loads the record, and saves it locally to avoid repeated downloads, unless you improve your time.
This should resolve most issues caused by Nadeo's changes. However, there are cases where your PB exists, but doesn't appear on the leaderboard. To address this, the plugin also allows indexing of locally saved replays, whether in the main replays folder or an offload location (e.g if your replays are stored elsewhere for backups or faster startup). To allow the plugin to access these, you can use the "Index Custom Location" option in the settings to ensure your PBs are added to the local database.
You can also index just the C:/[...]/Trackmania(2020)/Replays/ folder if you so choose.
OOPS: There now exists an exe for those of you who have an insane amount of replays ~100k+ (me included), see below for how this works!
Note:
- PB ghosts do not load in Knock-Out rounds.
- PB ghosts do load in COTD Time-Attack. (Thanks @TNTree)
- PB ghosts do not load in Matchmaking. (Thanks @Airwam)
pbghost-cli.exe)Download pbghost-cli.exe from the latest release or directly from
github/st-ar-gazer/tm_Auto-Enable-PB-Ghost/pbghost-cli/pbghost-cli.exe.
Run the file -- you'll see a prompt like this:
Enter the folder that contains all your replays. I do not store my ~200 000 replays in the main Replays/ folder, as this massively increases boot time. So I have to enter this path:
C:\Users\ar\Documents\Trackmania2020\Replays_Offload\
However, it's very likely that this is something completely different for you.
Optional: type your login identifier to filter out other players' replays (or use * to index everything).
You can find your login on your profile at trackmania.io—it looks like 0QzczTHnSR-VBNcu46cN5g.
OOPS: a trackmania login-identifier is NOT the same as your login credentials, the login-identifier (internally just called a 'login') is the identifier used for your account, mine is
0QzczTHnSR-VBNcu46cN5g, and you can find yours by login in on thetrackmania.iowebsite and opening your user profile.
The tool now indexes, parses and adds the replays to the PB-ghost database:
| Step | Plugin | CLI |
|---|---|---|
| Indexing | ~ 20–30 s for ~ 200 k replays | Same |
| Parsing | Copy replay to a game-readable folder<br> Pre-load into memory<br>* Cast data to read | Skips copy & preload and reads directly with GBX.NET |
| DB insert | Near instant | Near instant |
Because the CLI bypasses the games folder restrictions, the heaviest steps disappear. A process that took 2–3 hours with the plugin now finishes in ≈ 10 minutes, with no FPS drops, as the main game isn't being bogged down by using the same process for the copy/preload functionality that the game uses.
The source code for the exe can be found here: https://github.com/st-AR-gazer/tm_Auto-Enable-PB-Ghost/tree/main/pbghost-cli Feel free to run it from source or look through my shitty C# code xD
Possible fix for an issue where the PB would sometimes not load on map entry (ty Airwam for helping with the debugging, as it was, ofc, working on my end Classic :xdd:)
'Fixed' issue where a single file would be continually copied causing large lag-spikes when in cotd knockout Removed some no-longer-relevant settings from being toggleable Moved permissions check so that it is now a bit more consistent on servers
Fixed a compilation error (I swear I checked this before I published and it worked :peepoCry:) Ty Airwam for helping me test things :D