Altered Nadeo - Random Map Picker

A plugin by ar(Trusted developer)

Altered Nadeo - Random Map Picker
Downloads 1,088
Updated 3 months ago
Released 11 months ago
Created 11 months ago
Numeric ID 483
Min. Openplanet 1.26.0
Signed
Game Trackmania

Altered Nadeo - Random Map Picker

The "Altered Nadeo - Random Map Picker" is a plugin that allows players to load a variety of custom maps from a selected pool. By fetching map data from a specified file (soon maybe an API) and constructing a URL, we can call the Nadeo live services API. This plugin randomly selects and loads different maps based on their UID. Hopefully, it's used by at least one person; niche plugin go brrrr...

Exports

The plugin provides several functions that are accessible for external use:

  1. AN::GetARandomAltMapUid()

    • Description: Returns a random map UID from the Altered Nadeo map data pool and returns it.
    • Return Type: string
    • Example: rEP0VJXacIby1NEYT68pjKwN8va
  2. AN::GetARandomAltMapStorageObject()

    • Description: Fetches a random map URL from the Altered Nadeo map data pool and returns it.
    • Return Type: string
    • Example: https://core.trackmania.nadeo.live/storageObjects/a831d6be-0bf9-4afa-b15f-784a7db7097e
  3. AN::GetUserSettings()

    • Description: Retrieves a Json::Value object containing all user settings related to the alterations/seasons/scores applicable to the maps. This includes settings for different scores, surfaces, effects, finish locations, environments, and other alterations.
    • Return Type: Json::Value
    • Example: https://pastebin.com/waZxFj16
  4. AN::SetSeason(string season, bool shouldUse)

    • Description: Enables or disables maps from being picked for a specific season. For example, setting shouldUse to true for "Spring 2020" will enable maps from that season/year.
    • Parameters:
      • season: The season for which the maps should be enabled/disabled.
        • Example: Spring 2021, Winter 2023
      • shouldUse: A boolean flag to enable or disable the selection of maps from the specified season.
    • Return Type: void
    • Note: The inputs are case insensitive.
  5. AN::SetAlteration(string alteration, bool shouldUse)

    • Description: Allows enabling or disabling specific map alterations. If shouldUse is set to true, the specified alteration is applied to the map selection criteria.
    • Parameters:
      • alteration: The alteration to be enabled or disabled.
        • Example: Stunt, Wet Icy Wood.
        • NOTE: If you do not know how what an alteration is called internally, here is a link to the GH page with the most up to date reference sheet. Alteration Names (the name can be found inside of the "", inside the MatchesAlterationSettings() function.
      • shouldUse: A boolean flag indicating whether the alteration should be applied.
    • Return Type: void
    • Note: The inputs are case insensitive.
  6. AN::SetFullSeason(string fullSeason, bool shouldUse)

    • Description: Enables or disables all maps from an entire season (e.g., all winter maps) based on the shouldUse parameter.
    • Parameters:
      • fullSeason: The full season (like "Winter" or "Spring") for which maps should be enabled/disabled.
        • Example: Summer, Spring, Winter, Fall
      • shouldUse: A boolean to enable or disable map selections for the specified full season.
    • Return Type: void

NOTE: versions before 3.0.0 have old references to the export functions, they need to include AN:: before any function call.

Changelog

3.1.0 - 3 months ago

  • Added support for stunt type maps
  • Updated the local maps to the newest version
  • Made indexing the consolidated_maps json a coroutine so lower-end computers shouldn't timeout when indexing the file

Added More Alterations:

  • Slot Track
  • Red Effects
  • Race (Alteration)
  • Stunt (Alteration)
  • No Items
  • Replay Other:
  • Race (Type)
  • Stunt (Type)
  • Stunt Discovery Campaign

3.0.0 - 5 months ago

New:

  • Profiles (save / load / download them)

Changed:

  • The JSON exports structure has been changed slightly
  • The exports are now called in the namespace "AN"

2.2.0 - 7 months ago

What has changed? Everything, (minus loading map from UID), here are the three major ones.

  1. You can now sort anything based on the Alteration, season/year, as well as the medal times.
  2. The UI is massively improved, open it through the Plugins tab
  3. Massively improved exports, other plugins can now set/get/change the settings/current map to load/settings whenever.

View all changelogs