Commit Graph

7725 Commits

Author SHA1 Message Date
MrGadget1024
a04f388c82 PlayerDummy WIP 2023-02-25 09:22:23 -05:00
MrGadget1024
431a396df8 NTReliableExt updated 2023-02-25 09:22:11 -05:00
MrGadget1024
d15f9d4579 Offline scene 2023-02-25 09:21:51 -05:00
MrGadget1024
d7896c2ec1 NetworkTime changes 2023-02-25 09:21:19 -05:00
JesusLuvsYooh
4603bb1a4d
Shortened PingWindowSize to get a faster more accurate result. (#3395)
* Shortened PingWindowSize to get a faster more accurate result.

Shortened PingWindowSize to get a faster more accurate result.
It taking too long to calculate the average may look bad to users

* Revert "Shortened PingWindowSize to get a faster more accurate result."

This reverts commit 0a5916b4dc.

* Revert "Shortened PingWindowSize to get a faster more accurate result."

This reverts commit 0a5916b4dc.

* Shortened PingWindowSize to get a faster more accurate result.

Shortened PingWindowSize to get a faster more accurate result.
It taking too long to calculate the average may look bad to users

* Shortened PingWindowSize to get a faster more accurate result.

Shortened PingWindowSize to get a faster more accurate result.
It taking too long to calculate the average may look bad to users, choosing 6 gives us an average of 3 results, where as the previous 10, would wait for 5, it should be a slight visual improvement.
2023-02-25 11:11:56 +01:00
MrGadget1024
4c329fc7ef clientMaxMessagesPerTick: 2000 2023-02-24 23:35:52 -05:00
MrGadget1024
0f08a2f45f Teleport by X 2023-02-24 22:53:10 -05:00
MrGadget1024
6aabc65d1d Offline scene updated 2023-02-24 22:52:34 -05:00
MrGadget1024
c352c354ec bufferTimeMultiplierForClamping cmd line arg 2023-02-24 22:52:18 -05:00
MrGadget1024
9b9fe83dc5 NTRCustomSendInterval override OnTeleport 2023-02-24 22:51:42 -05:00
MrGadget1024
92310b4c9e bufferTimeMultiplierForClamping = 1f 2023-02-24 22:51:14 -05:00
MrGadget1024
0d461a8836 only ninja NPCs 2023-02-24 22:50:34 -05:00
MrGadget1024
0d6868b693 useNinja = true 2023-02-24 22:50:16 -05:00
MrGadget1024
5b56a4ce22 updated NTReliableExt 2023-02-24 22:49:24 -05:00
MrGadget1024
95e189d197 Updated NTReliableExt 2023-02-24 22:49:04 -05:00
MrGadget1024
e242c5f965 Formatting 2023-02-24 03:38:32 -05:00
MrGadget1024
d92cc65315 Formatting 2023-02-24 03:38:18 -05:00
ninjakickja
a424ee87d1 Clamping time if the difference exceeds X times multiplier.
Added in NM to include settings for clamp multiplier.
Added clamp multiplier field in NetworkServer for use in snapshot interpolation, similar to send Interval.
Amended all the function call to InsertAndAdjust to include clamp multiplier.
2023-02-24 11:36:10 +08:00
mischa
228a577683
fix: kcp2p V1.30 (#3391)
- fix: set send/recv buffer sizes directly instead of iterating to find the limit.
  fixes: https://github.com/MirrorNetworking/Mirror/issues/3390
- fix: server & client sockets are now always non-blocking to ensure main thread never
  blocks on socket.recv/send. Send() now also handles WouldBlock.
- fix: socket.Receive/From directly with non-blocking sockets and handle WouldBlock,
  instead of socket.Poll. faster, more obvious, and fixes Poll() looping forever while
  socket is in error state. fixes: https://github.com/MirrorNetworking/Mirror/issues/2733
2023-02-23 03:14:31 +01:00
ninjakickja
46ec63dc51 Changing TimeOverride Method
If we want local timeline to be around bufferTime slower,
Then over her we want to clamp localTimeline to be:
target +- multiplierCheck * bufferTime.
2023-02-23 09:26:07 +08:00
MrGadget1024
192f79c92b Merged master 2023-02-22 17:48:39 -05:00
MrGadget1024
af787b8f06 unityVersion - updated unityVersions 2023-02-22 13:52:36 -05:00
MrGadget1024
148b4e487c Console.WriteLine instead of Debug.Log 2023-02-22 01:35:44 -05:00
MrGadget
a1db764b7c
Organize WeaverTypes (#3393)
* Organize WeaverTypes
- Put all NetworkBehaviors together
- Put Writer with Reader
- Put Remote things together
- moved ScriptableObjectType down

* moved NetworkClientConnectionReference up
2023-02-22 07:07:45 +01:00
MrGadget1024
43c62d24bb Merged master 2023-02-22 00:39:03 -05:00
mischa
3caaeedf53
Update SECURITY.md 2023-02-22 06:22:33 +01:00
mischa
e5922b17ed
Update SECURITY.md 2023-02-22 06:22:14 +01:00
MrGadget1024
f87d5e4f9c UpdateClient change per Ninja 2023-02-21 02:14:21 -05:00
MrGadget1024
aa3c1b6bd4 Changes per Ninja 2023-02-21 01:29:23 -05:00
MrGadget1024
712b1c9120 fixed dumb mistake 2023-02-20 15:24:09 -05:00
MrGadget1024
dba4aa7f24 Added back PlayerBuffers to Ninja prefabs 2023-02-20 11:45:36 -05:00
MrGadget1024
56fa8ef30d Merged master 2023-02-20 08:50:26 -05:00
vis2k
5cae45da1b Unity 2021.3.19 to fix dedicated server build definitions:
https://forum.unity.com/threads/unity-2021-2-dedicated-server-target-and-stripping-optimizations-now-live-please-share-feedback.1143734/page-4#post-8806153
2023-02-20 18:44:08 +08:00
MrGadget1024
51e47c733a PlayerName - removed commented code 2023-02-20 02:40:46 -05:00
MrGadget1024
7fb1d25e06 default multiplier 3 2023-02-20 02:40:26 -05:00
MrGadget1024
6a4dcf8d10 Hide snap UI elements 2023-02-20 02:40:06 -05:00
MrGadget1024
dc1c45a7b8 set multipler default back to 3 2023-02-20 02:15:23 -05:00
MrGadget1024
03c063e69e UI bug for multiplier, and default now 6 2023-02-20 02:09:37 -05:00
MrGadget1024
566c9eb29d TestNTNetworkManager OnClientDisconnect offline scene check 2023-02-20 00:56:36 -05:00
MrGadget1024
7fa5afcfce fixed TestNT.meta 2023-02-19 23:34:33 -05:00
MrGadget1024
94114a88b3 Deleted TMP folder 2023-02-19 23:13:49 -05:00
MrGadget1024
47c4285423 Merged Master 2023-02-19 23:12:48 -05:00
MrGadget1024
33f19939f5 gitignore .vscode 2023-02-19 23:08:10 -05:00
MrGadget1024
494f6b342c SWT ClientHandshake - fixed error 2023-02-19 23:07:05 -05:00
MrGadget1024
7ad18a247c deleted .vscode folder and added to gitignore 2023-02-19 23:06:15 -05:00
MrGadget
69d5cf3c8f
breaking: AsmDef Updates (#3388)
* breaking: AsmDef Updates
- KcpTransport moved up
- SimpleWeb moved into folder
- AsmDef chains updated and simplified

* Reverted accidental change

* reverted accidental change

* Mirror.Tests - reverted ref removal
- needed for 2019 and 2020
2023-02-20 04:56:52 +01:00
Robin Rolf
cfe27a179b
fix: never use custom NB writers for SyncVars (#3387)
We always use a specific reader for NB syncvars, so if a custom defined writer handles data differently this leads to data mismatches.
Supporting custom readers for NB syncvars will just lead to too many edge cases and unexpected behaviour, so dont do it (see https://github.com/MirrorNetworking/Mirror/issues/2680#issuecomment-1435093212 for rationale).

Fixes #2680
2023-02-20 04:29:48 +01:00
MrGadget1024
ce2f1206e4 NTRCustomSendInterval formatting 2023-02-19 22:01:32 -05:00
ninjakickja
913a29dc6d Update NT to fix desyncs
When a new client joins in between sending frames, server will serialize a current live position to the client. This may not be the last sent copy to everyone, so when the next send happens, the delta sent will be delta-ed against wrong data.

Other changes:
1) Removed CheckLastSendTime() in OnSerialize(), not needed.
2) Only checking sending/set dirty in LateUpdate(). Other users may require positions updated in
    update, and do something to it on LateUpdate().
3) Initialize last snapshot to zeroes in Reset(). For syncOnlyOnChange, sender will check against last sent
    snapshot for changes. This needs to be zero on a reset.
2023-02-20 10:36:14 +08:00
MrGadget1024
fbbb10be7f TestNTNetworkManager wrap using System 2023-02-19 16:42:20 -05:00