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)
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.
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.
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...
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????
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/
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
Yeah I believe its kinda outdated and doesn't include 100% of the code base. Here's a better way (one that I rely on heavily but also helps too to have some experience with the Lua code) https://www.beamng.com/threads/tutorial-on-finding-lua-functions.81025/
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.
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).
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.
We've added a new section with several tutorials today: https://documentation.beamng.com/modding/vehicle/tutorials/ https://documentation.beamng.com/tutorials/creatingconfigs/
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
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.
Hey, so this could be kind of a dumb question, but is there a public downloadable version of the Autobello Kit Car? (The vehicle from this page: https://documentation.beamng.com/modding/vehicle/tutorials/basic_car_tutorial/)
The new Hirochi SxS is missing from the List of Official Vehicles section. This is looking great, guys!