drekdrek / grinding-stats

Openplanet plugin which shows statistics
https://openplanet.dev/plugin/grindingstats
MIT License
6 stars 5 forks source link

Getting the map name from its file name? #13

Closed Richard-Degenne closed 2 years ago

Richard-Degenne commented 2 years ago

Hi!

Is there an easy way to reconcile a JSON file from the "Grinding Stats" folder to the map it belongs to?

While browsing the code (I am not an ActionScript developer), I assume this line is responsible for naming the file using the map's IdName?

drekdrek commented 2 years ago

the file is stored as the mapid.Json, there isn't that easy of a way to get the name of the map from the id that I know of.

Richard-Degenne commented 2 years ago

Is the mapId only a value that's internal to Trackmania? Or can I find it on third-party apps like TMX or Trackmania.io?

drekdrek commented 2 years ago

it is used on TM.io, but i dont think it is used on tmx im sure theres a way to use nadeo's api to get information from the mapid, but i dont know how exactly to do it. to get the trackmania.io page for the track, just append it to this url https://trackmania.io/#/leaderboard/