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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Does anyone have the NetworkManager .cs file from Unity 5.3?

Discussion in 'Multiplayer' started by Lexeon, May 3, 2016.

  1. Lexeon

    Lexeon

    Joined:
    Apr 22, 2016
    Posts:
    23
    Title says all. I need this because whenever I quit a match, I cannot rejoin since I get

    ArgumentException: An element with the same key already exists in the dictionary.
    System.Collections.Generic.Dictionary`2[UnityEngine.Networking.Types.NetworkID,UnityEngine.Networking.Types.NetworkAccessToken].Add (NetworkID key, UnityEngine.Networking.Types.NetworkAccessToken value)

    Something about the network id already existing, and it cannot be rewritten.

    I know that this is fixed in the 5.4 beta, however I am working with Unity 5.3. I would like to avoid using the beta with my main project until 5.4 is officially released. Also, if someone has a solution, that works too.
     
    Last edited: May 3, 2016
  2. Oshroth

    Oshroth

    Joined:
    Apr 28, 2014
    Posts:
    99
    You can access the Unet Source on Unity's BitBucket or use ILSpy to decompile the dlls in <Unity Folder>\Editor\Data\UnityExtensions\Unity\Networking.

    BitBucket will have the easier-to-read version but is only updated for non-patch releases and even then, the update schedule is super flakey (It didn't update for 4 months between 5.3.0 and 5.3.3).
    ILSpy can be used on the dlls in your unity install so you don't have that issue, however, because it is decompiling a dll, it will be missing comments and certain things like constants will be replaced in the code. (When constants are built, they replace their references in code)
     
  3. Lexeon

    Lexeon

    Joined:
    Apr 22, 2016
    Posts:
    23
    Thanks, I'll check it out.