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 /
This question was closed Apr 15, 2013 at 06:52 AM by MaT227 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by MaT227 · Apr 02, 2013 at 03:24 PM · c#networkingmultiplayerserverasynchronous

Asynchronous Game server

Hi,

I am building an asynchronous multiplayer game (up to 4 players in game). But I am stuck at choosing the server side solution.

For me this kind of game, asynchronous, can be handled by only http requests and a database (to maintain a game for example).

I found a lot of solutions like SmartFox, Electrocloud or Photon. But what are the advantage of those solutions for a no realtime game.

I think that Windows Azure WebRole for example is a better solution because I don't need any realtime feature. But maybe I am wrong.

Thanks a lot for your help and advices.

Comment
Add comment · Show 18
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 Benproductions1 · Apr 02, 2013 at 11:35 PM 2
Share

NO!!!!! I'm not allowing you to make a game multiplayer using HTTP requests!!!

avatar image MaT227 · Apr 03, 2013 at 07:36 AM 0
Share

But why ? ;)

avatar image Benproductions1 · Apr 03, 2013 at 08:54 AM 0
Share

Because HTTP is not built for anything but what it's usually used for, while you are making a game! Would you use a desk lamp as an oven? Would you use a firelighter as a stove?

avatar image Bunny83 · Apr 03, 2013 at 09:41 AM 1
Share

@Benproductions1: Actually almost all $$anonymous$$$$anonymous$$O browser games use HTTP / AJAX requests for server communication, so why is that a problem? If he really doesn't need realtime responses it's absolutely fine. I actually work in a browser games company ;) I don't work with php / html / javascript / flash, but all our games use a php backend.

avatar image MaT227 · Apr 03, 2013 at 09:52 AM 0
Share

Thanks Bunny83 you reassure me, for an example, a request should only validate a move (e.g. for a chess game).

Show more comments

2 Replies

  • Sort: 
avatar image
1
Best Answer

Answer by Fattie · Apr 04, 2013 at 11:53 AM

"As I explained, we can compare the game with a chess game."

Just write a few lines of PHP (or Perl if you're over 30) on a normal, everyday "LAMP" stack. So it's just php/perl and MySql with cgi on a vanilla web server

Look no further - it would be silly to do it any other way more complicated.

Once your income stream is over, let's say, $50,000 a year, look at other options.

Comment
Add comment · Show 2 · 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 MaT227 · Apr 04, 2013 at 12:07 PM 0
Share

"Look no further - it would be silly to do it any other way more complicated."

That was my idea. Thanks for the advice !

avatar image aman_jha · Jul 22, 2015 at 02:01 AM 0
Share

How would I get started using PHP to make a server? is there any tutorial series or something?

avatar image
0

Answer by MorphingDragon · Apr 03, 2013 at 12:01 AM

In the Unity Networking guide they have information about Master Servers, protocols and state manage that could answer a lot of your possible questions.

http://docs.unity3d.com/Documentation/Components/NetworkReferenceGuide.html http://docs.unity3d.com/Documentation/Components/net-MasterServer.html

Comment
Add comment · Show 6 · 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 MorphingDragon · Apr 03, 2013 at 12:03 AM 0
Share

For the love of God don't use HTTP in games, there's a lot of unnecessary overhead. If you don't need realtime updating you could use Reliable Delta Compressed mode in Unity.

avatar image MaT227 · Apr 03, 2013 at 07:57 AM 0
Share

I looked at the Unity $$anonymous$$aster server, but it seems to be an overkill solution for my project. We can compare my project to a chess game. I don't get the point of building such a server side solution.

avatar image MorphingDragon · Apr 03, 2013 at 08:01 AM 0
Share

Except you want database access and global state, so I fail to see how the Unity server is overkill. It doesn't matter how simple your game is, but the features you want out of your server.

avatar image Benproductions1 · Apr 03, 2013 at 08:57 AM 0
Share

Why are we talking about the Unity $$anonymous$$aster Server, that server is purely built to register and connect to games (A host management system) You should use it, but not for making the game multiplayer, because thats impossible! Look into Unity RPC calls, thats what you should use!

avatar image Bunny83 · Apr 03, 2013 at 11:32 AM 0
Share

Actually a solid webserver is much more reliable than Unity's networking especially when one of the player should act as server and sits (as most users) behind a NAT router. I never used a SmartFox server but it seems to be one of the best solutions. However it depends on how many users you expect to play the game and how much money you are willing to spend.

If you have no up to a little money:

  • Unity's built-in networking is probably the easiest one to use. However if you can't host your own masterserver for match-making you have to rely on the development masterserver hosted by UT which is sometimes a bit unreliable and might be overloaded.

  • Using a webserver is much more reliable but might be a bit more challanging to setup depending on your php / mysql skills ;)

If you're a small company and you want to serve 30-xxx players, it might be better to rent a smartfox server.

Those are just some basic suggestions. What you need depends on your exact situation and specifications.

Show more comments

Follow this Question

Answers Answers and Comments

13 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

Related Questions

Unity networking tutorial? 6 Answers

Can i save changes to environment in multiplayer game? 1 Answer

How to instatiate two players simultaneoulsy before loading level 1 Answer

Sending RPC to add playerName 4 Answers

Running a Unity game on a server with no GPU acceleration (EC2) 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