Beta Road Grip Editor 1.22

Allows you to change the road's grip in realtime!

  1. angelo234
    If the mod isn't working for you, press CTRL + L (restarts Lua) and restart the map if you are already in one, which should make it work.

    Road Grip Editor allows you to change the road surface grip in-game and in realtime, allowing you to simulate icy conditions, F1 levels of grip, and even negative grip on any map, without having to modify the values in the map or vehicle files! This is possible thanks to the current game code which allows you to dynamically update the road surfaces. And I am taking advantage of this to present you with this mod!




    Version 1.22
    app.png

    Mod Showcase by WhyBeAre:



    Tutorial on adding a UI app:
    https://wiki.beamng.com/User_Interface_&_Apps

    Usage (Version 1.22):

    1. Select the Surface
    The default surface is set to "All Surfaces" meaning that all surfaces will be modified. If you would like to modify an individual surface, click on the surface drop-down list and select from the many road surfaces, the one you would like to modify. Alternatively, you can select the surface the vehicle is on by clicking the "Get Surface" button.

    Note:
    Some surfaces such as "Asphalt" for example will also modify the surface grip of concrete and other "similar" surfaces. And some surfaces that you may think is a certain surface type may actually be a different type. For example, the surface you might think is of type "Asphalt" may actually be the "Asphalt Old" surface type, so you may need to do trial and error sometimes to find the right surface type.


    2. Select the Parameters to Edit
    There are a total of 11 surface parameters you can edit at the moment. Initially, you will only see one after adding the UI app, but if you would like to display more, just increase the size (height) of the app. You can also select what parameters you want to be displayed by clicking on the parameter drop-down lists and selecting the parameters you want. Also, hovering over the selected parameters will give you a brief explanation of what the parameter is and its typical range of values.

    3. Edit Parameter Values
    To the right of the parameters are input boxes to modify the selected parameters. Hovering over the parameter's input box will tell you the minimum and maximum values that you can input for the selected parameter, as they vary from parameter to parameter. There are two ways to edit the surface parameter values:
    • Right-click on the input box, delete the current value, and then type in a new value
    • Use the up/down arrows in the input box to increment/decrement the current value
    4. Apply Changes
    Click on the "Apply Changes" button to apply the parameter values to the surface you selected.

    5. Resetting Parameter Values
    There are two ways to reset the parameter values for surfaces:
    • "Reset to Default" will reset the current surface grip to default settings
    • "Reset All to Default" will reset all the surfaces' grip to default settings
    Note:
    The applied settings will reset when you close out of the map.


    Surface Parameters and Definitions:
    Relationship-between-slip-ratio-and-friction-coefficientppm1.png

    ae40dcc6f0219eca6195df8ec2de575217f706be.png
    The graph above gives you an idea of how tire friction depends on the slip ratio (the difference in velocity between the vehicle and the tire as a ratio). Zero or 0% slip ratio means that the vehicle's and tire's velocity are the same. And a slip ratio of 1.0 or 100% means that there is a two times difference in velocity between each other. Although, the game seems to use the difference in speed rather than a ratio between the tire and the ground, with having a "Stribeck Velocity" parameter.

    • Static Friction (μ)
      • The type of friction that allows you to stop and is actually what the tires experience when they are not spinning out or locked up. This value is most of the time higher than sliding friction. In the graph, this type of friction is present in the zone between 0% slip and peak friction, and the tire is technically slipping.
      • Examples of static friction include:
        • Regular driving
        • Racetrack racing
        • Braking before wheels lockup
        • Accelerating before wheels spinout
    • Sliding Friction (μ)
      • The type of friction that is experienced when your tires are spinning out or locked up as a result of going over the limits of static friction. And this is why ABS, Traction Control, and ESC exist to keep the car from experiencing sliding friction to give you the most grip. In the graph, this type of friction covers the zone to the right of peak friction. In the game, this is set as one value, which defines the lowest sliding friction value, and the distance and slope between peak friction and sliding friction are determined by the "Stribeck Velocity".
      • Examples of sliding friction include:
        • Drifting
        • Doing a burnout
        • Braking too hard and locking your wheels
    • Stribeck Velocity (m/s)
      • This determines how quickly you transition from static friction to sliding friction when you go over the limits of static friction. This value determines the difference in speed between the tire and vehicle required to switch completely from static to sliding friction, and sets the steepness of the slope between static and sliding friction.
    • Hydrodynamic Friction (μ)
      • The type of friction that is produced by the viscosity of the fluid (surface). This friction is proportional to the difference in velocity between the vehicle and the tires (e.g. the more you spin your tires, the more friction that is produced)
      • Examples of hydrodynamic friction include:
        • Spinning your tires in mud
    • Roughness Coefficient
      • This value determines how well different types of tire treads grip the surface. For example, a value of zero works best for slick tires and a value of one works best for mud tires.
    • Fluid Density (kg/m^3)
      • This is the density of the surface. If the density of an object is greater than the density of the surface, the object will sink, and if the other way around, the object will float.
    powerlawfluid.png
    • Flow Consistency Index (Pa*s^n)
      • This value is basically a coefficient used to scale the viscosity (η) of the fluid proportionally to the "shear rate" (basically the velocity of the object passing through the surface) to the power of the "flow behavior index".
    flowbehaviorindex.png FluidTypes.png
    • Flow Behavior Index (n)
      • This value defines the shape of the viscosity (η) vs. shear rate (γ) curve. And you can see in the graph and table what the curve will look like depending on the type of surface/fluid, based on this value. The game doesn't simulate Bingham plastics so ignore that.
    • Drag Anisotropy
      • This value determines whether the object that rides on the surface will sink or float. Negative values cause the object to sink and positive values will cause floating.
    • Default Depth (m)
      • This value defines the depth of the surface when the surface is flat and isn't overridden by the terrain.
    • Skid Marks
      • I think this one is obvious enough?

    Possible Future Features:
    • Bug fixes of course :)

    Troubleshooting:
    If the mod isn't working for you, press CTRL + L (restarts Lua) and restart the map if you are already in one, which should make it work.

