Commit Graph

107 Commits

Author SHA1 Message Date
Karrar
b62d5d40e4 Changed the variables used for icon offsets in NetworkInfo to have meaningful names. 2024-08-25 02:09:27 +03:00
Karrar
d294f65bd7 Added packet loss stats to NetworkInfo and made several other improvements. 2024-08-25 01:58:57 +03:00
Karrar
7e3a31bf94 Added NetworkSandbox.InPacketLoss, NetworkSandbox.OutPacketLoss, NetworkConnection.InPacketLoss, and NetworkSandbox.OutPacketLoss. These are measurements for inward and outward packet loss. 2024-08-23 06:05:14 +03:00
Karrar
b10c8c8f06 Fixed an issue with parenting network objects. 2024-08-23 05:53:28 +03:00
Karrar
bceb246d91 Fixed an issue with calculating prediction tick offset that was causing missed inputs at very high tickrates (+100). 2024-08-20 23:12:47 +03:00
Karrar
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. 2024-08-19 02:06:53 +03:00
Karrar
8795bf71f9 Fixed an issue causing NetworkBehaviour.OnInputSourceChanged to be invoked before OnConnectedToServer network event. 2024-08-14 02:30:02 +03:00
Karrar
4df683c5ad Removed OnClientSceneLoaded from NetworkEventsListener. 2024-08-09 15:18:48 +03:00
Karrar
5e581e503c Removed depreciated OnClientSceneLoaded network event. 2024-08-09 15:17:03 +03:00
Karrar
fd6781ea83 Fixed an issue with NetworkDictionary and NetworkHashSet causing them to override the memory of adjacent variables. 2024-08-08 18:18:48 +03:00
Karrar
f830bc3543 Fixed an issue with OnChangedData causing the retrieved previous value to not always be equal to the actual previous value of the variable. 2024-08-08 16:56:14 +03:00
Karrar
fbb5a2800f Fixed an issue causing the client to destroy all scene network objects when it finishes loading the scene before the server. 2024-08-08 15:45:41 +03:00
Karrar
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. 2024-08-08 15:18:41 +03:00
Karrar
4ddbecab0d Fixed an issue with NetworkDictionary and NetworkHashSet causing them to override the memory of adjacent variables. 2024-08-08 14:58:21 +03:00
Karrar
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. 2024-08-08 14:57:08 +03:00
Karrar
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. 2024-08-05 10:27:03 +03:00
Karrar
9db971248b Fixed a potential null reference error with RPCs. 2024-08-03 22:41:57 +03:00
Karrar
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 2024-08-03 03:19:47 +03:00
Karrar
417d60b93b Added a testing change to debug an issue with RPCs. 2024-08-02 22:11:31 +03:00
Karrar
d0f76b76e3 Fixed a typo by changing NetworkEvents.OnClientSceneLoadeddEvent to NetworkEvents.OnClientSceneLoadedEvent. 2024-08-02 01:04:44 +03:00
Karrar
0be10715e6 Removed a testing log from scene loading logic. 2024-07-31 11:36:55 +03:00
Karrar
010cd7a4cc Added NetworkDictionary<TKey,TValue>, NetworkHashSet<T> and NetworkUnorderedList<T>. 2024-07-29 04:32:17 +03:00
Karrar
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. 2024-07-20 18:05:33 +03:00
Karrar
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. 2024-07-16 11:17:25 +03:00
Karrar
b24d56ca1b Fixed an issue causing a child network object to jitter compared to its parent. 2024-07-15 10:45:03 +03:00
Karrar
b87f653765 Testing a fix for a jitter issue that occurs when parenting network objects. 2024-07-13 09:18:26 +03:00
Karrar
21f9efc064 Removed a small GC allocation from pooled objects with HitShape Container. 2024-07-13 08:18:19 +03:00
Karrar
b486632590 Testing a fix for a jitter issue that occurs when parenting network objects. 2024-07-12 12:44:54 +03:00
Karrar
2e7f114fac Fixed an issue with OnVisibilityChanged network event. 2024-07-08 22:10:21 +03:00
Karrar
1e2fa03efe Added OnVisibilityChanged to Sandbox.Events. This is a callback that is invoked when a sandbox visibility state changes 2024-07-08 03:40:45 +03:00
Karrar
f80c9dc6e8 Fixed an issue with the previous commit. 2024-07-07 08:19:46 +03:00
Karrar
6d034b0620 Fixed an issue with NetworkTransform.Teleport not replicating properly in the client when called by the server on a client-predicted object. 2024-07-07 05:49:14 +03:00
Karrar
7319346d2a Fixed several issues with additive scene loading. 2024-07-06 05:04:07 +03:00
Karrar
a0f946f7d1 Testing a fix for an issue with additive scene loading. 2024-07-03 06:39:38 +03:00
Karrar
cd74d6e12a Testing a fix for an issue with additive scene loading. 2024-07-03 06:23:57 +03:00
Karrar
f140addbb3 Fixed several issues with additive scene loading. 2024-07-03 06:11:32 +03:00
Karrar
1cfd073481 Fixed several issues with additive scene loading. 2024-07-03 05:01:45 +03:00
Karrar
e0458a13ae Fixed an issue with OnBecameInterested and OnBecameUninterested invocation logic. 2024-07-01 18:20:56 +03:00
Karrar
68fa2debe0 Removed a testing log. 2024-07-01 15:30:42 +03:00
Karrar
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. 2024-07-01 12:35:19 +03:00
Karrar
b8ef936bf9 Fixed an issue with Sandbox.AttachBehaviour. 2024-06-30 16:32:11 +03:00
Karrar
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. 2024-06-29 23:51:24 +03:00
Karrar
4e9e0c6bb2 Fixed NetworkSceneOperation.Scene not having the loaded scene struct value when passed to OnSceneOperationBegan . 2024-06-29 22:26:42 +03:00
Karrar
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. 2024-06-29 21:07:42 +03:00
Karrar
f866020513 Fixed an issue where NetworkSceneOperation.Scene will always have a default value when passed to OnSceneOperationBegan event. 2024-06-29 09:23:08 +03:00
Karrar
569c12dee2 Fixed an issue when destroying an object that is affected by IM. 2024-06-28 20:01:47 +03:00
Karrar
4a22d6430b Fixed an issue with loading/unloading additive scenes. 2024-06-28 18:45:52 +03:00
Karrar
6157fde103 Fixed an issue with lag-compensated RaycastAll and RaycastAll2D hits not being assigned correct values for Point and Distance. 2024-06-25 14:39:04 +03:00
Karrar
fddbbbf606 Added lag-compensated RaycastAll and RaycastAll. 2024-06-25 09:53:28 +03:00
Karrar
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. 2024-06-25 06:48:48 +03:00