Commit Graph

5593 Commits

Author SHA1 Message Date
MrGadget1024
788fd4df91 Revert "breaking(NetworkManager)!: Removed obsolete OnServerError / OnClientError"
This reverts commit 3f7c1af819.
2023-03-06 11:50:37 -05:00
MrGadget1024
3f7c1af819 breaking(NetworkManager)!: Removed obsolete OnServerError / OnClientError 2023-03-06 09:16:49 -05:00
MrGadget1024
a74f8f9ea2 Revert "breaking!(NetworkManager): Removed obsolete OnServerError / OnClientError"
This reverts commit d45bd661ef.
2023-03-06 09:13:48 -05:00
MrGadget1024
d45bd661ef breaking!(NetworkManager): Removed obsolete OnServerError / OnClientError 2023-03-06 08:49:37 -05:00
MrGadget1024
60b3547165 Merged master 2023-03-06 08:43:25 -05:00
MrGadget1024
9f50722906 TestNTNetworkManager - clientUseWss switches 2023-03-06 08:42:46 -05:00
MrGadget1024
b76a9e2634 Updated CameraMove 2023-03-06 08:41:47 -05:00
vis2k
a0605ae651 kcp V1.31 [2023-03-05]
- KcpClient: Tick/Incoming/Outgoing can now be overwritten (virtual)
- breaking: KcpClient now takes KcpConfig in constructor instead of in Connect.
  cleaner, and prepares for KcpConfig.MTU setting.
- KcpConfig now includes MTU; KcpPeer now works with KcpConfig's MTU, KcpServer/Client
  buffers are now created with config's MTU.
