Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Feature/bifrost/playercontroller rework #1271

Merged
merged 17 commits into from
Aug 6, 2019

Conversation

cmsmithio
Copy link
Contributor

Contributions: We are not currently taking public contributions - see our contributions policy. However, we are accepting issues and we do want your feedback.


Description

PlayerControllers received over the wire on non-auth servers have BeginPlay called with the correct authority (SimulatedProxy) instead of Authoritative. The creation of the PC actor now follows the same flow as all other actors over the wire. SpatialNetDriver::PostSpawnPlayerController provides necessary setup on the actor after spawn, including binding it to a new SpatialNetConnection.

As part of this change, the creation of the special SpatialNetConnection (which is required when creating the PlayerController on both auth and non-auth servers) has been factored out into it's own method SpatialNetDriver::CreateSpatialNetConnection.

Release note

A release note has been added to changelog.md.

Tests

This change was tested with ExampleProject running a grid of 2x2 servers. BeginPlay() is now called with the correct authority.

STRONGLY SUGGESTED: How can this be verified by QA?
It should be possible for QA to author a blueprint in BeginPlay() of the PlayerController that switches and prints some output based on the authority BeginPlay() is called with, then view that output in the logs or onscreen.

Documentation

Release note

Primary reviewers

@m-samiec

@improbable-prow-robot improbable-prow-robot added jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/L Denotes a PR that changes 150-299 lines, ignoring generated files. labels Aug 1, 2019
@cmsmithio cmsmithio requested a review from m-samiec August 1, 2019 09:27
…river.cpp

Co-Authored-By: Giray Ozil <giray@improbable.io>
Copy link
Collaborator

@m-samiec m-samiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - few comments

Copy link
Collaborator

@m-samiec m-samiec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@cmsmithio cmsmithio merged commit 3fc0050 into master Aug 6, 2019
@cmsmithio cmsmithio deleted the feature/bifrost/playercontroller_rework branch August 6, 2019 15:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
jira/no-ticket Indicates a PR has no corresponding JIRA ticket size/L Denotes a PR that changes 150-299 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants