I am working on an application which establishes online connections between multiple android devices and I am looking for a solution to switch between LAN and Online(EOS) at runtime. I know, there is a boolean for that - “use LAN”, but this options does not work for me.
I think the reason for that is the modified DefaultEngine.ini, which at least is necessary when using the “EOS Core Plugin” from eelDev.
[OnlineSubsystem]
DefaultPlatformService=EOS
Right now the only solutions seems to be packing to versions - one for offline, one for online which is really not that ideal…
If anyone has an idea how to solve this, please let me know.
if it would make things easier, switching on runtime would not be even necessary - maybe just somehow changing the AndroidEngine.ini and Defaultengine.ini from inside the game and using these settings for the next launch…
I am using this to check which online subsystem is set and changing the ini settings from “Null” to “EOS” (also the netdrivers) or vice versa. I also removed everything regarding online subsystem settings from the defaultengine.ini and just setting everything via blueprints. If you know exactly what you are doing (which I don’t) this might not be necessary…
Important: This just works with a restart of the game - quit and start again (so the new driver gets loaded)
And for testing, its necessary to use “standalone game”, not “preview in editor”. It seems the editor sticks to the ini settings found on startup - so worst case UE will crash when previewing inside the viewport because it wants to start an EOS session with the wrong drivers…
Thanks this solution is really helpful. Did you find a way to restart the engine itself after changing the config - without the user needing to open the application again?
Hey @david.gillespie , glad I could help. I never found another way to do it without manual restart. I guess it’s possible, but probably only with some coding outside of Unreal, like a script that that gets triggered while quitting the app. But I suppose this is where it gets very tricky in terms of security.
And I would hope that UE and newer versions of EOS in the meantime provide an easier way to change the drivers, especially since switching between LAN and online seems pretty common. Always hoped for a general driver…
Have you tried asking in eelDevs Discord? He and the other users were always a great help.
This plugin doesn’t work for me. On UE 5.0.3, it can’t find engine.ini in absolute or using the parsers, it gives you the engine binaries folder Oo.
Do you have any idea ?
If only Epic could just add “offline” in EOS plugin or add a two-drivers system in UE… Some of us don’t want to make always online gatcha/micro-transaction fest games as service !