Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: client writing to NetworkVariable inside ServerCharacterMovement #517

Merged

Conversation

fernando-cortez
Copy link
Collaborator

Description (*)

Simple IsServer check inside ServerCharacterMovement to prevent client writing to NetworkVariable error from appearing when the application is closed.

Related Pull Requests

Similar null guard on application exit (#516).

Issue Number(s) (*)

Fixes issue(s): MTT-2475

Manual testing scenarios

  1. Create a build and connect to another player via lobbies
  2. Close the client's app entirely when inside the game scene after character select.
  3. Notice no errors from ServerCharacterMovement are added to player log.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@fernando-cortez fernando-cortez added 2-Easy This PR is trivial and can be reviewed quickly 1-Needs Review PR needs attention from the assignee and reviewers GDC-cherrypick labels Mar 7, 2022
SamuelBellomo
SamuelBellomo previously approved these changes Mar 8, 2022
@SamuelBellomo SamuelBellomo added 2-Reviewed with Comments PR requires owner's attention 0-workaround and removed 1-Needs Review PR needs attention from the assignee and reviewers GDC-cherrypick labels Mar 8, 2022
@fernando-cortez fernando-cortez merged commit ee3d118 into release/GDC2022 Mar 8, 2022
@fernando-cortez fernando-cortez deleted the fix/servercharactermovement-server-guard branch March 8, 2022 19:36
SamuelBellomo added a commit that referenced this pull request Mar 8, 2022
…ocal

* release/GDC2022:
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
  feat: IP connection window inside main menu (#502) (#508)

# Conflicts:
#	Assets/BossRoom/Scenes/Startup.unity
SamuelBellomo added a commit that referenced this pull request Mar 9, 2022
…I-stats

* release/GDC2022:
  lobby fix: Removing quit when lobby detects host left. (#505)
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-workaround 2-Easy This PR is trivial and can be reviewed quickly 2-Reviewed with Comments PR requires owner's attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants