Author Topic: How To Generate dynamic Channel?  (Read 3590 times)

blueskined

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
How To Generate dynamic Channel?
« on: February 26, 2013, 08:42:21 PM »
If I understand correctly so far, it seems player create or join the channel all by specific ID and channel name? (TNManager.JoinChannel(ID, SceneName))
is that possible when player create channel, the id and scene name is dynamically allocated? Player can change the channel name to customer name later? other players can quire the channel list and join them?

like the chess game, when player log in, they can either join other player's created channel, or start his own, when start their own channel, they can set the name of the channel, or password, the meantime, other players can do the same, without any conflict in the channel ID.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How To Generate dynamic Channel?
« Reply #1 on: February 27, 2013, 09:00:16 AM »
The ID is the channel identifier. If 10 players join a channel with the same ID, they will be able to communicate with each other.

The scene name is the name of the level that will be loaded upon channel creation. The channel itself has no name identifier. Just the ID.

Only the first player to enter the channel's value will work here. Other players scene name will be ignored. As you switch scenes in the channel, the value of the current scene will be updated for all clients as well as the clients that join in the future.

blueskined

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: How To Generate dynamic Channel?
« Reply #2 on: February 27, 2013, 08:37:18 PM »
so, if I understand correctly, I can use different IDs with the same scene, that will divide people into different channels, event the environment looks same?

if I have 100 rooms(channels),  in each room, 2 players play chess against each other, so I can just make 1 room scene, but when player create(or join), just use different id, but all point to the same scene?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How To Generate dynamic Channel?
« Reply #3 on: February 27, 2013, 08:38:15 PM »
Correct. Think of it as IRC. You can have 100 different channels and all channels can have the same topic.

Deozaan

  • Newbie
  • *
  • Thank You
  • -Given: 44
  • -Receive: 4
  • Posts: 42
    • View Profile
    • Deozaan.com
Re: How To Generate dynamic Channel?
« Reply #4 on: February 28, 2013, 12:49:06 AM »
So a Channel can be thought of like an MMO instance/zone?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How To Generate dynamic Channel?
« Reply #5 on: February 28, 2013, 08:17:45 AM »
Yup.