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

64 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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
Dennis Fehr 9524067d01
Fix NRE (NullReferenceException) (#194) 2022-12-22 12:04:55 -05: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
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
Quentin Dreyer 9ce49ba7e4
fix: prevent reconnection cancelation (#167) 2022-05-24 11:50:40 +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
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
Luke Stampfli a37a913b4c
fix: Fix channel implementation in steamnetworking transport. (#138) 2022-01-07 15:16: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
Luke Stampfli af696175c6
chore: merge fixes to photon to main (#124) 2021-11-12 06:56:01 +00:00
Luke Stampfli 8dded1c742
fix: replace usages of MLAPI with Netcode in js part (#123) 2021-11-12 06:55:43 +00:00
Quentin Leon 93febe1faa
Facepunch Transport fix (#116)
* fixed 'Received a message that claimed a size larger than the packet, ending early' warning which caused clients to not load in properly

* removed unnecessary unsafe buffer copy from Transport.Send override
2021-11-01 12:42:52 +00:00
Luke Stampfli b08829c71c
docs: fix transport install link in readme (#114) 2021-10-25 11:55:57 +01:00
Luke Stampfli b32ffdd464
Update to release 1.0.0 (#112)
* fix: Update namespaces to latest MLAPI develop and fix asmdef reference

* fix for C# diff with unity beta 6

* photon update

* feat: update litnetlib to latest Transport API

* chore: Remove old commented code

* Update photon transport to latest API changes.

- Remove channels

* update template transport

* update facepunch (#104)

* update ruffles (#107)

* update websocket (#106)

* update steamp2p (#105)

* update photon realtime (#108)

* update photon

* make connect async

* define payload out param as default

* update enet (#103)

* update enet

* Add changelog bump package version

* remove sockettask api

* reduce channel count to 1 and add comment explaining it

* update litenetlib (#110)

* update litenetlib

* remove sockettask API

* Update extensions package (#102)

* feat!: remove NetworkRigidbody as there is now a solution in the core package

* update lag compensation

* update discovery and hud. Don't work yet because UnityTransport does not expose read access to ip/port

* update pool

* remove patcher

* update namespaces

* rename extensions package folder

* update repository documentation (#109)

Co-authored-by: Samuel Bellomo <samuel.bellomo@unity3d.com>
Co-authored-by: Valere91Unity <valere.plantevin@unity3d.com>
Co-authored-by: Valere Plantevin <89042540+VALERE91Unity@users.noreply.github.com>
2021-10-21 14:19:04 +01:00
Nathanael Demacon 2583c66903
Handle WebSocket Secure servers (#100) 2021-10-08 09:16:54 +01:00
Sami Habib c27895c357
fix: Photon generates a random nickname if none is provided (#92) 2021-09-08 20:03:59 +01:00
Luke Stampfli 7ce0c217ff
Rebrand repository documentation (#90) 2021-08-26 15:40:23 +01:00
Nathanael Demacon cc72630721
Feature: Implement WebSocket transport (#86)
* Feature: Implement WebSocket transport

* Refactor: Remove unused `Debug.Log` calls

* Feature: Directly use websocket-sharp sources

* Document: Add the relevant documentation for websocket-sharp library
2021-08-06 16:26:25 +01:00
Luke Stampfli 367a0bfa65
fix: facepunch cleanup (#85)
* fix: Wrap editor stuff in ifdefs to allow for builds

* docs: Add facepunch transport to readme
2021-08-05 11:20:54 +01:00
Cha Hoseong 88726b86a9
Fix obsoleted code. (#79)
PhotonPeer.ClientVersion is obsoleted. from now on use PhotonPeer.Version.
2021-08-04 19:46:33 +01:00
Floris van Onna 973267e32e
Feature: Add Facepunch SteamSockets Transport (#66)
* Initial commit for Facepunch Transport

* Changed copied byte buffer in Send method to allocate on the stack instead of on the heap

* Slight refactor in Send method, and Switched from NetworkLog to Debug.Log

* Fixed leftover from partially complete implementation of rtt measuring.

* Updated Readme to include Facepunch version and improved formatting

* Change transport from poll-based to event-based

Changes proposed by TwoTen

Co-authored-by: Nico Thomas <thomasnico@web.de>
2021-07-31 14:14:20 +01:00
Fachry Ichsan Putra a1d21b52ce
fix: data outofbounds (#81) 2021-07-14 11:11:15 +01:00
Tobias-EG e47ee18972
Fix for several potential NullReferenceException cases. (#73)
* FIXED: NullreferenceException on import. The Window opens so early that the AppSettingsInstance can be null still.

* FIXED: Issue "Photon exception on client after disconnect event" (#70).

* ADDED: Limit for the number of datagrams sent in a single frame. Simple way to avoid overloading the local network.

* FIXED: Potential nullreference exception in DisconnectRemoteClient (should the local client get disconnected before this is called).

* ADDED: TransportEvent Disconnect for case when RaisePhotonEvent can't succeed (client is null or not in room).
2021-06-02 12:40:56 +01:00
Tobias-EG c0aacade77
UPDATED: To Photon Realtime v4.1.6.0. (#74) 2021-05-31 13:47:29 +01:00
Liam 1bb825941d
Upgrade Steamworks.NET to version 15.0.1 (#67) 2021-05-29 15:07:53 +01:00
Cosmin faa77c81d0
Merge pull request #64 from Unity-Technologies/fix/enet-clear-peers-shutdown
fix: Fix a bug where enet transport does not clear peers on shutdown
2021-05-05 10:07:47 +01:00
Luke Stampfli 4394367e75 fix: Fix a bug where enet transport does not clear peers on shutdown causing issues when restarting the NetworkManager 2021-04-28 13:59:19 +02:00
David Gilbert 7c2278261a
Update EnetTransport.cs 2021-04-27 09:52:27 +02:00
Tobias Schweers 26946b4476 ADDED: An origin asset version for registration requests. 2021-04-20 17:40:08 +02:00
Luke Stampfli 8e24931aeb
fix: Fix null ref exception when shuttting down litenetlib without initializing it. (#51) 2021-04-09 10:54:16 +02:00
Luke Stampfli 03f39bf2d3
docs: cleanup license and use Unity .md conventions (#46) 2021-04-08 11:19:45 +01:00
Tobias-EG 5d4c389555
Updated: To Photon Realtime v4.1.5.3. Now using a .Net Standard Photon dll by default. (#54) 2021-04-08 11:16:37 +01:00