Unity Community

Register or Sign In:

+ Reply to Thread
Results 1 to 14 of 14

  1. Location
    Sweden
    Posts
    724

    [Submitting] Lidgren Authoritative Networking Example

    Lidgren Authoritative Networking Example

    This is a complete example project that implements an authorative server with the excellent lidgren networking library. This download only contains code and there is no documentation, if it's popular enough I will expand on it and write proper documentation.

    The project implements the following techniques:
    1. Authorative server that has control over movement, actions, etc.
    2. Client input prediction which allows the local player to move instantly and not wait for the server
    3. Entity smoothing which makes the movement of remote objects smooth and nice on non-local clients
    4. Lag compensation which allows the server to rewind player position and compensate for client lag when doing hit calculations

    Edit: Note that the current implementation does not do extrapolation in the the event of dropped packages so the clients will "skip" when this happens.


    The code is as bare-bone as possible and no other calculations then necessary to demonstrate the techniques are done.

    The two main resources used when building this were:

    Forum download link: Removed
    External download link: Removed

    Example of a server with two clients running:



  2. Posts
    1,947
    oh nice, i will have a look later.
    Thanks


  3. Posts
    68
    Oh wow, this is awesome, thanks a lot for this!


  4. Posts
    28
    good ,the most good thing i find for mmo,
    this can be better than photon and smartfox, though there many part can't be the same leve with this two softwart.
    when i get this soft ware from google , i find it so good for the beginner , very easy to use ,and the idear of the programming is not so complex as photon,
    perhap there are many area should be extend of the lidgren when we want to make mmo . but that must be the best choice for the beginner who want to make mmo with unity .


  5. Location
    Italy
    Posts
    253
    Wooow! Thanks so much
    Unity 3D C# Programmer.
    Character Toolkit : v1 - v1.1 - v2
    Current Project [WIP] - Warline

    Infinity Games
    [Indie Team]
    Twitter


  6. Location
    The sunken city of R'lyeh
    Posts
    2,061
    A bump for a worthy effort. Make sure to put it on the wiki.

    Certainly a benefit to the community. The more networking libraries the better!
    Public searchable bug tracker - Vote here
    ulonglong bitfield based tags - Vote here


  7. Location
    Belarus
    Posts
    696


  8. Posts
    1,947
    Yep, i'm working my way through the code step by step and it's a realy good example.


  9. Posts
    12
    Does the client's framerate slow down significantly as time passes for everyone? It takes about 10 minutes to go from 130 to 40 and another 10 to go to 15. Restarting it resets it.


  10. Location
    Sweden
    Posts
    724
    doeko: Was a while since I wrote this code, but I have not experienced any problems like this.

  11. Cin Cin is offline

    Posts
    1
    Hi, I would like to thank you for putting this together. This is a great platform for an FPS. I am still relatively new to networking, especially time sensative fps style networking. I would like to + 1 for request for either video tutorial(prefered) or documentation, explaining the program flow and why you did it how you did. Perhaps implementing portions at a time. Basic client / server connection > Message Handling Types > Actor management > etc.. also it would be awesome to see implementation of instant hit bullets.


  12. Location
    Sweden
    Posts
    724
    Cin: I have developed another server framework called SlimNet over the past couple of months, it will go into open beta/alpha testing today and will be free until it's done.


  13. Posts
    1
    I'm new to unity and this tutorial is really helping me to understand how to work with the unity engine.
    I have one question though, when I shut off the server, the client can move for a few seconds, then it teleports my local client back to the spot I was at when I shutdown the server.

    How does it know to do this?

    Thank you for the tutorial!


  14. Location
    Canada
    Posts
    47
    Fantastic. Thank you for sharing with us. Will look into it ASAP.