Search Unity

Compiling MasterServer on mac os x

Discussion in 'Multiplayer' started by tametick, Aug 29, 2014.

  1. tametick

    tametick

    Joined:
    Aug 29, 2014
    Posts:
    6
    Hi,
    I'm trying to compile MasterServer on my mac (10.9) and am getting the following errors:

    Any idea how to fix it?
     

    Attached Files:

  2. tametick

    tametick

    Joined:
    Aug 29, 2014
    Posts:
    6
  3. mangovaan

    mangovaan

    Joined:
    Jan 24, 2014
    Posts:
    1
    Add "this->" to all those calls with errors. For example: left_height = this->Height( current->left );
     
  4. haan

    haan

    Joined:
    Oct 20, 2014
    Posts:
    9
    I am getting the same error in Mavericks. How did you solve it?
     
  5. tametick

    tametick

    Joined:
    Aug 29, 2014
    Posts:
    6
    Same as mangovaan suggested, adding "this->' too all the error lines.
     
  6. haan

    haan

    Joined:
    Oct 20, 2014
    Posts:
    9
    thank you I'll try this.
     
  7. davidebarbieri

    davidebarbieri

    Joined:
    Feb 12, 2013
    Posts:
    21
    I suggest you to not use Unity's Master Server and find other solutions.
    It is bugged.

    UnregisterHost just doesn't work. I've to put an hack into the master server code to make it work
    (I can't modify client code because it is of course closed source).

    After getting a OnFailedToConnectToMasterServer the whole MasterServer class ceases to work (no futher calls will work).
    This could happen, for example, trying to request the host list 2 times when disconnected
    (clients, or worse, dedicated servers should be closed and reopened to work again).

    It is based on a version of Raknet with a bug on MTU discovery.
    If a player has a connection with a MTU less than 1492 (e.g. in a pppoE that has 1480
    or simply a router that uses 1480 as MTU) it simply doesn't work (the sendto function fails).