Skip to content

Commit 039614e

Browse files
committed
update for 5.1
- api changes for socketioclient plugin v2.5.0 - required define of log category in MLRemote
1 parent 18b5e7d commit 039614e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

MachineLearningRemote.uplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
33
"Version": 1,
4-
"VersionName": "0.7.1",
4+
"VersionName": "0.8.0",
55
"FriendlyName": "MachineLearningRemote",
66
"Description": "Machine Learning plugin for the Unreal Engine, encapsulating calls to remote servers running Tensorflow or Pytorch. Contains base API for many specialized plugin variants to be easily swappable without changing developer bind.",
77
"Category": "Computing",

Source/MachineLearningRemote/Private/MachineLearningRemote.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include "MachineLearningRemote.h"
44
#include "MachineLearningBase.h"
55

6+
DEFINE_LOG_CATEGORY(MLBaseLog);
7+
68
#define LOCTEXT_NAMESPACE "FMachineLearningRemoteModule"
79

810
void FMachineLearningRemoteModule::StartupModule()

Source/MachineLearningRemote/Private/MachineLearningRemoteComponent.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ void UMachineLearningRemoteComponent::BeginPlay()
6262
}
6363

6464
//Setup callbacks
65-
Socket->OnConnectedCallback = [this](const FString& InSessionId)
65+
Socket->OnConnectedCallback = [this](const FString& SocketId, const FString& SessionId)
6666
{
6767
if (Socket.IsValid())
6868
{
6969
bIsConnectedToBackend = true;
70-
OnConnectedToBackend.Broadcast(InSessionId);
70+
OnConnectedToBackend.Broadcast(SessionId);
7171

7272
if (bStartScriptOnConnection)
7373
{
@@ -133,7 +133,7 @@ void UMachineLearningRemoteComponent::BeginPlay()
133133
void UMachineLearningRemoteComponent::EndPlay(const EEndPlayReason::Type EndPlayReason)
134134
{
135135
Socket->Disconnect();
136-
Socket->ClearCallbacks();
136+
Socket->ClearAllCallbacks();
137137

138138
if (bServerIsRunning)
139139
{

0 commit comments

Comments
 (0)