Hi there…
Since there´s no answer on the Forum yet, i wanted to ask here…
I tried to activate OnlineSubsystem Null. Therefor i added
[OnlineSubsystem]
DefaultPlatformService=Null
to the DefaultEngine.ini.
In the name.build.cs i changed the code to:
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "OnlineSubsystemNull", "OnlineSubsystemUtils" });
PrivateDependencyModuleNames.AddRange(new string[] { "OnlineSubsystem" });
Should be enough, if i follow the tutorials.
Sow. i made a simple Host Menü and Find/Join Menü.
Host Button calls a custom Event in the GameInstance, that shows a Loading Screen and calls CreateSession. Additional, there´s a checkbox to change LAN usage.
When a Session is created and OnSuccess is fired, it Opens the Lobby Level with “listen” as Option (and Absolute checked).
Find/Join Menü has a search Button. When the FindSessions fires success AND results.length != 0, it joins the first result. If Length is 0, or OnFailure is fired, it returns to title and shows a warning Widget.
I want to try the system locally with 2 PIE Windows (or Viewport + Window).
The Problem is:
CreateSession works and my server/client is transfered to the Lobby Map.
the Client tries to FindSessions, this fires OnSuccess, but the Results are always empty (length = 0). So joining is not possible… wether with, nor without LAN.
I tried direct connection with Console Command and ["open ip], too. No success.
I´m nearly giving this up, since i´m struggling with that for a Week now… and it really bothers me, cause there´s not much help anywhere. Event the Epic Documentation and Wiki is not helpful or outdated…
So… i hope you guy can give me some help.