Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Compiler Errors in Netcode

Discussion in 'Netcode for GameObjects' started by atten0007, Oct 24, 2021.

  1. atten0007

    atten0007

    Joined:
    Jun 25, 2021
    Posts:
    45
    Hi folks,

    I'm currently developing two games with Unity named "Mikacraft" and "Planetsave". Later I want to play these games with my friends and for that I've successfully installed the Unity package "com.unity.netcode.gameobjects" in both of my projects. But I can't currently play these both games because of compiler errors in the script Unity Transport.cs and the script SIPTransport.cs in both of my games (not in the self-programmed scripts, these errors are in Netcode itself). If you can fix this, me and all the other Unity3D users they're using Unity Netcode would be very happy because we can test the games with our friends.

    Sincerely yours,
    Atten007
     
    Last edited by a moderator: Oct 25, 2021
  2. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    306
    Hey Atten0007

    To fix the "compiler errors" you are encountering we would need some more information. Could you provide us with the error messages you are encountering in your console please and we'll take a look. (If possible provide us with the full stack trace information)
     
    Last edited by a moderator: Oct 25, 2021
  3. atten0007

    atten0007

    Joined:
    Jun 25, 2021
    Posts:
    45
    Hi @luke-unity,

    I can make a pastebin where these Netcode errors in the file "UnityTransport.cs" are stored. Here's the link to my pastebin: https://pastebin.com/dU5srdjS.

    Sincerely yours,
    Atten007
     
    Last edited by a moderator: Oct 25, 2021
  4. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    306
    So it looks like you have our transport adapter package `com.unity.netcode.adapter.utp` installed but not our transport package `com.unity.transport` which the adapter depends on. The transport package should be getting automatically installed if you add the adapter to your project. Can I ask how you installed the adapter package?
     
  5. atten0007

    atten0007

    Joined:
    Jun 25, 2021
    Posts:
    45
    Yes, you can!
     
  6. galnikkozmelj

    galnikkozmelj

    Joined:
    May 29, 2019
    Posts:
    6
    i have same problem. i just updated netcode for gameobjects to Version 1.0.0-pre.8 and this error happened
     
  7. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    306
    Can you post the error messages you are getting?