mischa
0f41aa7a3e
NetworkBehaviour SendCommandInternal: shorter logs
2023-04-29 10:52:07 +09:00
mischa
4193b5401e
fix : #3409 - NetworkTime now always uses unscaled time as double. Forgot to push the commit for the previous commit's PR
2023-04-24 20:09:53 +08:00
mischa
754a98fd71
fix : #3409 NetworkTime now always uses ( #3475 )
2023-04-22 05:12:31 +02:00
mischa
58e7915952
Tests: NetworkBehaviourMock component with call counters for reuse. Tests don't need to manually define call counters anymore.
2023-04-21 14:34:22 +08:00
mischa
b43d920572
Tests: NetworkIdentity tests split into multiple files
2023-04-21 14:14:30 +08:00
mischa
005d8384f4
Tests: NetworkClient namespace changed
2023-04-21 14:03:07 +08:00
mischa
20cf67342d
Tests: NetworkTransform namespace for grouping in test runner
2023-04-21 14:01:33 +08:00
mischa
b33d3bb924
Tests: NetworkReaderWriter namespace for grouping in test runner
2023-04-21 14:00:57 +08:00
mischa
ce0b8eabd9
Tests: NetworkMessages namespace for grouping in test runner
2023-04-21 13:58:51 +08:00
mischa
38dd2ae960
Tests: NetworkManager namespace for grouping in test runner
2023-04-21 13:55:30 +08:00
mischa
1012ca0dd6
Tests: NetworkServer namespace for grouping in test runner
2023-04-21 13:54:43 +08:00
mischa
814c5c404c
Tests: NetworkIdentities namespace for grouping in test runner
2023-04-21 13:37:18 +08:00
mischa
8b0020f10c
Tests: NetworkConnections namespace for grouping in test runner
2023-04-21 13:34:47 +08:00
mischa
14146e61a2
Tests: NetworkClient namespace for grouping in test runner
2023-04-21 13:33:44 +08:00
mischa
0d49bba308
Tests: NetworkBehaviours namespace for grouping in test runner
2023-04-21 13:31:20 +08:00
mischa
eea2099a2d
Tests: InterestManagement namespace for grouping in test runner
2023-04-21 13:29:41 +08:00
mischa
9da3e3fa23
Tests: remove unused usings
2023-04-21 13:28:29 +08:00
mischa
8151a4d8f8
Tests: fix namespace for Rpcs
2023-04-21 13:27:51 +08:00
mischa
e47296194f
Tests: RemoteAttributeTest namespace renamed to Rpcs
2023-04-21 12:20:25 +08:00
mischa
17811668ab
Tests: add missing dependency after recent rename
2023-04-21 12:19:12 +08:00
mischa
d9ba49fa4b
Tests: SyncCollections namespace for grouping in test runner
2023-04-21 12:18:43 +08:00
mischa
0c34dc0c7f
Tests: SyncVars namespace for grouping in test runner
2023-04-21 12:17:50 +08:00
mischa
6e372b51fb
Tests: Transports namespace for grouping in test runner
2023-04-21 12:16:51 +08:00
mischa
5b08993e62
Tests: Tools namespace for grouping in test runner
2023-04-21 12:16:23 +08:00
mischa
b9e4484215
Tests: NetworkLoop subfolder
2023-04-21 12:05:49 +08:00
mischa
387cd2e0e6
Tests: NetworkTransform subfolder
2023-04-21 12:05:26 +08:00
mischa
5d211ea830
Tests: SnapshotInterpolation subfolder
2023-04-21 12:05:10 +08:00
mischa
d2e60283b3
Tests: StructMessagesTests moved to NetworkMessages subfolder
2023-04-21 12:04:40 +08:00
mischa
d694163a14
Tests: FieldsInBaseClasses moved to NetworkReaderWriter folder
2023-04-21 12:04:04 +08:00
mischa
8696a4f9cd
Tests: OverloadMethodTest moved to NetworkMessages subfolder
2023-04-21 12:03:09 +08:00
mischa
24069ab8a2
Tests: add comment
2023-04-21 11:27:26 +08:00
mischa
5b0c9b8425
syntax
2023-04-21 11:26:15 +08:00
mischa
b50a762e1a
Tests: CustomRWTest renamed
2023-04-21 11:25:11 +08:00
mischa
1b906a97fa
Tests: CustomRWTest renamed
2023-04-21 11:24:28 +08:00
mischa
e60df7c0dc
Tests: add comment
2023-04-21 11:21:28 +08:00
mischa
dedcab4402
Tests: CollectionWriterTests moved to NetworkReaderWriter folder
2023-04-21 11:10:24 +08:00
mischa
c3193ab42b
syntax
2023-04-21 11:08:04 +08:00
mischa
1601960b53
Tests: AttributeTests subfolder; split up in multiple files; add comments
2023-04-21 11:06:37 +08:00
mischa
d50594db4e
Tests: moved file
2023-04-20 22:11:59 +08:00
mischa
ea9f258ceb
Tests: moved file
2023-04-20 22:10:32 +08:00
mischa
c6dd55bd69
Tests: NetworkMessages subfolder
2023-04-20 22:10:10 +08:00
mischa
8b3c298a4a
Tests: NetworkManager subfolder
2023-04-20 22:09:39 +08:00
mischa
fefdc63341
Tests: NetworkConnection subfolder
2023-04-20 22:08:51 +08:00
mischa
626978c954
Tests: NetworkServer moved to subfolder
2023-04-20 22:08:22 +08:00
mischa
5519c76dab
Tests: NetworkIdentity subfolder
2023-04-20 22:06:55 +08:00
mischa
afd0f42673
Tests: NetworkClient subfolder
2023-04-20 22:06:25 +08:00
mischa
3580ae7416
Tests: NetworkBehaviour subfolder
2023-04-20 22:05:45 +08:00
mischa
a7105220c6
Tests: ReaderWriter folder renamed
2023-04-20 22:05:08 +08:00
mischa
c6aa694f34
Tests: CompressionTests moved to subfolder
2023-04-20 22:01:49 +08:00
mischa
a97e71ee3f
Tests: ReaderWriter subfolder
2023-04-20 21:57:00 +08:00
mischa
a9210b4fb2
Tests: merged RemoteTestBase into FieldsInBaseClasses (only place where it was used)
2023-04-20 21:54:49 +08:00
mischa
937177941b
Tests cleanup: Transports subfolder
2023-04-20 21:53:24 +08:00
mischa
06c096242c
Tests cleanup: Grid2D tests moved to Interest Management subfolder
2023-04-20 21:51:35 +08:00
mischa
15b1a7610c
Tests cleanup: Interest Management tests moved to subfolder
2023-04-20 21:51:07 +08:00
mischa
1b68f4fef7
Tests cleanup: SyncVar tests moved into SyncVars/ folder
2023-04-20 21:49:26 +08:00
mischa
93ca265083
Tests cleanup: Tools tests moved into Tools/ folder
2023-04-20 21:47:38 +08:00
mischa
8fade6e27e
Tests cleanup: SyncList/Set/etc. tests moved into SyncCollections/
2023-04-20 21:45:25 +08:00
mischa
9ffe306ae1
Tests cleanup: Rpc tests moved into Rpcs/ folder
2023-04-20 21:43:12 +08:00
mischa
4e5d0b41b1
Tests: renamed ClientSceneTests to NetworkClientTests. ClientScene was merged with NetworkClient a long time ago.
2023-04-20 21:39:43 +08:00
JesusLuvsYooh
bafc1277c7
Updated ApplySnapshot ScriptTemplates ( #3472 )
2023-04-15 18:13:36 +02:00
mischa
619d1cc627
Benchmark example: random movement jumps to exact destination when finishing.
...
for completeness.
2023-04-14 14:59:20 +08:00
MrGadget1024
1fda794f95
fix(Examples): Updated to latest NT changes.
2023-04-11 01:37:14 -04:00
MrGadget1024
83a0593c98
fix(Examples): Updated to latest NT changes.
2023-04-11 01:14:23 -04:00
MrGadget
f23d044519
Moved sendIntervalMultiplier, timelineOffset, timeStampAdjustment, offset to NTBase ( #3442 )
...
* Moved sendIntervalMultiplier, timelineOffset, timeStampAdjustment, offset to NetworkTransformBase
* Update Assets/Mirror/Components/NetworkTransformBase.cs
* fix: NetworkTransformUnreliable: timeStampAdjustment, timelineOffset to fix 2s jitter after tab switching in webgl caused by NT snaps potentially arriving behind timeline snaps (#3441 )
* NT-U: Implemented sendIntervalMultiplier, timeStampAdjustment, timelineOffset
* Update Assets/Mirror/Components/NetworkTransformUnreliable/NetworkTransform.cs
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
---------
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
* Resolved conflict
* Resolved conflict
* NT: send interval multiplier moved to Base
---------
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-04-11 06:23:02 +02:00
mischa
4eeb703488
fix : #3455 TargetRpc(NetworkConnectionToClient) weaver generated InvokeTargetRpc now passes 'null' as connection parameter on clients. ( #3465 )
...
Logically, clients can never fill in a NetworkConnectionToClient parameter.
fixes compilation failing for TargetRpc(NetworkConnectionToClient) with IL2CPP builds.
2023-04-11 05:45:43 +02:00
vis2k
e3bd35a091
Tests: FakeNetworkConnection renamed to FakeNetworkConnectionToClient to make usage more obvious
2023-04-11 11:03:23 +08:00
Eunseop Shim
3420c88692
fix : #3457 Make NumSyncVars take parent class syncvars into account ( #3458 )
...
* Add tests
* Include parent class when counting syncvars
* SyncObject is unneeded
I was also testing SyncObjects and it turned out they were unaffected of this issue. I removed SyncObject from my tests but forgot to do so here.
* Remove host SyncVar hook guard test
* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs
* Update SyncVarAttributeProcessor.cs
* Update Assets/Mirror/Tests/Editor/SyncVarAttributeTest.cs
---------
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-04-11 04:32:31 +02:00
Meno000
e9597b70ac
KcpTransport: reconvert mapped ipv4->ipv6 addresses to ipv4 in ServerGetClientAddress ( #3460 )
...
* Update KcpTransport.cs
"::ffff:127.0.0.1" -> "127.0.0.1"
* Update Assets/Mirror/Transports/KCP/KcpTransport.cs
---------
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-04-11 04:18:00 +02:00
MrGadget
fb8ae6c228
feat(NetworkTransform): Added Send Interval Multiplier ( #3459 )
2023-04-11 04:15:27 +02:00
MrGadget1024
8b1796f0a3
NetworkManagerTemplate: comments
2023-04-10 16:26:33 -04:00
MrGadget1024
a30c85d389
fix(NetworkManagerTemplate): Updated OnServerError / OnClientError comments
2023-04-10 16:18:06 -04:00
MrGadget
bae0c37679
fix(NetworkManager): Try to avoid missing transport errors ( #3456 )
...
* fix(NetworkManager): Try to avoid missing transport errors
- If none assigned, tries to use first Transport available and warns user
- If none available, throws clear error to user what to do.
* improved error msg
2023-04-10 05:27:47 +02:00
vis2k
2cf3582922
comment formatting
2023-04-08 18:33:23 +08:00
vis2k
20b7e5326e
Weaver: update comments
2023-04-08 13:35:36 +08:00
Eunseop Shim
88170ed141
fix : #3447 make cached SyncVar fallback to original field value when there is no network context ( #3449 )
...
* Add Tests
* Fix tests relying on undefined behaviors
- GetSyncVarGameObjectOnClient()
The test relies on the behavior that GameObject SyncVar lookup will behave as client if both isServer and isClient is false.
The test is modified in a way that removes unnecessary object creation and uses a single object that is made sure it's context is client-side.
- TestSyncingAbstractNetworkBehaviour()
This test has been comparing null against null. The test is modified so it simulates each context better.
* Make cached SyncVar getters fallback on no network context
* Remove unnecessary assertions
Gone under my radar doing mindless copy & pasting
* Update Assets/Mirror/Core/NetworkBehaviour.cs
* Update Assets/Mirror/Core/NetworkBehaviour.cs
* Update Assets/Mirror/Core/NetworkBehaviour.cs
---------
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-04-08 06:00:09 +02:00
vis2k
c3b7fe66a1
kcp: forgot to remove a log message when sending unreliable messages
2023-04-07 10:40:49 +08:00
vis2k
b2bceecb2d
MIRROR_78_OR_NEWER
2023-04-06 11:58:28 +08:00
vis2k
d226d577c2
Telepathy implements PortTransport interface
2023-04-06 04:51:14 +02:00
vis2k
d62b80ec2d
SimpleWeb implements PortTransport interface
2023-04-06 04:51:14 +02:00
vis2k
9b102c0aa1
Kcp implements PortTransport interface
2023-04-06 04:51:14 +02:00
vis2k
0ff04c1cf0
feature: PortTransport interface
2023-04-06 04:51:14 +02:00
mischa
ee957f3fcd
fix: kcp2k V1.35. secure cookie to prevent UDP spoofing. fixes : #3286 ( #3445 )
...
* fix: kcp2k V1.35 [2023-04-05]
- fix: KcpClients now need to validate with a secure cookie in order to protect against
UDP spoofing. fixes:
https://github.com/MirrorNetworking/Mirror/issues/3286
[disclosed by IncludeSec]
- KcpClient/Server: change callbacks to protected so inheriting classes can use them too
- KcpClient/Server: change config visibility to protected
* credits
* credits
* link blog post
* 2019 compatibility
* Update Assets/Mirror/Transports/KCP/kcp2k/highlevel/KcpPeer.cs
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
* Update Assets/Mirror/Transports/KCP/kcp2k/highlevel/KcpPeer.cs
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
---------
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
2023-04-06 04:46:26 +02:00
vis2k
7889f3afaf
remove unused imports
2023-04-05 10:45:24 +08:00
MrGadget1024
35ec40ea60
fix(BasicExample): Revert unintended changes
2023-04-04 08:10:26 -04:00
MrGadget
12ebd7f722
fix: NetworkTransformUnreliable: timeStampAdjustment, timelineOffset to fix 2s jitter after tab switching in webgl caused by NT snaps potentially arriving behind timeline snaps ( #3441 )
...
* NT-U: Implemented sendIntervalMultiplier, timeStampAdjustment, timelineOffset
* Update Assets/Mirror/Components/NetworkTransformUnreliable/NetworkTransform.cs
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
---------
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-04-03 18:39:01 +02:00
MrGadget1024
ae40fcbddd
fix(NetworkTransformReliable): Removed unused onlySyncOnChangeInterval
2023-04-03 12:31:17 -04:00
MrGadget1024
f7fe570c08
fix(SimpleWebTransport): Check hasDisposed in Connection.ToString
2023-04-03 10:20:51 -04:00
vis2k
1c8ea40a99
NetworkBehaviour.SendRpcInternal: simplify safety check and minimize indentation
2023-04-01 19:41:18 +08:00
vis2k
0268e1b9fe
perf: remove unused NetworkPongMessage.serverTime to save 8 bytes for every pong
2023-04-01 19:35:44 +08:00
vis2k
615bd1125e
syntax
2023-04-01 19:30:19 +08:00
vis2k
d4a5bd71d0
Mathd: Clamp01 reuses Clamp
2023-04-01 11:45:15 +08:00
vis2k
db923a486e
ExponentialMovingAverage: alpha changed from float to double for better precision
2023-04-01 11:43:49 +08:00
vis2k
5fe306fdc1
AccurateInterval: syntax
2023-04-01 11:40:29 +08:00
vis2k
a637b831d7
remove unused using
2023-04-01 11:24:21 +08:00
vis2k
2ea568f404
Batcher: readonly .batches
2023-04-01 11:17:37 +08:00
MrGadget1024
31fa8a4b3c
fix(SimpleWebTransport): Default sslProtocols to Tls12
2023-03-29 11:50:25 -04:00
MrGadget
40361f62bf
fix(NetworkServer): Don't disconnect on OnEntityStateMessage for object without authority ( #3439 )
2023-03-29 17:37:08 +02:00
MrGadget1024
b377d765ec
fix(Chat Example): moved playerNames HashSet to ChatAuthenticator
2023-03-28 13:13:17 -04:00
MrGadget1024
48b2ee638f
chore(SimpleWebTransport): formatting
2023-03-28 08:17:19 -04:00
MrGadget1024
8ce21b40b8
chore(SimpleWebTransport): formatting and syntax
2023-03-28 02:26:17 -04:00