[QUOTE=Syalen;751922]
Hi
First of all, really great job for the plugin, it’s awesome and very useful, so thanks Plus you’re really reactive, that’s pretty nice!
I downloaded your plugin for my blueprint project (4.13.2), which includes a dedicated server that must register itself on Steam.
First of all, I got the “Server setting overflows Steam SetGameTags call” warning, but I managed to fix it with your help, by renaming hardcoded defines in the source. Now, I only have 1 warning left:
[2017.08.19-01.31.48:995][460]LogScriptCore:Warning: Script Msg: StartSessionCallback - Invalid player state
[2017.08.19-01.31.48:996][460]LogScriptCore:Warning:
Since my server is a dedicated one, I do not pass any player controller while registering it (the server logs “Server registered on Steam”, and I can join it with FindSessions):
It appears that this warning is triggered by the “QueryIDFromPlayerController” function, called from the “UCreateSessionCallbackProxyAdvanced::OnStartCompleted” function. Here, you pass “PlayerControllerWeakPtr.Get()” as argument, but since (I think) I use a dedicated server, the player controller is probably equal to NULL. And then, in the “QueryIDFromPlayerController”, you use this:
if (APlayerState* PlayerState = (PlayerController != NULL) ? PlayerController->PlayerState : NULL)
{
UserID = PlayerState->UniqueId.GetUniqueNetId();
if (!UserID.IsValid())
{
FFrame::KismetExecutionMessage(*FString::Printf(TEXT("%s - Cannot map local player to unique net ID"), FunctionContext), ELogVerbosity::Warning);
}
}
else
{
FFrame::KismetExecutionMessage(*FString::Printf(TEXT("%s - Invalid player state"), FunctionContext), ELogVerbosity::Warning);
}
Since the player controller you pass is equals to NULL, the warning is triggered.
So, here are my questions:
- Is it normal that my “PlayerControllerWeakPtr.Get()” is NULL, if I try to register a dedicated server?
- Is it a problem to not pass through the “QueryIDFromPlayerController” function? What if I just skip that?
- How can I get rid of this warning, and do I need to?
If I’m asking you all of this, that’s because I have a problem in my game with Steam achievements and leaderboards (see here if interested), and my only warning is this one, due to this plugin. I know you may don’t know that, but do you think this warning can interfere with Steam achievements, and cause the warning I describe in my other post?
Really thank you for all the job you did, pretty awesome
It has nothing to do with an achievements problem, and is actually an ignorable message with dedicated servers.
Thanks for the heads up though, I should really be bypassing the player controller check there entirely if it is a dedicated server, there is no reason to go through it since there is no player controller on a dedicated server. I’ll make a change that will roll in with the next update at some point since it is a log message and not an actual bug.
Edit actually removed the call entirely, not using a player controller in that function anyway.