Skip to content

Enhancement: Show "Custom" game mode if a map is added to the Maps/Custom/ folder while the client is running #352

Open
@alexlambson

Description

I noticed that the Custom gamemode doesn't appear if the Maps/Custom folder was empty at client start, even if I use /downloadmap and it downloads successfully or I add a map file to the folder using my OS.

Perhaps we should add some kind of file-watcher to the Maps/Custom folder to constantly check if we need to update the Custom maps list and game mode dropdown.

Reproduction:

  • Move or delete all files from Maps/Custom
  • Start the client
  • Start a multiplayer lobby. Custom should not be an available game mode.
  • Use /downloadmap HASH to download a map, or add a .map file to Maps/Custom/ using your Operating System.
  • Open the game mode drop down again.

Expected: Custom is added to the game mode dropdown after a successful map download or adding a .map file to the Maps/Custom folder. The newly added map is listed as an option in the Custom map list.

Actual: Custom remains hidden even though there are maps in the folder now.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions