mordentral / AdvancedSessionsPlugin

Advanced Sessions Plugin for UE4
https://www.vreue4.com
MIT License
597 stars 141 forks source link

C++ Example #2

Closed gustavomassa closed 4 years ago

gustavomassa commented 4 years ago

Hello, thank you for this amazing plugin.

Do you have any example/project that uses this plugin calling directly the C++ functions? Also, this plugin supports the Steam Sockets Plugin? https://docs.unrealengine.com/en-US/Gameplay/Networking/HowTo/SteamSockets/index.html

mordentral commented 4 years ago

There is literally no reason to use this plugin with C++, the only point of the plugin is to expose c++ functions to BP, you already have access to everything in c++.

Also steam sockets is a networking layer drop in replacement and doesn't interact with the high level subsystem uses.

gustavomassa commented 4 years ago

Your code has really useful functions that could be used with C++ to create a wrapper around the OnlineSubSystem API. I mean create a simple wrapper that implements all the boilerplate necessary to initialize/configure the session, making available basic functions for session control, like create/start/find/join/destroy. Also, I found that enabling steam sockets with the same configs does not work out of the box, giving errors when calling the GetResolvedConnectString function.

The documentation for OnlineSubsystem and steam integration is really a mess, as well on how to create/configure dedicated servers and run with steam integration, also there are many hidden configs for OnlineSubstems on the DefaultEngine.ini so the idea is to have some service that works out of the box with basic configurations. I will create a basic SessionService with Async/Future functions to avoid delegates/callbacks for easy usage.