Search Unity

Lots of Unet Bugs

Discussion in 'Linux' started by mischa2k, Sep 29, 2015.

  1. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Here is a list of UNet Bugs that I found so far:

    - [SyncVar] Inheritance: when using a abstract class Entity : NetworkBehaviour (which has a SyncVar) and one that inherits from it like Player : Entity, the Entity's SyncVar won't sync to the client if Player also has a SyncVar (which is a big problem when doing any kind of complex multiplayer game). Very simple project files that show the bug can be found here: http://noobtuts.com/_projects/syncvar_inheritance_bug.zip (open the scene, build the game and run one as host and one as client. It will show different values for the 'test' SyncVar)
    Note: this bug does not happen in the latest Unity build for Windows, so perhaps it's not Linux related.

    - NetworkTransform: synchronizing via Rigidbody option adds a huge lag (about 10 seconds) before the movement is synchronized on the client.
    Note: didn't test this on Windows with latest Unity version just yet.

    - InvokeCommand class [NetworkTransform] doesn't match [Player])
    UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
    happens randomly when running the server in the editor and connecting with a built client
    (apparrently fixed in latest version: http://forum.unity3d.com/threads/networkbehaviours-cannot-use-commands-from-parent-classes.322138/
    Note: this bug does not happen in the latest Unity build for Windows, so perhaps it's not Linux related.

    - SyncVar for Classes: using [SyncVar] for a self created class like Entity causes crashes on the client. Unity Docs say that only simple types work like int, string etc., but perhaps some kind of error would be better than a crash.

    My system: Ubuntu 14.04 64 Bit
     
    Last edited: Sep 29, 2015
    Miscellaneous likes this.
  2. Benproductions1

    Benproductions1

    Joined:
    May 11, 2011
    Posts:
    63
    I've noticed a lot of inconsistencies between the docs and the Linux build, but I don't think that's a problem with the Linux build and rather the version of Unity. The current version of the docs is 5.2.1, while the Linux build is 5.1.0
     
  3. Miscellaneous

    Miscellaneous

    Joined:
    Sep 24, 2013
    Posts:
    53
    Any news on when the next Unity-Editor for Linux will be released? any luck the releases will be in sync with Osx and Windows versions?

    As mentioned above, building/testing Linux servers with Unet should be less painless.
     
    Last edited: Oct 29, 2015
  4. voltage

    voltage

    Joined:
    Nov 11, 2011
    Posts:
    515
    Hey Vis2k, are you sure the SyncVars were patched? I'm having a similar issue today on Windows.

    http://forum.unity3d.com/threads/syncvars-are-unreliable.405761/
     
  5. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347