Announcement

Collapse
No announcement yet.

Advanced Sessions Plugin

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

    hi, Unreal engine crash, and i have this error "AdvancedSessionsLog: Warning: GetNetPlayerIndex received a bad PlayerController!" in the crash log, i use the 4.22 version, when i use the 4,21version this error not exist, whay can i do? sorry for my bad enlgish

    Comment


      Hi, thanks for this plugin, it looks like it's filling a need in the community.

      Comment


        This plugin is awesome but how do I use it in C++ even though I have added the module dependency on build.cs and target.cs, it still doesn't work. Please help

        Comment


          Originally posted by XynanXDB View Post
          This plugin is awesome but how do I use it in C++ even though I have added the module dependency on build.cs and target.cs, it still doesn't work. Please help
          Its not intended for c++ use, there is little to no reason to use it in C++ as it is just exposing the C++ backend anyway, and most of the blueprint nodes are async blueprint objects and are awkward to use in C++. Its not tagged with the _API macro to expose it to c++ for that very reason.

          It would actually be far faster and cleaner to just straight up use the C++ yourself.


          Consider supporting me on patreon

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

          Comment


            Originally posted by mordentral View Post

            Its not intended for c++ use, there is little to no reason to use it in C++ as it is just exposing the C++ backend anyway, and most of the blueprint nodes are async blueprint objects and are awkward to use in C++. Its not tagged with the _API macro to expose it to c++ for that very reason.

            It would actually be far faster and cleaner to just straight up use the C++ yourself.
            Sure thing, thanks for helping.

            Comment


              When I trying to finish/close a connected client with the server session in dedicated server...The console of server keep the saying the same msglog:

              AdvancedSessionsLog: Warning: GetLocalPlayerNameFromController Bad Player Controller!

              What I need to do to fix this and make correct disconnection of clients???

              Comment


                Question about the time the session get advertise to other players. Some times when we are testing the game for a long time and someone leave the game.

                The player can't find the session again. The engine stop advertise the game after some time?

                If I use Update Session the session will go back to be advertise?

                Comment


                  Originally posted by HeliaXDemoN View Post
                  Question about the time the session get advertise to other players. Some times when we are testing the game for a long time and someone leave the game.

                  The player can't find the session again. The engine stop advertise the game after some time?

                  If I use Update Session the session will go back to be advertise?
                  Sessions shouldn't stop "being advertised" no, but that is on the subsystem providers end.


                  Consider supporting me on patreon

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

                  Comment


                    Originally posted by Demonrras View Post
                    When I trying to finish/close a connected client with the server session in dedicated server...The console of server keep the saying the same msglog:

                    AdvancedSessionsLog: Warning: GetLocalPlayerNameFromController Bad Player Controller!

                    What I need to do to fix this and make correct disconnection of clients???
                    You are running a node on the server for the disconnected clients controller. You must be saving them out seperately for some reason? And on tick are checking 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

                      Sessions shouldn't stop "being advertised" no, but that is on the subsystem providers end.
                      I forgot that I save the Session too and try reconnect and the player can't enter the game anymore.

                      Comment


                        I had a problem with the plugin using UE4.23 after package the project. I cant find session successfully while I can connect the serer by open ip option. Do u have the same problem or I made a mistake .
                        THX a lot ,Boss!

                        Comment


                          How correctly disconnect the player from the server...have any process to logoff the players that quit game server???

                          Comment


                            Originally posted by HeliaXDemoN View Post

                            I forgot that I save the Session too and try reconnect and the player can't enter the game anymore.
                            Are you using the steam authentication setup that Epic added recently? I could see it causing problems where if the client crashes that EndAuthSession is never called and it could possibly cause some issues on reload and trying to get another session ticket.

                            Originally posted by Demonrras View Post
                            How correctly disconnect the player from the server...have any process to logoff the players that quit game server???


                            DestroySession is for the client as well as the server, Epic didn't exactly name it in the most coherent way, it is supposed to clear all active sessions and disconnect.


                            Consider supporting me on patreon

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

                            Comment


                              How the server can kick player? Need to use what nodes to do this? Remove Player BP?

                              Comment


                                Originally posted by Demonrras View Post
                                How the server can kick player? Need to use what nodes to do this? Remove Player BP?
                                Well you can follow a tutorial like https://www.youtube.com/watch?v=fsyOITVdBt4 which is kind of trusting of the client....

                                There are also KickPlayer and BanPlayer functions in the game session class but I didn't want to provide an override of it just for those and they aren't exposed to blueprint in engine.


                                Consider supporting me on patreon

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

                                Comment

                                Working...
                                X