Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support or filter out maps with top secret leaderboards #143

Open
Fort-TM opened this issue Dec 22, 2024 · 0 comments
Open

Add support or filter out maps with top secret leaderboards #143

Fort-TM opened this issue Dec 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Fort-TM
Copy link
Contributor

Fort-TM commented Dec 22, 2024

In the most recent update, Nadeo added a feature called Top Secret that hides leaderboard times

We introduce the new “Top Secret” feature. Best times & ghosts will remain hidden until the end of the Weekly Shorts hunting period (...) This “Top Secret” feature can also be applied to user-made tracks, offering players a way to keep their training strategies private until an event.

The API returns -1 for any time faster than AT (besides your PB). I believe, if you set the goal to WRs, the plugin will skip any map with a top secret leaderboard (if the WR is faster than AT) due to this check

uint mapWorldRecord = MXNadeoServicesGlobal::GetMapWorldRecord(map.TrackUID);
if (int(mapWorldRecord) == -1) {
Log::Warn("Couldn't got map World Record, retrying another map...");
PreloadRandomMap();
return;

Don't know how/if it will affect other settings/gamemodes.

@Fort-TM Fort-TM added the enhancement New feature or request label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant