Author Topic: Quick Play  (Read 3145 times)

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Quick Play
« on: April 05, 2013, 03:10:03 PM »
Hi everyone !
We're currently searching for networking technologies and one of the feature is the possibility to play online (turn-by-turn board game).
We'd like to have a quick play button, which will find for you a random player online.

I'm wondering if Tnet is supporting that, and if yes, how can we do that. I searched a bit on this forum, but I didn't find anything.
Thanks !

cAyou.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Quick Play
« Reply #1 on: April 05, 2013, 10:54:18 PM »
TNManager.JoinRandomChannel will join an existing open channel first, and if one doesn't exist -- it will create one and join that. The creation won't happen if you pass "null" for the scene name (just in case you want additional logic to happen if there are no open channels).

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Re: Quick Play
« Reply #2 on: April 10, 2013, 04:14:14 PM »
Thanks ArenMook !
How does it really work? I made some researches by myself, I know Unity includes by default this kind of system, are you using it?
« Last Edit: April 10, 2013, 04:24:26 PM by cayou »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Quick Play
« Reply #3 on: April 10, 2013, 08:45:09 PM »
What kind of system? TNet doesn't use Unity's networking, if that's what you're asking.

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Re: Quick Play
« Reply #4 on: April 23, 2013, 08:55:23 AM »
So I assume you're using your own matching system. I'm asking that because I know that the Unity matching system is not very scalable, the number of players can't exceed something like 1000 (approximate value !).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Quick Play
« Reply #5 on: April 23, 2013, 09:25:45 AM »
Yeah it's all custom. You can set how many people can fit into the channel, and it's a per-channel setting, so one channel can have 10 people max, another -- 2000. It's up to you.

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Re: Quick Play
« Reply #6 on: April 23, 2013, 01:08:17 PM »
Excellent, thanks for this very quick answer, I see you're still close to your community, it's really appreciated :)