Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by samz · Jan 15, 2015 at 08:46 PM · networkingmultiplayerserveronline

Networking - 1on1 based on Player's level

Hi all

I was thinking about converting my game into an online one like FIFA. I practices doing a simple game where x amount of players can join 1 game and play together. But im stuck on this FIFA idea. This is what its supposed to do...

a) All players start on level 1. b) On each level they play 5 games of 1on1. c) When they win x amount of games, they get promoted to play with level 2 players. d) Loop from b)

Question is, how do I go about doing this...in terms of:- 1. Separating the players so they play a random player from their own level. 2. And anything else I need to know?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image khos85 · Jan 15, 2015 at 09:37 PM 0
Share

Are you talking about a web player version? Have you looked at any network tutorials? It is a hugely complicated subject so I would give more detail in your question, what other stuff do need to know? To randomize player selection why not pick players on what part on the $$anonymous$$ute they joined , eg below thirty secs they go ingroup a, the others in group b, or use the random function.....

avatar image samz · Jan 15, 2015 at 10:27 PM 0
Share

Every fresh new online player to ever play online would enter group_A. Unless their progress was saved into a database, after login they would enter their relevant group.

In group_A we set each and every player to face a 1on1 with another player in that group. So I will need to create new game for each pair of players. When their game is over we destroy that game so no one else can join.

We save all the players wins/loses and we calculate whether they qualify to group_B. I have a database setup using my php$$anonymous$$yAd$$anonymous$$ when I was doing the login tutorials.

avatar image samz · Jan 15, 2015 at 10:32 PM 0
Share

And this game would be for iOS and Android devices...and maybe web player version also

avatar image khos85 · Jan 15, 2015 at 10:45 PM 0
Share

Hi, I still don't understand what you want to have answered? It sounds like you have a game already but just want to convert it... why can't you just use the code from that? Have you actually tried to convert it yet?

avatar image samz · Jan 16, 2015 at 04:21 AM 0
Share

Lol basically im not sure how to convert it. Right now what I have is that the system will refresh servers, if theres no available servers a server will be created-here how do I wait until another person joins this server to have the 1on1?

then how do I check the player that joins is actually on the required level?

I've used unity's built in network feature to create 1 server, and if none are found then to create one. And then other players refresh and check for available servers. But nothing to actually check players.

Any ideas?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by samz · Jan 17, 2015 at 08:13 PM

Im going to try this logic:

  1. After successful login, save the username and use it to look up the database to see which level player is on.

  2. When I search for hosted games, if the players are not on the same level as me then I will quit the game and continue searching

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Kiwasi · Jan 15, 2015 at 11:01 PM

Consider an Elo rating system instead of levels. Elo gives you finer control, and responds to players actual skill. Your level system as described could produce some heavily biased results.

Start your matching off by looking for players within 50 Elo points. If none are found after a defined time interval stretch it out to 100. Then 200 and so forth. The exact time interval will depend on the number of players you have available.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image samz · Jan 16, 2015 at 04:24 AM 0
Share

This is something to really think about. Thanks! :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

Popular Multiplayer Framework/Services? 0 Answers

Making own server instead of using unity matchmaking and relay servers? 1 Answer

My network server doesn't work. 0 Answers

Getting server status and counting connected players from outside of the server with having the IP address 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges