Author Topic: TNet: Tasharen Networking Framework  (Read 134263 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #30 on: December 24, 2012, 04:00:50 PM »
You can put up a stand-alone TNet server somewhere accessible, and then those who join it can query a list of open channels. Same idea. I have a TNet server running on an Amazon Cloud EC2 for example. It's a 35 kb executable that uses just about no resources.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #31 on: December 24, 2012, 04:06:10 PM »
so its doable, awesome!
I think Photon Cloud is marketed towards people like me who don't know much about setting up servers themselves! Perhaps I missed it but do you have a tutorial or something for newbies on how to setup a TNet server? Is it some extra file I get with the package off the asset store and upload to a server or something?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #32 on: December 24, 2012, 04:09:39 PM »
The server comes with TNet in a zip file. I compiled a windows executable, and there is a solution and project that you can open on a mac and compile it there. Likewise if you have a C# compiler set up on Linux, you can compile it there as well.

To host it somewhere, simply run the executable.

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #33 on: December 24, 2012, 04:21:49 PM »
thanks man. I just bought it. Sounds easy but I'm not too familiar with running executables on servers. I'll look into it.
Is there a tutorial or video or something step-by-step how to setup the server with a lobby like photon cloud? IMHO you'd pull across a lot of customers if you made this global networking sorta thing really straight-forward. I'd also happily pay if you provided a service like photon cloud.  8)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #34 on: December 24, 2012, 04:39:24 PM »
A server is just like any other computer. You just remote desktop into it (in case of Amazon this means double-clicking on a downloadable file), which opens up a (in my case) windows login dialog. I log in, and I am able to use the remote computer as if I was sitting right in front of it, including downloading stuff and running executables. :)

I could certainly host a cloud-based service if there is enough demand for it. I'm sure Photon guys themselves could do that too since to them it would be just running an executable on one of their cloud servers just like with Photon. ;)

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #35 on: December 24, 2012, 04:54:10 PM »
Thanks man I'm looking into the amazon thing right now :)

I suppose what I meant was with photon cloud there was no "scary server stuff" to setup first - one less roadblock for a newbie. I'm sure once I understand the server thing I'll be like "duh that was easy". Frankly I'm having trouble with photon it keeping crashing on multiple games and I'd rather use something by the "NGUI dude" anyway.  8)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #36 on: December 24, 2012, 04:58:38 PM »
I the meantime you could launch the executable on your computer and run some tests just connecting to localhost !

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #37 on: December 24, 2012, 05:05:08 PM »
I the meantime you could launch the executable on your computer and run some tests just connecting to localhost !
Yup. Or just hit the "host" button from the example menu. It's really easy to get started. Putting your game server on a cloud is generally the last step :)

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #38 on: December 24, 2012, 05:09:11 PM »
very cool :)

even better also include mac compile of the server for iOS devs! prob super easy to compile myself once i work it out and all but again one less roadblock blah blah

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #39 on: December 24, 2012, 05:35:00 PM »
thanks for releasing this anyhoo. great present for xmas day!

devfo

  • Guest
Re: TNet: Tasharen Networking Framework
« Reply #40 on: December 24, 2012, 11:58:14 PM »
Sounds exacty like what I have been looking for. I would need to run this on my own server along with database interaction. Would you reccomment running a Linux or Windows server?
The server example you provide with the package -- I am guessing it's Windows?

Martin Schultz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • Decane
Re: TNet: Tasharen Networking Framework
« Reply #41 on: December 25, 2012, 02:01:54 AM »
First of all, merry christmas all! :-)

One question regarding the licensing that holds me back so far from buying: It says "per project". Do I need to license one TNet per project?

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #42 on: December 25, 2012, 02:07:07 AM »
I think its per-studio? On this page it says per-studio near the bottom. http://www.tasharen.com/?page_id=4518

Martin Schultz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • Decane
Re: TNet: Tasharen Networking Framework
« Reply #43 on: December 25, 2012, 02:59:38 AM »
Ah ok, that would make sense. I thought already it's hard to achieve that licensing with the Asset Store - I can only purchase once.

Btw, it's available in the Asset Store! Just purchased it from there!

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: TNet: Tasharen Networking Framework
« Reply #44 on: December 25, 2012, 03:46:13 AM »
Cool I got the server that comes with the package running on my mac, yay! Just gotta download the mono framework then open terminal and type " mono <file location>/TNServer.exe". You can get the file location by selecting it in the finder, pressing CMD+C then pasting in terminal.

Hey how could I do something like photon's JoinRandomRoom()? I also want to limit a game to max 2 players, how could I do this?
Thanks in advance!