Hi all,
I am attempting to use the Create Session node inside my level blueprints. On begin play I check that the program is a dedicated server, then I delay 1 second, then attempt to create the session with 3 public connections and UseLAN set to true. However when I run it get the error the Script Msg: CreateSession - Invalid player state
, this happens both when I run the program from the editor using the -server -log
options and in a packaged server build.
Although I am using a custom gamemode in c++ inherited from AGameModeBase
the blueprint gamemode that inherits from my c++ gamemode has the default PlayerState
selected for “Player State Class”.
The correct modules ( "OnlineSubsystem", "OnlineSubsystemNull", "OnlineSubsystemUtils"
) have been added to my Build.cs file and
[OnlineSubsystem]
DefaultPlatformService=Null
has been added to my DefaultEngine.ini file.
Any ideas what might be going on?