Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Third Party 14 mistakes in LRM

Discussion in 'Multiplayer' started by foxsg278, Aug 20, 2023.

  1. foxsg278

    foxsg278

    Joined:
    Apr 8, 2022
    Posts:
    2
    When I import Light-Reflective-Mirror(LRM) version 1.12, there were 14 errors. How can you fix them?

    1)Assets\Mirror\Runtime\Transport\LRM\Editor\LRMInspector.cs(26,59): error CS0246: The type or namespace name 'KcpTransport' could not be found (are you missing a using directive or an assembly reference?)
    2)Assets\Mirror\Runtime\Transport\LRM\Editor\LRMInspector.cs(26,81): error CS0246: The type or namespace name 'SimpleWebTransport' could not be found (are you missing a using directive or an assembly reference?)
    3)Assets\Mirror\Runtime\Transport\LRM\Editor\LRMInspector.cs(26,109): error CS0246: The type or namespace name 'TelepathyTransport' could not be found (are you missing a using directive or an assembly reference?)
    4)Assets\Mirror\Runtime\Transport\LRM\LRMDirectConnectModule.cs(36,49): error CS0123: No overload for 'OnServerError' matches delegate 'Action<int, TransportError, string>'
    5)Assets\Mirror\Runtime\Transport\LRM\LRMDirectConnectModule.cs(40,49): error CS0123: No overload for 'OnClientError' matches delegate 'Action<TransportError, string>'
    6)Assets\Mirror\Runtime\Transport\LRM\LRMDirectConnectModule.cs(68,45): error CS0234: The type or namespace name 'KcpTransport' does not exist in the namespace 'kcp2k' (are you missing an assembly reference?)
    7)Assets\Mirror\Runtime\Transport\LRM\LRMTransport\LightReflectiveMirrorTransport.cs(53,53): error CS1593: Delegate 'Action<TransportError, string>' does not take 1 arguments
    8)Assets\Mirror\Runtime\Transport\LRM\LRMDirectConnectModule.cs(78,45): error CS0234: The type or namespace name 'KcpTransport' does not exist in the namespace 'kcp2k' (are you missing an assembly reference?)
    9)Assets\Mirror\Runtime\Transport\LRM\LRMDirectConnectModule.cs(88,48): error CS0234: The type or namespace name 'KcpTransport' does not exist in the namespace 'kcp2k' (are you missing an assembly reference?)
    10)Assets\Mirror\Runtime\Transport\LRM\Editor\LRMInspector.cs(180,64): error CS0246: The type or namespace name 'KcpTransport' could not be found (are you missing a using directive or an assembly reference?)
    11)Assets\Mirror\Runtime\Transport\LRM\Editor\LRMInspector.cs(258,74): error CS0246: The type or namespace name 'KcpTransport' could not be found (are you missing a using directive or an assembly reference?)
    12)Assets\Mirror\Runtime\Transport\LRM\LRMTransport\LightReflectiveMirrorTransport.cs(328,44): error CS0246: The type or namespace name 'KcpTransport' could not be found (are you missing a using directive or an assembly reference?)
    13)Assets\Mirror\Runtime\Transport\LRM\LRMTransport\LightReflectiveMirrorTransport.cs(331,44): error CS0246: The type or namespace name 'TelepathyTransport' could not be found (are you missing a using directive or an assembly reference?)
    14)Assets\Mirror\Runtime\Transport\LRM\LRMTransport\LightReflectiveMirrorTransport.cs(334,44): error CS0246: The type or namespace name 'SimpleWebTransport' could not be found (are you missing a using directive or an assembly reference?)
     
  2. TomiSSJ2

    TomiSSJ2

    Joined:
    Feb 9, 2014
    Posts:
    1
    You are getting this error if your project uses Assembly definition files.

    In case of KcpTransport it is placed at Assets/Mirror/Transports/KPC. But the assembly definition file is placed here in the kcp2k folder so KcpTransport won't be part of the kcp2k assembly definition. A simple workaround for this is moving the KcpTransport.cs to the kcp2k folder. Hopefully it won't break anything.

    You can do the same for TelepathyTransport and SimpleWebTransport. Just find the corresponding assembly definition file and place move the classes there.
     
    Last edited: Apr 4, 2024