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.

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