Author Topic: Best techniques for my game and TNet questions  (Read 4877 times)

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Best techniques for my game and TNet questions
« on: October 23, 2013, 03:56:17 AM »
Hi all,

of overnight I became a fan of Tasharen xD, I bought Ngui and now also TNET, the problem is that I am fairly new to networking, I would like someone to help me a bit with some questions, thanks in advance

1. - I am developing a game that needs a network system, but very simple, no need to share positions or anything like that, just need to share information and to chat, play want it to be cross platform, iOS, Android etc. What would be my best option, Amazon EC2?

2. - Amazon EC2 is free, but the account will be free enough to accommodate items of my game?

3. - My game is a Soccer manager, basically you create a league (room) and invite your friends to join the league, if you know the name of the league and the password you can join, is possible with TNET?

4.- As I said my game is a soccer manager, players can enter their lineups manage, signings etc. Then the player can come and go at any of the application, the game will remain the same as always? respecting the alignments, signings, standings, etc? We assume that each time a user create a league (room) is persistent.

5.- I tried to do some testing with the example that comes with tnet, but I can not run anything, as I said I am new to networking, I'm on the scene "example menu", I try to connect em 127.0.0.1 and tells me an error "connection refused ", I'm also trying to connect with my isntancia elastic IP creeda on amazon and not connected, am I missing?

6.-I followed the tutorials of initiation, but TNetServer is for windows, I'm working with a Mac, as I can do checks?

7.- In my game I would like people to connect, without having to press button to create server, ie the server should already be created, Maybe I have to create me? Then people just have the ability to create their own rooms, or join existing rooms, possible?

8.- The rooms can be represented by names? Or it must be with ID? Ideally represent them by name. is it possible?

9.- When people download my game, and create a league (room), all leagues are created are on the same server, right? I mean, all the rooms are part of the same server, correct?


I spent a lot of time thinking about the possibility of buying PUN or TNET in the end I bought TNET, by the possibility of having persitentes rooms, as this is crucial to my game, but it seems that TNET is much more difficult than PUN, plus TNET almost no tutorials, have you thought about creating more tutorials? The same is true Ngui, many people say that there is a lot of information, and although I now have good driving Ngui say that at first cost me much, for lack of Tutorial.

uff, few questions! xD well I hope someone can help, Thanks!

Best Regards
« Last Edit: October 23, 2013, 05:19:40 AM by Magic Frame »

bitcrusher

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #1 on: October 23, 2013, 08:45:31 AM »
6. run it with mono TNServer.exe
Read the documentation and tutorials, it helps.

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #2 on: October 23, 2013, 09:46:55 AM »
Ok thanks TNServer found now, I read the 12 pages on this forum... xD and the documentation, but I don't see the instructions for run TNServer on Mac, but now is running and found good. Any help for another points? Best regards

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #3 on: October 23, 2013, 10:21:08 PM »
1. I would say so, yes.

2. For just chat? Most certainly.

3. Password-protected channels, yes.

4. Persistent channels, yes, assuming you used saved RFC calls (Target.AllSaved for example).

5. You need to first start a server before you can join. Did you start it? Amazon is more difficult to set up as you need to actually open up ports via the server's web page in addition to the windows firewall.

6. mono TNServer.exe, as bitcrusher said.

7. Assuming your server is hosted on the amazon ec2, that will already be the case. You will always join a remote IP address, and from there you will just create channels.

8. Just IDs. You can have a string description for the channel's data though, should you choose to use it.

9. If you want it like that, yes.

Assuming by PUN you mean Photon, I've actually heard the opposite from people who have tried both. TNet is generally the easier one to get a hang of. There is a "making a game from scratch" video for TNet that shows how to do just that -- make a multiplayer game from scratch, going over all that's needed in the process.

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #4 on: October 24, 2013, 03:48:19 AM »
thanks for your help Aren,
two things I have not clear, you know some tutorial on how to connect TNET with Amazon EC2? I created the instance, I've also created a security group with all TCP, UDP open, I have left the source to 0.0.0.0 for any IP to connect, I've also created an elastic IP, but I can't not connect ... any help? you may need to include TNServer in Amazon EC2? if so, any help on how to upload the file? SHH not connect to upload the file TNServer .... . Then on the way to create names for the rooms and no ID, could be more explicit about how I can create a system in which players know the room name and password can join the room? only the name of the room (no ID) and password.

addebooi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #5 on: October 24, 2013, 05:53:42 AM »
If i was you, sou would i definitely learn Tnet on your local PC before you start to struggle with Amazon thingy. just a tip..

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #6 on: October 24, 2013, 08:04:01 AM »
You're right, I will first try to understand TNET, although this finding it very hard for me, I had never touched anything from networks, and is becoming a nightmare xD, there is not much information TNET to learn ... for example there is nothing about how to create a channel, or how others may join that channel, knowing the channel name ... we need more tutorials, for example not understand anything that is as RFC and save them, they should make a more complete series of tutorials, covering more things ... I have seen 3 times the video of "how to make a game from scratch" but it is very comprehensive say ... Aren hope more tutorials cover with TNET assistance.

addebooi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Best techniques for my game and TNet questions
« Reply #7 on: October 24, 2013, 06:28:16 PM »
My tips for you is looking around in the forum.
One post that helped me alot was " http://www.tasharen.com/forum/index.php?topic=5882.0 " You should deffently check it out.