Commit Graph

3992 Commits

Author SHA1 Message Date
vis2k
c39c8b5739 Transport.ServerDisconnect function to kick a client 2018-09-20 16:11:52 +02:00
vis2k
9b87e5a2cb Updated Telepathy 2018-09-20 15:48:25 +02:00
vis2k
410a3fff80 Updated Telepathy to latest version 2018-09-20 15:33:55 +02:00
Paul Pacheco
cdd4eac7a1 Flush when starting or finishing a message. (#4)
This is a no-op with BinaryWriter/MemoryStream,  but this is necesary if we do
any sort of transformation,  such as BitWriter, compression or encryption
2018-09-19 13:06:29 -05:00
Paul Pacheco
ec48bcc496 Add source compatibility with HLAPI, people should not need to cast (#16) 2018-09-19 13:05:43 -05:00
Paul Pacheco
547039587e set the state to connected before message handler (#36)
If the user wants to send messages after the connection,  we need to ensure the connection is in a valid state before calling the handler.

Should fix issue #35
2018-09-18 20:56:44 +02:00
Paul Pacheco
8896d8b7d2 fix #33, remove redundant initialization (#34)
No need to initialize object twice,   the second initialize does nothing at all
2018-09-18 20:52:39 +02:00
Paul Pacheco
973c0d6925 Make method public (#32)
Not all users have a NetworkManager,  and they should not have to.

This method needs to be public so that users can call it if they don't have a NetworkManager
2018-09-18 09:55:21 +02:00
vis2k
8657a3902e PauseQueue replaced with a more simple 'pause' check in NetworkClient.Update. Transport buffers messages anyway. 2018-09-15 16:15:28 +02:00
vis2k
577da33c6e NetworkManagerHUDEditor: removed unused s_ShowNetworkLabel 2018-09-15 15:43:12 +02:00
vis2k
936f43b783 NetworkClient.Update: m_Connection null checks added so we don't get NullReferenceExceptions without a good error message if it's null (uMMORPG NetworkZones Addon) 2018-09-15 15:40:48 +02:00
vis2k
046837c62a NetworkManager.StartServer: OnStartServer is now called after Listen so that NetworkServer.Spawn can be called in OnStartServer overrides (e.g. to load and spawn things from the database) 2018-09-14 23:07:44 +02:00
Paul Pacheco
1e8ab0699a
Trigger appveyor rebuild 2018-09-14 14:04:49 -05:00
vis2k
41af472127 MultiplexTransport: ServerStart/ServerStartWebsockets doesn't call Telepathy/LLAPI StartServer when running in WebGL. Fixes a bug where host mode wouldn't work in WebGL anymore. 2018-09-11 10:45:36 +02:00
Paul Pacheco
37ce0ae72d Print a more informative error than NPE (#31)
* Print a more informative error than NPE

* Improve error message
2018-09-11 10:16:20 +02:00
Paul Pacheco
dfbde9902d
Update badges for mirror
Mirror repository was renamed and a mirror branch was created
2018-09-09 11:27:36 -05:00
vis2k
f5e2ee0903
Update README.md 2018-09-09 09:34:28 +02:00
vis2k
a4dd858f02 NetworkManagerEditor shows max connections property again 2018-09-03 12:37:30 +02:00
vis2k
1ab29c8d24 NetworkManagerHUDEditor: removed unnecessary 'protected's 2018-09-03 12:37:30 +02:00
Paul Pacheco
ccb121362b
Merge pull request #22 from vis2k/synclist
Generated Awake should not be private because a child class might call it
2018-08-31 07:41:33 -05:00
Paul Pacheco
80a9a18728 This should be protected because a child class might call it 2018-08-31 07:40:34 -05:00
vis2k
c053a76843 Sorted modifiers: 'public static' is now consistent everywhere (it was 'static public' in many places) 2018-08-31 12:39:51 +02:00
vis2k
6ad5ccaa07 Removed old ExternalConnection functions because they aren't used anymore 2018-08-31 12:34:44 +02:00
vis2k
2b1b7eb62f Fixed NetworkManager.OnServerDisconnect logging an error each time. This annoying behaviour has been there since day one. 2018-08-31 12:13:47 +02:00
Paul Pacheco
89035f4c0b
Better grammar 2018-08-30 22:42:53 -05:00
Paul Pacheco
fff0fe7e00
Fixed correct package 2018-08-30 22:36:31 -05:00
Paul Pacheco
6c25b7aa37 Some cleanups, use explicit type, remove unused imports 2018-08-30 09:04:23 -05:00
Paul Pacheco
310fae52df Merge branch 'mirror' of https://github.com/vis2k/HLAPI-Community-Edition into mirror 2018-08-30 08:47:05 -05:00
Paul Pacheco
8309ab8479 Fix issue finding extra paths, use Unity provided list of compiled references 2018-08-30 08:46:55 -05:00
vis2k
ebf6ab6777 Renamed UNetWeaver.cs to Weaver.cs and renamed the warning/error messages too 2018-08-30 15:15:05 +02:00
Paul Pacheco
47c98a0a59
better grammar 2018-08-29 10:39:56 -05:00
Paul Pacheco
71424e7f99
added exact error 2018-08-29 10:38:38 -05:00
Paul Pacheco
431129a277
UnityWebRequest error 2018-08-29 10:33:40 -05:00
Paul Pacheco
7284b1181a
Typos, grammar, possible errors 2018-08-29 08:04:58 -05:00
Paul Pacheco
0275cee09f
Fix typo 2018-08-29 08:00:04 -05:00
vis2k
a92255326a Test appveyor renaming 2018-08-29 13:51:29 +02:00
vis2k
6463039e52 Syntax improved 2018-08-29 10:28:15 +02:00
vis2k
03e0ef3746 CompilationFinishedHook.GetExtraAssemblyPaths: comment added 2018-08-29 09:45:57 +02:00
vis2k
472bb85890 Syntax improvements 2018-08-29 09:43:29 +02:00
Paul Pacheco
c71a8c361f Add extra paths so weaver can find referenced dlls
Should fix #18
2018-08-28 20:54:34 -05:00
Paul Pacheco
98fe2e596f
Added video demonstration 2018-08-28 16:16:41 -05:00
vis2k
909bc00783 Nevermind 2018-08-28 15:39:25 +02:00
vis2k
9c7abf1c1b Readme updated 2018-08-28 15:39:03 +02:00
vis2k
61dcb42c54 Readme updated 2018-08-28 15:37:44 +02:00
vis2k
2a6207a34a Readme updated 2018-08-28 15:31:01 +02:00
vis2k
fa743b883a Readme updated 2018-08-28 15:29:31 +02:00
vis2k
56ed041fc9 Readme updated 2018-08-28 15:27:31 +02:00
Paul Pacheco
03fbc03c39
Update README.md 2018-08-28 08:21:45 -05:00
vis2k
89710229cf Readme updated 2018-08-28 15:19:08 +02:00
vis2k
927f76c1f2 Added 'TypeLoadException: A type load exception has occurred.' info to migration guide 2018-08-28 11:01:17 +02:00