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
1
Question by user-2203 (google) · Apr 20, 2010 at 06:31 AM · servermmorpg

C# MMO Backend and Unity

Hi!

I've created a MMO backend in C# that I'm currently connecting to using Flash for the client side. Since Flash doesn't have any hardware support for rendering and my game is in 3D I'm leaning towards using Unity3D for the client instead. The protocol I'm using consists of three parts. A command, data length and the actual data. All stored in a byte array and sent back and forth between the server and client. Is it possible for me to use unity3d and communicate with my server as it is, or do I have to set up some other RPC system?

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

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by duck · Apr 20, 2010 at 09:11 AM

Yes, if your server uses normal socket connections for communication, you can use .net's socket library for sending and receiving information to and form your server.

You would use the same socket progamming code in C# in unity that you would use if you were writing a windows form c# client to talk to your server, with the only caveat that the current version of Unity uses .Net 2.0 rather than the latest version of .Net (I'm guessing this makes sense to you if you've already written a c# server app!)

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 Cyclops · Apr 20, 2010 at 01:49 PM

I posted some sample TCP Client Socket code in another Question that might be helpful. It's String-based, but it wouldn't be hard to develop whatever protocol format you needed for your data.

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 softready · Aug 24, 2012 at 04:50 PM

If you're looking for Socket connection inside Unity, you can use Photon Socket server. If you're planning to retrieve/store the data, you could use CloudyRec for Unity which provides the backend solution. http://gamedevresources.blogspot.sg/2012/08/getting-starting-with-cloudyrec.html

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 srivello · Aug 11, 2013 at 11:04 AM

Hi,

Great discussion on using Unity to talk to the backend. File I/O and server communication in Unity is a challenge. For beginners, I launched a free, complete "Unity3D & Server Communication" article. Check it out!

-Samuel Asher Rivello RivelloMultimediaConsulting.com

LINK http://bit.ly/12lEnb9

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

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

2 People are following this question.

avatar image avatar image

Related Questions

MMORPG NPC/AI Simulation Movement and Position 0 Answers

MMORPG Server, Database, Client 1 Answer

MMO server performance 2 Answers

Most efficient way to structure a huge online "virtual world" 0 Answers

Hamachi and Unity? 1 Answer


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