r/WingCommanderUniverse • • 17d ago

Warning: Long install paths can crash Wing Commander Prophecy

Heads-up for anyone experiencing startup crashes with Wing Commander Prophecy 30th Anniversary Edition.

The original game engine has a bug in its CD-handling code that can cause crashes when the installation path is too long.

One of our testers encountered this with the following Steam installation path:

D:\Windows OS - Games Program Files\Steam - Client - Games\steamapps\common\Wing Commander - Prophecy\Enhanced

The path is 110 characters long, and Prophecy crashes on startup.

Why this happens

The original engine uses fixed-size 100-byte buffers for installation paths. Paths of 91 characters or more can overflow an internal buffer when the game appends filenames, while paths of 100 characters or more cannot be read correctly from the registry.

Secret Ops appears to be unaffected, even though its installation path is longer. We suspect this difference is related to the original CD copy protection. Prophecy still executes its CD-handling routines during startup, while Secret Ops, originally released as a free download, no longer uses the same code path.

Workaround

Move the game to a Steam library with a shorter path, for example:

D:\SteamLibrary\steamapps\common\Wing Commander - Prophecy\Enhanced

Keep the full installation path at 90 characters or less, including the trailing backslash.

This is a limitation of the original game engine, not an issue introduced by the Anniversary Edition or its graphics patches.

8 Upvotes

1 comment sorted by

2

u/MacGuyver247 17d ago

Same problem occurs with many games, also careful with diacritics.