WIP BeamNG.drive Multiplayer (BeamNG-MP) (Formally "Local Multiplayer (Lua based)")

Discussion in 'Programming' started by [YTGN] | Titch2000, Jun 18, 2019.

  1. hubert2005 kam

    hubert2005 kam
    Expand Collapse

    Joined:
    Jan 27, 2018
    Messages:
    92
    how for are you done with this project will you be finishsed this year
    --- Post updated ---
    cant wait untill this is releases everyone said its impossible
    --- Post updated ---
    will you be able to crash into each other
     
    • Informative Informative x 2
  2. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    In theory there is no reason other than synchronisation related issues that you should not be able to have the ability to crash into each other. Though this will be VERY dependant on your internet speeds and your computers performance. As for player counts, technically there is no limit because at its core it runs from a web server and web sockets. however each players computers performance will be the bottleneck from what I can see at the moment.

    Thank you for the support though all of you. I do hope that i can prove that this is possible even if performance might be low to start with it still shows that it can be done.

    For anyone interested in how this is working you are more than welcome to take a look at the GitHub repository where you can contribute too if you feel you can.
    Briefly explained:
    A player hosts the session.
    Player 2 joins the session.
    The map is confirmed to be the same. Then pause all clients
    We synchronise the vehicles.
    Then we un-pause.
    To keep the vehicles synced what we do is we take the steering, break, clutch, throttle, locations and rotations and then package these up for network sending.
    Once on the other clients we unpack the message, and update the vehicle accordingly. In the future i plan to use the location of the vehicles to be the 2nd layer of synchronisation instead of the updated throttle and steering.

    I hope this helps anyone to understand how this works. :)
    --- Post updated ---
    Hello, sorry I missed your message. It had run over into another page. Now you get a post that just reply's to you. :)

    Will i be finished this year? Yes i very well intend on being done before the end of august depending on what walls might pop up along the way.

    Cant wait until* this is releases everyone said its impossible. Thank you, I can't wait either. Me and my brother have wanted to do this since we first encountered the game.

    Will you be able to crash into each other. Technically yes there is nothing to stop you. However there are two factors that might mean you would prefer to keep simple collisions turned on:
    1. Your computers performance.
    2. Vehicle synchronisation issues associated with it crashing on one client and not another.
     
    • Like Like x 6
    • Informative Informative x 2
  3. Nicholes Dorey

    Nicholes Dorey
    Expand Collapse

    Joined:
    Oct 24, 2016
    Messages:
    42
    First. [YTGN] | Titch2000 this is an amazing mod love it keep up the good work:D:D:D

    Second a suggestion. Devs pay close attention to this mod. it could change things in very good way especially were this is possible and make the guy a Dev :D:D:D

    Third a question for [YTGN] | Titch2000 what happens if your the person you joined, and got tired of the car your using, what would happen if you changed vehicle mid play or if host and you wanted to change your car?, would you have to rejoin pause the game until the car changed?, what would happen or how would that work? thanks and keep up the good work dude:):):)
     
  4. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Firstly thank you!
    As for car changing at the moment non of that is intentionally handled however could be possible. At the moment this is still very early stages but anything is possible with enough time, patience and attention.
     
    • Like Like x 1
  5. mansenilsson

    mansenilsson
    Expand Collapse

    Joined:
    Dec 12, 2016
    Messages:
    533
    This sounds so cool from what i have read so far! Good luck!
     
    • Like Like x 1
  6. Nicholes Dorey

    Nicholes Dorey
    Expand Collapse

    Joined:
    Oct 24, 2016
    Messages:
    42


    keep up the good work:):)
     
  7. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Thank you. The current state of the project is that vehicles are now visible on both of my clients, they move, brake and turn. But they quickly become de-synchronised. So that is what i am doing now.
     
    • Like Like x 2
    • Informative Informative x 2
  8. Nicholes Dorey

    Nicholes Dorey
    Expand Collapse

    Joined:
    Oct 24, 2016
    Messages:
    42
  9. Sh3lbYe

    Sh3lbYe
    Expand Collapse

    Joined:
    Jan 26, 2013
    Messages:
    204
    Even though crashing into each would be cool, im more interested in the fact that races and drift trains could be done, even if the player dont collide (like ghosts) that would be good on the performance department i think.

    Wish the best of luck to the project, looking foward to updates!
     
    • Agree Agree x 4
  10. fivedollarlamp

    fivedollarlamp
    Expand Collapse

    Joined:
    Sep 18, 2016
    Messages:
    3,144
    Three years ago, we said that both multiplayer and dirt driving sounds would be impossible or so hard to implement- look where we are today! ;)
     
    • Agree Agree x 3
  11. EruptionTyphlosion

    EruptionTyphlosion
    Expand Collapse

    Joined:
    Sep 24, 2016
    Messages:
    2,927
    Will horns, sirens, and lights sync between players?

    Also, would day/night sync?
    --- Post updated ---
    Also, would license plates and text sync?
     
    • Agree Agree x 3
  12. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Yes every aspect is going to be attempted to be done, this includes plates, lights, sounds so on so forth. The limit really is what the game and the engine can handle.
     
    • Like Like x 4
  13. ImadPotato

    ImadPotato
    Expand Collapse

    Joined:
    Oct 27, 2015
    Messages:
    87
    if beamng doesnt hire you after this...
     
    • Agree Agree x 1
  14. blueeyiz702

    blueeyiz702
    Expand Collapse

    Joined:
    Jun 17, 2019
    Messages:
    4
    Bugbear Entertainment/ THQ Nordic, your in trouble if this gets off the ground and rolling.I think having a multi player game like Wreckfest but with the soft body physics Beamng.Drive has it would be
    Sic to think of the mods cars and track that could be produced similar to Wreckfests.And amount of damage you could inflict on your opponents in game.
     
    • Agree Agree x 1
  15. Cool12345

    Cool12345
    Expand Collapse

    Joined:
    May 2, 2019
    Messages:
    160
    nice! Can't wait ti'll it's done!
     
  16. Dashcam_crasher

    Dashcam_crasher
    Expand Collapse

    Joined:
    Jun 7, 2017
    Messages:
    201
    Look's promising, keep up the good work! :)
     
  17. hubert2005 kam

    hubert2005 kam
    Expand Collapse

    Joined:
    Jan 27, 2018
    Messages:
    92
    whats the progress of this
     
  18. _Tanco

    _Tanco
    Expand Collapse

    Joined:
    Jan 7, 2017
    Messages:
    247
    I saw this video recently
    And i think that's Titch2000 who posted this.
     
    • Informative Informative x 3
    • Like Like x 1
  19. Cooldriver10

    Cooldriver10
    Expand Collapse

    Joined:
    Feb 22, 2017
    Messages:
    1,898
    Well... its lagging but process... I think...
     
  20. CN877

    CN877
    Expand Collapse

    Joined:
    Jun 27, 2017
    Messages:
    1,465
    Well its obviously a very heavy work in progress :p

    The important thing is the basics are working.
     
    • Agree Agree x 5
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice