Author Topic: Query over WIFI LAN Racing Game before purchasing TNet  (Read 5999 times)

ketuhi5

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
Query over WIFI LAN Racing Game before purchasing TNet
« on: January 19, 2015, 05:29:21 AM »

I tried searching over the forum for my answers but found nothing that convinced me so I took the liberty to post my queries before making the purchase. I am doing a Racing Game in which I need a Local Multiplayer setup for Android, IOS and (possibly) WP8......like a 2 player racing (head to head race) one being the server and other being the client.

Q1. Will TNet serve my purpose of having an application that can connect cross platform Devices just over WIFI (without Internet Connection)?
Q2. 'TNetServer.exe' that appears in the tutorial video ... does it have a substitute for MACs?

Regards,
Ketan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #1 on: January 19, 2015, 11:57:45 AM »
TNServer is a C#/mono executable. To run it on OSX/Linux, just run it via mono: "mono TNServer.exe".

Yes, TNet is cross-platform and works over wifi. It doesn't require an internet connection. As long as all parties are connected to the same wifi node, it will work as expected.

ketuhi5

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #2 on: January 19, 2015, 12:58:21 PM »
Great...

What if there is no WIFI node... and one phone serves as a server and another joins in as a client. Is that a possible scenario?
something like pairing of 2 devices
« Last Edit: January 19, 2015, 01:04:19 PM by ketuhi5 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #3 on: January 20, 2015, 10:32:44 PM »
If there is no wifi, then there is no connection. No connection means no multiplayer. How do you join without wifi? If you mean carrier data, then no, it won't work because it's not possible to connect to anything hosted on a mobile device. Carriers explicitly prohibit it. The device can create outbound connections, but can't be connected to.

MCoburn

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 7
  • Posts: 69
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #4 on: February 12, 2015, 01:09:22 AM »
Great...

What if there is no WIFI node... and one phone serves as a server and another joins in as a client. Is that a possible scenario?
something like pairing of 2 devices
I think he means something like a game over BlueTooth. Possible, but I don't think Tnet supports bluetooth unless you can get Unity to set up a BlueTooth PAN (Personal Area Network). Not even sure iOS or Android can do that (I'm not a wizard in Bluetooth tech myself).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #5 on: February 13, 2015, 09:08:10 AM »
TNet doesn't support bluetooth.

tstack

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #6 on: March 17, 2015, 06:27:59 PM »

Hello, I have been searching threads to make sure I post this in the appropriate place, I think this thread is where this question would go.

Reading above...

If I have just two iOS devices, say two iPods, connected to the same WiFi node - but without an internet connection - can they play multiplayer together? I am assuming TNServer.exe would then be running in mono on iOS?

Thank you for your time.

tstack

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #7 on: March 18, 2015, 06:20:57 AM »

Thinking of an example of what I am asking, it would be like two people playing Minecraft PE on devices, one person opens their "world" in Minecraft PE, and someone else can join their world over wi-fi.

I've already bought TNET on Monday, I thought I had read that this ^ was the case.

Thanks again.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #8 on: March 19, 2015, 06:54:16 AM »
You don't need internet. Just a LAN connection is enough.

TNServer just starts a stand-alone server. You can achieve the same thing by using TNServerInstance.Start() within your game. One person uses TNServerInstance and connects to it. The other person just connects to it. Check the menu example that comes with TNet. It implements basic LAN server discovery.

tstack

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #9 on: March 20, 2015, 02:59:35 PM »

And I can call that from within an iOS game, between two iOS devices?


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Query over WIFI LAN Racing Game before purchasing TNet
« Reply #10 on: March 22, 2015, 08:29:22 AM »
If they are connected to the same LAN network via WiFi, yes. If they are connected to 3G, then no, it won't work.