UE4GameLiftClientSDK icon indicating copy to clipboard operation
UE4GameLiftClientSDK copied to clipboard

Finding GameSessions

Open cashcache opened this issue 5 years ago • 4 comments

What is the preferred way to find a game session on a fleet? I have a Fleet setup by Alias and there is a running game session on that Fleet. I'd like my clients to be able to search a fleet (by the alias) to find one ore more game session.

Is this currently possible? I'm not sure how else to find game sessions without my testers needing to enter it manually each time. Thanks!

cashcache avatar Nov 11 '19 00:11 cashcache

So I just realized that the SearchGameSession functionality is already implemented in the master branch. However, I am still using the branch Chris suggested we use in his video. I think I remember being told that it was not a good idea to move to the latest version for one reason or another. Is this still the case?

cashcache avatar Nov 11 '19 22:11 cashcache

@cashcache could you actually try my pull request https://github.com/YetiTech-Studios/UE4GameLiftClientSDK/pull/21? I believe it is actually working with the searchgamesession functionality. Was waiting for someone else to test it before telling the owner of this repository to merge the pull request.

chris-gong avatar Nov 12 '19 13:11 chris-gong

@chris-gong I'm working on this now. It appears the enums have been removed - specifically EGameLiftGameSessionStatus. Do you have sample usage of all the entry points such as CreteGameSession(). I'm trying to find out how to set my success/failure callbacks with the modified code. If not, I'll start digging in and see if I can figure it out. Thanks.

cashcache avatar Nov 12 '19 18:11 cashcache

Well, I gave it a go, but I may be in over my head here. I pulled the #21 and added it to my project. Since the entry points have changed, I commented out all that code to see if I can get it to compile with the new client plugin version. I'm now getting the following errors:

'WITH_COGNITOIDENTIFY' is not defined as a preprocessor macro, replacing with '0' for #if/#elif' 'WITH_AWSCORE' is not defined as a preprocessor macro, replacing with '0' for #if/#elif'

Admittedly, I'm not strong enough in C++ to know how to troubleshoot any further. I'm happy to try suggestions if you have them.

cashcache avatar Nov 12 '19 23:11 cashcache