Description

When a new client joins a server all of the actors will be replaced with new copies of themselves. This will cause things like the construction script and event begin play nodes to fire off every time a client joins a sever even though the level is already up and running.

Steps to Reproduce
  1. Create blank project
  2. Add the following to the DefaultEngine.ini (<YourProjectDir>/Config/DefaultEngine.ini)
    [OnlineSubsystem]
     DefaultPlatformService=Null
    
  3. Open Project
  4. Create a new Widget Blueprint
    Right click content browser > User Interface > Widget Blueprint
  5. Open the new widget blueprint
  6. Add two buttons
  7. Name them Start and Join
  8. Open the event graph
  9. Add the blueprint in the attached image
  10. Save and compile
  11. Create a new Actor Blueprint
    Right click content browser > Blueprints > Actor
  12. Open Actor blueprint
  13. In the construction Script: Run a print string from the construction node that says "construction in running"
  14. In the Event graph: Run a print string from the event begin play that says "Event begin Play is Running"
  15. Compile and Save
  16. Create two levels, Name one of them "NewWorld" and the Other Main Menu
  17. Open the level "NewWorld"
  18. Add the actor that was created to the level
  19. Save
  20. Open the level "Main Menu"
  21. Open the level blueprint and add the widget to the viewport
    Event begin play > Create Widget > Select the new widget blueprint > Add tot viewport
  22. Set the number of players for PIE to 2
  23. Click Play in Editor
  24. As the Server Click the "Start" button
  25. As the Client Click the "Join" button
  26. Notice that the Print strings ran both for the server and the client

Have Comments or More Details?

Head over to the existing AnswerHub thread and let us know what's up.

0
Login to Vote

Won't Fix
ComponentNetworking
Affects Versions4.7.64.13
CreatedApr 28, 2015
ResolvedFeb 7, 2017
UpdatedMar 28, 2017