Commit Graph

6479 Commits

Author SHA1 Message Date
mischa
7ab1b394be breaking: NetworkServer.dontListen renamed to 'listen' to avoid double negative "dontListen=false" to listen 2024-10-16 12:37:24 +02:00
mischa
13db82b347 formatting 2024-10-15 12:46:43 +02:00
mischa
ef5fc77728 NetworkServer.IsConnectionAllowed: log address too 2024-10-15 12:45:27 +02:00
MrGadget
86302503da Code Cleanup: SyncSet
Consistent order of things
2024-10-15 06:02:50 -04:00
MrGadget
c23914ca2b Code Cleanup: SyncList, SyncSet, SyncDictionary
Consistent order of things in all three
2024-10-15 05:34:18 -04:00
MrGadget
cd81e9dcdb SyncList: fixed comment typo 2024-10-15 05:26:00 -04:00
mischa
413694af3c
feat(netgraph): universal NetworkGraph with bandwidth + ping in one (#3922)
* feature(netgraph): universal NetworkGraph with bandwidth + ping in one

* unity 2019 prefab

---------

Co-authored-by: mischa <info@noobtuts.com>
Co-authored-by: Robin Rolf <imer@imer.cc>
2024-10-14 18:20:18 +02:00
mischa
1fffa5bb6d netgraph: NetworkGraph renamed to Bandwidth graph because it only shows bandwidth 2024-10-14 13:56:47 +02:00
mischa
b98b9d56b5 netgraph: NetworkGraph adjusted to fit Y labels better 2024-10-14 13:56:44 +02:00
mischa
2bf70f3bc9 both for now 2024-10-14 12:42:31 +02:00
mischa
b57984ab59 SyncList: keep old OnChange parameters to not break projects 2024-10-14 12:42:31 +02:00
JesusLuvsYooh
501d8d52ed
fix: Updated NetworkTransform presets. (#3921)
* Updated NT presets.

Updated presets, removed old presets.

* Spaces
2024-10-14 06:03:57 -04:00
MrGadget
c6be7aaaae fix(BouncyCastle): Move BouncyCastle to Encryption Transport Plugins folder
This keeps it together, so if the transport is removed by users BouncyCastle is removed too without users having to know to find that separately and remove it.
2024-10-14 10:12:44 +02:00
Kyle Avalani
97ce2a8abf
chore(Transport): Comment typo (#3919) 2024-10-14 02:30:43 -04:00
MrGadget
2b2e4131a5 fix(Reward): Simplified and better comments 2024-10-14 02:27:40 -04:00
MrGadget
1f9faf2044 RandomColor: comments 2024-10-14 02:26:18 -04:00
mischa
d336893a63 fix: KcpServerConnection "invalid channel header" now logs address 2024-10-12 22:36:26 +02:00
mischa
8f5bf7b775 feature(EncryptionTransport): log hardware acceleration status 2024-10-12 22:36:26 +02:00
Michael W.
4dd3f1e71d fix(EncryptionTransport): implement PortTransport 2024-10-11 15:21:02 +02:00
MrGadget
ed53e0a5a9 fix(Custom Robot Kyle): Normalized RightHand rotation 2024-10-11 09:10:09 -04:00
MrGadget
9a7cabc4a0 fix: PickupsDropsChilds scene smaller ground plane 2024-10-11 07:03:17 -04:00
MrGadget
13bc00cfde fix: Updated PickupsDropsChilds example
- Renamed prefabs
- adjusted offsets to object prefabs
- fixed orientation of RightHand on Custom Robot Kyle
- Added spawn points to scene
- Improved and simplified code
2024-10-11 06:59:13 -04:00
MrGadget
cc9cc4280b PickupsDropsChilds: SceneObjectPrefab rigidbody settings 2024-10-10 12:48:40 -04:00
MrGadget
d32b81cfb0 PickupsDropsChilds: Semitransparent materials 2024-10-10 12:30:40 -04:00
mischa
c1f71dffe9 Edgegap plugin updated to latest 2024-10-10 17:23:01 +02:00
MrGadget
8d37cc3174 fix(Examples): Moved dirt and wall textures & materials to _Common 2024-10-10 03:57:07 -04:00
MrGadget
90fd0a01a0 fix(PickupsDropsChilds Example): Improved prefabs and scene 2024-10-10 03:54:20 -04:00
MrGadget
7c80a80c55 fix(Profiling): Prefabs -> 2019 2024-10-10 03:53:06 -04:00
MrGadget
75c73c3cf9 fix(TopDownShooter): Repaired NavMesh 2024-10-09 05:54:41 -04:00
MrGadget
9b863f8071 fix(MirrorTests AsmDef): Restored ref to Mirror.BouncyCastle.Cryptography.dll 2024-10-09 05:53:24 -04:00
mischa
8b9578507a fix: #3787 ThreadedTransport doesn't process Data messages after ClientDisconnect() was called anymore 2024-10-08 18:41:55 +02:00
mischa
3313fa9c43 fix: #3787 NetworkManager.StopClient() doesn't immediately call OnClientDisconnectInternal anymore 2024-10-08 18:41:55 +02:00
mischa
dec47b7b7d
feat(NetworkManager): Clear Spawnable Prefabs button (#3619) (#3915)
* feat(NetworkManager): Clear Spawnable Prefabs button (#3619)

* Update Assets/Mirror/Editor/NetworkManagerEditor.cs

Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>

---------

Co-authored-by: mischa <info@noobtuts.com>
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
2024-10-08 12:27:52 -04:00
mischa
f61e85e0e7 breaking: NetworkClient removed old snapshot interpolation settings which are now in snapshotSettings.* 2024-10-08 16:08:36 +02:00
mischa
6f4cc8ed24 NetworkTransformUnreliable: remove dead code 2024-10-08 15:49:15 +02:00
mischa
67efdc5ec3 fix: Extensions.GetMethodName made public to make it accessible from Netgraph 2024-10-07 14:25:27 +02:00
mischa
4358e76bcb netgraph cleanups: graph components moved to prefab root; network graph faster refresh; material defaults to Line 2024-10-07 12:11:12 +02:00
mischa
6bc974618a NetworkClient.connection: use explicit type NetworkConnectionToServer to reduce chance of bugs 2024-10-07 11:36:38 +02:00
mischa
2277d66cea
feat(Compression): Vector4Long for Quaternion Delta compression (V1) (#3907)
Co-authored-by: mischa <info@noobtuts.com>
2024-10-07 11:31:43 +02:00
mischa
b0e60a8e3d comment 2024-10-07 11:27:48 +02:00
pepoipod
cdc58fdba9
fix(ReaderWriterProcessor) : When crossing assemblies problem (#3864)
* fix(ReaderWriterProcessor)

Recursively handle the Network Reader/Writer required by CurrentAssembly.AssemblyReferences.

* Remove brackets to one line statement.

#3864 suggestion
2024-10-07 11:26:55 +02:00
MrGadget
7dcd6b2bba chore(Chat Example): Updated Scene 2024-10-03 07:22:26 -04:00
Michael Wu
4261dd2189
fix(SimpleWebTransport): Improve SimpleWeb.jslib to fit more platforms (#3904)
* fix: Improve SimpleWeb.jslib to fit more platforms

* fix: Improve SimpleWeb.jslib to fit more platforms

* Update Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin/SimpleWeb.jslib

Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>

* Update Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin/SimpleWeb.jslib

Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>

---------

Co-authored-by: “michaelwuwar” <“2443973716@qq.com”>
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
2024-10-01 10:07:02 -04:00
MrGadget
18bf67c007 release: Mirror 93.0.0 2024-09-30 18:35:29 -04:00
MrGadget
80df4d66b6 fix(Additive Levels Example): Simplified Portal::SendPlayerToNewScene 2024-09-30 14:59:47 -04:00
MrGadget
ace05a6c7b feat(Examples): Added PickupsDropsChilds example 2024-09-30 11:53:03 -04:00
MrGadget
7d9364908e feat(Examples): Added RobotKyle 2024-09-30 11:51:54 -04:00
MrGadget
d76c1c8f64 fix(TankControllerBase): Removed unused horizontal code 2024-09-30 08:00:01 -04:00
MrGadget
98d192aa84 fix: Updated example scenes and prefabs 2024-09-30 04:13:14 -04:00
MrGadget
70351d96f4 feat: Updated example controllers
RuntimeData struct for inspector folding
2024-09-30 03:49:43 -04:00
MrGadget
53d8812281 fix(ReadOnlyAttribute): Now supports properties too 2024-09-28 06:54:04 -04:00
MrGadget
9cace50233 fix(Telepathy Server): More robust error handling in GetClientAddress 2024-09-27 12:50:33 -04:00
mischa
38e2842abc
fix(Batching): add timestamp safety check to ensure all messages in the batch have the same timestamp (#3902)
Co-authored-by: mischa <info@noobtuts.com>
2024-09-26 11:25:46 +02:00
mischa
2b0603f741
fix(ThreadedTransport): sleep detection (#3901) 2024-09-24 10:13:14 +02:00
MrGadget
a13a00215f fix(BasicAuthenticator): Use correct type in HashSet 2024-09-24 02:55:55 -04:00
MrGadget
1a47714ea2 fix(ChatAuthenticator): Use correct type in HashSet 2024-09-24 02:55:01 -04:00
Robin Rolf
682bba2509
feat: Ping/Traffic/FPS Graphs (#3897)
* wip shader

* line graph, abstract base + fps graph

* canvas scaler

* Network usage graph + line graph tweaks

* ping graph

* undo tank scene changes

* using cleanup

* unity 2019 prefabs

* code style

* naming & naming rule tweaks

* implicit private

* explicit type in new()

* No braces if not needed

* also for for-loops (and all other constructs)

* don't enforce blank lines, bit odd sometimes

* Naming/commenting/material diagnostic

* 2019 mats

* mirror icon on scripts
2024-09-23 19:47:20 +02:00
mischa
927bdccf6e feature(WorkerThread): Tick() returns bool to allow the thread function to stop the thread gracefully 2024-09-23 11:14:15 +02:00
mischa
1e94e12150
feature(NetworkTransform): ServerTeleport() function (#3899)
Co-authored-by: mischa <info@noobtuts.com>
2024-09-21 13:23:43 +02:00
MrGadget
a00db9fe85
breaking: Removed old obsoletes (#3900) 2024-09-21 13:23:23 +02:00
MrGadget
2f874d3dc4 fix(SWT): Improved logging 2024-09-20 12:47:20 -04:00
MrGadget
fdd097b778 fix(SWT): Improved logging 2024-09-20 10:59:55 -04:00
MrGadget
8e905d70ab
feat: Unity 6 Compatibility (#3820)
* fix(Rigidbody): Unity 6 Updates
Unity 6 Preview auto-applies the following changes:
- velocity -> linearVelocity
- drag -> linearDamping
- angularDrag -> angularDamping

* Added Rigidbody Extensions for backwards compatibility

* Revert "Added Rigidbody Extensions for backwards compatibility"

This reverts commit 4f699be7d4.

* Backwards Compatibility

* Backwards Compatibility

* velocity -> linearVelocity

* Backwards compatibility

* fix(NetworkRigidbody2D) isKinematic -> bodyType
2024-09-20 13:00:24 +02:00
MrGadget
20992a8629 fix(SWT): Reduced allocations in logging 2024-09-20 04:35:30 -04:00
MrGadget
0543e0abf3 fix(SWT): Reduced allocations in logging 2024-09-20 04:24:04 -04:00
MrGadget
8cf164055b chore(Tests): Improved Sync Collection tests 2024-09-20 01:32:13 -04:00
mischa
43b4671ff1 Snapshot Interpolation: add comment for easier understanding 2024-09-19 23:08:35 +02:00
MrGadget
82129ce00d fix(ControllerBase): Remove Application.isFocused check
- AutoRun should work even if not focused
2024-09-18 21:54:03 -04:00
MrGadget
7faef65919 fix(NetworkTransformBase): timelineOffset default true 2024-09-18 19:40:50 -04:00
MrGadget
eed9259efe fix(TankControllerBase): Reset move / turn speeds OnDisable 2024-09-18 19:39:40 -04:00
MrGadget
69c05f3ae7 fix(PlayerControllerBase): Reset move / turn speeds OnDisable 2024-09-18 19:39:17 -04:00
MrGadget
072521727f fix(EdgegapLobby Example): Removed old navmesh 2024-09-18 09:40:34 -04:00
MrGadget
d822a21743 fix(EdgegapLobby Example): Fixed scene camera, ground, spawns, navmesh 2024-09-18 09:40:34 -04:00
Robin Rolf
2d9ee5646c
fix: Edgegap Lobby Error continues to Connecting (#3898)
Missing return, oops.
Also some minor readability cleanup
2024-09-18 15:36:12 +02:00
MrGadget
1cc18e67c5 TankTurretBase: fixed comment in HandleTurning 2024-09-17 22:36:59 -04:00
MrGadget
d67a087265 fix(TankControllerBase): Turning is now persisted when AutoRun is enabled. 2024-09-17 22:33:23 -04:00
MrGadget
e467be0d90 PlayerControllerBase: fixed comment in HandleTurning 2024-09-17 22:31:02 -04:00
MrGadget
4158a5e6fe fix(Examples): Updated Tank prefabs with Cooldown 2024-09-17 16:19:05 -04:00
MrGadget
7bdffa0be3 fix(TankTurretBase): Added Cooldown 2024-09-17 16:18:25 -04:00
MrGadget
56cc8fbd4e fix(PlayerTest Example): Changed Player Prefab 2024-09-17 15:58:23 -04:00
MrGadget
c8a2d3d2a8 fix(PlayerControllerBase): Turning is now persisted when AutoRun is enabled. 2024-09-17 15:57:13 -04:00
mischa
6da8ec80a3 fix: NetworkIdentity.OnDestroy cyclic memory leak 2024-09-11 22:22:46 +02:00
MrGadget
e4bf022656 fix(Examples): Scenes and Prefabs updated
NT Base SendIntervalMultiplier removed
2024-09-07 16:29:00 -04:00
mischa
194fd65b51 remove old comment 2024-09-05 12:13:07 +02:00
mischa
18fadbf15b update comment 2024-09-04 10:14:30 +02:00
mischa
016b611b2b
breaking: NetworkTransform sendIntervalMultiplier replaced by syncInterval math (#3895)
* repro

* force sendIntervalMultiplier based on syncInterval!

* Revert "repro"

This reverts commit e51c996fa6.

* cleanup

* fix

* hide

* property

* rmv

---------

Co-authored-by: mischa <info@noobtuts.com>
2024-09-02 22:03:38 +02:00
DANILIAMMO
99ba539e04
style(ConnectionQuality): Fix indention (#3896) 2024-09-02 07:30:25 -04:00
mischa
b1cbab8621
Edgegap Plugin: update to latest version to remove more MIRROR CHANGEs; also supports moving the folder better (#3891)
* Edgegap Plugin: non-breaking updates first

* Edgegap Plugin: update to latest version to remove more MIRROR CHANGEs; also supports moving the folder better

* 2021+

---------

Co-authored-by: mischa <info@noobtuts.com>
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2024-08-22 09:09:58 +02:00
MrGadget
cb9e0fe3c0
feat(Examples): PlayerControllerBase with Reliable / Unreliable Derived Classes (#3889)
* Base Controllers and Reliable / Unreliable versions

* Check Application.isFocused

* Replaced PlayerController

* TankTheftAuto - Use one of each Tank Prefab
- Added Label for Reliable / Unreliable

* TankControllerBase: Require TankHealth

* TankHealth: Ensure finding correct TextMesh
2024-08-17 21:00:47 +02:00
MrGadget
8df5ec087f CharacterSelection: Removed PlayerControllerScript
- No longer used
2024-08-10 14:55:17 -04:00
MrGadget
fb50bf252b CharactrerSelection: Use Common PlayerController 2024-08-10 14:49:54 -04:00
MrGadget
e4845f000d PlayerController: Don't require PlayerCamera 2024-08-10 14:49:10 -04:00
MrGadget
9064dab293
fix(CharacterSelection Example): Separate SceneCamera script (#3888)
* CharSelection: Separate SceneCamera script

* SceneCamera: SetPositionAndRotation

* Code Cleanup
2024-08-10 14:43:29 -04:00
MrGadget
6f28f716d5 fix(Extensions): UNITY_2021_3_OR_NEWER 2024-08-10 14:04:46 -04:00
MrGadget
e8ebfa150b
fix(Extensions): Added SetPositionAndRotation (#3887) 2024-08-10 20:02:29 +02:00
JesusLuvsYooh
dfd69f79dd
Updated ReadMe for CharacterSelection example. (#3886)
Kudos to Gadget for seeing it.
2024-08-10 10:50:55 -04:00
MrGadget
8bdf29983a NetworkClient: Organize methods 2024-08-10 08:04:21 -04:00
mischa
de7ac40af9
perf: Weaver automatically uses VarInt compression for all integers in [SyncVar]/[Command]/[Rpc]/SyncList/NetworkMessage/etc. (#3870)
* perf: NetworkReader/Writer: read/write collection size headers as VarInt for significant bandwidth reduction!

* Weaver: when defining multiple Readers/Writers of same type, choose the one with priority suffix

* perf: NetworkReader/Writer: define weaver preferred VarInt compression for integers

* [WeaverPriority] attribute and more tests

* remove unused

---------

Co-authored-by: mischa <info@noobtuts.com>
2024-08-10 11:54:21 +02:00
MrGadget
d8c7c1e815
feat(NetworkServer): Improved ReplacePlayerForConnection (#3885)
- ReplacePlayerOptions: KeepAuthority, KeepActive, Unspawn, Destroy
- NetworkServer tests updated
- Examples updated and work correctly

Eliminates need to make a coroutine to replace & destroy player.
2024-08-10 11:40:52 +02:00
MrGadget
46010ca49c
fix(NetworkClient): InvokeIdentityCallbacks call OnStartClient first (#3884)
- This is for host client to match logical call order as remote client
2024-08-10 11:39:03 +02:00