Update #15: Multiplayer Connections

Discussion in 'Announcements' started by Avernium, Oct 1, 2015.

  1. Avernium

    Avernium Member Staff Member

    Messages:
    81
    Likes Received:
    78
    Trophy Points:
    18
    Hello everyone!

    Last month, we explored unit behavior--how units move, attack, and cast abilities when battling. With last month's progress, the engine is now able to simulate full battles, with many different types of units.

    The pathfinding system is still in development, as it is a considerable challenge to simulate dozens of units in motion for 8 players. We're making steady progress, and aim to complete it in October. After the pathfinding system is completed, we'll be just about ready to show off gameplay.

    This month we'd like to share some information on the improved Legion TD 2 multiplayer experience. In the original Legion TD, if one player is lagging, the others must wait for him. You've all seen the dreaded "Waiting for players..." before. This happens when one player has a slow connection.

    Legion TD Multiplayer


    In the original Legion TD, all players must be updated (color green) in order for the game to advance.
    • If any player is not yet green, the game must wait for that player. Otherwise, players will be out of sync, and this causes errors. (desync)
    • Usually, the game only needs to wait a short time, and nobody notices this.
    • But if someone is lagging, everyone must wait for that player. In the example above, everyone must wait for Player 4.
    Legion TD 2 Multiplayer


    In Legion TD 2, each player's game will constantly sync itself with the server, rather than syncing with all the other players. The server is always up-to-date, and the players are always catching up.
    • This means, players do not have to wait for player 4, even if he is lagging.
    • Player 4's game will "fast-forward" to catch up to everyone else.
    • Because players sync with the server, rather than each other, this also means that a disconnected player can reconnect to the game.
    • This requires more network bandwidth than the previous multiplayer mode, but connections are advanced enough now (compared to back in 2002 when Warcraft 3 came out), that this is an acceptable cost.
    • This is how modern games like League of Legends and Dota 2 handle multiplayer.
    As mentioned above, next month we'll continue building the pathfinding system. We'll also be starting work on gameplay logic like levels, resources, income, and summons. Work on creating and polishing more visual effects like projectiles, spell effects, and other eye candy will be continuing as well. We're thrilled with how the game is shaping up visually and can't wait to show you more as the remaining pieces come together!
     
    Popper and Soul Eater like this.
  2. Guennter

    Guennter Member

    Messages:
    255
    Likes Received:
    51
    Trophy Points:
    28
    All hail the the fast bandwidth!!!
    Is there still a pause for all players if somebody isnt synchronizing with server for (e.g.) more then 5seconds? Then it would be nice if game freezes for all, and the player gets some time (like a minute or smth) to reconnect.
    If a player wouldnt be able to build for 1 wave cause of some sudden dc, that would be quite bad :)

    As always: Looking forward to play the game! :D
     
  3. Soul Eater

    Soul Eater Member

    Messages:
    66
    Likes Received:
    14
    Trophy Points:
    8
    Really nice example, now i understand how server-client-system is working (i'm going in the technology class, we are programming in Java using this Systems). Ty mates :D
     
    Lisk likes this.
  4. dragonslayer

    dragonslayer Member

    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Ooh nice, at least now u can reconnect. Keep up the good and awesome work
     
  5. Norn

    Norn Member

    Messages:
    54
    Likes Received:
    8
    Trophy Points:
    8
    Hello , but when 1 player leave( and then reconnect) the game other will lose because enemys send more income and all this income will be go for 3 players .Player who returned cant build towers and will leak all lvls.

    Or you will use computers ( when players leave)?to save towers +gold+income ?
     
  6. Lisk

    Lisk Director Staff Member

    Messages:
    304
    Likes Received:
    135
    Trophy Points:
    43
    @Norn

    In LTD2, when a player leaves, his lane will still spawn enemies. It should be a disadvantage to the team if someone on the team leaves.

    An idea is to allow shared control of the leaver's units, to allow teammates to build/summon for the leaver while he is gone. However, it's still something to be discussed, since we need to make sure that can't be abused.
     
  7. Norn

    Norn Member

    Messages:
    54
    Likes Received:
    8
    Trophy Points:
    8
    yup ,abused and in start ( unskill) players will troll sell towers its like when noobs control.I thin if you use strong ( smart) computers will be good
     
  8. Slooowbrooo

    Slooowbrooo Member

    Messages:
    16
    Likes Received:
    4
    Trophy Points:
    3
    Maybe ther is a possibility to give control to the most experienced player. There is a measure system anyways therefore you can most likely ensur.e that "good" players won't abuse because they want to win and keep playing instead of trolling
     
  9. Guennter

    Guennter Member

    Messages:
    255
    Likes Received:
    51
    Trophy Points:
    28
    Thats the problem. Good players could try to make unexperienced leave by flaming them, cause they think they have better winchance, if they control 2 lanes, then if they control 1 lane, and a newbie controls the other.
     
  10. Lisk

    Lisk Director Staff Member

    Messages:
    304
    Likes Received:
    135
    Trophy Points:
    43
    Yes; we want to encourage people to help their teammates by giving them advice, not flaming them.

    What's cool about Legion TD, is that it's very possible to help your teammates by telling them why they should build something or summon something. This is different from other games like LoL or CS:GO where it's hard to teach someone to "aim better" or "don't die" while you're playing. By encouraging helping teammates, and by having gameplay that makes it easier to help people, I think another way Legion may distinguish itself is by having a friendlier community on average compared to other competitive games.
     
  11. Norn

    Norn Member

    Messages:
    54
    Likes Received:
    8
    Trophy Points:
    8

    In LTD2 will be possible to transfer resources?
    In LTD2 you can use the microphone for help/conversations teammates?
     
  12. Lisk

    Lisk Director Staff Member

    Messages:
    304
    Likes Received:
    135
    Trophy Points:
    43
    In LTD2 will be possible to transfer resources?
    Nope.

    In LTD2 you can use the microphone for help/conversations teammates?
    Not something we'll be directly implementing, but you can always do it via other programs, or Steam chatrooms.