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 awplays49 · Oct 10, 2015 at 03:33 AM · networkingplayernetwork

Networking questions

Hello!

Recently I have been feeling like my last few questions weren't receiving much help, and I'm feeling a little disregarded. But I thought I'd give this a shot because I have nowhere else to go.

First of all, 1/2 times I build the game to test the networking, I hit the join button and it doesn't even process. It just thinks the UI button does nothing almost. Then, in the editor window if I do the same thing I get either the error that the request timed out, or if I hit it too much it says only 16 hosts allowed. I am not spawning hosts I'm spawning player clients with

     manager.StartClient  ();

Even if the IP and port are correct it still does not work. This only happens when playing on 2 computers. I'll run it on the computer I'm editing on as a built version, and I'll run it on my laptop. For some reason I can join on my desktop but I can only host on my laptop.

I think this has to do with the variable "Local Player Authority" on the network ID component, or the network manager's component "Multiple Client Mode:".

When I select multiple client mode, it seems to fix, but I have to manually reset it to true because when I run the game it turns off.

Another question.

I'm starting to question what a network transform really does. I'll see a set of enemies on my screen and they're in completely different places on the other computer, so are they really syncing? Not only that, but the visualization of bullets and the syncing of animation are not working. And yes, I did add a network animator to the mesh.

Anyways, I hope my questions can finally be answered. I'm really struggling with this network stuff, so thanks, cheers!

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 tanoshimi · Oct 10, 2015 at 06:18 AM 0
Share

There's a lot of detail missing from your question... How are you spawning the NetworkTransform? Do they also have NetworkIdentity components? How are you setting the local player authority?

Have you tried following a basic networking tutorial?

avatar image awplays49 tanoshimi · Oct 10, 2015 at 12:43 PM 0
Share

@tanoshimi hi,

I'd like to begin by thanking you for taking the time to read this question.

As for the spawning, I do Instantiate, so now that you mention it that could be a problem.

I haven't seen any good tutorials on google, I have tried searching UNET, unity networking, everything. The only thing that comes up is a guy trying it for the first time and that's not much help.

I'm joining with StartClient, and starting servers with StartServer.

I set local player authority true for everything in the inspector.

avatar image maccabbe awplays49 · Oct 10, 2015 at 03:09 PM 0
Share

Googling "unet tutorial" gave me multiple results including

http://forum.unity3d.com/threads/unity-5-unet-multiplayer-tutorials-making-a-basic-survival-co-op.325692/

https://www.reddit.com/r/Unity3D/comments/3bvsr1/looking_for_new_unet_unity_51_networking_tutorials/

And of course if you are having problems with a feature then you should go through the manual and api

http://docs.unity3d.com/$$anonymous$$anual/UNet.html

http://docs.unity3d.com/ScriptReference/Networking.Network$$anonymous$$anager.html

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

35 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What is the CCU of the default Unity Networking? 1 Answer

IS it possible to have delayed player spawning after server connection? (UNet) 1 Answer

Network Game Player reference 0 Answers

How can i acess the local Player from Script 1 Answer

Network two players collision 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