Announcement

Collapse
No announcement yet.

Advanced Sessions Plugin

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

    Since I'm now working on a project I'm taking a little bit more serious, I decided to check this out today before I take any of my multiplayer stuff any further. Took some scratching my head, but once I figured it out - the way it works just makes sense and is really easy to work with. Thus far I've only made a simple friends list though.

    Does it have a Wiki page or some other means of documentation? There are some things that remain a mystery to me such as what presence, advertise and uses stats entices.

    I personally would love to help contribute to a Wiki page.

    Edit:

    Not sure if a bug, or me doing something wrong. But I can't seem to get my own steam username...? I can get my own avatar just fine by using Get Friend Steam Avatar, but using Get Friend(on my own net ID) does not yield any results. I'm assuming this is because Get Friend, much like the name implies - only work for your friends?
    Last edited by Dealman; 04-28-2016, 11:01 PM.

    Comment


      Originally posted by Dealman View Post
      Since I'm now working on a project I'm taking a little bit more serious, I decided to check this out today before I take any of my multiplayer stuff any further. Took some scratching my head, but once I figured it out - the way it works just makes sense and is really easy to work with. Thus far I've only made a simple friends list though.

      Does it have a Wiki page or some other means of documentation? There are some things that remain a mystery to me such as what presence, advertise and uses stats entices.

      I personally would love to help contribute to a Wiki page.

      Edit:

      Not sure if a bug, or me doing something wrong. But I can't seem to get my own steam username...? I can get my own avatar just fine by using Get Friend Steam Avatar, but using Get Friend(on my own net ID) does not yield any results. I'm assuming this is because Get Friend, much like the name implies - only work for your friends?
      Sorry I haven't made a wiki, it takes most of my free time maintaining and working on my projects and writing documentation is not my strong suite. Regardless everything that applies to c++ subsystem pretty much applies to this as I am exposing them.

      Get friend literally only works on your friends list, you can get your own steam name in the engine by accessing the player state of yourself and getting the name, I didn't need to modify anything there.


      Consider supporting me on patreon

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

      Comment


        Originally posted by mordentral View Post
        Sorry I haven't made a wiki, it takes most of my free time maintaining and working on my projects and writing documentation is not my strong suite. Regardless everything that applies to c++ subsystem pretty much applies to this as I am exposing them.

        Get friend literally only works on your friends list, you can get your own steam name in the engine by accessing the player state of yourself and getting the name, I didn't need to modify anything there.
        No worries man, it was pretty straightforward once I had done it once. I haven't touched any of the C++ just as my programming knowledge is fairly limited and I've only ever worked with C# and Lua before, I'm afraid I'll make everything explode. If you ever get around to creating a basic Wiki page for the plugin, it naturally should fill itself with information as users help contribute to it.

        I assumed that was how it worked, but wasn't sure how to get my own username. Thanks for the clarification, really appreciate it!

        Comment


          Hi mordentral I recently opened a Case on AnswerHub to get some help from Unreal itself regarding my joining session problem.
          If you want you can take a look yourself and maybe give some hints to lead me to the right track.
          https://answers.unrealengine.com/que...-with-ste.html
          Best regards Schlumpf

          Comment


            Originally posted by dasschlumpf View Post
            Hi mordentral I recently opened a Case on AnswerHub to get some help from Unreal itself regarding my joining session problem.
            If you want you can take a look yourself and maybe give some hints to lead me to the right track.
            https://answers.unrealengine.com/que...-with-ste.html
            Best regards Schlumpf
            I replied on answerhub, you appear to have a bad property in your driverclass definitions, this may be stopping it from initializing them. Your "DriverClassFallback" appears to be declared as "DriverClassFall?back"?

            It is throwing the fatal error when it fails to create the NetDriver.


            Consider supporting me on patreon

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

            Comment


              Hello Everybody,
              I've tested the start/stop voice - but i'm wondering if it's possible to implement team voice: team A only hear team A, and Team B...
              Do uou know if it's possible with the actual plugin please ?
              Thanks
              My blog about video game development and game engines (FR + Translation)
              My books about Unreal Engine 4 & Blender Game Engine (FR only)
              Facebook - Twitter - Youtube

              Comment


                Originally posted by benicourt View Post
                Hello Everybody,
                I've tested the start/stop voice - but i'm wondering if it's possible to implement team voice: team A only hear team A, and Team B...
                Do uou know if it's possible with the actual plugin please ?
                Thanks
                Unregister players on the other team.


                Consider supporting me on patreon

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

                Comment


                  Oh, thank you, i've just seen that in the ProximityVoipProject. And the possibility to spatialize the sound with a sound VOIP class. Very good.
                  Good job everyone.
                  A last question: "if i want to rebuild the plugin for another version, like 4.12 - is it possible ? I've seen there is source files, but don't know how to proceed to build another version of the plugin. Is it possible ?
                  My blog about video game development and game engines (FR + Translation)
                  My books about Unreal Engine 4 & Blender Game Engine (FR only)
                  Facebook - Twitter - Youtube

                  Comment


                    Originally posted by benicourt View Post
                    Oh, thank you, i've just seen that in the ProximityVoipProject. And the possibility to spatialize the sound with a sound VOIP class. Very good.
                    Good job everyone.
                    A last question: "if i want to rebuild the plugin for another version, like 4.12 - is it possible ? I've seen there is source files, but don't know how to proceed to build another version of the plugin. Is it possible ?
                    That plugin doesn't fully localize the sound, it just mutes based on distance.

                    If you want to use the plugin on a different version of the engine then just run the engine with a compatible compiler installed, it will ask to rebuild and will succeed unless the new engine version has incompatible changes.


                    Consider supporting me on patreon

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

                    Comment


                      Originally posted by mordentral View Post
                      That plugin doesn't fully localize the sound, it just mutes based on distance.

                      If you want to use the plugin on a different version of the engine then just run the engine with a compatible compiler installed, it will ask to rebuild and will succeed unless the new engine version has incompatible changes.
                      It's seems to be much more: not only mutes but adjust the sound with the distance. It's a good base.
                      Ok, if i do that, it only says me that it'll deactivate the plugin. Probably, i've to add a C++ source file to regenerate the project before.
                      My blog about video game development and game engines (FR + Translation)
                      My books about Unreal Engine 4 & Blender Game Engine (FR only)
                      Facebook - Twitter - Youtube

                      Comment


                        I'm using the Advanced Vehicle Template as a playground for a lobby system I'm working on, however I'm running into some issues. When I play in the editor it works fine, I can create sessions and I can join them - but when I package the game I am unable to find any sessions. Here's how I create my advanced session(screenshots are linked);


                        Neither strings are being output, so it doesn't seem like it's failing. Here's how I search for sessions;


                        Again, string isn't being output. But the refreshing is done very fast, much faster than it's done in the editor. Whether this is supposed to be or points towards something being wrong - I don't know.

                        Target.cs;
                        Code:
                        Type = TargetType.Game;
                        bUsesSteam = true;
                        Build.cs;
                        Code:
                        PublicDependencyModuleNames.AddRange(new string[] {
                                 "OnlineSubsystem",
                                "OnlineSubsystemUtils"
                        });
                        
                        DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
                        DefaultEngine.ini;
                        Code:
                        [/Script/Engine.GameEngine]
                        !NetDriverDefinitions=ClearArray
                        +NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
                         
                        [OnlineSubsystem]
                        DefaultPlatformService=Steam
                        PollingIntervalInMs=20
                        bHasVoiceEnabled=true
                         
                        [OnlineSubsystemSteam]
                        bEnabled=true
                        SteamDevAppId=480
                        GameServerQueryPort=27015
                        bRelaunchInSteam=false
                        GameVersion=1.0.0.0
                        bVACEnabled=1
                        bAllowP2PPacketRelay=true
                        P2PConnectionTimeout=90
                        
                        [Voice] 
                        bEnabled=true
                         
                        [/Script/OnlineSubsystemSteam.SteamNetDriver]
                        NetConnectionClassName="/Script/OnlineSubsystemSteam.SteamNetConnection"
                        If you can spot some error on my end or have any ideas as to what may be wrong - I'd greatly appreciate it!

                        Edit:

                        I just noticed this when packaging the game;
                        Code:
                        MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: Execution of commandlet took:  20.58 seconds
                        MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.05-21.15.14:040][  0]LogOnline:Display: NULL: FOnlineSubsystemNull::Shutdown()
                        MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.05-21.15.14:040][  0]LogOnline:Display: Unloading online subsystem: STEAM
                        MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.05-21.15.14:040][  0]LogOnline:Display: Unloading online subsystem: NULL
                        MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 26,5209299s to run UE4Editor-Cmd.exe, ExitCode=0
                        Is that normal or...?
                        Last edited by Dealman; 05-05-2016, 05:16 PM.

                        Comment


                          That is normal it means that steam loaded and then was shut down, make sure that your build.cs also has included "AdvancedSessions" as loaded module as well with c++ projects.


                          Consider supporting me on patreon

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

                          Comment


                            Originally posted by mordentral View Post
                            That is normal it means that steam loaded and then was shut down, make sure that your build.cs also has included "AdvancedSessions" as loaded module as well with c++ projects.
                            Alright, I'll give it a try. If you don't mind, could you briefly explain what Use Presence and Use Stats mean? I've searched this thread but wasn't able to find any info

                            Edit:

                            Adding "AdvancedSessions" to the module list in Build.cs and also using Use Presence(and stats?) seem to work. I've still got to figure out what's the best way to try this stuff since I can't use ServerTravel when testing via the editor.

                            Edit2:

                            I've tried it with 3 of my friends, 2 of them are from US and one is from the UK. I could play with my British friend just fine, however it seems like sessions do not show up if hosted in the US(I live in Sweden). We tried using TeamViewer VPN as well but that didn't help.

                            Any ideas?
                            Last edited by Dealman; 05-05-2016, 08:38 PM.

                            Comment


                              Hi, how am I supposed to have a dedicated server create a session? In which blueprint do I do this in? Game Instance?

                              Thank you
                              Last edited by vanlacke; 05-10-2016, 01:50 AM.

                              Comment


                                Hi,

                                I used your plugin to create my multiplayer. It worked pretty fine, but I cant package and cook my game.
                                I get multiple errors called
                                Code:
                                error LNK2001: unresolved external symbol "wchar_t * GInternalGameName" (?GInternalGameName@@3PA_WA)
                                If you need the full log: http://www.file-upload.net/download-...28.31.log.html


                                Maybe you know this error. I did a lot to fix it but without success.

                                I hope you can help me


                                Greetings
                                Shmann

                                Comment

                                Working...
                                X