Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Are RPCs being sent later with 2.1?

Discussion in 'Multiplayer' started by nafonso, Aug 7, 2008.

  1. nafonso

    nafonso

    Joined:
    Aug 10, 2006
    Posts:
    377
    Hi,

    After Unity's update, the game I made with Unity 2.0.2, Netrix, stopped working on single player mode. After I poked it around a bit, it seems that the problem are RPCs that are called too early, before the SetSendingEnabled is set to true. I get this issue on RPCs that are called on Start, and maybe that is expected behaviour, if I put the code on OnNetworkLoadedLevel, everything works.

    The problem is that I'm not getting any errors. Probably this is expected behaviour for Network Debug Level = Off, but even if Network Debug Level is Informational or Full I get a blank entry on unity's console. The only way to get the error message is if I put the RPC call on a coroutine. If I do this, I get the error:
    I can make available my project for UT to test this bug, but the folder is quite big. If UT is interested, give me a PM.

    Best regards,
    Afonso