Author Topic: TNetServer : Channel discussion  (Read 3293 times)

ekilog

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
TNetServer : Channel discussion
« on: February 26, 2014, 01:27:40 PM »
Hello,

I'm confused. I've been able to run the game with the 2 players connected, turn by turn. If one application goes background (player 2), the player 2 leaves the channel.

Player 1 is told that the player 2 has gone.

when player 2 is back (app is back in the foreground), how should I make sure that He will join the same channel and get back the game where He left it ?

Thank you for your help.

Hervé

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNetServer : Channel discussion
« Reply #1 on: February 26, 2014, 04:12:47 PM »
You join a channel using a specific ID. Use the same ID the second time, and you will end up in the same exact game.

ekilog

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: TNetServer : Channel discussion
« Reply #2 on: February 27, 2014, 01:25:00 AM »
You join a channel using a specific ID. Use the same ID the second time, and you will end up in the same exact game.

ok. But in another post, I explain that the JoinRandomChannel is not triggering any feedback and this is why I tried to use the JoinChannel. Any idea ?

http://www.tasharen.com/forum/index.php?topic=8263.0