Skip to content

Default CNC_GENERALS_PATH is not applied when launching Zero Hour #205

Description

@TheHolyLoli

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Operating System

  • macOS
  • Linux
  • Other (please specify below)

Bug Description

When launching Zero Hour without manually setting CNC_GENERALS_PATH, the game does not find the base Generals assets located in:

~/GeneralsX/Generals/

As a result, textures appear purple and some sounds are also missing.

The base Generals game works correctly and can load the assets from the same directory.
According to the expected behavior, when CNC_GENERALS_PATH is not set, it should default to:

~/GeneralsX/Generals/
However, Zero Hour does not appear to use this default path.

Reproduction Steps

1.Place the base Generals assets in:
~/GeneralsX/Generals/
2.Make sure CNC_GENERALS_PATH is not set:
unset CNC_GENERALS_PATH
3.Launch Zero Hour:
flatpak run com.fbraz3.GeneralsXZH
4.Start the game and observe that textures and sounds are missing.

Expected Behavior

Zero Hour should automatically search for the base Generals assets in:

~/GeneralsX/Generals/

when CNC_GENERALS_PATH is not explicitly set.

Actual Behavior

Zero Hour does not find the base game assets unless CNC_GENERALS_PATH is manually defined.

Workaround

The assets load correctly when launching the game with:


export CNC_GENERALS_PATH="$HOME/GeneralsX/Generals"
flatpak run com.fbraz3.GeneralsXZH

After setting the environment variable, all textures and sounds load normally.

Additional Context

Fedora KDE 44 / Flatpak

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions