Author Topic: Request :)  (Read 3583 times)

charmandermon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 34
    • View Profile
Request :)
« on: June 09, 2013, 02:04:25 PM »
Just wanted to say I think TNet is fantastic!...Been using photon for everything, but now made the full switch to TNET. I love how flexible and simple this engine is.

Here is a link to a zip of some mockups I made for a friend/lobby/matchmaking system im working on. 
https://dl.dropboxusercontent.com/u/1660807/Mockups.zip

My friend server is done. But I need the ability to tell the TNET server who my friends are and then request back from the server who is online. Then I need the ability to easily create simple matchmaking with your parties or by yourself.  That way it matches you with people close to your rank.

Is this something that can be easily done?

Thanks in advanced!
Dustin

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Request :)
« Reply #1 on: June 09, 2013, 02:20:45 PM »
Saving and loading something to/from the server is simple -- TNet allows you to do that both on the game server, and on the TCP-based lobby server. Matchmaking is more of a challenge. The server code would have to be modified (as it currently has no concept of "levels", "ranks", or whatever else you want to match by).

charmandermon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 34
    • View Profile
Re: Request :)
« Reply #2 on: June 09, 2013, 03:15:40 PM »
Dude seriously. If you replied any faster I would think you are an automated robot!...and on Sunday too, dam good service...

I would love to share with what I have built so far.  I built a web service that connects to SQL server.  I link to the asmx file to send and request user data. Friend lists. Requests...it handles full invites, ignoring, blocking, and also has info about the user rank on a request project.  If a user invites a new friend by using a phone number, email, and or username that does not exist it will send an invite via text or email to join the game and register.  The user registers then automatically has a new friend request from the previous friend that invited them.  If the friend already exists then it just sends the standard friend request.

So I'm hoping that I can use tnet to pass through "filters" when creating a game like INTs and bools and floats and strings that control the automation of match making.

Then I would also hope to have th ability to pass through my friend list of unique usernames and get a response from tnet of who is currently online.  With that I would allow the online people to join each others/party/channel/room.  Then together they start match making as a group most of which can be handled client side.

I'm simplifying most of the process, but does any of this help make sense?

Thanks!
Dustin


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Request :)
« Reply #3 on: June 10, 2013, 02:37:52 AM »
Just good timing at the time.

What you have sounds... complicated. You should consider putting that up as a package on the Asset Store when you are finished. I imagine quite a few people would be interested in something like that. Unfortunately I can't give you much advice here as I haven't done matchmaking myself -- but I can say that you can modify TNet to do what you need it to since it's all in source code. I'd suggest keeping it simple and not modifying the Join function. Instead, have one player start a password-protected channel instead, and PM this password to the friends along with the invite. This message would not be shown by your game code, but instead interpreted as a join request -- resulting in an automated join action.

charmandermon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 34
    • View Profile
Re: Request :)
« Reply #4 on: June 10, 2013, 02:52:04 AM »
Brilliant...hidden password might work perfectly as the filter system.
If you ever decide you want to add match making officially I would gladly help you spec it out with mind maps and whiteboards and code structure...

I have another weird question then ill leave you alone, is it possible to take the server code and compile in xamarin studio as a Mac app rather than a windows console app. I have visual studio but code mainly on a Mac and would love to test on it faster.

I'm sure it can be done I just wanted to know your thoughts on if it would take some massaging first.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Request :)
« Reply #5 on: June 10, 2013, 02:56:22 AM »
Actually it's a mono app. You can run it on Mac and Linux as-is: "mono TNServer.exe".

charmandermon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 34
    • View Profile
Re: Request :)
« Reply #6 on: June 10, 2013, 02:57:54 AM »
Hot diggaty dog!  I wish I had more money to throw at you...