Announcement

Collapse
No announcement yet.

VR Expansion Plugin

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

    I thought "rep grip settings" will also replicate grip scripts' AdvSecondarySettings, but it doesn't.
    what's the best way to replicate secondary grip influence (in a client auth situation) since you moved this setting to grip script?

    thanks!

    edit: even if secondary grip influence is set as default value in a grippable bp (e.g. secondary grip shouldn't influence pistols), this setting is ignored server-side when the client grabs it (host take into account client secondary grip, client dont).
    That said we need to change it at runtime before gripping and sync host as well as other clients (we have an options that let users disable secondary grip influence).
    Last edited by Curs0; 10-22-2019, 06:51 PM.

    Comment


      Originally posted by Curs0 View Post
      I thought "rep grip settings" will also replicate grip scripts' AdvSecondarySettings, but it doesn't.
      what's the best way to replicate secondary grip influence (in a client auth situation) since you moved this setting to grip script?

      thanks!

      edit: even if secondary grip influence is set as default value in a grippable bp (e.g. secondary grip shouldn't influence pistols), this setting is ignored server-side when the client grabs it (host take into account client secondary grip, client dont).
      That said we need to change it at runtime before gripping and sync host as well as other clients (we have an options that let users disable secondary grip influence).
      Sounds like you have the bUseHighQualityRemoteSimulation turned to off? When not true it will only do light two handed calculations to save on cost on non local clients.

      As for replicating on the clients settings, those settings can be stored in the player controller and passed up to the server to apply on spawn or on grip to the object. Generally it would be better to just store them in the PC and set them on gripped objects by retrieving those replicated values.

      I didn't want to automatically replicate these in all guntools grip scripts as generally those specific settings are global and should be pulled on a client by client basis and applied instead.

      *Edit* If you have specific settings that you want the client to be able to modify, this also lets you just store and pass on those specific ones to new grips / spawns. IE: OnGrip in the base class, get player controller of gripping character, set grip script settings. Or if you don't let weapons be swapped back and forth, just do it on spawn.
      Last edited by mordentral; 10-22-2019, 09:08 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

        It follows the actual motion controller, my plugin doesn't have any way of knowing specifically what mesh you want to deal with. But that is why the PivotOverride exists, you can define any scene component as the controller pivot and all grips will be offset from there.

        The plugin only has one grip type that is actually attachment, the rest are sweeps / physics grips.
        Hi again, I haven't had much time to work on my project lately but now I do have my weapon gripping working pretty nicely. I'm seeing one strange behavior. I can pick up my weapon and drop it, but then I can't pick it up again. It looks like once dropped, the item isn't being detected in the 'get overlapping actors' node which I have set to filter by class on grippable skeletal mesh. Any idea what might be wrong there? I am definitely overlapping it when it's on the ground as I made the collision sphere visible (even stepping away and back in still doesn't get it picked up). The only extra step I'm taking after the Drop Actor function is removing the item that was in my hand from my player's inventory (just updating the appropriate array element and clearing it).

        Comment


          Originally posted by Nostrildumbass View Post

          Hi again, I haven't had much time to work on my project lately but now I do have my weapon gripping working pretty nicely. I'm seeing one strange behavior. I can pick up my weapon and drop it, but then I can't pick it up again. It looks like once dropped, the item isn't being detected in the 'get overlapping actors' node which I have set to filter by class on grippable skeletal mesh. Any idea what might be wrong there? I am definitely overlapping it when it's on the ground as I made the collision sphere visible (even stepping away and back in still doesn't get it picked up). The only extra step I'm taking after the Drop Actor function is removing the item that was in my hand from my player's inventory (just updating the appropriate array element and clearing it).
          You aren't removing channel collision on grip are you? Many people do that for one reason or another.


          Consider supporting me on patreon

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

          Comment


            Originally posted by mordentral View Post

            You aren't removing channel collision on grip are you? Many people do that for one reason or another.
            Nope not at all, the only thing I'm doing after the drop actor is removing the object from my inventory, kind of puzzled by this one. I'll make a new grippable BP actor that doesn't go into my inventory so I can cut that execution off and see if it works then.

            Comment


              Hello there! I've just started going through the Intro and setup video on the tutorials page created by Ravan but have got an error message popping up saying that the OpenVRExpansionPlugin and VRExpansionPlugin modules are missing or built with a different engine version.

              When I press the Yes button to rebuild them the progress bar goes to around 90%ish then I get another error message saying MyProject2 could not be compiled. Try rebuilding from source manually.

              I've tried 4.23 and 4.22 but still get the same errors coming up.

              Could someone please ELI5 because I haven't done much developing for the last 30-odd years so I'm more than a little rusty lol

              I've just downloaded and installed the latest version of Microsoft Visual Studio Community if that helps!

              Comment


                Originally posted by thesnowdog View Post
                Hello there! I've just started going through the Intro and setup video on the tutorials page created by Ravan but have got an error message popping up saying that the OpenVRExpansionPlugin and VRExpansionPlugin modules are missing or built with a different engine version.

                When I press the Yes button to rebuild them the progress bar goes to around 90%ish then I get another error message saying MyProject2 could not be compiled. Try rebuilding from source manually.

                I've tried 4.23 and 4.22 but still get the same errors coming up.

                Could someone please ELI5 because I haven't done much developing for the last 30-odd years so I'm more than a little rusty lol

                I've just downloaded and installed the latest version of Microsoft Visual Studio Community if that helps!
                Are you downloading the template or the plugin itself? If its just the plugin itself then you need to either use the pre-compiled binaries, or compile the project in Development Editor mode in visual studio.


                Consider supporting me on patreon

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

                Comment


                  Originally posted by mordentral View Post

                  Are you downloading the template or the plugin itself? If its just the plugin itself then you need to either use the pre-compiled binaries, or compile the project in Development Editor mode in visual studio.
                  Oops, didn't realise that I could just download the Template! Thanks for the help!

                  Comment

                  Working...
                  X