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

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

  1. fReEsPiRiT94

    fReEsPiRiT94
    Expand Collapse

    Joined:
    Oct 2, 2019
    Messages:
    7
    Is this still under development or has it already been abandoned :p
    I would be very happy if you would share your source code so that other modders can try it out
     
  2. NistingurA

    NistingurA
    Expand Collapse

    Joined:
    Nov 22, 2013
    Messages:
    2,048
    His Github is linked in the very first post
     
  3. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    So progress update. Some of the people testing this have had varying results. As a result of this, I have been rewriting the server and client code. The server is now running separate to the game and we have found ways of playing over the internet now too with somewhat similar results to playing locally. (This means we can have dedicated servers, and yes we already have a dedicated development testing server :p)

    "So is it done?" No. However i would kindly like to ask you to remain patient and remember that i have my own life going on too. To put things into perspective i have just begun my masters at university and i also have 2 jobs + my own home so time for me can be sparse.

    "Are you giving up with this?" Hell no!
    The results we have this far are too promising to give up. So yes i am still working on this just i cannot do so at the same pace as i was before.

    "When can we expect the next update or maybe an early release?" The project is publicly available on github so you are welcome to test it at any time, just do not expect it to work necessarily as i push to it when i change device some times. When i have the project at a stage that i am happy with for an early "release" trust me in that you will know about it!

    "Is this project abandoned?" No, as i mentioned above i am very busy unfortunately however the project is available on github so feel free to make a pr and feel great for being part of a team to make this happen!

    "I have a question" Please do comment back then and ask :) or contact me on discord.
     
    • Like Like x 21
    • Agree Agree x 1
    • Informative Informative x 1
  4. Cool guy 66

    Cool guy 66
    Expand Collapse

    Joined:
    Jan 15, 2017
    Messages:
    57
    Hope fully you succeed dude...i want to look at the people who thought that multiplayer for beamng is IMPOSSIBLE...GOD BLESS YOU DUDE!
     
    • Like Like x 1
  5. supercharge71

    supercharge71
    Expand Collapse

    Joined:
    Jan 14, 2017
    Messages:
    247
    You need to seriously start some kind of patreon, I would gladly toss a couple of dollars your way to help with development! Maybe you could raise some funds and get some extra help. Just a thought, thank you though for still working on this. You're truly doing the "impossible".
     
    • Like Like x 2
    • Agree Agree x 1
  6. bluehawk360

    bluehawk360
    Expand Collapse

    Joined:
    Sep 28, 2014
    Messages:
    199
    Is it possible for me to get you added on discord. I'm trying to setup a session but I don't see any "host" button and I would like to do some testing as well as create a discord server possibly to allow those with high speed internet be the primary hosts for servers.

    *Edit
    I was able to find the way to host, but I can't connect to the server
     
  7. bluehawk360

    bluehawk360
    Expand Collapse

    Joined:
    Sep 28, 2014
    Messages:
    199
    To anybody who's interested in Peer to Peer multiplayer hosting, Join my discord server. Once I figure out how to get hosting to work properly, we can have people with the highest speed internet be dedicated to hosting giving all players the lowest latency.
    https://discord.gg/Vw6yqTV
     
    • Like Like x 1
  8. bluehawk360

    bluehawk360
    Expand Collapse

    Joined:
    Sep 28, 2014
    Messages:
    199
    I also have an idea on how to get vehicles to be more accurately positioned and moved during gameplay.

    When determining the vehicle's position, track the steering angle, each individual wheel speed, and the overall velocity. Also less frequently, you can take the vehicle's exact location and use this to help keep inconsistent data between clients.

    I know not all of this may be possible due to engine and accessibility limitations, but this may help overall performance and accuracy
     
  9. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Hello @bluehawk360 Sorry I have been away with family for christmas and new year.

    Yes of course you can add me on discord my discord is: Titch#1689
    I do already have a discord for this where i want to operate all this from if that is okay.
    The link for my early access server is: discord.gg/4VWgTJ2

    @supercharge71 Thank you for your enthusiasm in the project. Maybe we might make something like this in the future but for now i would rather get out an early access version first before looking to do anything like that.
     
    #109 [YTGN] | Titch2000, Jan 2, 2020
    Last edited: Jan 2, 2020
    • Like Like x 3
  10. CarCrasher283

    CarCrasher283
    Expand Collapse

    Joined:
    Dec 14, 2017
    Messages:
    115
    This is looking really great so far! I was beginning to think that multiplayer in BeamNG wouldn't happen, but this is proving me wrong. And I cant wait to see what this could mean for the future of BeamNG, maybe sometime in the future, the devs will make a global multiplayer that was based off of this mod!
     
    • Agree Agree x 1
  11. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    954
    Any chance of splitscreen? That would make multiplayer possible in one computer without fast internet connection.
     
  12. jojos38

    jojos38
    Expand Collapse

    Joined:
    Oct 22, 2013
    Messages:
    816
    probably not (any chance)
     
    • Agree Agree x 1
  13. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,513
    That and the discussed inherent difficulty of getting multiple cameras to run in just one game instance.... at the moment the easiest way is to just run 2 different game instances on the same computer... so ironically Networked multiplayer seems to be easier and more feasible than split screen multiplayer which is weird and kinda funny at the same time if you think about it...
     
    • Agree Agree x 3
  14. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Good morning everyone,

    Well i know many of you have been patiently waiting (in the case for some of you as i keep being reminded, years), I have been very hard at work for many hours at a time as those of you in the discord can see and I am now ready to tell you that there is an extremely early version of this available. This will be available from the releases tab on GitHub later today. Now please keep in mind that this is an extremely early version there ARE issues and bugs which i am working my way though including but not limited to: "lag" like jumping (not actually lag), No node synchronisation (yet :p its in progress), random crashes, random vehicles not working, random timeouts and just general issues associated with these things. Now i have many more updates to do to this project and I am basically working on this daily where i can now, but that does not stop it taking a long while. I recommend joining the official discord server I created so you can be kept in the loop more: https://discord.gg/4VWgTJ2 Documentation is underway for this on the github repositories so that it hopefully helps you all more and then we have a ticket bot in the discord though there are a few members in the discord who seem to be more than happy to help people where they can.

    This is not really a release just yet but i felt you might want to know that it is still being done and large strides are being taken every day or so.
    Kind regards and thank you for your patience.

    Titch
     
    • Like Like x 17
    • Informative Informative x 3
  15. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,622
    Is getting a 2nd camera in game hard?
    Now im not talking about a literal split screen right now.
    What im asking, if someone wanted a rear view camera for their etk 800 and wanted to implement a camera ui app or just make it built in the dash lcd, would that even be possible?
    "gonna speculate we can somehow implement a rearview camera ui app"
    If we could, would it be possible to have a ui control the cameras? we can already customize the ui at our taste, we could have the splitscreen split horizontally or vertically if we wanted. id think it would maybe need a new "gamemode" for setting up the ui stuff maybe.
    i honestly dont know im obviously not someone who ocdes n shit. this is quite complex stuff as im aware of. im just speculating for fun.

    Im quite hyped up for this mp project nonetheless.
     
  16. jojos38

    jojos38
    Expand Collapse

    Joined:
    Oct 22, 2013
    Messages:
    816
    Tbh I don't know either if it is possible, but the devs say it is not are very hard to do
     
  17. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Since I seem to be getting quite a few messages regarding this, the MP mod can be downloaded from the Github https://github.com/Starystars67/BeamNG-MP/ To play mp on the internet you will need the bridge too which can be downloaded from: https://github.com/Starystars67/BeamNG-MP-Bridge/releases

    PLEASE KEEP IN MIND THIS IS STILL VERY EARLY STAGES, FEATURES AND THE WAY THINGS WORK MAY AND ARE LIKELY TO CHANGE! IF YOU DO NOT ACCEPT THIS FACT THEN DO NOT PLAY / USE THIS MOD UNTIL IT IS ON THE MODS REPOSITORY!
     
    • Like Like x 5
    • Informative Informative x 1
  18. fReEsPiRiT94

    fReEsPiRiT94
    Expand Collapse

    Joined:
    Oct 2, 2019
    Messages:
    7
    Everyone test it?
     
  19. [YTGN] | Titch2000

    [YTGN] | Titch2000
    Expand Collapse

    Joined:
    Jun 16, 2019
    Messages:
    57
    Hey guys, I am thinking of doing a stream next week on the development of this, Maybe monday? It gives you a chance to see the state of the mod, see it being made and gives you a chance to ask questions too.


    I took a very quick look at the way the cameras work in the game. Im not seeing much that could make this work but i suppose if it is a html canvas maybe then i cant see why it cannot be possible. Either way i might look into this in more depth at a later date.

    There are several people testing this on a daily basis at the moment, so yes people are testing it out.
     
    • Like Like x 6
  20. hubert2005 kam

    hubert2005 kam
    Expand Collapse

    Joined:
    Jan 27, 2018
    Messages:
    68
    im getting this error message why is this


    [Window Title]
    Error

    [Main Instruction]
    A JavaScript error occurred in the main process

    [Content]
    Uncaught Exception:
    Error [ERR_SERVER_ALREADY_LISTEN]: Listen method has been called more than once without closing.
    at Server.listen (net.js:1312:11)
    at Start (C:\Users\jammj\AppData\Local\Temp\Rar$EXa11560.6518\BeamNG-MP Bridge-win32-x64\resources\app.asar\main.js:164:13)
    at EventEmitter.<anonymous> (C:\Users\jammj\AppData\Local\Temp\Rar$EXa11560.6518\BeamNG-MP Bridge-win32-x64\resources\app.asar\main.js:142:5)
    at EventEmitter.emit (events.js:200:13)
    at WebContents.<anonymous> (C:\Users\jammj\AppData\Local\Temp\Rar$EXa11560.6518\BeamNG-MP Bridge-win32-x64\resources\electron.asar\browser\api\web-contents.js:335:21)
    at WebContents.emit (events.js:200:13)

    [OK]
     
  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