2023-03-05 14:10:17 +08:00
vis2k
31b6f195ce KcpTransport: config, server, client protected so inheriting classes can access them 2023-03-04 22:26:24 +08:00
vis2k
582a02eec8 KcpTransport: OnGUIStatistics helper function for easier OnGUI overwrites 2023-03-04 22:23:10 +08:00
vis2k
7b1d6fd412 KcpTransport: virtual Awake/OnValidate/OnGUI to allow inheritance more easily 2023-03-04 22:20:54 +08:00
vis2k
def24f8510 fix: NetworkLoop now only runs in play mode, not in edit mode 2023-03-04 19:33:19 +08:00
vis2k
8f66bd68ca fix: #3392 NetworkLoop now checks if the function was already added before. fixes functions being added twice with Domain Reload disabled. 2023-03-04 19:29:39 +08:00
MrGadget
91014bd614
breaking: Remove NetworkClient.serverIP (#3394)
* breaking: Remove NetworkClient.serverIP
- If we're never going to set it to anything, no reason to have it.
- Transport has no mechanism to return anything for it

Host client hardcodes `address` to "localhost" in both LocalConnectionToServer and LocalConnetionToClient, so obsolete the former telling users to use the latter if they aren't already.

Users can get the endpoint from NetworkManager or Discovery, as they must be doing now since those work and serverIp does not.

* Update main.yml

* 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

* 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.

* fix: Use PingWindowSize instead of hardcoded value (#3396)

fix: Use PingWindowSize instead of hardcoded value

* KcpClient: Tick/Incoming/Outgoing can now be overwritten (virtual)

* RunUnityTests - Updated unityVersion

* fix: Write for non-spawned NB only writes 0 netId (fixes: #3399) (#3400)

* Failing test for non-spawned NB writer/reader

* fix: Write for non-spawned NB only writes 0 netId

Instead of writing 0 and component index which does not match what the reader expects (it will stop reading netId is 0)
Fixes #3399

* breaking: Removed old Unity 2018 / 2019_3 compiler defines (#3397)

- we only suppport Unity 2019.4.40 and later LTS releases.
BREAKING: Removed old 2018 / 2019 compiler defines

* RunUnityTests - try different test reporter

* RunUnityTests commented out Archive and Publish temporarily

* RunUnityTests - disable game-ci built-in test reporter

* RunUnityTests - cleanup

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
Co-authored-by: JesusLuvsYooh <57072365+JesusLuvsYooh@users.noreply.github.com>
Co-authored-by: vis2k <info@noobtuts.com>
Co-authored-by: Robin Rolf <imer@imer.cc>
2023-03-04 06:39:30 +01:00
MrGadget1024
e6029c6e41 Merged master 2023-03-02 22:09:24 -05:00
MrGadget1024
30ff64c75a CameraMove - Addeed PhysicsRaycaster 2023-03-02 22:08:56 -05:00
MrGadget
bb2e7b2308
breaking: Removed old Unity 2018 / 2019_3 compiler defines (#3397)
- we only suppport Unity 2019.4.40 and later LTS releases.
BREAKING: Removed old 2018 / 2019 compiler defines
2023-02-28 16:11:40 +01:00
Robin Rolf
74f5339b09
fix: Write for non-spawned NB only writes 0 netId (fixes: #3399) (#3400)
* Failing test for non-spawned NB writer/reader

* fix: Write for non-spawned NB only writes 0 netId

Instead of writing 0 and component index which does not match what the reader expects (it will stop reading netId is 0)
Fixes #3399
2023-02-28 16:10:49 +01:00
vis2k
eaea01caa6 KcpClient: Tick/Incoming/Outgoing can now be overwritten (virtual) 2023-02-26 14:29:15 +08:00
MrGadget1024
a5270e9cec Dummy model and animations 2023-02-25 23:37:58 -05:00
MrGadget1024
bf4bc6cc68 Offline Scene - use PlayerDummy 2023-02-25 21:31:07 -05:00
MrGadget1024
df8b280a6d PlayerDummy - Animation 2023-02-25 21:30:53 -05:00
MrGadget1024
214dc43750 PlayerMove - Animation 2023-02-25 21:30:23 -05:00
MrGadget1024
b0b039f468 NTRCustomSendInterval - formatting 2023-02-25 21:30:02 -05:00
MrGadget1024
40d8e0268d SnapshotInterpolation - syntax 2023-02-25 21:27:06 -05:00
MrGadget1024
b4257d7484 NTRCustomSendInterval Mirror icon 2023-02-25 10:49:57 -05:00
JesusLuvsYooh
3252dec547
fix: Use PingWindowSize instead of hardcoded value (#3396)
fix: Use PingWindowSize instead of hardcoded value
2023-02-25 09:56:29 -05:00
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
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
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
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
494f6b342c SWT ClientHandshake - fixed error 2023-02-19 23:07:05 -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
MrGadget1024
9877249130 Add back reference 2023-02-19 16:38:31 -05:00
MrGadget1024
e0aac07a30 resolved conflict 2023-02-19 10:28:48 -05:00
MrGadget1024
ccf6569dd3 Merged AsmDef-Sanity 2023-02-19 10:25:55 -05:00
MrGadget1024
fe03ba88d9 breaking: AsmDef Updates
- KcpTransport moved up
- SimpleWeb moved into folder
- AsmDef chains updated and simplified
2023-02-19 10:23:38 -05:00
MrGadget1024
346442efed Kcp compatibility 2023-02-19 10:08:18 -05:00
MrGadget1024
31203aabb1 TestNTNetworkManager overrides 2023-02-18 21:16:55 -05:00
MrGadget1024
44e7d76b08 UI updates 2023-02-18 21:00:35 -05:00
MrGadget1024
7f655d1899 Offline scenes updated 2023-02-18 20:27:51 -05:00
MrGadget1024
d9882e42f0 LoginUI prefab 2023-02-18 20:27:26 -05:00
MrGadget1024
5088ccde81 offline scenes updated - UI wireups 2023-02-18 20:08:45 -05:00
MrGadget1024
ba1d5e1b5f LoginUI Prefab updated 2023-02-18 20:08:25 -05:00
MrGadget1024
3bb3efbb62 LoginUI - removed unused field 2023-02-18 20:08:08 -05:00
MrGadget1024
fc951d84c2 unused usings 2023-02-18 14:52:00 -05:00
MrGadget1024
9ffd233958 OfflioneKcp updated 1K 2023-02-18 14:44:21 -05:00
MrGadget1024
add8fa42d1 OfflineKcp updated 2023-02-18 14:36:55 -05:00
MrGadget1024
2cac079138 LoginUI prefab 2023-02-18 14:36:46 -05:00
MrGadget1024
863ec8d0b8 1000 maxConn 2023-02-18 13:24:30 -05:00
MrGadget1024
699c9ac5c7 fixed client not getting multiplier 2023-02-18 11:44:08 -05:00
MrGadget1024
4536fb3dc8 sendIntervalMultiplier SyncVar 2023-02-18 10:15:54 -05:00
MrGadget1024
a4491057e3 fixed BotNinja prefab 2023-02-18 09:42:31 -05:00
MrGadget1024
346aaabc02 fixed /ninja switch 2023-02-18 09:31:26 -05:00
MrGadget1024
fbc00c1ee9 Bug fixes 2023-02-18 09:14:07 -05:00
MrGadget1024
ab8bdb6506 Added stresstest.idev.dl.je 2023-02-18 08:38:26 -05:00
MrGadget1024
feb5d5286e NTRCustomSendInterval LateUpdate 2023-02-17 22:03:08 -05:00
MrGadget1024
f2cc2ba9ca NTRCustomSendInterval formatting 2023-02-17 20:38:16 -05:00
MrGadget1024
b90c620b68 Default server port 27777 2023-02-17 18:02:39 -05:00
MrGadget1024
390318da95 ninja config options 2023-02-17 17:41:14 -05:00
MrGadget1024
b28cb90d11 prefab updates 2023-02-17 17:40:52 -05:00
MrGadget1024
fddcd76228 Ninja Material 2023-02-17 17:40:41 -05:00
MrGadget1024
994fe40d25 Ninja UI 2023-02-17 17:40:21 -05:00
MrGadget1024
7c211b19fc PlayerNinja Color 2023-02-17 17:11:34 -05:00
MrGadget1024
99c8ce16c8 Prefabs 2023-02-17 17:09:04 -05:00
MrGadget1024
545cefd1c2 Added Ninja options 2023-02-17 17:03:28 -05:00
MrGadget1024
c05e2d6991 Fixed Apply override 2023-02-17 16:16:52 -05:00
MrGadget1024
931ec63170 Merged master 2023-02-17 16:14:55 -05:00
Robin Rolf
94bb3690ae
fix: NetworkBehaviour SyncVar uses netId lookup (#3386)
* fix: NetworkBehaviour SyncVar uses netId lookup

Not only types derived from NetworkBehaviour
Fixes #2939

* Update Assets/Mirror/Editor/Weaver/Extensions.cs

* Update Assets/Mirror/Editor/Weaver/Processors/NetworkBehaviourProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Readers.cs

* Update Assets/Mirror/Editor/Weaver/Writers.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-17 12:09:53 +01:00
MrGadget1024
5784ff6d8a script icons 2023-02-16 21:55:50 -05:00
MrGadget1024
4f1a1899aa Extensions - updated comment 2023-02-16 09:07:55 -05:00
MrGadget1024
2f2a6907de Extenstions - Added comment to GetStableHashCode 2023-02-16 09:04:43 -05:00
MrGadget1024
adafd484d7 Fixed log msg 2023-02-16 08:27:11 -05:00
MrGadget1024
e4281fe5bf fix: fixed warning in test 2023-02-16 08:20:01 -05:00
MrGadget1024
9e0c59526c fix: Extensions - Remove static StableHashes dictionary
- Now that all callers to GetStableHashCode are either one-timers or design-time (weaver) the dictionary is no longer needed.
2023-02-16 08:19:48 -05:00
Robin Rolf
5d6022ff19
Remove outdated comment (#3385) 2023-02-16 13:21:01 +01:00
Robin Rolf
8b7bc6858f
perf: Weave in pre-computed function hash for RPCs (#3384)
* perf: Weave in pre-computed function hash for RPCs

Instead of computing it at runtime for every call
See #3381, #3377 and #3375

* Update Assets/Mirror/Editor/Weaver/Processors/CommandProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/TargetRpcProcessor.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-16 13:01:03 +01:00
Robin Rolf
b933dcbe1a
feat: InterestManagementBase (#3379)
* feat: InterestManagementBase

A interest management base class that allows more advanced interest management by bypassing the built-in HashSet checks via Rebuild overriding

* Update Assets/Mirror/Core/InterestManagementBase.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-16 12:57:31 +01:00
Robin Rolf
c2d834315c
cleanup: move observer HashSet rebuild logic to IM (#3383)
This cleanup step prepares for InterestManagement classes being able to customize the rebuild logic, but for that we should move it out of the NetworkServer class
2023-02-16 12:11:54 +01:00
JesusLuvsYooh
e0e262678b
feature: NetworkTransform interpolation can be disabled (#3378)
* Interpolation off bools for NetworkTransform.

Gives a snap-like effect to position, rotation and scaling.

* Update Assets/Mirror/Components/NetworkTransformBase.cs

* Update NetworkTransformBase.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-16 04:19:02 +01:00
Robin Rolf
569938c8c7
perf: Use static generic class to cache message id (#3381)
* perf: Use static generic class to cache message id

we can (ab)use c# generics to cache the message id in a static field
this is significantly faster than doing a runtime Dictionary lookup in my testing (16% thread cpu-> ~0.22% for 121 moving nts)
generic classes have separate static fields per type specification, so we can store things per-type there, exactly what we need!

* Obsolete NetworkMessages.GetId

* Update Assets/Mirror/Core/NetworkMessages.cs

* Copy comment from GetId up to the Id field

* wording

---------

Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
2023-02-15 16:39:25 +01:00
Robin Rolf
1b4cc63c2e Correct send rate in bot name 2023-02-14 19:59:52 +01:00
Robin Rolf
dd2151b582 /ssl and /nossl args 2023-02-14 19:40:42 +01:00
Robin Rolf
39faecc911 /h: command line arg 2023-02-14 18:45:05 +01:00
MrGadget1024
7e693c93d1 bots setup 2023-02-14 07:10:24 -05:00
MrGadget1024
b53892e2de Latest 2023-02-14 06:52:58 -05:00
MrGadget1024
31349c708c Merged master 2023-02-14 03:51:38 -05:00
MrGadget
59dc88c981
perf: Cache Stable Hashes (#3377)
* perf: Cache Stable Hashes
- Static dictionary of message hashes
- ResetStatics

* Added debug log for future debugging.

* Update Extensions.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-14 02:45:36 +01:00
MrGadget1024
d1e263acac Merged master 2023-02-13 04:35:50 -05:00
MrGadget1024
6a506b0abe WebGL 2023-02-13 04:34:39 -05:00
JesusLuvsYooh
adc28267f7 Updated function name in code summary. 2023-02-12 16:19:43 +00:00
MrGadget1024
456e7eefdd Latest 2023-02-12 07:52:50 -05:00
MrGadget1024
a0034fb01c Player prefab 2023-02-11 20:48:53 -05:00
MrGadget1024
f41f03833b Bot Test 2023-02-11 19:31:03 -05:00
MrGadget1024
948defd3ec WIP 2023-02-10 16:11:14 -05:00
MrGadget1024
2088b46b59 SWT logging 2023-02-10 04:47:21 -05:00
MrGadget1024
578c01ea31 OfflineWeb 2023-02-10 04:47:09 -05:00
MrGadget1024
e93dea4dfa Merged master 2023-02-09 11:27:33 -05:00
MrGadget1024
80211ba827 fix: NetworkRoomManager.ReadyStatusChange is now a virtual method
- Script Template updated accordingly.

Fixes #1889
2023-02-09 11:21:06 -05:00
MrGadget
e260d1eb2a
fix: NetworkWriter - Change MaxStringLength to ushort.MaxValue (#3374)
* fix: NetworkWriter - Change MaxStringLength to ushort.MaxValue
- local `realsize` in NetworkReaderExtensions.ReadString changed to ushort with proper casting
- Comments added to NetworkWriterExtensions
- Comments added to NetworkReaderExtensions
- Log output updated in both for consistency

* Added comment

* Changes per request
2023-02-09 09:24:03 -05:00
MrGadget
9f7ed98ccc
feat: Read / Write DateTime (#3373)
* feat: Read / Write DateTime
- no UTC conversion...users can do that on their own if they want / need to.

DateTime is a public struct but has no public fields (all properties) so no error is thrown if users try to use it in SyncVar / Cmd / Rpc / NetMsg, but no value is put on the wire and SyncVar hooks don't fire because the client determines no actual value change.

* Added nullable DateTime support

* Removed mysterious using
2023-02-09 09:25:57 +01:00
MrGadget1024
607d61406a Merged master 2023-02-08 10:16:47 -05:00
MrGadget1024
efeab67331 NetworkRoomManager - refactor CheckReadyToBegin 2023-02-08 10:05:01 -05:00
MrGadget1024
324c41e1c7 NetworkRoomManager - refactor CheckReadyToBegin 2023-02-08 10:04:30 -05:00
MrGadget1024
1794d206e1 Merged master 2023-02-08 03:05:43 -05:00
MrGadget1024
bbcf4b38c0 breaking: MIRROR_73_OR_NEWER 2023-02-08 03:04:41 -05:00
MrGadget1024
3ef5e06431 Revert "breaking: MIRROR_73_OR_NEWER"
This reverts commit 8596f1d827.
2023-02-08 03:02:30 -05:00
MrGadget1024
3811a42411 Merged master 2023-02-08 02:59:11 -05:00
MrGadget1024
8596f1d827 breaking: MIRROR_73_OR_NEWER 2023-02-08 02:57:27 -05:00
MrGadget1024
1adf221423 Merged master 2023-02-08 01:22:02 -05:00
MrGadget1024
43907b102a Changed dropdown order 2023-02-08 01:20:36 -05:00
MrGadget
229a1a6509
perf: Distance Interest Management caches custom ranges to avoid runtime TryGetComponent overhead (#3372)
* fix: Distance Interest Mgmt static dictionary

* Clear on Reset

* Allow for changing range at runtime

* Use OnSpawned / OnDestroyed

* reverted default visRange

* Update DistanceInterestManagement.cs

* Update DistanceInterestManagement.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-08 05:02:55 +01:00
MrGadget1024
cf429f14a5 Merged master 2023-02-07 15:20:40 -05:00
MrGadget1024
340a4b907a DistanceInterestManagementCustomRange - larger default visRange 2023-02-07 10:13:41 -05:00