-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateSession returns EOS_InvalidParameters on first run #40
Comments
Hmm... I can't reproduce the error. And while I found a small bug that the |
I've uploaded a minimal working example here (without the Config or Plugins folders). The other bugs that I reported can also be found here. In order to use it, open the DefaultMap where there's a BP_MultiplayerTester actor on the level, and Play. The I key will login, O key will logout, N key will create a new session, and F key will find sessions. Let me know if this works, thanks! |
Were you able to find the created session afterwards using the FindSessions method? Also, were you able to create the session on the very first try, or did you have to run it twice? |
Haven't tested a |
I was also able to see it in the web interface without issue, but had no luck retrieving it with FindSessions. |
I'll look into |
So I cannot reproduce the session creation bug. With your minimal working example everything works as expected. I can also not confirm #41, at least not like you wrote the bug report, I can however confirm another bug regarding to finding sessions. |
Environment
Steps to reproduce
and set BucketId from FString input parameter:
NewSessionSettings->Set(FName("BucketId"), BucketId, EOnlineDataAdvertisementType::ViaOnlineServiceAndPing);
3. Call CreateSession with the settings.
Expected behaviour
Successful creation of new session.
Actual behaviour
On first run, we get the error
[2020.07.17-04.41.49:918][733]LogOnlineSession: Warning: OSS: Cannot update setting: bUsesPresence - Error Code: EOS_InvalidParameters
The error occurs in the
CreateSessionModificationHandle
method ofOnlineSessionInterfaceEpic
. Specifically, on the following call to the EOS SDK:eosResult = EOS_SessionModification_AddAttribute(ModificationHandle, &attrOpts);
On a hunch, I also tried to reorder the sequence of adding attributes, so that NumPublicConnections comes first, but with the same result.
On the second run, the session is created successfully.
The text was updated successfully, but these errors were encountered: