Altered Nadeo - Random Map Picker

A plugin by ar.....

Altered Nadeo - Random Map Picker
Downloads 428
Updated 17 days ago
Released 4 months ago
Created 4 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. GetARandomAltMapUid()

    • Description: Returns a string containing a random UID for an altered Nadeo map. This UID is fetched from a specified file.
    • Return Type: string
  2. GetARandomAltMapStorageObject()

    • Description: Fetches a random map URL from the altered Nadeo data pool and returns it. This URL points to the location where the map data is stored.
    • Return Type: string
  3. GetUserSettings()

    • Description: Retrieves a Json::Value object containing all user settings related to the alterations applicable to the maps. This includes settings for different scores, surfaces, effects, finish locations, environments, and other alterations.
    • Return Type: Json::Value
  4. 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.
    • Parameters:
      • season: The season for which the maps should be enabled/disabled.
      • shouldUse: A boolean flag to enable or disable the selection of maps from the specified season.
    • Return Type: void
  5. 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.
      • shouldUse: A boolean flag indicating whether the alteration should be applied.
    • Return Type: void
  6. 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.
      • shouldUse: A boolean to enable or disable map selections for the specified full season.
    • Return Type: void

Changelog

2.2.0 - 17 days 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.

0.1.1 - 4 months ago

Added an export "GetARandomAltMapUid" that when called, surprisingly returns a random map UID string. :) Will add some more in the future if it's possible :)

View all changelogs