WIP Beta released Used Car Generator

Discussion in 'Content Creation' started by Cedminer66, May 21, 2024.

  1. Cedminer66

    Cedminer66
    Expand Collapse

    Joined:
    Feb 21, 2024
    Messages:
    2




    This is a thread for the Uesd Car Generator mod, a very customizable app that generates junk cars, where both the vehicle and it's location is randomized or manually selected by the player.

    This thread is to give a more advanced guide on how the app works which may answer some of your questions and to create a discussion thread about the mod it self in order to facilitate feedback collection.

    PSA: As of v0.5.0 there is currently a bug where all cars generated appears grey. This should be fixed once v0.5.1b is released. (Waiting for mod approval)


    Advanced Usage Guide

    What does the vehicle's Population mean?

    The population is a vehicle config stat which determines how many times this vehicle config has been produced. The higher it's population, the more common it is.

    This value can be found in the .json file of that vehicle config. For example, the population value for the Ibishu Covet LXi Manual (info_LXi_M.json) is found here:


    The app uses this value as the probability weight of that vehicle config being selected. Thus, a config with a Population of 1000 will be 5 times more likely to be picked than a config with a Population value of 200.

    Note for modders: If you want your modded vehicle to be compatible with the Population selection, make sure your desired configs have this value in their .json file.

    After running some code in the console I was able to tally the population of every vanilla vehicle with the odds of being selected by the generator (if Use Population is enabled.)


    What does Wear Balancing mean?

    The wear balancing setting is an option to change the damage calculation for some part conditions. It's made to prevent vehicle with average overall condition to be basically undrivable.

    The basic, non-balancing calculation is pretty simple. The overall condition is always equal to the part condition, then multiplied by a random equation that is affected by the Wear Variation setting.

    The balanced calculation on the other hand, is more complicated as it uses an exponential equation instead of a linear one. The wear variation setting has the same effect as the non-balancing calculation.

    Note that only a few parts is affected by wear balancing, see the Full Parts Effect Table below.


    In this graph, X = Part Wear (1 - Part Condition) and Y = Overall Condition, assuming Wear Variation is set to 0.

    The Red curve is with Wear Balancing Off and for parts not affected by Wear Balancing Option.
    The
    Blue curve is with Wear Balancing On. Please note this curve varies depending on the part as the one shown in the image is an example.


    What is the full list of affected parts and their effects?

    As promised in the mod description, here's a list of all parts that are affected by the generator, including their symptoms and other properties, updated as of v0.5.1b.

    Note: Some shown part wear values may not be exact to the requested override values. This isn't a bug, as that part uses a variable inside the BeamNG Lua scripts to determine it's condition, which may be affected by the vehicle's mileage and other variables.

    (Sorry for low image quality)



    This concludes the advanced usage guide. As for what's coming next for this mod, I plan on adding deformation damage as well as an option for randomized paint colors for each individual parts. The mod will then transition into Beta phase, where I will be mostly fixing bugs and improving mod compatibility.

    Thanks for reading, if you have any questions make sure to post them in the discussion thread!
     
    • Like Like x 3
  2. Cedminer66

    Cedminer66
    Expand Collapse

    Joined:
    Feb 21, 2024
    Messages:
    2
    So apparently the images aren't loading for some reasons, so here they are in order:

    The population value for the Ibishu Covet LXi Manual (info_LXi_M.json) is found here:



    The calculation curve for Balancing VS Non-Balancing Condition:



    The odds of each vanilla vehicles being picked by the generator if Use Population is enabled:


    The full list of Parts affected by the generator and their symptoms:
    (Sorry for low image quality)

     

    Attached Files:

    • Capturedcran2024-05-17115306.png
    • Capturedcran2024-05-17120134.png
    • Capturedcran2024-05-21125643.png
    • image.png
    • Like Like 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