Skip to content

Commit

Permalink
show online subsystem in lobby menu, change eos settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SFuhrmann committed Oct 18, 2024
1 parent e374c9a commit 4b9079e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Config/DefaultEngine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ GameName=OdinUnrealSample
[/Script/Engine.Engine]
+ActiveClassRedirects=(OldClassName="/Script/PhotonDemoParticle.PhotonLBClient",NewClassName="/Script/OdinUnrealSample.PhotonLBClient")

[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
+NetDriverDefinitions=(DefName="DemoNetDriver",DriverClassName="/Script/Engine.DemoNetDriver",DriverClassNameFallback="/Script/Engine.DemoNetDriver")

[/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/Maps/Lobby.Lobby
TransitionMap=
Expand Down Expand Up @@ -290,13 +295,14 @@ ManualIPAddress=
[/Script/OnlineSubsystemEOS.EOSSettings]
CacheDir=CacheDir
DefaultArtifactName=OdinTechDemo
RTCBackgroundMode=
TickBudgetInMilliseconds=0
bEnableOverlay=True
bEnableSocialOverlay=False
bEnableEditorOverlay=True
bUseLauncherChecks=true
bPreferPersistentAuth=False
TitleStorageReadChunkLength=0
+Artifacts=(ArtifactName="OdinTechDemo",ClientId="xyza7891sGny9XgwwoemBhEtcdqBLJzF",ClientSecret="PuhTi6v+f1CJZ4U6ciXomR5mqszjvMtIaJZtUb3MFvc",ProductId="d32c08ed3f8748ed9acd524f76a0984f",SandboxId="28c4620348f946829cfa7dd482ea5b2b",DeploymentId="d3c8d8c7ed0d4d87ab7a50c2a0094c45",ClientEncryptionKey="ab7adf02eb4473d8ee6296275acc4ef426492705021963df282ef37915abe8b9")
+Artifacts=(ArtifactName="OdinTechDemo",ClientId="xyza7891Cuze2kv36y1wIGenT7FgzWma",ClientSecret="Ey5yR1Fsy49Z/U5uPhUVtpu4HwxRKito24mGLiEWVPA",ProductId="2082b359b5594412b2e9730a2e1ce26d",SandboxId="ce2a6d01a5124712b6b6de49f84631ed",DeploymentId="3f586ca0c3e340f69a53d7d0b08f08cf",ClientEncryptionKey="ab7adf02eb4473d8ee6296275acc4ef426492705021963df282ef37915abe8b9")
-AuthScopeFlags=BasicProfile
-AuthScopeFlags=FriendsList
-AuthScopeFlags=Presence
Expand All @@ -306,6 +312,7 @@ bMirrorStatsToEOS=False
bMirrorAchievementsToEOS=False
bUseEOSSessions=True
bMirrorPresenceToEAS=False
SteamTokenType=Session

[OnlineSubsystemEOS]
bEnabled=true
Expand All @@ -317,11 +324,6 @@ DefaultPlatformService=EOS
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
+NetDriverDefinitions=(DefName="DemoNetDriver",DriverClassName="/Script/Engine.DemoNetDriver",DriverClassNameFallback="/Script/Engine.DemoNetDriver")

[/Script/OnlineSubsystemEOS.NetDriverEOSBase]
bIsUsingP2PSockets=true

Expand Down
Binary file modified Content/Blueprints/Game/GameInstance_TD.uasset
Binary file not shown.
Binary file modified Content/Blueprints/Odin/OdinClientComponent.uasset
Binary file not shown.
Binary file modified Content/Blueprints/Widgets/LobbyMenu.uasset
Binary file not shown.
3 changes: 3 additions & 0 deletions Source/OdinUnrealSample/Private/EosPlayerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


#include "EosPlayerController.h"
#include "Misc/ConfigCacheIni.h"
#include "OnlineSubsystem.h"
#include "OnlineSubsystemUtils.h"
#include "OnlineSubsystemTypes.h"
Expand Down Expand Up @@ -129,6 +130,8 @@ void AEosPlayerController::BeginPlay()
// Tutorial 2: On BeginPlay call our login function. This is only on the GameClient, not on the DedicatedServer.
Super::BeginPlay(); // Call parent class BeginPlay() function
//Login(); //Call login function

GConfig->GetString(TEXT("OnlineSubsystem"), TEXT("DefaultPlatformService"), SelectedSubsystem, GEngineIni);
}

void AEosPlayerController::CreateLobby(FName KeyName, FString KeyValue)
Expand Down
3 changes: 3 additions & 0 deletions Source/OdinUnrealSample/Private/EosPlayerController.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class AEosPlayerController : public APlayerController
// Class constructor. We won't use this in this tutorial.
AEosPlayerController();

UPROPERTY(EditAnywhere, BlueprintReadWrite)
FString SelectedSubsystem;

protected:
// Function called when play begins
virtual void BeginPlay();
Expand Down

0 comments on commit 4b9079e

Please sign in to comment.