Recent Reviews

  1. Ivan Morales
    Ivan Morales
    5/5,
    Version: 1.22
    so I want to make a race is there any thing particular i could do to make turning easier
  2. mowens07 Gaming
    mowens07 Gaming
    5/5,
    Version: 1.22
    Nice! Will there be one where you can do the same with road textures to make ice/rainy roads?
  3. shrimp1929
    shrimp1929
    3/5,
    Version: 1.22
    Hello, I got into difficult situation. After I installed this mod, and run the game this app was not working. The problem that when I run this module, at the place where the name of surface should being shown I see blank place, also there is only static friction shown. What should I do? Also i tried 3 different ways to install it, and always the result is same. Please help because I see this app very useful for me. Thank you.
    1. angelo234
      Author's Response
      Try restarting Lua by pressing Ctrl + L
  4. CookiVibes
    CookiVibes
    5/5,
    Version: 1.22
    Fixed! If yours still is invisible, uninstall the mod and reinstall. If any list shows as blank or not visible, use CTRL+L to reset the Lua. That should fix it! :D
  5. tijojol10
    tijojol10
    5/5,
    Version: 1.22
    it was good, until the new update. the menu is always invisble. could you make another update please or give me instructions on how to make this work? ps: all my mods were already disabled
  6. bnz617
    bnz617
    5/5,
    Version: 1.22
    I was fully confident this guy would come thru. Great mod and great author. Thank you sir
  7. Amazing Kestero
    Amazing Kestero
    5/5,
    Version: 1.22
    Well, it's fixed, right?
  8. bnz617
    bnz617
    4/5,
    Version: 1.21
    Since the last update the window doesn't pop up anymore. Im sure the author will fix it, just patiently waiting
  9. CookiVibes
    CookiVibes
    3/5,
    Version: 1.21
    It was amazing until the recent v0.23 update, now it's broken. The settings don't pop up when I insert the mod onto my screen.
  10. JCBOi
    JCBOi
    4/5,
    Version: 1.21
    Worked wonders until it was broken by the v0.23 update; the window doesn't show up anymore
  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