Commit Graph

6389 Commits

Author SHA1 Message Date
MrGadget
c237db48df
fix: Transport default channel = Reliable (#3026) 2021-12-14 09:17:52 +01:00
vis2k
0dea29d741
SnapshotInterpolation: HasEnough, HasEnoughWithoutFirst helper functions for easier understandable code and to prepare for HasEnough check improvements (#3029) 2021-12-14 09:15:54 +01:00
MrGadget1024
a5e189a8c2 syntax 2021-12-13 11:27:53 -05:00
MrGadget1024
abe7d39b65 fix: TeamInterestManagement IsNullOrEmpty checks 2021-12-13 10:48:24 -05:00
MrGadget
88fe9f9820
breaking: NetworkAuthenticator OnClientAuthenticated Changed (#3027)
- No longer passes `NetworkConnection` on Client
- Use `NetworkClient.connection` within your event hanlder

This is only breaking for users that assigned their own events to OnClientAuthenticated in the inspector. Everything else related to an Authenticator works the same with no changes needed because nearly all Authenticator mechanisms are private.

Deprecating would be worse than not in this case, since custom user-made handers would be the far uncommon case as far as I know.
2021-12-13 13:39:30 +01:00
vis2k
ad739e66ff Snapshot Interpolation HasAmountOlderThan: improve explanation 2021-12-13 09:08:38 +01:00
MrGadget1024
17da96c5d9 comments 2021-12-12 21:37:30 -05:00
MrGadget1024
ad4f30df63 Basic example: added missing namespace 2021-12-12 08:29:26 -05:00
MrGadget1024
7366ba3bff fix: fixed deprecated dates 2021-12-12 08:20:48 -05:00
MrGadget1024
985d8af5d4 additive levels - fixed timer 2021-12-12 07:53:51 -05:00
MrGadget1024
0445af105d template syntax 2021-12-12 07:45:27 -05:00
MrGadget
d6048911f2
fix: Obsolete NetworkConnection param in client callbacks (#2820)
* Obsoletes NetworkConnection param in client callbacks
- Use NetworkClient.connection instead

* fixed comments

* fixed more comments

* fixed more comments

* Restored original calls to virtuals with pragmas

* Call both old and new methods where possible

* added comments

* updated deprecated date

* fix parameters

* fixed examples

* comments
2021-12-11 12:16:26 -05:00
MrGadget1024
54756ee8d9 restored changes to NT template 2021-12-11 10:14:22 -05:00
JesusLuvsYooh
e941fd9e5b
NetworkTransform Improvements Reeeeesubmission (#3025)
* NetworkTransform Improvements Reeeeesubmission

1: Optional boolean to allow onlySyncOnChange.

2: Checks if pos/rot/scale changed, if not, sends the value as null (1byte)

* NetworkTransform Improvements +defines

1: Optional boolean to allow onlySyncOnChange.

2: Checks if pos/rot/scale changed, if not, sends the value as null (1byte)

Contains the bundle of latest NT adjustments from the squad.
#3013
#3021
#3019
#3018

Along with a fix for applying latest snapshot, if it exists, before applying local data.
#3024
2021-12-11 09:59:34 -05:00
vis2k
b0b01938e6 fix: #3022 kcp2k V1.15 - MaxRetransmit aka dead_link is now configurable. fixes issues where dead_link may have been too low causing premature disconnects. Default is now '40' instead of Kcp.DEAD_LINK '20'. 2021-12-11 12:55:33 +01:00
vis2k
c08ceb6a82 fix: #3024 Revert NT Bandwidth savings for now 2021-12-11 10:04:01 +01:00
MrGadget1024
4ab59248ab fix: Simplified Portal script 2021-12-10 16:50:55 -05:00
MrGadget1024
c206bb02f9 AdditiveLevels - simplified UI LookAt 2021-12-10 11:37:08 -05:00
MrGadget1024
b11f8c5710 Updated Basic Example
- Moved some code from PlayerUI to Player
- smaller data types
- organization
2021-12-10 11:12:53 -05:00
vis2k
abc521eebc add comment for clarity 2021-12-10 16:09:49 +01:00
MrGadget1024
d9cf5af839 Fixed video tuts link in Readme 2021-12-09 19:32:24 -05:00
MrGadget1024
e5ea17a452 Additive Levels refinements 2021-12-09 18:52:09 -05:00
JesusLuvsYooh
df6a241d19
perf: NetworkTransform smart sync. (#3021)
* NetworkTransform smart sync.

Checks if pos/rot/scale changed, if not, sends the value as null (1byte)

So if someone has rotation and position turned on, but just rotates around Y, they save almost an entire pointless Vector3 position being sent.

- Again, majority of credits to Ninja.

* NetworkTransform smart sync. B

Adjusted to default(Vector3?)/Quat as requested.

Checks if pos/rot/scale changed, if not, sends the value as null (1byte)

So if someone has rotation and position turned on, but just rotates around Y, they save almost an entire pointless Vector3 position being sent.

- Again, majority of credits to Ninja.

* NetworkTransform smart sync. C

Line break added at end of file? as requested.
Adjusted to default(Vector3?)/Quat as requested.

Checks if pos/rot/scale changed, if not, sends the value as null (1byte)

So if someone has rotation and position turned on, but just rotates around Y, they save almost an entire pointless Vector3 position being sent.

- Again, majority of credits to Ninja.
2021-12-09 22:27:53 +01:00
MrGadget
126f6339ea
fix: Explicit types for default nullables (#3020)
* fix: Explicit types for default nullables

* Added unit tests

* Improve Nullable Guid

* more tests
2021-12-09 22:25:02 +01:00
Samuel Schultze
31d2830f9b
fix(simpleWeb): ignore headers case when checking handshake key (#3016) 2021-12-08 17:22:29 +01:00
MrGadget1024
cd68d025fe syntax 2021-12-08 09:43:46 -05:00
MrGadget1024
d4918f4ca3 feat: NT Uses less bandwidth
- updated template
2021-12-08 07:30:20 -05:00
MrGadget1024
a5283ac5ce don't sync turret position 2021-12-08 07:13:21 -05:00
MrGadget1024
e15ca55426 Minor updates to Tank example 2021-12-08 07:06:26 -05:00
MrGadget
0b81f28193
Rename onlySendOnMove to onlySyncOnChange (#3019) 2021-12-08 07:02:51 -05:00
JesusLuvsYooh
b9ae34cb01
Interactable Tank Turret A (#3017)
Added NetworkTransformChild, set target as Turret
Adjust NTC and NT variables
Dragged ProjectileMount and Spot Light into Turret, so they all move together.
Added RotateTurret code
Updated current CmdFire to use projectileMount.rotation
2021-12-08 12:29:06 +01:00
JesusLuvsYooh
fececf4778
Shortened variable name. (#3018)
Shorted timeMultiplierToResetBuffers to bufferResetMultiplier as requested.
2021-12-08 06:18:07 -05:00
JesusLuvsYooh
3d78235d05
fix: onlySendOnMove for new NetworkTransform (#3013)
* onlySendOnMove for new NetworkTransform

Majority of credits to Ninja.
Check comments, tooltips, and messages us if further clarification needed.

* onlySendOnMove for new NetworkTransform B

Majority of credits to Ninja.
Check comments, tooltips, and messages us if further clarification needed.

* onlySendOnMove for new NetworkTransform C

- added defines by request, to easier revert or disable new addition.

Majority of credits to Ninja.
Check comments, tooltips, and messages us if further clarification needed.

* onlySendOnMove for new NetworkTransform D

- added defines by request, to easier revert or disable new addition.
- added cachedSnapshotComparison by request.
- adjusted default variable and buffer check + thoroughly tested.
Majority of credits to Ninja.
Check comments, tooltips, and messages us if further clarification needed.

* onlySendOnMove for new NetworkTransform E

- code style => && adjusted as requested
- added defines by request, to easier revert or disable new addition.
- added cachedSnapshotComparison by request.
- adjusted default variable and buffer check + thoroughly tested.
Majority of credits to Ninja.
Check comments, tooltips, and messages us if further clarification needed.
2021-12-07 20:59:56 +01:00
vis2k
96303fc285 add TODO 2021-12-07 10:06:14 +01:00
JesusLuvsYooh
e69dfb2ee3
Optimised example game textures. (#3014)
* Optimised example game textures.

The 6 skyboxes for AdditiveLevels
Lowered from 4k .png (50 mb per image)
 to 1k .jpg (70 kb per image)

* Delete .vsconfig

Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
2021-12-06 15:12:34 -05:00
MrGadget1024
4e73489752 Added [ServerCallback] on Int. Mgmt. virtuals 2021-12-02 18:21:26 -05:00
MrGadget1024
3a1a97f759 Updated Custom Interest Mgmt Template 2021-12-02 18:20:14 -05:00
MrGadget1024
051ebd9b26 Updated NetworkRoomManager 2021-12-02 07:55:48 -05:00
MrGadget
9c95219a9b
Suppress Cmds when conn not ready (#3011) 2021-12-02 13:55:21 +01:00
MrGadget
c291932717
fix: Suppress Commands When Not Ready (#3009)
* fix: Suppress Commands When Not Ready

* typo

* reverted change to separate PR
2021-12-02 13:54:55 +01:00
MrGadget
38c641b948
feat: Added Reset to Interest Management (#3008)
* feat: Added Reset to Interest Management
- Used in Distance and Spatial to reset `lastRebuildTime`.

* Updated Template

* Update Assets/Mirror/Runtime/NetworkServer.cs

Co-authored-by: vis2k <info@noobtuts.com>
2021-12-02 13:54:39 +01:00
MrGadget1024
9862af3aa5 Updated Template 2021-12-01 12:37:40 -05:00
MrGadget1024
bd562a609b fix: NT2 - public virtual void Reset 2021-12-01 12:01:06 -05:00
MrGadget1024
be23d3a67a fix: Updated Chat example 2021-12-01 08:01:11 -05:00
MrGadget1024
65f6c09599 updated examples
- syntax
- comments
2021-12-01 06:24:04 -05:00
vis2k
ee4399b3ce fix: kcp2k V1.14 [2021-11-30]
- fix: Send() now throws an exception for messages which require > 255 fragments
- fix: ReliableMaxMessageSize is now limited to messages which require <= 255 fragments
2021-11-30 10:28:40 +01:00
MrGadget1024
dc60d0e6c8 Additive Levels Improvements
- Skybox with fog
- ground plane larger and fixed color
2021-11-29 13:17:20 -05:00
MrGadget1024
1324d59901 adjusted font 2021-11-29 11:33:22 -05:00
MrGadget1024
e4b5a8f975 removed extraneous code 2021-11-29 11:18:33 -05:00
MrGadget1024
259e61411c Disabled Debug logging in Portal script 2021-11-29 11:15:19 -05:00