Announcement

Collapse
No announcement yet.

Advanced Sessions Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Has anyone had success using the Recent Players functionality? Using steam with a custom appid.

    Comment


      Originally posted by looter View Post
      Has anyone had success using the Recent Players functionality? Using steam with a custom appid.
      I haven't had much success outside of the basic features with Steam the last time I tried. (Quite a few engine versions ago.)

      Metahusk: A 501(c)(3) Creative Development Cooperative
      Projects | Forums | Repositories | Nonprofit | Donate

      Comment


        Hi, i'm trying to run my dedicated server with Steam using the plugin but i'm having the "0 current players" problem on update too and also sometimes when a player logs out from the server it becomes invisible from the in-game server browser, while Steam still shows it. What could i do in order to fix that? Restarting the system or changing the ports sometimes helps with the "invisible" issue. I'm using 4.13.2, thank you in advance.

        Comment


          can some one help me out and send me a non google drive link?

          edit: allright i could make a direct link by using the url ID from the link like this:

          https://drive.google.com/uc?export=d...092REpDNk4xNHc
          Last edited by t0b4cc0; 12-15-2016, 01:09 PM.

          Comment


            So it looks like steam is not setting the rich presence info "Joinable" correctly. bIsJoinable in Presence Info is never true, despite the join game option being available on steam itself. Has anyone else worked around this yet?

            Update: Turns out UE4 never sets the Joinable presence info to true and its up to us. I ended up creating delegates for all of the session events in my game instance, along with some helper functions for working with steamworks on its own and got it all working. If you throw AdvancedSessions on github I'd be more than happy to help work on some Advanced Presence stuff that'd make all of this alot easier. Here's the helper function I made, it requires you to include Steamworks in your project build file and the relevant header files in your game instance. The basic idea is to set Joinable to true after a successful JoinSession, CreateSession or StartSession, then set it to false on End/Destroy session. You'll probably want to periodically check if the max player count is reached in the session and set it back to false for all connected players.

            Code:
            bool UCGameInstance::SetRichPresence(FString Key, FString Value)
            {
            	ISteamFriends* SteamFriendsInt = SteamFriends();
            	if (SteamFriendsInt != nullptr)
            	{
            		if (SteamFriendsInt->SetRichPresence(TCHAR_TO_UTF8(*Key), TCHAR_TO_UTF8(*Value)))
            		{
            			return true;
            		}
            	}
            
            	return false;
            }
            Last edited by looter; 12-16-2016, 07:50 PM.

            Comment


              Hello,
              My game is crashing after the use of the node "Create Advanced Session" , here is some lines fo the log.

              [2016.12.27-17.05.32:499][ 0]LogProperty:Error: Struct type unknown for property 'StructProperty /Game/LoginContent/ServerMenu.ServerMenu_C:ExecuteUbergraph_ServerMenu.CallFunc_MakeLiteralSessionPropertyString_ReturnValue'; perhaps the USTRUCT() was renamed or deleted?

              The node works good on editor preview , but the game crash if is a cooked game.
              Last edited by EduHenrique; 12-27-2016, 01:35 PM.

              Comment


                I'm running into the same issue as before, where I can access your instance and all the BP nodes and such. However, Steam won't launch along with the game whatsoever when I launch it as standalone. I've tried removing the Saved folder which has worked before, but to no avail. And yes, I've enabled the Steam Online Subsystem plugin.

                Is there something else we need to do to get it to work?

                Edit: Not quite sure if or how I fixed it, but now it automagically decided to work.
                Last edited by Dealman; 01-03-2017, 07:43 AM.
                Why do all programmers wear glasses? Because they can't C#

                Comment


                  Originally posted by looter View Post
                  So it looks like steam is not setting the rich presence info "Joinable" correctly. bIsJoinable in Presence Info is never true, despite the join game option being available on steam itself. Has anyone else worked around this yet?

                  Update: Turns out UE4 never sets the Joinable presence info to true and its up to us. I ended up creating delegates for all of the session events in my game instance, along with some helper functions for working with steamworks on its own and got it all working. If you throw AdvancedSessions on github I'd be more than happy to help work on some Advanced Presence stuff that'd make all of this alot easier. Here's the helper function I made, it requires you to include Steamworks in your project build file and the relevant header files in your game instance. The basic idea is to set Joinable to true after a successful JoinSession, CreateSession or StartSession, then set it to false on End/Destroy session. You'll probably want to periodically check if the max player count is reached in the session and set it back to false for all connected players.

                  Code:
                  bool UCGameInstance::SetRichPresence(FString Key, FString Value)
                  {
                  	ISteamFriends* SteamFriendsInt = SteamFriends();
                  	if (SteamFriendsInt != nullptr)
                  	{
                  		if (SteamFriendsInt->SetRichPresence(TCHAR_TO_UTF8(*Key), TCHAR_TO_UTF8(*Value)))
                  		{
                  			return true;
                  		}
                  	}
                  
                  	return false;
                  }
                  I would take it into the plugin if required but that sounds more like something you should submit to the Epic Github as a patch to the engine instead, sounds like an oversite.

                  The plugin is now up on bitbucket btw (that is were i was hosting it for personal use).


                  Consider supporting me on patreon

                  My Open source tools and plugins
                  Advanced Sessions Plugin
                  VR Expansion Plugin

                  Comment


                    Hey guys.
                    I'm currently working on a multiplayer prototype and we are using this plugin. It's doing great so far.

                    So because my old laptop was pretty slow, I switched my second device to an MacBook Pro. I just found out that the downloadable version does not work on it (after searching this thread).

                    Is there any advise you can give me or some steps I can follow, to recompile the source to also work on my Mac? As I would love to not always Build the whole Game to test if my code is working.

                    EDIT:
                    Could it compiled for Mac now, but when getting the Steam User Avatar the Game crashes with the following log:
                    #0 at 0x11468f702

                    Unknown() Address = 0x11468f702 (filename not found) [in ???]
                    Unknown() Address = 0x11468f178 (filename not found) [in ???]
                    Unknown() Address = 0x11466a6d3 (filename not found) [in ???]
                    Unknown() Address = 0x11466a7de (filename not found) [in ???]
                    dyld_stub_binder Address = 0x7fffdeda548e (filename not found) [in libdyld.dylib]
                    Unknown() Address = 0x16b0d4888 (filename not found) [in ???]
                    UAdvancedFriendsLibrary::execGetSteamFriendAvatar(FFrame&, void*) Address = 0x16b0658c6 [../../../../../drommedar/Documents/Unreal Projects/Builder/Plugins/AdvancedSessions/Source/AdvancedSessions/Classes/AdvancedFriendsLibrary.h, line 35] [in UE4Editor-AdvancedSessions.dylib]
                    UFunction::Invoke(UObject*, FFrame&, void*) Address = 0x10757db22 (filename not found) [in UE4Editor-CoreUObject.dylib]

                    Do you have an idea why this happens? Some other methods work without a problem (like checking for a connection to the online subsystem).

                    EDIT2:
                    Just found out that it doesn't really use Steam at all. Could be that the crash is because of that.
                    Last edited by Drommedar; 01-14-2017, 07:43 AM.

                    Comment


                      Hey [MENTION=4285]mordentral[/MENTION], I'm having troubles with the plugin. Everytime I make an 'Advanced Session' I'm noticing significant FPS Drop. I've tried work arounds in the UE, but I'm basically stumped at this point. (I'm using 4.13.1). Any solutions or any fixes you can think of?
                      "Let's see if your bite is as big as your bark" -Mark Welch, Lurking in the Shadows.

                      Comment


                        Originally posted by Drommedar View Post
                        EDIT2:
                        Just found out that it doesn't really use Steam at all. Could be that the crash is because of that.
                        Looks like a lib file is missing somewhere.

                        Originally posted by MrJamesWeston View Post
                        Hey [MENTION=4285]mordentral[/MENTION], I'm having troubles with the plugin. Everytime I make an 'Advanced Session' I'm noticing significant FPS Drop. I've tried work arounds in the UE, but I'm basically stumped at this point. (I'm using 4.13.1). Any solutions or any fixes you can think of?
                        What do you mean when you "make"? As in when it is loading the new level? All the time? The nodes are asynchronous they shouldn't cause fps drops, but you didn't provide when in the hosting process that it has issues.


                        Consider supporting me on patreon

                        My Open source tools and plugins
                        Advanced Sessions Plugin
                        VR Expansion Plugin

                        Comment


                          Found sessions always show 1 player on server

                          Originally posted by ReaperF View Post
                          Hi, i'm trying to run my dedicated server with Steam using the plugin but i'm having the "0 current players" problem on update too and also sometimes when a player logs out from the server it becomes invisible from the in-game server browser, while Steam still shows it. What could i do in order to fix that? Restarting the system or changing the ports sometimes helps with the "invisible" issue. I'm using 4.13.2, thank you in advance.
                          Have a similar problem. Did anyone ever solve this issue with all found game sessions showing 1/16 players, regardless of how many players are actually on the server?
                          Would be super happy if there is a way to solve it. ^^
                          ______________________________________________
                          https://www.facebook.com/madhousesoftware
                          Where sanity is a virtue

                          Comment


                            Having issues in 4.14.3 FindSessions always returns length of 0. 4.13 no problems... everything works great. Lots of poeple on discord are saying same thing.... suggestions?
                            Sincerely,
                            Daniel Wallace
                            3d Artist & Project Management Specialist
                            walldiv@gmail.com
                            Skype: Walldiv
                            LinkedIn: www.linkedin.com/pub/daniel-wallace/8b/798/b39/
                            Wix Profile: http://walldiv.wix.com/danwallace
                            Demo Reel: https://www.youtube.com/watch?v=2gdI...ature=youtu.be

                            Comment


                              Originally posted by walldiv View Post
                              Having issues in 4.14.3 FindSessions always returns length of 0. 4.13 no problems... everything works great. Lots of poeple on discord are saying same thing.... suggestions?
                              Can you post the log? If something went wrong with the function it will list it there. Also do the default nodes work? Some people were updating without using the new version of the plugin and getting "Mismatched" engine build errors thrown.



                              Also I really don't know why this thread stopped giving me updates when posts are made in it......


                              Consider supporting me on patreon

                              My Open source tools and plugins
                              Advanced Sessions Plugin
                              VR Expansion Plugin

                              Comment


                                Originally posted by mordentral View Post
                                Can you post the log? If something went wrong with the function it will list it there. Also do the default nodes work? Some people were updating without using the new version of the plugin and getting "Mismatched" engine build errors thrown.



                                Also I really don't know why this thread stopped giving me updates when posts are made in it......
                                I have the same problem, LAN works perfectly, when they are not the find session retourn 0 ... I have 4.14.3 ... how do I fix? in previous versions it worked everything perfect ... thanks for the work done
                                Last edited by Andrea92; 01-23-2017, 06:51 PM.

                                Comment

                                Working...
                                X