Announcement

Collapse
No announcement yet.

GTA Style Vehicle Interaction - Project File Included

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

    #31
    Thanks a lot for the update, Omar. Feel free to post this issue at AnswerHub as a bug when you are convinced that it is not expected behavior.
    I will be replacing my project with yours in the first post, since yours is easier to implement and works with MP too(i'll also upload it to my dropbox account just in case.)

    Let me know if you(or anyone else) makes any additions so that i can update the links.

    Thanks again.

    Edit: There is an issue that comes with the delay. If you hit E more than once until delay is over you spawn multiple characters > posses the latest one > the rest still stays in the level. DoOnce after E that gets reset after delay should fix it though.
    Last edited by Jacky; 12-25-2014, 03:11 PM.
    FREE VR Drum Kit Project
    FREE Color LUT Collection
    FREE Physics Driven Spacecraft Project
    FREE GTA Style Vehicle Interaction
    Dynamic DoF(Depth of Field)
    Camera Crossfade

    Comment


      #32
      Originally posted by Jacky View Post
      Edit: There is an issue that comes with the delay. If you hit E more than once until delay is over you spawn multiple characters > posses the latest one > the rest still stays in the level. DoOnce after E that gets reset after delay should fix it though.
      Yea I realized that as well when I left to do other stuff. Didn't had the time to fix it though. I have some more time right now to dive in a bit deeper and otherwise I hope I'll figure it out tomorrow.


      EDIT: Did some more digging around and tried things with Force Net Update as well as SetPawn(..) as I noticed RestartPlayer calls this explicitly before Possess is called (wrapped this in a blueprint class so I could use it outside of C++ code). Sadly, nothing I tried so far has worked.
      I ended up searching around the forums and AnswerHub to see if someone else reported anything at all and it would appear someone has the exact same issue: https://answers.unrealengine.com/que...ossession.html
      Funny enough, during my own testing I established the same thing as he did; destroying the Sedan first makes the possess work just fine...

      Will continue work on this tomorrow. Good night and have a Merry Christmas
      Last edited by Omar007; 12-25-2014, 08:27 PM.

      Comment


        #33
        Ok it turns out this is a whole lot more complex than I hoped it'd be. I'm almost making a trip through half the engine to figure out what the hell is going on...
        I also tried to duplicate the destroy behaviour without actually destroying it but this did not result in a working solution either. I think the reason why Possess works after a Destroy is because the Destroy immediately announces the removal to all the net players.

        Any UE dev around here that knows anything about this problem?

        EDIT: Posted on the AnswerHub: https://answers.unrealengine.com/que...-function.html
        Last edited by Omar007; 12-26-2014, 01:30 PM.

        Comment


          #34
          Thanks for this Jacky; and Omar: you're a life-saver.

          Vehicle / Character possession through network is turning into a nightmare, I'm not the only one struggling with it working reliably it seems.

          Comment


            #35
            Originally posted by TheJamsh View Post
            Thanks for this Jacky; and Omar: you're a life-saver.

            Vehicle / Character possession through network is turning into a nightmare, I'm not the only one struggling with it working reliably it seems.
            Glad you found it useful, James! And yeah, i've given up on networking for a while as it pretty much boiled my brains and i'm busy with something else right now. :\
            FREE VR Drum Kit Project
            FREE Color LUT Collection
            FREE Physics Driven Spacecraft Project
            FREE GTA Style Vehicle Interaction
            Dynamic DoF(Depth of Field)
            Camera Crossfade

            Comment


              #36
              This looks really interesting. I just tried it on the 4.7 github branch (because of the added GearVR support) and it says "This map is using externally referenced packages which won't be found when in a game and all references will be broken. Performa map check for more details. Would you like to continue?"

              I clicked continue and get a black screen for standalone game and UE4 freezes

              Comment


                #37
                Hey haggler2,

                Does it work on 4.6.1?
                FREE VR Drum Kit Project
                FREE Color LUT Collection
                FREE Physics Driven Spacecraft Project
                FREE GTA Style Vehicle Interaction
                Dynamic DoF(Depth of Field)
                Camera Crossfade

                Comment


                  #38
                  Originally posted by TheJamsh View Post
                  Thanks for this Jacky; and Omar: you're a life-saver.

                  Vehicle / Character possession through network is turning into a nightmare, I'm not the only one struggling with it working reliably it seems.
                  Hey everyone, please check the AnswerHub post here for an explanation of the networking issues going on here, with a solution provided as well.

                  The most important takeaways are:

                  1. Only use "Possess" on the server. We will fix future releases to make this more clear and enforce it correctly.
                  2. Only spawn/destroy Pawns on the server if they can be possessed. Ideally you won't need to destroy and spawn the Pawn in these scenarios, but it can be made to work.
                  3. You guys are awesome for bearing with us and for helping with the investigation

                  -Zak
                  Last edited by zeroexception; 02-13-2015, 01:26 AM. Reason: fixed link
                  Zak Middleton
                  Sr. Engine Programmer, Epic Games

                  Comment


                    #39
                    Originally posted by Zak Middleton View Post
                    Hey everyone, please check the AnswerHub post here for an explanation of the networking issues going on here, with a solution provided as well.

                    The most important takeaways are:

                    1. Only use "Possess" on the server. We will fix future releases to make this more clear and enforce it correctly.
                    2. Only spawn/destroy Pawns on the server if they can be possessed. Ideally you won't need to destroy and spawn the Pawn in these scenarios, but it can be made to work.
                    3. You guys are awesome for bearing with us and for helping with the investigation

                    -Zak
                    Thanks so much for the help! Glad to see the possession has been sorted, i can get back developing a project.
                    Youtube
                    Machine Learning C++ Plugin
                    Lindenmayer System C++ Plugin

                    Comment


                      #40
                      hi
                      what version this work well on???

                      Comment


                        #41
                        its work on 4.7.3 very well

                        Comment


                          #42
                          Is there a chance to get the older GTA vehicle project? I had better success replacing the player character with my own, in this current version I cannot edit or replace the GTA Character that's locked into the Server event function, does anyone have a way to deal with this?

                          Comment


                            #43
                            Originally posted by killian22 View Post
                            Is there a chance to get the older GTA vehicle project? I had better success replacing the player character with my own, in this current version I cannot edit or replace the GTA Character that's locked into the Server event function, does anyone have a way to deal with this?
                            You should be able to change GTA character with yours pretty easily but i'm not sure where you are stuck. If you can give more information we can help you out.
                            In any case, here is the old version; https://www.dropbox.com/s/xccvw74a98...p_old.rar?dl=0
                            FREE VR Drum Kit Project
                            FREE Color LUT Collection
                            FREE Physics Driven Spacecraft Project
                            FREE GTA Style Vehicle Interaction
                            Dynamic DoF(Depth of Field)
                            Camera Crossfade

                            Comment


                              #44
                              Thanks for the fast reply and project file,

                              I am trying to replace the GTA character with MyCharacter, I think I am having problems with this step,

                              Click image for larger version

Name:	ot5hgP9.png
Views:	1
Size:	294.6 KB
ID:	1074476

                              From my understanding Server Enter Vehicle is tied with the GTA Character, but I cannot find a way to change it to a different pawn.

                              Thanks

                              Comment


                                #45
                                It's just the function that calls ServerEventVehicle custom event. When you create a new custom event in your character BP then right click and type the name of your new event you'll see a function with the same name under Call Function and then it will say Target is YourCharacterBP.
                                FREE VR Drum Kit Project
                                FREE Color LUT Collection
                                FREE Physics Driven Spacecraft Project
                                FREE GTA Style Vehicle Interaction
                                Dynamic DoF(Depth of Field)
                                Camera Crossfade

                                Comment

                                Working...
                                X