thaumictom / gbx-ts

a TypeScript GBX paser for Trackmania
https://www.npmjs.com/package/gbx
MIT License
13 stars 5 forks source link

TM2020 Stunt #6

Closed forsureitsme closed 3 months ago

forsureitsme commented 3 months ago

Nadeo added Stunt to Trackmania2020, adding the Trackmania\TM_Stunt play mode to the list of play modes used in *.Map.Gbx files.

Looking at the code superficially, adding "Stunt" to the list of play mode enums should suffice, since the target scores are stored in the medals.

I tried creating a fork to test this for a pull request, but couldn't get it working.

BigBang1112 commented 3 months ago

PlayMode will likely continue being Script in this case. It's how Nadeo handles modes nowadays. The other options are relevant in TMUF and older games.

The mapType is now the primary source of knowing the mode.

forsureitsme commented 3 months ago

My bad, I really don't know how I got them mixed up.