If you plan to ship your Unreal Engine game on both Steam and the Epic Games Store, here is a nasty trap that almost cost us our store certification.
If you follow standard tutorials for Steam achievements and multiplayer, you probably put this in your DefaultEngine.ini:
[OnlineSubsystem]
DefaultPlatformService=Steam
Here is the problem: when you package your game and upload that build to the Epic Games Store, the game boots up, tries to initialize Steamworks, finds no running Steam client, and either fails silently or pops up a Steam login prompt for your Epic players. Epic will instantly fail your build in cert for this.
The standard advice on forums is to maintain two separate build configurations, or cook two different packages with different INI files. That means doubling your QA time and packaging twice for every minor patch.
You do not actually need two builds. Here is how we fixed it so a single packaged game works on both stores:
- How Epic marks its launch: The Epic Games Store launcher always starts your game executable with a hidden command line flag: -EpicPortal, followed by the player exchange code. If someone opens your game from Steam or runs the .exe directly, that flag is missing.
- Intercepting before subsystems load: Unreal initializes its OnlineSubsystem very early in the engine boot cycle. If you wait until BeginPlay, it is already too late. You need an early boot hook (like an engine subsystem or GameInstance Init) that checks FCommandLine::Get() for -EpicPortal.
- The in-memory override: If -EpicPortal is detected, you tell the engine in memory to use EOS as the platform service for that session, and pass the auth token to Epic Account Services. If the flag is not there, you let Steam take over. This changes the setting in memory only, without touching your disk INI files.
- The delay-load safety net: Make sure the Steamworks SDK is delay-loaded in your project Build.cs. That way, when an Epic player runs your game, the Steam DLL is never even loaded into memory, keeping your process clean and avoiding background crashes.
- Unified Blueprint nodes: Once the boot routing is in place, you do not need platform branches in your gameplay code. One node like Award Achievement will automatically talk to EOS for Epic players and Steam for Steam players.
We packaged our complete implementation of this auto-router, along with offline SaveGame fallback and automatic INI generators, into a plugin on Fab (Scar Achievement System: https://www.fab.com/listings/ce45babf-2aa8-4473-8403-3f915b340bbc).
Whether you grab the plugin or write the boot hook yourself, definitely check your command line handling before submitting your build to Epic. It will save you a failed review cycle!