Description
Which resource(s) have this problem?
editor
Describe the bug
Startup the editor add more than one gamemode then select one gamemode via the test dialog window and go into full test switch the gamemode in the test dialog window to None or any other gamemode you added and go into full test again -> F5 and then F5 again -> it will then output 2 error messages because the gamemode type is invalid with editor_test.
See Video below.
To Reproduce
- Start editor
- Add a second gamemode to your map
- Select any of the two gamemodes and start full test
- Stop via F5
- Select the other of the two gamemodes
- Stop via F5
- Start quicktest via F5
- See error
Expected behavior
Selected gamemode should work even when doing quicktest
Screenshots
https://www.youtube.com/watch?v=YTDYnQWbRlw
Version
Client: Multi Theft Auto v1.6-release-23196
Additional context
This is caused by the interaction of the beginTest() function inside saveloadtest_server.lua and the setupMapSettings() function inside the mapsettingssync.lua
removing the line currentMapSettings.addedGamemodes = {}
seems to resolve the issue but Im not sure if we break anything else in the process (see video above)