Commit Graph

  • 7e3a31bf94 Added NetworkSandbox.InPacketLoss, NetworkSandbox.OutPacketLoss, NetworkConnection.InPacketLoss, and NetworkSandbox.OutPacketLoss. These are measurements for inward and outward packet loss. Karrar 2024-08-23 06:05:14 +03:00
  • b10c8c8f06 Fixed an issue with parenting network objects. Karrar 2024-08-23 05:53:28 +03:00
  • bceb246d91 Fixed an issue with calculating prediction tick offset that was causing missed inputs at very high tickrates (+100). Karrar 2024-08-20 23:12:47 +03:00
  • 9dc1884469 Fixed an issue with CSP that was causing very frequent speed-ups (which look like jitter) on predicted objects, which was most noticeable on fast-moving objects. Karrar 2024-08-19 02:06:53 +03:00
  • 8795bf71f9 Fixed an issue causing NetworkBehaviour.OnInputSourceChanged to be invoked before OnConnectedToServer network event. Karrar 2024-08-14 02:30:02 +03:00
  • 4df683c5ad Removed OnClientSceneLoaded from NetworkEventsListener. Karrar 2024-08-09 15:18:48 +03:00
  • 5e581e503c Removed depreciated OnClientSceneLoaded network event. Karrar 2024-08-09 15:17:03 +03:00
  • fd6781ea83 Fixed an issue with NetworkDictionary and NetworkHashSet causing them to override the memory of adjacent variables. Karrar 2024-08-08 18:18:48 +03:00
  • f830bc3543 Fixed an issue with OnChangedData causing the retrieved previous value to not always be equal to the actual previous value of the variable. Karrar 2024-08-08 16:56:14 +03:00
  • fbb5a2800f Fixed an issue causing the client to destroy all scene network objects when it finishes loading the scene before the server. Karrar 2024-08-08 15:45:41 +03:00
  • 776c38fa86 Fixed an issue with NetworkHashSet causing it to override the memory of adjacent variables. The previous commit didn't fully fix the issue with NetworkHashSet. Karrar 2024-08-08 15:18:41 +03:00
  • 4ddbecab0d Fixed an issue with NetworkDictionary and NetworkHashSet causing them to override the memory of adjacent variables. Karrar 2024-08-08 14:58:21 +03:00
  • 22a389784c Changed the way Ids of Network Objects are assigned. Now Ids are never recycled and reused, instead, they only increment forward. In the future, we will allow the previous behavior too as an option. Karrar 2024-08-08 14:57:08 +03:00
  • 60c1e9323e Fixed an issue causing only up to 500 bytes worth of unreliable RPCs to be received in the client when sent together at the same tick by the server. Karrar 2024-08-05 10:27:03 +03:00
  • 9db971248b Fixed a potential null reference error with RPCs. Karrar 2024-08-03 22:41:57 +03:00
  • 3f02ec362c Added InputReuseAtLowFPS to Netick Settings. Read this for details: https://netick.net/docs/2/articles/understanding-client-side-prediction/writing-client-side-prediction-code.html#framerate-lower-than-tickrate Karrar 2024-08-03 03:19:47 +03:00
  • 417d60b93b Added a testing change to debug an issue with RPCs. Karrar 2024-08-02 22:11:31 +03:00
  • d0f76b76e3 Fixed a typo by changing NetworkEvents.OnClientSceneLoadeddEvent to NetworkEvents.OnClientSceneLoadedEvent. Karrar 2024-08-02 01:04:44 +03:00
  • 0be10715e6 Removed a testing log from scene loading logic. Karrar 2024-07-31 11:36:55 +03:00
  • cdc96ddfd1 Updated README.md Karrar 2024-07-30 04:54:38 +03:00
  • c536cc93db Updated README.md Karrar 2024-07-30 04:48:36 +03:00
  • 4a460061a5 Updating README.md Karrar 2024-07-30 02:39:25 +03:00
  • 071145195f Fixed a typo in package.json. Karrar 2024-07-29 06:43:53 +03:00
  • 010cd7a4cc Added NetworkDictionary<TKey,TValue>, NetworkHashSet<T> and NetworkUnorderedList<T>. Karrar 2024-07-29 04:32:17 +03:00
  • b2c604dbcb Fixed a rare issue with Lag Comp that occurs when the client does a query at the time when its Remote Interpolation was reset due to lag. Karrar 2024-07-20 18:05:33 +03:00
  • d2ef08b789 Improved RPC error handling. Now, when an exception is thrown inside the body of an RPC method, Netick will no longer kick the calling client, instead, it will only print the exception. Karrar 2024-07-16 11:17:25 +03:00
  • b24d56ca1b Fixed an issue causing a child network object to jitter compared to its parent. Karrar 2024-07-15 10:45:03 +03:00
  • b87f653765 Testing a fix for a jitter issue that occurs when parenting network objects. Karrar 2024-07-13 09:18:26 +03:00
  • 21f9efc064 Removed a small GC allocation from pooled objects with HitShape Container. Karrar 2024-07-13 08:18:19 +03:00
  • b486632590 Testing a fix for a jitter issue that occurs when parenting network objects. Karrar 2024-07-12 12:44:54 +03:00
  • 2e7f114fac Fixed an issue with OnVisibilityChanged network event. Karrar 2024-07-08 22:10:21 +03:00
  • 1e2fa03efe Added OnVisibilityChanged to Sandbox.Events. This is a callback that is invoked when a sandbox visibility state changes Karrar 2024-07-08 03:40:45 +03:00
  • f80c9dc6e8 Fixed an issue with the previous commit. Karrar 2024-07-07 08:19:46 +03:00
  • 6d034b0620 Fixed an issue with NetworkTransform.Teleport not replicating properly in the client when called by the server on a client-predicted object. Karrar 2024-07-07 05:49:14 +03:00
  • 7319346d2a Fixed several issues with additive scene loading. Karrar 2024-07-06 05:04:07 +03:00
  • a0f946f7d1 Testing a fix for an issue with additive scene loading. Karrar 2024-07-03 06:39:38 +03:00
  • cd74d6e12a Testing a fix for an issue with additive scene loading. Karrar 2024-07-03 06:23:57 +03:00
  • f140addbb3 Fixed several issues with additive scene loading. Karrar 2024-07-03 06:11:32 +03:00
  • 1cfd073481 Fixed several issues with additive scene loading. Karrar 2024-07-03 05:01:45 +03:00
  • e0458a13ae Fixed an issue with OnBecameInterested and OnBecameUninterested invocation logic. Karrar 2024-07-01 18:20:56 +03:00
  • 68fa2debe0 Removed a testing log. Karrar 2024-07-01 15:30:42 +03:00
  • c6789f90ed Fixed an issue that causes RPCs called in the server to newly spawned objects (at the same tick that the object was spawned at) to be missed in the client. Karrar 2024-07-01 12:35:19 +03:00
  • b8ef936bf9 Fixed an issue with Sandbox.AttachBehaviour. Karrar 2024-06-30 16:32:11 +03:00
  • 214b9c3afd Fixed a rare issue when an additive scene that was just loaded in the client is unloaded in the next tick, causing an exception to be thrown. Karrar 2024-06-29 23:51:24 +03:00
  • 4e9e0c6bb2 Fixed NetworkSceneOperation.Scene not having the loaded scene struct value when passed to OnSceneOperationBegan . Karrar 2024-06-29 22:26:42 +03:00
  • 675b2466c5 Fixed a rare issue that causes state replication to break when destroying a pooled network object at the same tick it was spawned at. Karrar 2024-06-29 21:07:42 +03:00
  • f866020513 Fixed an issue where NetworkSceneOperation.Scene will always have a default value when passed to OnSceneOperationBegan event. Karrar 2024-06-29 09:23:08 +03:00
  • 569c12dee2 Fixed an issue when destroying an object that is affected by IM. Karrar 2024-06-28 20:01:47 +03:00
  • 4a22d6430b Fixed an issue with loading/unloading additive scenes. Karrar 2024-06-28 18:45:52 +03:00
  • 6157fde103 Fixed an issue with lag-compensated RaycastAll and RaycastAll2D hits not being assigned correct values for Point and Distance. Karrar 2024-06-25 14:39:04 +03:00
  • fddbbbf606 Added lag-compensated RaycastAll and RaycastAll. Karrar 2024-06-25 09:53:28 +03:00
  • 1b8c390292 Fixed an issue with Lag Comp that occurs when you destroy an object with a HitShape Container and perform a lag-compensated query at the same tick. Karrar 2024-06-25 06:48:48 +03:00
  • bb25ff6675 Fixed an issue with lag comp caused by relying on float equality. Karrar 2024-06-25 05:41:46 +03:00
  • 8c4bf3bea8 Added interpolationSource optional parameter to [Smooth]. This lets you choose the interpolation source for Auto Interpolation. Karrar 2024-06-25 04:40:19 +03:00
  • 9a2129ed9c Fixed an issue with Lag Comp where an exception would be thrown when several HitShape Containers are positioned in the same place. Karrar 2024-06-24 17:10:56 +03:00
  • 26ceabcd86 Testing a fix for an issue with lag comp. Karrar 2024-06-21 04:36:27 +03:00
  • 33c1c73475 Fixed an issue causing the previous fix to be not functional. Karrar 2024-06-17 00:29:07 +03:00
  • 959685d2ee Fixed a jitter issue with Local Interpolation that is most noticeable when a locally simulated object is too close to the camera. Karrar 2024-06-16 21:42:26 +03:00
  • 4e8fc9ef97 Changed fields on HitShape from private to public. Karrar 2024-06-09 01:29:44 +03:00
  • e2720f7800 Fixed an issue causing Rigidbody.isKinematic to not replicate to clients when using NetworkRigidbody. Karrar 2024-06-09 01:23:19 +03:00
  • e7b89d90f0 Improved Prediction Error Correction Smoothing by coupling position and rotation in the corrector. Karrar 2024-06-07 10:56:23 +03:00
  • f7ac776294 Changed the way OnPlayerConnected is invoked for the host player. Now it's invoked after NetworkStart has been invoked for all scene objects and the sandbox object. This is safer than before to avoid the problem of subscribing to Sandbox.Events.OnPlayerConnected in a scene object after it was already invoked for the host player, thus missing the call for the host player on that scene object. Karrar 2024-05-26 02:35:06 +03:00
  • 5b34dc69a5 Fixed an issue when destroying an object that has a NetworkTransform, NetworkRigidbody, or NetworkRigidbody2D component which has Prediction Error Correction Smoothing set to true. Karrar 2024-05-24 17:39:22 +03:00
  • ccab14eb75 Added a feature for prediction error correction smoothing on NetworkTransform, NetworkRigidbody, and NetworkRigidbody2D. Karrar 2024-05-23 21:03:34 +03:00
  • b8f7ff1294 Changed OnPlayerDisconnected to be invoked for the host player in the host when Netick shuts down. Karrar 2024-05-13 03:18:45 +03:00
  • 4fb0fbbe61 Fixed an issue causing Netick to not consider the host as a player in regards to NetickConfig.MaxPlayers. Karrar 2024-05-13 03:07:19 +03:00
  • e4402c4c28 Fixed an issue with Lag Comp caused by refactoring code. Karrar 2024-05-12 03:49:25 +03:00
  • e42bf75da9 Implemented TransportConnection.SendUserData in LiteNetLib transport. Karrar 2024-05-12 02:03:03 +03:00
  • 1a598bdc52 Added support for sending data that is decoupled from Netick main packets, directly using the transport. Karrar 2024-05-12 01:55:49 +03:00
  • 957fed25e0 Added NetworkSandbox.PhysicsPrediction. This lets you toggle Physics Prediction` in the client at runtime, so that, for example, you can enable it in some game modes or maps and not in others. Karrar 2024-05-11 04:19:19 +03:00
  • 6fcb3a981b Updated package.json. Karrar 2024-05-10 22:40:17 +03:00
  • 755fe63261 Fixed an issue causing DestroyPool to not destroy free instances. Karrar 2024-05-10 22:33:45 +03:00
  • 21cfc82227 Fixed an issue when destroying a NetworkObject with a network id of -1. Karrar 2024-05-10 11:07:19 +03:00
  • e5d78fe412 Fixed an issue with Sandbox.DestroyPool not working correctly. Karrar 2024-05-09 23:43:24 +03:00
  • d4570df8e9 Updated README.md Karrar 2024-05-04 00:40:42 +03:00
  • d423ff7817 Fixed an issue a client to use the inputs of other clients at high player counts. Karrar 2024-05-04 00:29:19 +03:00
  • d85fb52d28 Updated Version. Karrar 2024-05-02 06:07:51 +03:00
  • 22faabd876 Fixed several issues with Interest Management. Karrar 2024-05-02 00:45:56 +03:00
  • 6ba5ceeffa Fixed an issue causing NetworkBehaviour.InputSourcePlayerId to be -1 sometimes when accessed inside OnBecameInterested or OnBecameUninterested. Karrar 2024-05-01 08:06:49 +03:00
  • ebafddd20b Fixed an issue causing NetworkBehaviour.InputSourcePlayerId to not replicate to the client for proxy objects. Karrar 2024-04-30 18:01:44 +03:00
  • 31eeed728c Fixed an issue causing network objects affected by Interest Management filtering to be not registered in the simulation in the client. Karrar 2024-04-30 17:39:42 +03:00
  • dcae104426 Fixed an issue causing the main physics scene to be assigned to every sandbox when switching scenes and using 2D Physics. Karrar 2024-04-29 18:10:53 +03:00
  • 841fe27fb3 Fixed an issue causing Sandbox.Instantiate to not hide the instantiated GameObject when this sandbox is currently hidden. Karrar 2024-04-29 10:11:00 +03:00
  • 2c62f1db14 Updated README.md. Karrar 2024-04-28 14:48:15 +03:00
  • 86fcbacc1d Updated README.md. Karrar 2024-04-28 14:44:48 +03:00
  • a437aaaede Updated README.md. Karrar 2024-04-28 14:44:02 +03:00
  • 76ed50b430 Updated Installation section in README.md Karrar 2024-04-28 12:30:06 +03:00
  • daa599f0fc Read the description for commit details. Karrar 2024-04-28 12:06:20 +03:00
  • 6f8278a1fc Added inspector drawer for NetworkBool network properties. Karrar 2024-04-16 18:29:34 +03:00
  • 80ed43ffa7 Updated XML docs. Karrar 2024-04-13 12:30:42 +03:00
  • 5d79977c17 Fixed an issue in Unity 2021 due to using SimulationMode instead of autoSimulation for 3D Physics. Karrar 2024-04-13 12:15:12 +03:00
  • c39dfc463e Fixed an issue with kinematic rigidbodies when Physics Prediction is enabled. Karrar 2024-04-13 08:41:01 +03:00
  • 1d33a78810 Fixed an issue where NetworkObjectRef.TryGetObject would always return true. Karrar 2024-04-09 08:00:55 +03:00
  • 417785f97b Removed a reference to Unity.PlasticSCM. Karrar 2024-04-08 11:56:33 +03:00
  • 5cf253bf12 Fixed an issue when switching scene where Netick would use the networked SetParent method on scene objects. Karrar 2024-04-08 08:32:44 +03:00
  • 90d4167a30 Fixed an issue causing GameEngineIntoNetcode to use the previous tick value. Karrar 2024-04-08 05:03:00 +03:00
  • 69fff76c10 Fixed an issue that was causing Lag Compensation to not work correctly. Karrar 2024-04-08 03:54:46 +03:00
  • 4dcd1bdbe5 Fixed an issue with delta compression. Karrar 2024-04-08 01:38:55 +03:00
  • d7b2e398d0 Fixed a warning that is caused due to using parent instead of SetParent on a UI transform. Karrar 2024-04-06 08:35:05 +03:00
  • e501337b62 Testing a fix for a scene switch error on Android. Karrar 2024-04-06 03:51:01 +03:00