Skip to content

Conversation

@NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Jun 24, 2024

NGO v2.0.0-pre.2 Issues Fixed

Cannot be merged until either:

  • NGO v2.0.0-pre.2 is released and merged with develop-2.0.0
    =or=
  • We have to make a new NGO v2.0.0-pre.3 in placed of NGO v2.0.0-pre.2

Distributed Authority Network Topology Specific

Synchronizing With Scene Management Disabled:

If scene management was disabled and a late joining client connected, the session owner would still try to synchronize the client which would lead to a "Key not found" exception.

Spawning NetworkObject Before Approved

If a session owner attempted to spawn a NetworkObject immediately upon the initial service connection being established, it would allow you to spawn a NetworkObject that was owned by the service which is not a valid spawned object.

NGO (Any Network Topology)

Spawning NetworkObject Within NetworkBehaviour.OnNetworkSessionSynchronized

If you spawn a NetworkObject within an overridden NetworkBehaviour.OnNetworkSessionSynchronized method, you would get a list changed exception.

NGO v1.x Up-Port

Added support for byte on NetworkVariable through codegen

This is an up-port of #2953

Changelog

  • Fixed: Issue where internal delta serialization could not have a byte serializer defined when serializing deltas for other types. Added [GenerateSerializationForType(typeof(byte))] to both the NetworkVariable and AnticipatedNetworkVariable classes to assure a byte serializer is defined.
  • Fixed: Issue when scene management was disabled and the session owner would still try to synchronize a late joining client.
  • Fixed: Issue when using a distributed authority network topology where it would allow a session owner to spawn a NetworkObject prior to being approved. Now, an error message is logged and the NetworkObject will not be spawned prior to the client being approved.
  • Fixed: Issue where attempting to spawn during NetworkBehaviour.OnInSceneObjectsSpawned and NetworkBehaviour.OnNetworkSessionSynchronized notifications would throw a collection modified exception.

Testing and Documentation

  • Includes integration test NetworkObjectSpawning.
  • No documentation changes or additions were necessary.

fluong6 and others added 7 commits June 17, 2024 15:47
* updating changelog and package.json

* adding date
* fix

this fixes the issue where a quaternion could potentially be close to 1.0 but off by a very very very small amount. Under this scenario, we Normalize the quaternion prior to invoking MoveRotation.
…ll references, and removal of animator component requirement (#2957)

* update

This contains the updates for PR-2820 (Anticipated NetworkVariable and NetworkTransform) with minor adjustments based on updates in the v2.0.0 branch.

Updating the package version.

Adding updated changelog entries.

up-port of PR-2872

up-port of PR-2874.

updating change log file
Even if the service specifies to synchronize, if scene management is disabled then do not synchronize.
Removing some of the logic to determine if session owner should synchronize a connecting client or not.
Fixing issue with spawning objects within OnInSceneObjectsSpawned and OnNetworkSessionSynchronized primarily on the session owner side.
Reducing the notification down to just synchronization since in-scene notification is called on the spawn sweep.
@NoelStephensUnity NoelStephensUnity changed the title Fix/2.0.0 pre.2 scene synch with scene management disabled fix: 2.0.0-pre.2 fixes Jun 24, 2024
Adding test for preventing spawning prior to being approved.
Adding tests for when spawning during NetworkBehaviour.OnInSceneObjectsSpawned or NetworkBehaviour.OnNetworkSessionSynchronized or both.
Up port of #2953
Adding change log entries.
removing white space
@NoelStephensUnity NoelStephensUnity changed the title fix: 2.0.0-pre.2 fixes fix: post 2.0.0-pre.2 fixes and updates Jun 25, 2024
reducing GC overhead during deferred despawn
Removing whitespaces
Reverting deferred spawn update.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review June 26, 2024 17:11
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner June 26, 2024 17:11
@NoelStephensUnity NoelStephensUnity merged commit 5bff58f into develop-2.0.0 Jun 26, 2024
@NoelStephensUnity NoelStephensUnity deleted the fix/2.0.0-pre.2-scene-synch-with-scene-management-disabled branch June 26, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants