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 Sejersen · Apr 18, 2012 at 10:53 AM · networking

Is there any C# multiplayer (ONLINE/NETWORKING) tutorials out there?

Hey guys! Me and some friends is making a game for a school project. And we wanted it to be a 4 player puzzle game. But the thing is, I do not know how to make it online (with the NAT and IP ports).

What I'm asking for is, is the "Unity Scripting Reference" enough to help me do this; Or do I need an actual Tutorial? Because, I'm scripting in C#, and the MH2 tutorial and every other tutorial is in JavaScript. So can any of you guys give some constructive help or links in order to "guide" me towards making an "Semi-online" game.

Thank you for reading this! :)

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
2
Best Answer

Answer by Bunny83 · Apr 18, 2012 at 12:10 PM

The BurgZerg hack-slash-rpg-tutorial is written in C#. Anyway whether you need a tutorial or not is up to you ;) The Networking engine (RakNet) is pretty simple, however there's no golden solution that fits for all multiplayer setups. A online card game has a much different setup than a 3D FPS shooter, but the basics are the same.

Comment
Add comment · Show 4 · 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 Sejersen · Apr 18, 2012 at 12:15 PM 0
Share

Yea, I've been doing the first 40 videos of the BurgZerg hack-slash-rpg-tutorial, and I understand pretty much everything he does :) - But is it recommended to first complete a single player game, before "venturing" into the world of multiplayer games?

Anyways, thanks for the quick answer! I've thumbed it up!

avatar image Bunny83 · Apr 18, 2012 at 01:12 PM 0
Share

Well, not necessarily ;) Sending data to other clients isn't really compilcated, but you have to get behind how all those different objects are related to each other.

Basically every peer has it's own objects. Everything happens on the users own PC. If 3 people play together they play3 different games ;) The NetworkView component is the magic thing. It has NetworkViewID (just a number) that is unique on all peers. The owner of this ID (the one that creates the object) can send updates for this object. All other peers will receive the updates and apply them on their own object that has the same NetworkViewID.

You can also use only RPC calls so you decide what is sent and what happens with the data on the other side.

avatar image Sejersen · Apr 19, 2012 at 05:53 AM 0
Share

Wow, that helped a lot man! I think I understand the basics behind Networking now then ;) - Nothing left but to start scripting! :)

Thanks alot man! :)

avatar image shieldgenerator7 · Aug 28, 2019 at 02:43 AM 1
Share

The link broke :(

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

7 People are following this question.

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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Using RPC over diffrent projects? 1 Answer

Sync large amount of variables via Network 3 Answers

Data keeps "hanging". TCP client/server 2 Answers

how to find out if player hosted game 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