Search Unity

[error] host id out of bound id {255} max id should be greater than 0 and less than {1}

Discussion in 'Netcode for GameObjects' started by ulralra_unity, Mar 15, 2022.

  1. ulralra_unity

    ulralra_unity

    Joined:
    Apr 9, 2021
    Posts:
    9
    unity : unity 2021.1.15f1
    package : com.unity.netcode.gameobjects@1.0.0-pre.6
    transport : UNetTransport
    MessageSendMode : Queued

    When accessing the server from the client, if you try to send data in queue mode, there will be an error unconditionally.
    As soon as I connected to host server, I have to send SendConnectionRequest(), but this is before LocalClientId is set up.
    So you need to initialize LocalClientId to 0, or check clientId == ulong.MaxValue in the GetUNetConnectionDetails function. Please fix the bug.
     
    Mako-Infused likes this.