Skip to content

editor: invalid gamemode when changing gamemodes via test dialog window #637

Open
@PrimelPrime

Description

@PrimelPrime

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

  1. Start editor
  2. Add a second gamemode to your map
  3. Select any of the two gamemodes and start full test
  4. Stop via F5
  5. Select the other of the two gamemodes
  6. Stop via F5
  7. Start quicktest via F5
  8. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions