Announcement

Collapse
No announcement yet.

Advanced Sessions Plugin

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

    Thanks a lot for this plugin, OP! Also thanks for keeping it up to date all this time
    However, the code is unusable in C++ as-is. You might be interested to know that for it to work, we need to remove the MinimalAPI class and interface specifier, as well as add PLUGINNAME_API before all classes and interfaces declarations.

    Comment


      Originally posted by Altrue View Post
      Thanks a lot for this plugin, OP! Also thanks for keeping it up to date all this time
      However, the code is unusable in C++ as-is. You might be interested to know that for it to work, we need to remove the MinimalAPI class and interface specifier, as well as add PLUGINNAME_API before all classes and interfaces declarations.
      That is because there is little to no reason to use it in c++. Literally its only purpose is to expose native c++ functions that already exist to BP.

      Not only can all of it be done far cleaner in c++ only (like the FVariantData BP hack), but also you shouldn't be using the Async blueprint nodes for c++ either.

      You would be far better off following a good c++ sessions tutorial instead and/or ripping examples out.


      I would go as far as to say that you are doing yourself a disservice trying to use the plugin in c++.


      Consider supporting me on patreon

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

      Comment


        Hey guys I've been having a lot of trouble implementing the latest version of the Advanced Sessions Plugin to my game. I haven't really found any solution so I thought coming here would hopefully help.

        Basically when I try to package my game I get this error:
        https://gyazo.com/69e1f277e37fc972cb5a5f57c77d339d

        When I remove the plugin the game packages just fine, but adding the plugin results in the error

        Thanks!

        Comment


          Originally posted by mordentral View Post
          I would go as far as to say that you are doing yourself a disservice trying to use the plugin in c++.
          Ah, I hadn't considered things under that angle. I was using a bit of the BP side of your plugin, then I started using it in C++ as well without thinking much about it. It felt logical to keep things uniform.

          Thanks for pointing out my mistake! I will, ironically enough, follow your advice and make sure that I'm NOT using your plugin, in C++

          Comment


            Originally posted by Krakatoa- View Post

            Basically when I try to package my game I get this error:
            https://gyazo.com/69e1f277e37fc972cb5a5f57c77d339d
            I get exactly the same error as Krakatoa when I package the game ... :-/

            I updated to UE 4.20.1 yesterday. The game packaged without any errors in 4.19.1...

            I installed the plugin at *Engine Level* --> copied the "Advanced Sessions" and "AdvancedSteamSessions" folders from the ZIP into "C:\Program Files\Epic Games\UE_4.20\Engine\Plugins".

            This is the error message I get:

            PackagingResults: Error: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Program Files\Epic Games\UE_4.20\Engine\Plugins\AdvancedSessions\Intermediate\Build\Win64\UE4\Development\AdvancedSessions\AdvancedSessions.precompiled" konnte nicht gefunden werden.

            (sorry for german...) It says it cant find "AdvancedSessions.precompiled" ... I guess...

            Heeeeeelp please!
            Last edited by cyan68; 07-29-2018, 09:12 AM.

            Comment


              The Package Error is easy to reproduce:

              With the plugin installed in "C:\Program Files\Epic Games\UE_4.20\Engine\Plugins\AdvancedSessions"

              1. Create an empty project using the First Person Template with "no starter content", name it "TestProject"
              2. Open "Edit --> Plugins" from the menu, activate both plugins (AdvancedSession and AdvancedSteamSession), restart Engine
              3. Open "File --> Package Project --> Windows --> Windows (64 bit)" and package "TestProject"

              After a short time you should get the error Krakatoa and me mentioned before.

              "ATHelper: Packaging (Windows (64-bit)): ERROR: System.IO.DirectoryNotFoundException: ... "

              Btw... many many thanks for all your effort and time you put into this great plugin, mordentral. I think it should be part of the Engine itself... that would make it a lot more easier for Blueprint Guys like me to use Steam out of the box!

              Comment


                Originally posted by cyan68 View Post
                The Package Error is easy to reproduce:

                With the plugin installed in "C:\Program Files\Epic Games\UE_4.20\Engine\Plugins\AdvancedSessions"

                1. Create an empty project using the First Person Template with "no starter content", name it "TestProject"
                2. Open "Edit --> Plugins" from the menu, activate both plugins (AdvancedSession and AdvancedSteamSession), restart Engine
                3. Open "File --> Package Project --> Windows --> Windows (64 bit)" and package "TestProject"

                After a short time you should get the error Krakatoa and me mentioned before.

                "ATHelper: Packaging (Windows (64-bit)): ERROR: System.IO.DirectoryNotFoundException: ... "

                Btw... many many thanks for all your effort and time you put into this great plugin, mordentral. I think it should be part of the Engine itself... that would make it a lot more easier for Blueprint Guys like me to use Steam out of the box!
                Same thing is happening to me, 4.20.1 does not want to work with Advanced Sessions.
                I wish Epic would just have native Steam support...

                Comment


                  Originally posted by No_Circuit View Post

                  Same thing is happening to me, 4.20.1 does not want to work with Advanced Sessions.
                  I wish Epic would just have native Steam support...
                  Did you all install in the engine plugins directory?

                  It actually looks like filepath string is too long, and there isn't much I can do about that besides rename folders.....

                  I have packaged dozens of times in 4.20 but always with it in the project level plugins.

                  *Edit* Epic did make a bunch of changes to file path searching with the 2017 visual studio upgrade that required multiple include string changes and me to modify the build.cs as well, this may just be another bug related to that (multiple were fixed already in previews).
                  Last edited by mordentral; 07-29-2018, 02:26 PM.


                  Consider supporting me on patreon

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

                  Comment


                    Originally posted by mordentral View Post

                    Did you all install in the engine plugins directory?

                    It actually looks like filepath string is too long, and there isn't much I can do about that besides rename folders.....

                    I have packaged dozens of times in 4.20 but always with it in the project level plugins.

                    *Edit* Epic did make a bunch of changes to file path searching with the 2017 visual studio upgrade that required multiple include string changes and me to modify the build.cs as well, this may just be another bug related to that (multiple were fixed already in previews).
                    Do you know how would we go about fixing the problem? Thanks!

                    Comment


                      Originally posted by Krakatoa- View Post

                      Do you know how would we go about fixing the problem? Thanks!
                      Move the plugin to the project. I could not complete a build with it at the engine level. The compiler was unable to find UObjectIterator.h for an include in one of the files. I do have long file name support turned on in windows 10 (if relevant). Moving the plugin from the engine to the project solved all issues.

                      Comment


                        Originally posted by mordentral View Post
                        Did you all install in the engine plugins directory?
                        Yes, I copied the plugin files into the Engine Directory ("C:\Program Files\Epic Games\UE_4.20\Engine\Plugins\AdvancedSessions")

                        That worked perfect in 4.18 and 4.19.

                        I have packaged dozens of times in 4.20 but always with it in the project level plugins.
                        How do you install the plugin on project level?

                        I followed the discription you posted in this threads first post:

                        Originally posted by mordentral View Post
                        Setup Info
                        1. Extract the file inside the zip to ProjectFolder/Plugins/AdvancedSessions (create /Plugins/AdvancedSessions if you have to) Or UnrealEngine/4.15/Engine/Plugins.
                        2. If installed at the project level you need to Create a C++ blank file in the editor to allow it to package out the plugin - If installed at the engine level you do not need to do anything else.
                        To be honest I didnt fully understood the "If installed at the project level you need to Create a C++ blank file in the editor to allow it to package out the plugin"-part, im not really a coder ... My project is 100% made of fancy blueprints...

                        If I create a "Plugins" folder in my projects directory and copy all the plugin files from the zip into it, I can't find the plugin in the Plugins Browser ... Its only appears in the list when I install it on Engine Level. o.O

                        It actually looks like filepath string is too long, and there isn't much I can do about that besides rename folders.....
                        If that really helps!! :-D

                        Comment


                          Excellent plugin. Thank you. I had just started writing my own interface to expose a few things and found this. Works well and does exactly what I needed. You have saved me a great deal of work.

                          Comment


                            Originally posted by Bellazul View Post

                            Move the plugin to the project. I could not complete a build with it at the engine level. The compiler was unable to find UObjectIterator.h for an include in one of the files. I do have long file name support turned on in windows 10 (if relevant). Moving the plugin from the engine to the project solved all issues.
                            Thanks for that note about UObjectIterator, I had fixed all of the ones it had complained about but there were a few left.

                            Like I mentioned previously, they changed how include paths are resolved and its off and on screwing with things.

                            I'll upload a version with all UObjectIterators having a full include path.

                            That may not be what the others are running into, but their compilation may be failing and then they never see the error and just see the precompiled missing message.

                            *Edit* Uploaded a newer version with the uobjectiterator.h file path fixed wherever it was in use.
                            Last edited by mordentral; 07-29-2018, 07:16 PM.


                            Consider supporting me on patreon

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

                            Comment


                              Originally posted by mordentral View Post

                              Thanks for that note about UObjectIterator, I had fixed all of the ones it had complained about but there were a few left.

                              Like I mentioned previously, they changed how include paths are resolved and its off and on screwing with things.

                              I'll upload a version with all UObjectIterators having a full include path.

                              That may not be what the others are running into, but their compilation may be failing and then they never see the error and just see the precompiled missing message.

                              *Edit* Uploaded a newer version with the uobjectiterator.h file path fixed wherever it was in use.


                              Hmm.. I downloaded the new version and it still seems to show the same error:

                              https://gyazo.com/5cf93a562e25dbbffefc00726f0e9ef9

                              The error seems to say something about "System.IO.DirectoryNotFoundException" for the filepath "C:\Program Files\Epic Games\UE_4.20\Engine\Plugins\AdvancedSessions\AdvancedSessions\Intermediate\Build\Win64\UE4\Development\AdvancedSessions\AdvancedSessions.precompiled".

                              I have it downloaded on the engine level rather than the project itself. Also the new download is still the 4.20.1 link, correct?

                              Comment


                                Wooohooo it finally worked!!

                                After copying the plugin files in both directories (engine AND project folder), I was able to package the game without the nasty error!

                                I'm not 100% sure what I did tho... By copying the pluginfiles to the project folder ALONE I wasnt able to actually acitvate the plugin in the Plugin Browser...

                                Anyway... it works now!

                                Thanks a ton mordentral for the new file!

                                Comment

                                Working...
                                X