Commit Graph

6379 Commits

Author SHA1 Message Date
mischa
55be1485c1 fix jitter: always sync unreliable deltas during reliable baseline syncs! 2024-09-19 13:39:34 +02:00
mischa
234f19801e SerializeForConnection: split into two 2024-09-19 13:39:34 +02:00
mischa
34de8ec613 tank: use NT new 2024-09-19 13:39:34 +02:00
mischa
b9f7985913 FIX HOST SYNC 2024-09-19 13:39:34 +02:00
mischa
8e62234c63 FIX 2024-09-19 13:39:34 +02:00
mischa
a8d3193dd7 simplify tank 2024-09-19 13:39:34 +02:00
mischa
38bed5a7ce client->server works 2024-09-19 13:39:34 +02:00
mischa
3528400468 Tank manual serialization tests - Unreliable 2024-09-19 13:39:34 +02:00
mischa
8506390bc9 Tank manual serialization tests - Reliable 2024-09-19 13:39:20 +02:00
mischa
50f17d66e5 only show syncInterval for Reliable components for now 2024-09-19 13:39:20 +02:00
mischa
6b1b1a710a NetworkClient: OnEntityStateMessageUnreliable 2024-09-19 13:39:20 +02:00
mischa
1f6935e297 SerializeServer_Broadcast_UnreliableComponents 2024-09-19 13:39:20 +02:00
mischa
7de8dbbbee ServerDirtyMasks_Broadcast_UnreliableComponents 2024-09-19 13:39:20 +02:00
mischa
5f17e578c5 IsDirty_BitsOnly 2024-09-19 13:39:20 +02:00
mischa
e81c6082cb NetworkIdentitySerialiation: parameters for both modes, filter on Reliable mode 2024-09-19 13:39:20 +02:00
mischa
a0aa1dc9a4 parameters 2024-09-19 13:39:20 +02:00
mischa
f948c5135e Broadcast(unreliableBaselineElapsed) 2024-09-19 13:39:20 +02:00
mischa
9d4a470449 empty message handlers 2024-09-19 13:39:20 +02:00
mischa
32b784376d last unreliable state time 2024-09-19 13:39:20 +02:00
mischa
b6bb3d3af4 NetworkTransform - Unreliable Compressed component 2024-09-19 13:39:20 +02:00
mischa
5cc8050d47 Low Level Preparations 2024-09-19 13:39:20 +02:00
mischa
bbaece8df4 NetworkIdentity:ServerDirtyMasks split into Spawn and Broadcast to prepare for Unreliable sync 2024-09-19 13:39:20 +02:00
mischa
32939d129e NetworkIdentity: SerializeServer split into Spawn and Broadcast to prepare for Unreliable sync method 2024-09-19 13:39:20 +02:00
mischa
43365aee5a feature(NetworkTransform): ServerTeleport() function 2024-09-19 13:37:37 +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