Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Wonse on August 25, 2013, 09:52:38 AM

Title: IS this possible to host the game in webplayer ?
Post by: Wonse on August 25, 2013, 09:52:38 AM
Hi, i want to create a little multiplayer game  in the webplayer. is this possible to use the webplayer as host  with TNET? or i hace to  use the Unity's builtin way to network ?
Title: Re: IS this possible to host the game in webplayer ?
Post by: ArenMook on August 25, 2013, 02:17:19 PM
You can't host servers from the web player. It's a Unity limitation.
Title: Re: IS this possible to host the game in webplayer ?
Post by: pyscho2day on August 25, 2013, 03:19:31 PM
You cant start a server in the web player at all.  you would need to have a server some where else then connect to it. but as far as a host in TNet you can do that, just not be a server/host.

If that confused you more let us know.
Title: Re: IS this possible to host the game in webplayer ?
Post by: Wonse on August 26, 2013, 02:50:51 AM
ok, so i go back to unity's Built in network, and master server, for my multiplayer games
Title: Re: IS this possible to host the game in webplayer ?
Post by: Etarnalazure on August 26, 2013, 05:45:30 AM
I dont think its a problem with TNet, but Unity
as a whole, whether you make a server with TNet or with Unity, you will
not be able to host a server within the webplayer application (For security reasons)
This may shed some light on it:
http://docs.unity3d.com/Documentation/Manual/SecuritySandbox.html

Your best choice would most likely be to host a server locally or get a third party
hoster to host it for you. I'd say you should stick with TNet since it does make
a lot of things easier, as well as letting you do some more advanced stuff.
Title: Re: IS this possible to host the game in webplayer ?
Post by: Wonse on August 26, 2013, 08:05:27 AM
i have a "game", running on webplayer, using the master server. first player can host, and another can join, using the master server.

can i use the master server with TNET ? or someting ?
Title: Re: IS this possible to host the game in webplayer ?
Post by: pyscho2day on August 26, 2013, 10:25:45 AM
can i use the master server with TNET ? or someting ?

Yes you can.  For example you could have a the MS Running on a Amazon EC2 server and then the web clients all connect to that. That then would be fine.