Announcement

Collapse
No announcement yet.

Advanced Sessions Plugin

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

    Hi and thank you for a great plugin. I am having a lot of problems trying to get dedicated server to work with Steam. Right now the dedicated server shows up in steam's server browser but Advanced Find Server node cant find the server at all. The only warning I am getting from the logs is that "session callback player state not found". However I am not sure what I am doing wrong. Can anyone help with this or verify that they got dedicated servers to work with Steam? I am using presence false and dedicated true.

    Comment


      Originally posted by xinran View Post
      Thank you so much for your reply! It is very thoughtful and inspiring, and I truly appreciate it!

      However, I have a minor question. Probably I misunderstand some knowledge somewhere. I thought that OnlineSubsystems (including NULL) and "open IPAddress" are two separate (i.e. parallel) approaches. So I do not entirely understand how it is possible that "subsystem null can be used with direct IP connections". Could you please explain it a little bit? For example, do you mean that executing command "open IPAddress" can take a client into a specific Session on a server? Or can we use voice chat with only "open IPAddress" (i.e. without Sessions at all)? I don't think we can do these two things, right? Or do you mean that the usage of direct IP connections can apply at both LAN and Internet scales? Thank you again!
      NULL searches for local (LAN) sessions and when you join a session it directly connects to the IP of it. It should be fairly simple to modify it to use your master server to find sessions instead is what I was trying to say.

      NULL is missing many of the features of the full subsystems but you can fill those out as required and NULL DOES support voice.


      Consider supporting me on patreon

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

      Comment


        Thank you! Now I understand your suggestion. Really makes sense. I am going to look at the implementation details. You are very kind. Thank you again!

        Comment


          Thanks for the response! To clarify, the bool is always returning True, even though none of my Steam friends are playing the game I am working on. Also, I did understand that it was Game and not Server

          Another question, do you think you will add support for such things as "View Profile" and "Send Message"?
          Last edited by thevfxguy13; 03-04-2016, 12:43 AM.
          displacemedia.com / @displacemedia / @thevfxguy13

          Vortex - Unreal Engine 4 Powered 2-4 Player Physics Driven Top Down Shooter

          Comment


            Originally posted by thevfxguy13 View Post
            Thanks for the response! To clarify, the bool is always returning True, even though none of my Steam friends are playing the game I am working on. Also, I did understand that it was Game and not Server

            Another question, do you think you will add support for such things as "View Profile" and "Send Message"?

            There are a few additional things I can add around that area, many of the functions are not implemented in every subsystem so it is hit and miss and I tend to focus on steam enabled features as it is the largest user base normally (plus other subsystems remain kind of broken).


            I'll see what I can add today while looking at the "In same game" issue.

            *Edit* Found the problem with "InSameGame", fixed it and also went ahead and exposed ALL of the presence info to the friends struct now as a member "PresenceInfo" struct. I have kept the same variables in the original FBPFriendInfo structure though so it won't break peoples node layouts. Its just duplicating one byte and one bool per friend so it shouldn't be a big deal.
            Last edited by mordentral; 03-04-2016, 10:27 AM.


            Consider supporting me on patreon

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

            Comment


              Hi, so i'm using 4.8.3 (don't ask why)

              Anyway, long and short of it I just can not get this thing to compile (i'm using the 4.8.3 source branch on git), i've made sure that "OnlineSubsystem, OnlineSubsystemUtils, OnlineSubsystemSteam, AdvancedSessions" are all in the PublicDependencyModuleNames

              however at build time I get

              1>REDACTED\plugins\advancedsessions\source\advancedsessions\classes\AdvancedFriendsInterface.h(4): fatal error C1083: Cannot open include file: 'OnlineSubSystemHeader.h': No such file or directory
              and absolutely nothing I do seems to solve this, anybody else has this issue or know how to fix?

              Comment


                Uploaded new version

                • Fixed bIsInSameGame and added more presence related information to the friendinfo struct (two of the presence fields are both in the main struct and the presenceinfo struct, this is to prevent breaking currently working nodes, it is only two bytes overlap anyway).

                • Exposed missing ExternalUIInterface functions to BP with the AdvancedExternalUI blueprint node set. This includes using built in UI's to the subsystem to invite friends to sessions, view the profiles of players, load up websites and a few more things.

                • Set the default values for the UpdateSession node to sane numbers but the correct usage is still to set all of the pins when using it.

                • Exposed the NumPrivateConnections variable to both the create and update session nodes (not sure how I originally missed this).

                • Last thing to note is that I updated the examples blueprint to have all of the missing and new nodes and to fix a few areas that have changed over the versions, it should be a far better reference now.



                The new ExternalUI Nodes
                Last edited by mordentral; 03-04-2016, 04:02 PM.


                Consider supporting me on patreon

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

                Comment


                  Thanks for the quick update and for all of your contributions! The new features will definitely be a big help.
                  displacemedia.com / @displacemedia / @thevfxguy13

                  Vortex - Unreal Engine 4 Powered 2-4 Player Physics Driven Top Down Shooter

                  Comment


                    Originally posted by GotSomePills View Post
                    Hi, so i'm using 4.8.3 (don't ask why)

                    Anyway, long and short of it I just can not get this thing to compile (i'm using the 4.8.3 source branch on git), i've made sure that "OnlineSubsystem, OnlineSubsystemUtils, OnlineSubsystemSteam, AdvancedSessions" are all in the PublicDependencyModuleNames

                    however at build time I get



                    and absolutely nothing I do seems to solve this, anybody else has this issue or know how to fix?
                    If you aren't using the 4.8.3 download then it won't work at all because they changed some of how the subsystem worked since then.

                    Also you somehow messed up the file structure, OnlineSubsystemHeader is a header file I use to manage the includes in the library, if you are using the 4.8.3 version then it should work as is (Granted that version is missing a lot of fixes and improvements).


                    Consider supporting me on patreon

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

                    Comment


                      Thank you very much for this plugin!

                      Comment


                        I'm using the 4.8.3 version from the post, creates the /Plugins/AdvancedSessions/ folders and extracted the archive to there. Tried again from scratch and i'm just getting nowhere

                        Comment


                          Okay so starting from scratch, this time using the .uproject file to compile instead of VS i got it working. Turns out if you make the plugins folder, generate VS files and try to compile a plugin that way it breaks. I had to move the plugin over then open the uproject file, it asked if i wanted to rebuild the plugin (source build of 4.8.3) and it worked fine. No idea what that was all about

                          Comment


                            Is there a bool where you can start a session as dedicated server?
                            Unreal Developer since Unreal Engine 3

                            Comment


                              Okay scratch that last post, i've got it compiling now, but as soon as I try to include AdvancedFriendsGameInstance.h in my game instance class to inherit from it i get:

                              1>E:\Repositories\RefactorBranch\Plugins\AdvancedSessions\Source\AdvancedSessions\Classes\AdvancedFriendsGameInstance.h(4): fatal error C1083: Cannot open include file: 'OnlineSubSystemHeader.h': No such file or directory
                              if I change the include to point to the location then I get the same error but with one of the .generated files.

                              i'm definitely using the correct version for 4.8.3 so i'm not sure what it is i'm doing wrong.

                              EDIT: Also, will this be getting updated to 4.11 when its released?
                              Last edited by GotSomePills; 03-08-2016, 06:59 AM.

                              Comment


                                Originally posted by CLBander View Post
                                Is there a bool where you can start a session as dedicated server?
                                Yeah in the createadvancedsessions node there is a bool for dedicated and you have to toggle off the "use presence" boolean as well. There seems to be some issues getting dedicated steam servers working (period, not just with the plugin). I haven't tried to make one myself so I can't help in that area at the moment.



                                Originally posted by GotSomePills View Post
                                Okay so starting from scratch, this time using the .uproject file to compile instead of VS i got it working. Turns out if you make the plugins folder, generate VS files and try to compile a plugin that way it breaks. I had to move the plugin over then open the uproject file, it asked if i wanted to rebuild the plugin (source build of 4.8.3) and it worked fine. No idea what that was all about
                                Shouldn't have to do that, when I regenerate my project files the plugins are added into the project under their sub folders and compile fine.


                                Originally posted by GotSomePills View Post
                                Okay scratch that last post, i've got it compiling now, but as soon as I try to include AdvancedFriendsGameInstance.h in my game instance class to inherit from it i get:



                                if I change the include to point to the location then I get the same error but with one of the .generated files.

                                i'm definitely using the correct version for 4.8.3 so i'm not sure what it is i'm doing wrong.

                                EDIT: Also, will this be getting updated to 4.11 when its released?
                                Yes I will update asap when 4.11 is out. Make sure your folder structure is "project/plugins/advancedsessions/", I don't know if you are using a custom build of 4.8.3 but the plugin worked fine on that version (aside from some bugs that have been fixed since).


                                Consider supporting me on patreon

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

                                Comment

                                Working...
                                X