Download

Can't start an online game for session (Game) that hasn't been created

What’s the story with the error “Can’t start an online game for session (Game) that hasn’t been created”? I’m seeing some hints that it’s related to Steam, but I’m not sure about that. Also, I noticed that in my GameSessions class that HostSession() never gets called to create a session. It looks like something is missing, but I don’t know what.

(My code is based on the ShooterGame example.)

Its a 2 step process, you need to first host the session and then call StartSession() to actually start it. The game i’m working on I call HostSession from my UMG menu widget. if you follow the game session host function you’ll see its getting called from the Game Instance which is used in the widget menu class in the ShooterGame

Incase anyone looking sees this…
In my case (Based on shootergame as well)
I was calling HostGame() from a UMG based widget.
First to get it to show up i had to call SetOnline, then host game, then it shows up and i can see the sessions from blueprints. woop.