Граф коммитов

204 Коммитов

Автор SHA1 Сообщение Дата
Alex Ennerfelt 5cea8f048c
fix: updated network dictionary to work with newer versions of ngo (#253)
changed usage of NetworkVariableSerialization read and write methods to use the new api.
changed instances of m_NetworkBehaviour to GetBehaviour().
changed MarkNetworkObjectDirty() to use the base method  MarkNetworkBehaviourDirty()
changed instances of NativeList<T>.ToArray() to define an Allocator to comply with newer api.
2024-10-02 10:49:31 -04:00
Nicolas PERNOT 8edacf6571
Feature/web socket.connect returns bool instead of void (#256)
* Function Connect returns bool now

* Now, function Connect throw exception when connect returns false
2024-10-02 10:48:47 -04:00
Myxcil 0eda04fc21
Update FacepunchTransport.cs (#246)
workaround/possible fix:
https://github.com/Unity-Technologies/multiplayer-community-contributions/issues/245
2024-05-28 17:44:46 -05:00
A7AATE 8eab2c9713
Removed "using" deprecated UNET transports (#242)
Removed two "using" statements for the deprecated UNET, which were causing errors
2024-01-10 11:05:56 -05:00
Sami Habib 67b6d5f853
Fix Unity.Collections not being referenced in assembly for Photon Realtime Transport (#244) 2024-01-10 11:05:29 -05:00
JesusLuvsYooh 87ab0c982c
Update transport.template.asmdef (#241)
* Update com.community.netcode.transport.template.asmdef

Latest netcode seems to need this change, otherwise you get errors when importing the template package.

* Update com.community.netcode.transport.template.asmdef
2023-11-06 13:03:51 -05:00
Nick O'Brien b2265b5a65
NetworkObjectPool: Removed extra closing brace (#224) 2023-07-24 13:23:18 -04:00
TheCaveOfWonders 209ca87e0e
Fixed NetworkDictionary for v1.5.1 (#231)
updated the MarkNetworkObjectDirty() to adhere to v1.5.1
2023-07-24 13:22:57 -04:00
Jeremiah van Oosten 17a0de67bd
Fix "Invalid allocation label" exception in NetworkDiscovery. (#235) 2023-07-24 13:22:23 -04:00
James McGhee d862504b14
Update Steam Game Server Callbacks (#221)
* Steam Networking Sockets

* Removed bad copy

* Update README.md

* Update SteamNetworkingTransport.cs

- Added check for connected users
- Added OnDestroy to try and clean up in the event of a force shutdown

* Update README.md

* Updated byte array init

* Delete Transports/com.community.netcode.transport.steamnetworking directory

* Update README.md

* Update README.md

* Update SteamNetworkingSocketsTransport.cs

* Update SteamNetworkingSocketsTransport.cs

Fixed batch size missmatch issue seen in 1.3 +
2023-05-19 12:21:54 -04:00
Simon Lemay 040b71aefb
Split Facepunch Linux and OS DLLs (#218)
* Split Facepunch Linux and OS DLLs

* Fix platform exclusions for non-Editor platforms

* Potential fix for platform exclusions on MacOS DLL
2023-05-01 10:19:54 -04:00
Rachel Lowe b1c5da8e80
NetworkObjectPool feature parity with the version in the Unity Multiplayer Samples Boss Room sample project (#176)
* Updating the NetworkObjectPool to have feature parity with the version in the Multiplayer Samples BossRoom project (it's now a NetworkBehaviour instead of a MonoBehaviour, uses the NetworkManager.Singleton, initializes the pool in OnNetworkSpawn, and it's a singleton)

* feature parity with the NetworkObjectPool in the Unity Multiplayer Samples Co-op Boss Room sample project.
2023-04-24 11:56:59 -04:00
Viktor Chernikov 31bcb21919
Changed Facepunch.Steamworks.Posix.dll target OS from OSX to Any OS (#215) 2023-04-24 11:55:12 -04:00
Noel Stephens 1d9378ac50
fix (#212)
Make sure to flush any pending messages before closing the connection.
2023-03-22 18:16:00 -05:00
copytime faa058598f
Update README.md (#209)
Updated README. Adding guide to the official approach for a client auth animator.
2023-03-22 14:34:01 +00:00
Jack Weinstein 6c13abfeb8
fix null reference exception when shutting down a host (#199)
with netcode for gameobjects 1.2.0, DisconnectLocalClient can get called without setting up serverUser when starting a host
2023-02-22 11:08:26 -05:00
BigSpaceships f6720b5a14
fix null reference exception in web socket transport when shutting down a host (#206) 2023-02-22 11:07:27 -05:00
yuchen 69ff9c891d
updated LICENSE (#207) 2023-02-22 11:06:57 -05:00
yuchen 2a5a082ba7
added Multipeer Connectivity Transport (#203)
* added Multipeer Connectivity Transport

* added Multipeer Connectivity transport to the README file

* removed Multipeer Connectivity transport package dependency
2023-02-14 10:34:52 -05:00
James McGhee 858f6df327
Clean up SteamNetworking transports (#190) 2023-01-17 11:08:30 -05:00
Jason Spafford 30e981825b
Add Option to configure websocket path (#198)
This path was hardcoded to /netcode which is not neccessary for
websocket connections, and is an oppinionated choice that breaks in
certain load balancer configurations such as using domains with certs
for WSS connections.

Web sockets are not required to listen on any path at all. This allows
users to delete the path but the default does not break backwards
compatability.
2023-01-17 10:13:36 -05:00
Nick Maltbie c7246c7133
fix: WebSocketTransport Re-use and Compatibility (#188)
* fix:Unity WebGL throws Error: "ReferenceError: Runtime is not defined"

It seams that in unity 2021.2 variable Runtime doesn't exist and can be replaced with Module['dynCall_*'].
In webSocket.jslib change all Runtime.dynCall('*1', *2, [*3, *4]) for Module['dynCall_*1'](*2, *3, *4)

* Updated web socket transport to not use static fields

* Reset started value on disconnect

* Fixed the flag for is started on shutdown

* Reset web socket client on shutdown

* Added catch statement to close socket

* Changed close on already closed to end quietly

* Fixed some errors with web socket client

* Fixed small syntax error
2023-01-04 10:22:35 -05:00
TheCaveOfWonders f8944ffd9f
Fix NetworkDictionary not working (#186)
NetworkDictionary was not marking the underlying NetworkBehaviour as dirty, and hence its changes were never processed.
2022-12-22 12:15:00 -05:00
Dennis Fehr 9524067d01
Fix NRE (NullReferenceException) (#194) 2022-12-22 12:04:55 -05:00
Simon Lemay e9f53f86a0 Update dependency of com.community.netcode.extensions 2022-10-11 16:46:54 -04:00
James McGhee fddadc8364
Steam Networking Sockets (#179) 2022-10-02 22:09:42 +01:00
Tobias-EG 9a480a5863
Photon Realtime Version Update to v4.1.6.18 (#181)
* UPDATED: Photon Libs from v4.1.6.0 to 4.1.6.17.

* UPDATED: Photon Realtime from v4.1.6.0 to 4.1.6.18.

* UPDATED: Version to 2.0.1.

UPDATED: Changelog.

* UPDATED: Editor integration.
2022-09-23 11:00:16 +01:00
Marc-Antoine Fortier cbe8c07077
fix: port NetworkDictionary to 1.0.0 (stable) (#178)
* fix: port NetworkDictionary to 1.0.0 (stable)

* chore: add conditionnal compilation and usage instructions
2022-08-29 08:48:51 -07:00
Luke Stampfli 095d1c78b7
chore: update extensions to pre.8 (#170) 2022-05-24 12:55:15 +01:00
avmaia d11b679f9a
WebSocket server properties exposed (#168)
* Added support to AllowPort forwarding, SecureConnection on any port on the server and assign SSL certificate with a base64 string

* remove unused namespaces
2022-05-24 11:57:11 +01:00
copytime 251d7e1cad
Feat: client network animator (#165)
* feat:Add ClientNetworkAnimator

* Update README.md
2022-05-24 11:53:09 +01:00
Quentin Dreyer 9ce49ba7e4
fix: prevent reconnection cancelation (#167) 2022-05-24 11:50:40 +01:00
Marc-Antoine Fortier 09fe8cafba
fix: add (again) support for NetworkDictionnary for 1.0.0-pre.8+ (#169) 2022-05-24 11:47:37 +01:00
Jesse Olmer 3f8b4377fe
docs: Fix Code of Conduct link 2022-05-19 14:16:45 -07:00
Luke Stampfli 279640ad3e
fix: Extension package reference UTP so that NetworkEndPoint is referenced. (#162) 2022-03-28 11:15:51 +01:00
Luke Stampfli 6115f6e9e1
revert: remove quickstatus (#160)
Revert the add of quickstatus which was used to fetch the ping for connected clients. This API is currently not in a release version of Facepunch. We can add it back later once it is supported.
2022-03-18 18:31:00 +00:00
Simon Lemay 6fae8cce55
Update to new NetworkTransport.Initialize signature (#157) 2022-03-08 11:40:17 -05:00
Quentin Dreyer b28923aa5d
fix: add compatibility with com.unity.netcode.gameobjects@9e88ae6 (#153) 2022-03-08 11:32:28 -05:00
Luke Stampfli 28eed8ef87
fix: facepunch dependencies 2022-02-22 21:25:51 +00:00
Luke Stampfli 8e87c82dea
docs: add NetworkDictionary to readme index (#152) 2022-02-15 13:21:51 +00:00
Marc-Antoine Fortier c95e4ec8ad
feat: add renewed NetworkDictionary (#151) 2022-02-15 13:20:13 +00:00
Justin Larrabee 9594102da0
Facepunch Transport returns RTT and no longer generates garbage for messages (#143)
* FacepunchTransport now returns RTT, and no longer generates garbage when receiving data

* Fix coding style issues

* Fix assumption on growing payload capacity
2022-02-10 17:25:22 +00:00
Ran Quan 248368e8ef
Resolve guid conflict (#146) 2022-02-10 17:23:54 +00:00
Luke Stampfli da6250d3a9
fix: Add fixedqueue back (#141) 2022-01-18 14:38:15 +00:00
Luke Stampfli a37a913b4c
fix: Fix channel implementation in steamnetworking transport. (#138) 2022-01-07 15:16:33 +00:00
Luke Stampfli 0e2f36fa46
fix: extension package dependencies 2022-01-05 14:12:26 +00:00
Luke Stampfli 1d5be27015
fix: NetworkDiscovery WriteSafety (#130)
* fix: use safe write/read function to fix exception which was always thrown when using discovery

* fix: read discovery header read correct types
2021-12-01 17:10:12 +00:00
Luke Stampfli d3c08054f6
docs: update readme to link to to the steamnetworking transport (#129) 2021-11-26 10:52:33 +00:00
Luke Stampfli 3f8b3e4388
docs: remove mentioning of MLAPI from steamnetworking docs (#127) 2021-11-25 15:45:04 +00:00
James McGhee 27f1d81b3a
Improved Steam Transport (#98)
* Improved Steam transport

The existing SteamP2P transport has a number of issues where in it cannot be used for Client Server architectures, includes a version of Steamworks.NET which is not necessarily up to date and makes use of the SteamManager (example not production code).

This change corrects these aspects making this transport suitable for Client Server and Peer 2 Peer, usable by any version of Steamworks.NET from v14 forward, usable by users of custom implementations of Steamworks.NET and 3rd party systems such as Heathen's own Steamworks V2 and this change is not dependent on SteamManager.

* Update README.md

* Update package.json

Removed dependencies as it doesn't appear to support other Git hosted packages

* Update Transports/com.mlapi.contrib.transport.steamnetworking/Runtime/SteamNetworkingTransport.cs

Co-authored-by: Luke Stampfli <43687322+LukeStampfli@users.noreply.github.com>

* Update Transports/com.mlapi.contrib.transport.steamnetworking/README.md

Co-authored-by: DeLaGuardiaGames <62687132+DeLaGuardiaGames@users.noreply.github.com>

* Updated to NetCode v1

- Updated to NetCode v1
- Removed SteamP2P transport as that does not work with modern Steamwork.NET and would cause various issues for other users
- Made the transport compatible with Steamworks.NET
- Made the transport compatible with P2P and Client Server architectures

Co-authored-by: James McGhee <JamesMcGhee@HeathenEngineering.com>
Co-authored-by: Luke Stampfli <43687322+LukeStampfli@users.noreply.github.com>
Co-authored-by: DeLaGuardiaGames <62687132+DeLaGuardiaGames@users.noreply.github.com>
2021-11-25 15:40:19 +00:00