Author Topic: createChannel and joinChannel difference  (Read 2532 times)

bariscigal

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 15
    • View Profile
createChannel and joinChannel difference
« on: August 11, 2014, 02:44:27 PM »
Hi again,

Can i learn what is the difference between :
TNManager.CreateChannel() and the JoinChannel counterpart.

They seem to be doing the same thing.
What i am after is create a channel by the server instance starter but not join yet.
When some player joins to server join  the channel in sync.
And if the channel is not created a message would help me if no channel is active yet.

Also is there a way to assign a channel id while creating one?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: createChannel and joinChannel difference
« Reply #1 on: August 12, 2014, 07:37:11 AM »
JoinChannel takes a specific channel ID. CreateChannel doesn't. You can't create a channel and not join it. You can however create a channel with a player limit of 1, meaning no one can join besides you. When ready, you can change this limit to let others join.

creativitysquare

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 41
    • View Profile
Re: createChannel and joinChannel difference
« Reply #2 on: November 08, 2014, 12:08:00 PM »
Hi Michael
How do i join a channel created with createChannel given that i don't know the ID?
I tried by just creating again from other users and thought maybe if existing already would just put me in but it doesn't.
thanks
Egi

creativitysquare

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 41
    • View Profile
Re: createChannel and joinChannel difference
« Reply #3 on: November 08, 2014, 12:19:03 PM »
Found.

JoinRandomChannel specifying a password will join a channel created with the same password.

Not entirely obvious but eventually intuitive :)

cheers
eg