1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

How does the replay work?

Discussion in 'General Discussion' started by ThreeDTech21, Feb 10, 2017.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Just curios about how the replay system works, its awesome, it records the full replay and the file it produces is relatively small. I remember a lively discusion about a replay mode and how it would be super complex or just outright impossible to add, here: https://www.beamng.com/threads/instant-replay-w-video-editor.17281/ but here we have it. So how does it work
     
  2. BombBoy4

    BombBoy4
    Expand Collapse

    Joined:
    May 16, 2015
    Messages:
    1,601
    Press the red circle and drive around. It's very early wip, so you can't edit them or view them outside of the game.
    --- Post updated ---
    When finished, press the white square. It will automatically start playing.
     
  3. CreasingCurve

    CreasingCurve
    Expand Collapse

    Joined:
    Jan 19, 2016
    Messages:
    940
    He is asking how the replay system is stored and read by the game rather than how to use it @BombBoy4
     
    • Agree Agree x 4
  4. Ulrich

    Ulrich
    Expand Collapse

    Joined:
    Aug 15, 2013
    Messages:
    1,196
    I think it might work like the recovery button does. A mix between that and AI. But I seriously have no real ideas...
     
  5. DoomMunky

    DoomMunky
    Expand Collapse

    Joined:
    Feb 11, 2017
    Messages:
    2
    Here's a really cool article about how the Planetary Annihilation replay works. That's an MP game that has to get info to lots of different people as quickly as possible. So, basically, for any given moment, each client just needs to know if anything has changed for a given game object, and if it has, it updates it, and the player sees the change.

    BeamNG has a radically different foundation, so it definitely works in an entirely different way. But, hell, this is something interesting to discuss until a dev weighs in. :)
     
  6. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    1,901
    At the moment, we periodically store the visual and auditory state of the virtual world and of the screen.
    Then we apply many different compression algorithms on top, to reduce file size down to what you see, while trying to keep CPU usage low (so you can still play while recording).

    Input-based replay was considered but discarded due to some big drawbacks.
     
    • Informative Informative x 2
  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