openplanet-MXRandom icon indicating copy to clipboard operation
openplanet-MXRandom copied to clipboard

Add support for stunt and platform maps

Open zai-tm opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

Describe the solution you'd like Those are valid maps with author medals. I don't see why you shouldn't be able to get them. For stunt, on most maps you can get AT way before the timer ends. On platform maps it's pretty much just an RPG map

Describe alternatives you've considered

Additional context

zai-tm avatar Oct 19 '24 17:10 zai-tm

Could be a nice idea, need to add this as a selectable in searching parameter

GreepTheSheep avatar Oct 21 '24 09:10 GreepTheSheep

Implementing this isn't too hard, I have already done most of the work. The issue is determining the length of the map, since points/respawns are not a good indicator

What I will most likely do is add it as a custom search parameter, and include a warning about the length of the tracks being inaccurate. Ideally, I would rename the length parameters (since they are based on the AT anyway) depending on the mode, so they can filter them based on points/respawns required for the medal.

P.S.: I also want to implement support for royal, since you can play them in solo.

Fort-TM avatar Mar 14 '25 21:03 Fort-TM

Length of the map can be solved for stunt, since every map has a set time limit of 3 minutes + 1 for every park (max of 8).

zai-tm avatar Apr 08 '25 00:04 zai-tm

This will be included in the next version, with some caveats:

  • It's only available for TM2020. Stunt is dead on MP4 and there's barely any platform maps available
  • The other game modes only work offline. Platform and Royal can't be played online, and for Stunt, MLFeed doesn't seem to have a property for stunt points for each player. You won't be able to start a RMT run with them
  • All game modes use the same duration filter of 180k ms (so respawns/points in their respective modes). I did some runs with each game mode and the duration seems fine overall
  • If the goal medal is WR, it will default to the AT for Platform and Royal, since they don't have leaderboards

Fort-TM avatar Aug 14 '25 20:08 Fort-TM

Would it be possible to have a combined game modes option? So you could get maps from all four game modes for example.

zai-tm avatar Aug 15 '25 06:08 zai-tm

While it could be doable, the main issue is that TMX doesn't accept querying for multiple map types (same problem as with titlepacks), and contrary to how that was fixed, I'm not a fan of the idea of giving the same weight to all modes, so we need to wait for the API to support it

Please make a new issue for it, I can add it once it's supported, but in the mean time there's not much to do (technically you could not pass the parameter to the API to get all map types, but then you would need to discard the ones that aren't compatible, which would mean making unnecessary API calls)

P.S.: Even if it's added, it should be mentioned that it will be like normal RMC most likely due to the amount of TM_Race maps compared to the rest

Fort-TM avatar Aug 15 '25 06:08 Fort-TM