Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

FPSSample - reduced to just Chat - Problem with recieving events

Discussion in 'FPS.Sample Game' started by Enzi, Oct 26, 2018.

  1. Enzi


    Jan 28, 2013
    Hello everyone!

    I tried to reduce the FPSSample to the bare minimum but I'm having problems recieving events or more precise the chat events.

    Connecting from client to server works.
    Server has a proper list of clients and recieves chat events and sends them to the connected clients.
    Clients never recieve it though and I'm just getting OnData with 7-8 byte packages but never any with a chat msg.
    I thought there was some channel thingy going on but I'm not seeing it why the messages are never recieved.

    I guess I'm something missing and if it's obvious for someone I'd appreciate to know what I'm doing wrong.
    In this build I also have another bug that was working before, that clients can't send their name anymore. It's empty and it has something to do with adding the PlayerSystems that I haven't added before.
    I can't pinpoint the cause of this either.

    To test the build.
    On one of the instances, open console with F1 and type 'serve' and/or 'client'
    Sending broadcasts works on server with just command 'c'.
    On client, pressing enter opens the chat window.

    Thanks and greetings,
    keeponshading likes this.