Skip to content

Bug: Maps in subdirectories not showing up in map command results (Linux) #1840

Description

@timmycelle

Describe the bug

When using the map and other related commands, the auto-fill results for those commands only show maps that are in the root of <mod>/maps/, ignoring any maps stored in subdirectories (e.g. <mod>/maps/workshop/). This only applies for Linux as on Windows it isn't an issue.
Manually typing in the relative path to the map to launch it works just fine.

To Reproduce

  1. Put one BSP file in <mod>/maps/ and another one in <mod>/maps/example_subdir/, both files with a filename of for example sp_a2_triple_laser.bsp.
  2. Launch P2:CE
  3. Open console and type in map sp_a2_triple_laser
  4. See that in the auto-fill results, only <mod>/maps/sp_a2_triple_laser.bsp was found and <mod>/maps/example_subdir/sp_a2_triple_laser.bsp doesn't even show up.

Issue Map

Not map-dependent.

Expected Behavior

The engine should search through all subdirectories in the maps folder and show all found map files in auto-fill results of the map commands.

Operating System

Ubuntu 26.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThis is a problem with something that should be working one way, but isn't.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions