1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

New BeamNG.drive Documentation

Discussion in 'General Discussion' started by Leeloo, Mar 29, 2021.

  1. Car8john

    Car8john
    Expand Collapse

    Joined:
    May 12, 2016
    Messages:
    6,394
    My offer for redoing the Wiki/Documentation still stands....
     
    • Like Like x 5
  2. Doge_guy

    Doge_guy
    Expand Collapse

    Joined:
    Jul 13, 2021
    Messages:
    198
    please please please write a section for "Vehicle Modeling Guidelines" called something for fixing the NO MATERIAL issue after exporting collada; I did everything in the right order but ingame the model still appears without material (I haven't edited any names or codes or material.json)
     
    • Agree Agree x 5
  3. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,543
    We could do with a powertrain page on the documentation. It looks like it's been "TODO" since 2021.
    Powertrain (beamng.com) (documentation)
    Powertrain - BeamNG (wiki)

    The wiki resource is quite good really. I feel like almost a straight copy/paste would suffice.
     
    • Agree Agree x 3
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,350
    Not really, the wiki is outdated in some critical areas and it would be misleading.
     
    • Agree Agree x 4
    • Like Like x 1
  5. trekko727

    trekko727
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    233
    yeah I had to read the scripts in the beamng folders itself to grab something out.
    one of the things that has been rewritten over like 4 updates was the graphical settings dump, the rest however are mostly intact.
     
  6. emlodnaor

    emlodnaor
    Expand Collapse

    Joined:
    Apr 24, 2022
    Messages:
    11
    Would it be possible to get a full list of all available lua functions? don't even need examples and so on at first, just a full list of what's available, trying to get into it and spending most of my time searching the web for answers to find the correct name of a function, today I'm still looking for the code to spawn a new vehicle...
     
    • Agree Agree x 4
  7. Preston Elam

    Preston Elam
    Expand Collapse

    Joined:
    Apr 8, 2017
    Messages:
    19
    If you're gonna make lua mods for this game, you have to figure it out.
    `lua/ge/spawn` was it that hard to find????
     
  8. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,350
    There is such a list made by Angelo234 (although it's not official so it might not be 100% accurate): https://angelo234.github.io/List-of-BeamNG-Functions-And-Fields/
     
    • Like Like x 2
  9. emlodnaor

    emlodnaor
    Expand Collapse

    Joined:
    Apr 24, 2022
    Messages:
    11
    As I'm new to this, when not knowing where to look, yeah, it is a bit hard, but thank for the tip! Let me know if there are any good guides/tutorials to get started that you know of :)
     
  10. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    585
  11. daniel-w

    daniel-w
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 28, 2017
    Messages:
    282
    That's the best way to do it because you also get exampled on how to use it. I was working on a parser to gather all the globals, I don't feel the need to continue it though because this method works just fine. Then again, I could create a website for it, similar to yours.

    How did you get all the globals? _G doesn't contain everything, including getPlayerVehicle.
     
  12. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    585
    Yeah I stopped updating the website since it wasn't that useful/efficient for me. And getPlayerVehicle is called with:
    Code:
    be:getPlayerVehicle(id)
    And I just got whatever globals were available at the time I recorded down the functions (just loaded into some random freeroam map).
     
  13. Preston Elam

    Preston Elam
    Expand Collapse

    Joined:
    Apr 8, 2017
    Messages:
    19
    I'm sorry for being mean, It was a long night, no there aren't really any tutorials for lua, you just have to dig or ask the community. Join the BeamNG discord, if that doesn't work there are lots of skilled lua modders in the BeamMP discord aswell.
     
    • Like Like x 1
  14. Leeloo

    Leeloo
    Expand Collapse
    The Little Engine That Could
    BeamNG Team

    Joined:
    Feb 19, 2020
    Messages:
    516
    • Like Like x 7
  15. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,332
    • Agree Agree x 1
  16. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,332
    I found a minor mistake.
    On this page:
    https://documentation.beamng.com/official_content/vehicles/023-pbr-materials-status/
    Hirochi SBR4 is duplicated.
    I was just looking for the page for the gauge needles and how they work and I noticed it.
    Also, that specific one looks to be slightly outdated (as example the Lansdale is missing), which I don’t mind, I get that there’s a lot already with making a single update :)
     
    #116 SSRG, Sep 1, 2023
    Last edited: Sep 1, 2023
  17. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,350
    We just got rid of that page, as it was agreed to be way too outdated to maintain and not very useful.
    For the purposese of looking for material references, we now have a page with examples: https://documentation.beamng.com/modding/materials/vehicle/typicalmaterials/
    For gauge needles, use "Emissive Materials" as reference. Make them emissive for the headlights on state and just use the standard properties for the headlights off state.
     
    • Like Like x 2
  18. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,332
  19. GearHead1

    GearHead1
    Expand Collapse

    Joined:
    Nov 21, 2019
    Messages:
    773
  20. DriftinCovet1987

    DriftinCovet1987
    Expand Collapse

    Joined:
    Apr 14, 2016
    Messages:
    1,395
    The Lansdale is also missing from the vehicle list.
     
    • Like Like x 1
  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