UE4GameLiftClientSDK
UE4GameLiftClientSDK copied to clipboard
Finding GameSessions
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!
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 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 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.
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.