The Heroic flatpak is not officially integrated. This wiki page's instructions may not work for all situations and Batocera cannot provide support help for it, use at your own discretion.
Heroic Games Launcher is an open-source launcher available on Flathub which supports launching games from the Epic Games Store using Legendary and GOG Games. Unfortunately this launcher is not as fully integrated into Batocera as other flatpaks are so some manual work is required.
If you already have the Heroic Launcher Flatpak package installed, it will conflict. Uninstall it first.
Method tested with Batocera 44. x86_64-v3: you can install it from the command line in XTerm or a SSH session:
First make sure that the correct flatpak repository is available, by running the command:
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Then, install the flatpak (confirm with Yes the install) with:
flatpak install flathub com.heroicgameslauncher.hgl
Now, once installed edit a file /userdata/roms/flatpak/Heroic.sh (as explained on this page with the following content:
#!/bin/sh flatpak run com.heroicgameslauncher.hgl --no-sandbox --fullscreen
Once you reload the game lists from EmulationStation (Game Settings –> Update Gamelists) you will find a newly created Heroic launcer in the Ports section of EmulationStation. This is the one you need to launch, not the “Heroic Games Launcher” one with the sword icon, unfortunately, this one cannot be launched on Batocera, at the time of writing.
Heroic Games Launcher will offer two services to login to. Log in to the appropriate one (or select Manage Accounts):
As alternative for Epic Store login, the External Login is available, this way you have to inform your Epic Store Account SID to log in properly.
Your games will appear in the Library split between Epic Games and GOG. It could take a while to download all games' information and boxart.
Games may take a while to initially launch as they need to compile shaders for your hardware.
Right now, Batocera isn't integrated to Heroic Games Launcher; its games will not be automatically added and launchable with EmulationStation like Steam does. This may change in the future.
If no game from Epic Game Store can launch, and the log files complain that they can't be launched as root, you might still want to override this restriction by:
GE-Proton (latest)wine tab switch from Proton-CatchyOS to GE-Protonlegacy tab, enable Disable umu