"LookAhead" Interior Camera 2.3

Never drive into your blind spot anymore

  1. Neo
    The mod adds a new camera mode to the game. You can switch to it like any other camera mode.

    What does the mod do?
    It automatically looks into the curve in dependency to your steering input. And if you drive backwards it looks automatically back. You can also adjust the "looking"-sensitivity with a custom settings app.

    It is adviced to reload the "GameEngine Lua" with the key combination "Ctrl+L" after installation.

    If you encounter any bugs, let me know in the discussion thread related to the mod.



    Update 1.1:
    You can now change the sensitivity of the camera by using in the gameplay options the "transition time" slider at the camera settings. -future me: "old"
    View attachment 307613


    Update 1.4:
    After you changed the settings press numpad 5 to reload the camera and load the settings!


    Update 1.5:
    I adjusted the lookahead sensitivity in dependent to the speed of the car. Thanks @lord_of_the_wolves for the suggestion.
    I created with this graph visualiser a graph:
    lookaheadgeschwindigkeit_vs_sichtsensibilitt.png
    On the y-axis is the sensitivity and on the x-axis is the car speed in kmh.

    Update 1.6:
    With this update the camera also works with the automation cars.

    Update 1.7:
    Changed UI-App thumbnail, fixed bug in recent version and removed leaning out of the window function.

    Update 1.8:
    added a new cam called "driveAhead" which uses the new internal camera script

    Update 1.9:
    Updated to the new Version 0.15

    Update 1.9.1:
    The camera script gets loaded from the core_camera module, but apparently the core_modloader is loading the mod after the core_camera modules was initialised and thats to late. I build a workaround with a UI app. In order to work you must add the "fixModdedCamerasNotLoading"-app to your UI. (see Update 2.2) The app can also be uses by other developers. It simply triggers a reinitilisation of the core_camera module.

    Update 1.10:
    Fixed an error with a nil value calculation. Added the functionality to disable ui-apps via the native "Hide in cockpit" checkbox. Also fixed a typo in a debug message. The settings app also features a checkbox to disable the reverse look feature.
    Unbenannt1.png

    Update 1.11:
    Fixed settings were not saved. The settings now work on the fly.
    Also added a look back function which works with the default binding.

    Update 1.12:
    Refactored the code for ~20% performance increase. Added a deprecation warning to old camera.

    Update 2.0:
    - switched from unsupported serialization functions to json coder functions
    - removed old "lookAhead" camera

    Update 2.1:
    Fixed bug which breaks the game

    Update 2.2:
    Fixed bug which breaks the game (again). Unfortunately my workaround from update 1.9.1 no longer works, because a reload of the camera module triggers an error. As a quick fix I removed the "fixModdedCamerasNotLoading"-app and added a new button to the camera settings app called "init cam".
    Unbenannt9.png

    Update 2.3:
    Good news, the game devs fixed the camera loading and activation logic of custom camera modes. Therefore it is now obsolete to use the "init cam" button. I left it in for now for feature releases :)
    Also fixed the ui app.

    Credits:
    BeamNG Team (especially meywue) - 93% of the code and advise
    Me - everything that's left ^^

Recent Reviews

  1. Meccanizer
    Meccanizer
    5/5,
    Version: 2.3
    For anyone wondering, the newest update fixes all the previous annoyances(breaking when swapping vehicles/loading new levels and having to reload the lua everytime you first spawn in)
  2. F/Slick
    F/Slick
    5/5,
    Version: 2.2
    I'm giving it five stars and also trying to provide an answer to Mopar fan (three reviews below mine).
    You can customise the settings (which Neo admittedly set between reasonable boundaries) to your own liking.
    First, unpack the mod. Go to Users\YourUsername\AppData\Local\BeamNG.drive\0.22\mods\repo and unzip the lookahead file. You will obtain three folders. Move these to a new folder ...\mods\unpacked\lookahead and delete the original zip file.
    Now, go into the ui folder and open the JavaScript file with the Notepad or any other text editor. Here, you want to change the Linearity range. Replace this bit
    input type="range" min="750" max="1750"
    with this one
    input type="range" min="10" max="1000"
    and save the changes.
    You can now try with different combinations of Sensitivity (mine is set to 0.02) and Linearity (mine is set to 10). Beware, this a truly extreme setting and needs some time to get used to, but it comes very handy at tight hairpins like La Source in Spa or Wehrseifen and Adenauer Forst in the Nuerburgring Nordschleife.
  3. SXstatic
    SXstatic
    4/5,
    Version: 2.2
    Hey! Do you think you'd be able to fix the sensitivity setting?
    When I set transition time to maximum, it does not change anything within the camera.
    But even without, so far this is my favorite mod!
    I would appreciate it so much if you could maaaybe look into it, or give me a solution to it?
  4. Miles Lastname
    Miles Lastname
    3/5,
    Version: 2.2
    Its great other then the issue you cant switch vehicles, it just will not work, and god forbid you try to load in another map after you use it, you game will crash.
  5. Mopar fan
    Mopar fan
    4/5,
    Version: 2.2
    Fantastic mod but I would like there to be a way to adjust the dead zone. For me, the regular dead zone is a bit too large.
  6. DaddelZeit
    DaddelZeit
    5/5,
    Version: 2.2
    I'm back to give more 5 star ratings
  7. hey_big
    hey_big
    5/5,
    Version: 2.1
    must have for steering wheel users
  8. Rednasz
    Rednasz
    4/5,
    Version: 2.1
    good mod but it crashes the game for me after the 0.20 update :/
    1. Neo
      Author's Response
      Use the thread in forum for bug reporting, please. Don't forget to provide a detailed explanation and screenshots. Thanks
  9. DaddelZeit
    DaddelZeit
    5/5,
    Version: 2.1
    Thank you!
    1. Neo
      Author's Response
      You´re welcome
  10. waboll
    waboll
    5/5,
    Version: 2.1
    thanks for updating one of my fav mods :)
    1. Neo
      Author's Response
      You´re welcome
  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