GreepTheSheep / openplanet-MXRandom

An Openplanet plugin that takes a random map from MX / TMX and play it
https://openplanet.dev/plugin/mxrandom
GNU General Public License v3.0
19 stars 28 forks source link

Makes MP4 use the SingleMap gamemode instead of the engine fallback #109

Closed deathride58 closed 11 months ago

deathride58 commented 11 months ago

Title! Currently, both this and the ManiaExchange menu are a bit odd in their behavior in MP4. Notably, when launching a map, you're immediately faced with MP3's UI, among other oddities. This is because the plugin isn't loading any gamemode at all, instead relying on the engine's fallback gamemode.

So this PR is incredibly straight-forward: it makes the plugin's maploading load the gamemode that Nadeo's maniascript generally tries to enforce as a default, that gamemode being SingleMap. This applies only for MP4, and leaves TM2020 untouched (in theory at least; we can't test that for certain)

This makes loading a map through the plugin behave exactly as a map loaded through the game's menus would behave, as one would naturally expect a plugin like this to achieve.