Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 erang · Mar 31, 2016 at 03:51 PM · servermultiplayer-networkingrooms

How to create a room-based multiplayer game that can also be controlled via web interface

I'm trying to create a room-based, multiplayer game in Unity. It should support real time information exchanged between the players in the same room (e.g. player position), but is otherwise fairly casual/slow-paced. Rooms can be created dynamically by users. I don't need physics.

I also want to be able to interface to a room through a web page (a sort of dashboard where I can trigger changes in the room for all players) -- so besides connecting the players in the room, the server should also have some channel of communication (websockets?) to a web client.

Any tips on what server architecture I should use here - should each room have its own game server on the cloud? Or should each game server handle multiple rooms?

And can anyone recommend a multiplayer SDK that supports the above? Should I attempt to do this using Unity’s built-in networking?

Thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by phxvyper · Mar 31, 2016 at 08:18 PM

This question would be better suited on the Forums, since its more of a discussion then an answerable question.

However, I will give my two cents.

I don't know of any services that provide you with such functionality - but I'm sure there are some.

As for your network infrastructure, I think you should have something along these lines:

Basic Server Infrastructure

Have two components that interact directly with eachother: the Web Service, which provides you with web-page access to control the Server Head. and the Server Head, which sends and receives data to and from individual servers which are live.

The Web Service can send and receive information from the Server Head, in order to get feed information from individual Servers.


Otherwise: You could also only have the Web Service interact with the Server Head in order to make a connection with other servers, such that the Web Service could then directly communicate with the individual servers. I personally don't know how to do it this way but I'm certain its possible.


Either of these solutions would probably accomplish what you're looking for. You might have to implement these structures yourself, however, unless you can find a service which does something like this for you.

In any case, you'll probably need your own Web Server and some working knowledge of PHP or ASP.NET or some other sever language.


webserverservice.jpg (49.8 kB)
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 erang · Apr 01, 2016 at 08:23 AM 0
Share

Thanks for your feedback, that's a good starting point. And you're right I'll try asking in the forums :)

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Player sets up server UNet. 0 Answers

How can I implement Client-Side Prediction and Reconciliation? 1 Answer

Realtime multiplayer over web server 0 Answers

Dedicated Server for 1v1 Gameplay 3 Answers

Using MLAPI to network across multiple computers 2 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