Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. Unity 2017.3 has arrived! Read about it here.
    Dismiss Notice
  3. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

UNetWeaver Error, bars project from doing anything

Discussion in 'Multiplayer Networking' started by shivamTAGS, Jul 17, 2017.

  1. shivamTAGS

    shivamTAGS

    Joined:
    May 26, 2017
    Posts:
    3
    Hello,
    So I upgraded my project from 5.4.2 to 5.6 2017.0.1f3, and I am getting these UNetWeaver errors. Please help me out

    1. UNetWeaver error: parameter [List`1] is of the type [System.Collections.Generic.List`1] is not a valid type, please make sure to use a valid type.
      UnityEngine.Debug:LogError(Object)
      Unity.UNetWeaver.Log:Error(String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:20)
      Unity.UNetWeaver.Weaver:IsValidTypeToGenerate(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1624)
      Unity.UNetWeaver.Weaver:GenerateReadFunction(TypeReference) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:683)
      Unity.UNetWeaver.Weaver:GetReadFunc(TypeReference) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:407)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processNetworkReaderParameters(MethodDefinition, ILProcessor, Boolean) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1046)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processCommandInvoke(MethodDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1100)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processMethods() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1676)
      Unity.UNetWeaver.NetworkBehaviourProcessor:process() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:58)
      Unity.UNetWeaver.Weaver:processNetworkBehaviourType(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1142)
      Unity.UNetWeaver.Weaver:CheckNetworkBehaviour(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1681)
      Unity.UNetWeaver.Weaver:Weave(String, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1804)
      Unity.UNetWeaver.Weaver:WeaveAssemblies(IEnumerable`1, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1904)
      Unity.UNetWeaver.Program:process(String, String, String, String[], String[], IAssemblyResolver, Action`1, Action`1) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:34)
      UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)

    2. UNetWeaver error: GetReadFunc unable to generate function for:System.Collections.Generic.List`1<cordsData>
      UnityEngine.Debug:LogError(Object)
      Unity.UNetWeaver.Log:Error(String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:20)
      Unity.UNetWeaver.Weaver:GetReadFunc(TypeReference) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:412)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processNetworkReaderParameters(MethodDefinition, ILProcessor, Boolean) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1046)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processCommandInvoke(MethodDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1100)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processMethods() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1676)
      Unity.UNetWeaver.NetworkBehaviourProcessor:process() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:58)
      Unity.UNetWeaver.Weaver:processNetworkBehaviourType(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1142)
      Unity.UNetWeaver.Weaver:CheckNetworkBehaviour(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1681)
      Unity.UNetWeaver.Weaver:Weave(String, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1804)
      Unity.UNetWeaver.Weaver:WeaveAssemblies(IEnumerable`1, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1904)
      Unity.UNetWeaver.Program:process(String, String, String, String[], String[], IAssemblyResolver, Action`1, Action`1) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:34)
      UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
    3. UNetWeaver error: ProcessNetworkReaderParameters for DrawingTool:CmdSend4 type System.Collections.Generic.List`1<cordsData> not supported
      UnityEngine.Debug:LogError(Object)
      Unity.UNetWeaver.Log:Error(String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:20)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processNetworkReaderParameters(MethodDefinition, ILProcessor, Boolean) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1065)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processCommandInvoke(MethodDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1100)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processMethods() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1676)
      Unity.UNetWeaver.NetworkBehaviourProcessor:process() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:58)
      Unity.UNetWeaver.Weaver:processNetworkBehaviourType(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1142)
      Unity.UNetWeaver.Weaver:CheckNetworkBehaviour(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1681)
      Unity.UNetWeaver.Weaver:Weave(String, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1804)
      Unity.UNetWeaver.Weaver:WeaveAssemblies(IEnumerable`1, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1904)
      Unity.UNetWeaver.Program:process(String, String, String, String[], String[], IAssemblyResolver, Action`1, Action`1) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:34)
      UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
    4. UNetWeaver error: parameter [List`1] is of the type [System.Collections.Generic.List`1] is not a valid type, please make sure to use a valid type.
      UnityEngine.Debug:LogError(Object)
      Unity.UNetWeaver.Log:Error(String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:20)
      Unity.UNetWeaver.Weaver:IsValidTypeToGenerate(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1624)
      Unity.UNetWeaver.Weaver:GenerateWriterFunction(TypeReference) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:611)
      Unity.UNetWeaver.Weaver:GetWriteFunc(TypeReference) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:333)
      Unity.UNetWeaver.NetworkBehaviourProcessor:WriteArguments(ILProcessor, MethodDefinition, String, Boolean) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:146)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processCommandCall(MethodDefinition, CustomAttribute) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1216)
      Unity.UNetWeaver.NetworkBehaviourProcessor:processMethods() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:1682)
      Unity.UNetWeaver.NetworkBehaviourProcessor:process() (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetBehaviourProcessor.cs:58)
      Unity.UNetWeaver.Weaver:processNetworkBehaviourType(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1142)
      Unity.UNetWeaver.Weaver:CheckNetworkBehaviour(TypeDefinition) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1681)
      Unity.UNetWeaver.Weaver:Weave(String, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1804)
      Unity.UNetWeaver.Weaver:WeaveAssemblies(IEnumerable`1, IEnumerable`1, IAssemblyResolver, String, String, String) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/UNetWeaver.cs:1904)
      Unity.UNetWeaver.Program:process(String, String, String, String[], String[], IAssemblyResolver, Action`1, Action`1) (at C:/buildslave/unity/build/Extensions/Networking/Weaver/Program.cs:34)
      UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
    there are 4-5 more but you get the point, googling and answers and other forums pointed me to nothing, So here I am needing help.
     
  2. TwoTen

    TwoTen

    Joined:
    May 25, 2016
    Posts:
    814
    Don't use List in your command / rpc parameter. Convert it to array.
     
  3. shivamTAGS

    shivamTAGS

    Joined:
    May 26, 2017
    Posts:
    3
    Thanks a lot!!! You saved day.