Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
typeeh's avatar
typeeh
Protege
4 years ago

shared spaces in you own UE4 project?

Hi,

I have the sharedspaces API working in our own project based on the example project but basic replication of some actors isnt working as i would have expected. 

We have the VRE plugin working and our pawn is replicating as exepected.

We have a simple ball in the game as a test actor and it is not replicating , as the client moves it it is not seen on the server and then is reset when the server toouches it.

 

Has anyone else got sharespaces API working on UE4 with actor replication? Would like to confirm we are not bleeding edge here...

 

2 Replies

Replies have been turned off for this discussion
  • SharedSpaces comes with some actor replication examples:

    - Movement comes standard with the UE mannequin.

    - Character name and mannequin color are replicated (look at the SharedSpacesCharacter blueprint).

     

    SharedSpaces for Unreal is just a normal UE project.   You have access to all the networking and replication facilities of Unreal.  Here are some good references to grasp UE replication:

    https://www.youtube.com/watch?v=JOJP0CvpB8w

    https://cedric-neukirchen.net/Downloads/Compendium/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf

     

    • typeeh's avatar
      typeeh
      Protege

      Hey Armorix_VR - Thanks for posting this.

       

      I should have done an update post..

      Yes we had all the default replication of the sample working fine, the isuse was with the replication not working like it should and it was a lot to do with photon and the fact this project is setup as listen server.

       

      using a listen server for anything other than a social app has proven to be the issue, we did a lot more testing and now have a working dedicated server with aws rather than photon and the issues have gone away.

       

      I think while the example is ok it should be not considered a best practise nor something that works with games - the spaces and join functions are useful and we want to use those.

       

      The fact if someone lifts there headset or leaves the whole map is realoaded and a new listen server is chose becasue there is no real server the is not good for our game style. Now we have a nicely performing constant state...

       

      Also took a lot to get the sample running but did learn a lot i guess. 🙂

       

      Cheers and Goodluck