Skip to content

Commit

Permalink
4.4.7
Browse files Browse the repository at this point in the history
- Added several PreciseTick operators.
- Added PreciseTick.Add/Subtract extensions.
- Added PreciseTick.IsValid();
- Added TimeManager.TimeToPreciseTick.
- Improved NetworkConnection.Kick sanity checks when trying to kick invalid connections.
- Fixed SyncVar (Beta) not sending updates to reference times after calling DirtyAll, when the SyncVar was initialized in Awake and not changed aftwards.
- Improved SyncVar write performance slightly.
- Added UnloadSceneEventArgs.UnloadedScenesV2 to resolve issue (#783).
- Fixed "cannot have it's parent changed" warning when spawning objects with nested NetworkObjects.
- Fixed PrefabId 65535 is out of range error when spawning nested NetworkObjects which were not prefabs (#778).
  • Loading branch information
FirstGearGames committed Sep 26, 2024
1 parent 019ab6d commit 230444a
Show file tree
Hide file tree
Showing 20 changed files with 368 additions and 183 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ MonoBehaviour:
<ComponentIndex>k__BackingField: 0
<PredictedSpawn>k__BackingField: {fileID: 0}
<PredictedOwner>k__BackingField: {fileID: 0}
NetworkBehaviours: []
<InitializedParentNetworkBehaviour>k__BackingField: {fileID: 0}
<InitializedNestedNetworkObjects>k__BackingField: []
_networkBehaviours:
- {fileID: 0}
- {fileID: -5271135124957689192}
<SerializedRootNetworkBehaviour>k__BackingField: {fileID: 0}
<SerializedNestedNetworkObjects>k__BackingField: []
_isNetworked: 1
_isSpawnable: 1
_isGlobal: 0
Expand All @@ -73,14 +75,14 @@ MonoBehaviour:
_spectatorInterpolation: 2
_enableTeleport: 0
_teleportThreshold: 1
<PrefabId>k__BackingField: 65535
<PrefabId>k__BackingField: 26
<SpawnableCollectionId>k__BackingField: 0
<AssetPathHash>k__BackingField: 14364260540862342890
<SceneId>k__BackingField: 0
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 1}
LocalScale: {x: 1, y: 1, z: 1}
--- !u!114 &6667641716399555817
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -114,9 +116,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a2836e36774ca1c4bbbee976e17b649c, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 1
_addedNetworkObject: {fileID: 4512293259955182956}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 4512293259955182956}
_componentConfiguration: 0
_synchronizeParent: 0
_packing:
Expand Down
76 changes: 43 additions & 33 deletions Assets/FishNet/Demos/ColliderRollback/Prefabs/Player.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 2, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
Expand All @@ -48,40 +47,50 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 26b716c41e9b56b4baafaf13a523ba2e, type: 3}
m_Name:
m_EditorClassIdentifier:
<IsNested>k__BackingField: 0
<ComponentIndex>k__BackingField: 0
<PredictedSpawn>k__BackingField: {fileID: 0}
<PredictedOwner>k__BackingField: {fileID: 0}
NetworkBehaviours: []
<InitializedParentNetworkBehaviour>k__BackingField: {fileID: 0}
<InitializedNestedNetworkObjects>k__BackingField: []
_isNetworked: 1
_isSpawnable: 1
_isGlobal: 0
_initializeOrder: 0
_defaultDespawnType: 0
NetworkObserver: {fileID: 0}
<PrefabId>k__BackingField: 27
<SpawnableCollectionId>k__BackingField: 0
_scenePathHash: 0
<SceneId>k__BackingField: 0
<AssetPathHash>k__BackingField: 7473726319608011331
AdaptiveInterpolationValue: 4
<IsNested>k__BackingField: 0
_enablePrediction: 0
_predictionType: 0
_graphicalObject: {fileID: 0}
_detachGraphicalObject: 0
_enableStateForwarding: 1
_networkTransform: {fileID: 0}
_ownerInterpolation: 1
_ownerSmoothedProperties: 255
_adaptiveInterpolation: 3
_spectatorSmoothedProperties: 255
_spectatorInterpolation: 2
_enableTeleport: 0
_teleportThreshold: 1
<PrefabId>k__BackingField: 65535
<SpawnableCollectionId>k__BackingField: 0
<AssetPathHash>k__BackingField: 7473726319608011331
<SceneId>k__BackingField: 0
_ownerTeleportThreshold: 1
_spectatorAdaptiveInterpolation: 1
_spectatorInterpolation: 1
_adaptiveSmoothingType: 0
_customSmoothingData:
InterpolationPercent: 1
CollisionInterpolationPercent: 0.1
InterpolationDecreaseStep: 1
InterpolationIncreaseStep: 3
_preconfiguredSmoothingDataPreview:
InterpolationPercent: 0.5
CollisionInterpolationPercent: 0.05
InterpolationDecreaseStep: 1
InterpolationIncreaseStep: 2
<ComponentIndex>k__BackingField: 0
<PredictedSpawn>k__BackingField: {fileID: 0}
_networkBehaviours:
- {fileID: 2759061792589502182}
- {fileID: 1348621277}
- {fileID: 1348621278}
<ParentNetworkObject>k__BackingField: {fileID: 0}
<ChildNetworkObjects>k__BackingField: []
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
_isNetworked: 1
_isGlobal: 0
_initializeOrder: 0
_defaultDespawnType: 0
--- !u!114 &2759061792589502182
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -94,14 +103,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9d3558aad46c24549bea48d0e3938264, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 0
_addedNetworkObject: {fileID: 8475222101369129519}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 8475222101369129519}
_hitboxLayer:
serializedVersion: 2
m_Bits: 0
_audio: {fileID: 0}
_muzzleFlashPrefab: {fileID: 0}
m_Bits: 32
_audio: {fileID: 8300000, guid: 0330762d2b3c8d641bfe11ad89b7e196, type: 3}
_muzzleFlashPrefab: {fileID: 39148481766341303, guid: 4385a793e032d634bb912f84a23d6db1,
type: 3}
--- !u!114 &1348621277
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -114,9 +124,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: e6d656f377f37164d8d7431aa4e43cdb, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 1
_addedNetworkObject: {fileID: 8475222101369129519}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 8475222101369129519}
--- !u!114 &1348621278
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -129,9 +139,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: c718ab30626bbd648952910f74780a06, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 2
_addedNetworkObject: {fileID: 8475222101369129519}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 8475222101369129519}
_moveRate: 3
--- !u!143 &5081159371976248031
CharacterController:
Expand Down
51 changes: 21 additions & 30 deletions Assets/FishNet/Demos/HashGrid/Prefabs/HashGrid_Moving.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -134,37 +134,26 @@ MonoBehaviour:
<IsNested>k__BackingField: 0
<ComponentIndex>k__BackingField: 0
<PredictedSpawn>k__BackingField: {fileID: 0}
<PredictedOwner>k__BackingField: {fileID: 0}
NetworkBehaviours: []
<InitializedParentNetworkBehaviour>k__BackingField: {fileID: 0}
<InitializedNestedNetworkObjects>k__BackingField: []
_networkBehaviours:
- {fileID: 4670340455971777434}
- {fileID: 3019520109258855553}
<SerializedRootNetworkBehaviour>k__BackingField: {fileID: 0}
<NestedRootNetworkBehaviours>k__BackingField: []
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
_isNetworked: 1
_isSpawnable: 1
_isGlobal: 0
_initializeOrder: 0
_defaultDespawnType: 0
NetworkObserver: {fileID: 0}
_enablePrediction: 0
_predictionType: 0
_graphicalObject: {fileID: 0}
_detachGraphicalObject: 0
_enableStateForwarding: 1
_networkTransform: {fileID: 0}
_ownerInterpolation: 1
_ownerSmoothedProperties: 255
_adaptiveInterpolation: 3
_spectatorSmoothedProperties: 255
_spectatorInterpolation: 2
_enableTeleport: 0
_teleportThreshold: 1
<PrefabId>k__BackingField: 65535
<PrefabId>k__BackingField: 0
<SpawnableCollectionId>k__BackingField: 0
<AssetPathHash>k__BackingField: 11406911356865610645
_scenePathHash: 0
<SceneId>k__BackingField: 0
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
<AssetPathHash>k__BackingField: 11406911356865610645
--- !u!114 &4670340455971777434
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -177,10 +166,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 10f399a5388d3b3459b7a8476ae13e6a, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 0
_addedNetworkObject: {fileID: 4512293259955182956}
_networkObjectCache: {fileID: 0}
_renderer: {fileID: 0}
_networkObjectCache: {fileID: 4512293259955182956}
_renderer: {fileID: 2529588038898116402}
--- !u!114 &3019520109258855553
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -193,9 +182,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a2836e36774ca1c4bbbee976e17b649c, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 1
_addedNetworkObject: {fileID: 4512293259955182956}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 4512293259955182956}
_componentConfiguration: 0
_synchronizeParent: 0
_packing:
Expand All @@ -204,10 +193,12 @@ MonoBehaviour:
Scale: 0
_interpolation: 2
_extrapolation: 2
_enableTeleport: 0
_teleportThreshold: 1
_enableTeleport: 1
_teleportThreshold: 0.5
_scaleThreshold: 1
_clientAuthoritative: 1
_sendToOwner: 1
_enableNetworkLod: 1
_interval: 1
_synchronizePosition: 1
_positionSnapping:
Expand Down
12 changes: 6 additions & 6 deletions Assets/FishNet/Demos/HashGrid/Prefabs/HashGrid_Static.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,17 @@ MonoBehaviour:
_ownerSmoothedProperties: 255
_adaptiveInterpolation: 3
_spectatorSmoothedProperties: 255
_spectatorInterpolation: 2
_spectatorInterpolation: 1
_enableTeleport: 0
_teleportThreshold: 1
<PrefabId>k__BackingField: 65535
<PrefabId>k__BackingField: 22
<SpawnableCollectionId>k__BackingField: 0
<AssetPathHash>k__BackingField: 17472515426990886281
<SceneId>k__BackingField: 0
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 1}
LocalScale: {x: 1, y: 1, z: 1}
--- !u!114 &437322326027960749
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -176,6 +176,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8a6a39c46bf52104ba8efe3100bce3f7, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 0
_addedNetworkObject: {fileID: 4512293259955182956}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 4512293259955182956}
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 26e4f626a9ca9704f9befe7673a8dd15, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 0
_addedNetworkObject: {fileID: 611616139817875448}
_networkObjectCache: {fileID: 0}
_camera: {fileID: 0}
_networkObjectCache: {fileID: 611616139817875448}
_camera: {fileID: 5090726669533971462}
_moveRate: 4
_clientAuth: 1
--- !u!54 &3514369712614123748
Expand Down Expand Up @@ -269,10 +269,15 @@ MonoBehaviour:
<IsNested>k__BackingField: 0
<ComponentIndex>k__BackingField: 0
<PredictedSpawn>k__BackingField: {fileID: 0}
<PredictedOwner>k__BackingField: {fileID: 0}
NetworkBehaviours: []
<InitializedParentNetworkBehaviour>k__BackingField: {fileID: 0}
<InitializedNestedNetworkObjects>k__BackingField: []
_networkBehaviours:
- {fileID: 5090726670223187108}
- {fileID: 6654616088585099699}
<SerializedRootNetworkBehaviour>k__BackingField: {fileID: 0}
<NestedRootNetworkBehaviours>k__BackingField: []
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
_isNetworked: 1
_isSpawnable: 1
_isGlobal: 0
Expand All @@ -282,24 +287,15 @@ MonoBehaviour:
_enablePrediction: 0
_predictionType: 0
_graphicalObject: {fileID: 0}
_detachGraphicalObject: 0
_enableStateForwarding: 1
_networkTransform: {fileID: 0}
_ownerInterpolation: 1
_ownerSmoothedProperties: 255
_adaptiveInterpolation: 3
_spectatorSmoothedProperties: 255
_spectatorInterpolation: 2
_enableTeleport: 0
_teleportThreshold: 1
<PrefabId>k__BackingField: 65535
<PrefabId>k__BackingField: 12
<SpawnableCollectionId>k__BackingField: 0
<AssetPathHash>k__BackingField: 12334122808499987737
_scenePathHash: 0
<SceneId>k__BackingField: 0
SerializedTransformProperties:
Position: {x: 0, y: 0, z: 0}
Rotation: {x: 0, y: 0, z: 0, w: 0}
LocalScale: {x: 0, y: 0, z: 0}
<AssetPathHash>k__BackingField: 12334122808499987737
--- !u!114 &6420552185407096997
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -327,9 +323,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a2836e36774ca1c4bbbee976e17b649c, type: 3}
m_Name:
m_EditorClassIdentifier:
_componentIndexCache: 255
_componentIndexCache: 1
_addedNetworkObject: {fileID: 611616139817875448}
_networkObjectCache: {fileID: 0}
_networkObjectCache: {fileID: 611616139817875448}
_componentConfiguration: 0
_synchronizeParent: 0
_packing:
Expand All @@ -340,8 +336,10 @@ MonoBehaviour:
_extrapolation: 2
_enableTeleport: 0
_teleportThreshold: 1
_scaleThreshold: 1
_clientAuthoritative: 1
_sendToOwner: 1
_enableNetworkLod: 1
_interval: 1
_synchronizePosition: 1
_positionSnapping:
Expand Down
Loading

0 comments on commit 230444a

Please sign in to comment.