Experimental Mechanical Failure App (Random Damage) 2.1

A simple UI app with some buttons that damage random parts of your car in various ways!

  1. App remaster, visual and functionality overhaul, way more options, bug fixes

    Based on the feedback I got, I made a complete overhaul of the app. While the core functionality is the same, it looks completely different now and has way more options!

    You can find it in the app selector like previously, it has a better thumbnail now (bigger resolution and fits the style of the vanilla thumbnails):

    Overview of the updated functionality:
    On the top of the app, if you have multiple vehicles spawned, you can now select which one it will affect! Keep in mind though that UI messages will only appear if it's your current vehicle. It works in traffic, but the timer resets when the traffic vehicle respawns. The selector shows the word "Current" if this is your current vehicle, then the license plate, internal ID and the car name.
    Below is the menu with random damages that you know from the old version, with some changes. Each row is the type of damage and 2 options. First one is the settings dedicated for each damage type, the second is whether this type of failure should ignore wheels (leave them undamaged) or not, but this setting is always on or always off for some damage types and you can't change it due to how the game is coded.
    The functionality was mostly unchanged from the old version:
    • Break Off Random Part failure breaks (fully or partially) a part of the car that can normally be broken off like a door of a bumper. It can break some of the glass too. The Ignore Powertrain Parts setting makes it leave the following parts undamaged: engine, airbox, transmission, driveshafts, fuel tank, suspension mounts/bushings, leaf spring mounts, subframes, struts, tierods, suspension arms, shackles, hubs, dampers and axles. Basically all that makes your car drivable, except for wheels, because that's what the second option is for.
    • Break Random Brittle Part: It can break fragile parts like glass and lights, but also it can damage the radiator and oil pan (without causing leaking), which you can prevent with the Ignore Radiator and Oil Pan option.
    • Ignite Random Part: Sets a random flammable part of the car on fire (wheels are not flammable by themselves but can catch fire later). There is a checkbox that adds a 10% chance of the car exploding when you use this option, and the explosion basically breaks everything on the car.
    • Damage Random Part: It's similar to Break Off Random Part, but it can also internally damage the parts themselves, making holes in them. The Realistic Damage Only option only allows normally breakable parts to be damaged, so it excludes the steel used in body panels of the car, the interior, engine, frame and stuff. The Ignore Wheels option will prevent this failure from damaging and breaking off wheels and tires.
    • Deform Random Part: It simply deforms a random part of the car by a random amount. Deformation of the engine components causes damage in them (or can sometimes fully break them), and there is an option for this failure to only affect engine components. Wheels and tires can get deformed too and it usually causes the tires to deflate, so there is a checkbox to prevent this.
    • Deflate Random Tire: It makes a hole in a random tire, deflating it. If there is already a hole then it will just make another one, which can further break traction. The Lower Chance option adds a 50% chance that nothing happens when you use this failure, it's for the sake of fairness because other failures can damage the tires easily instead.
    Below these options there are 2 buttons. The first one selects a random failure from the checked ones and causes it (taking the selected options into account of course). The other toggles a timer on or off, which does what the other one does, but repeats it every set amount of seconds, which you can set on the left. (Min. 0.1 seconds, max 60 seconds). Resetting the vehicle automatically disables the timer for convenience.

    Bug fixes:
    • Fixed LUA error when using Deform Random Part on the Capsule bus mod
    • Fixed Bluebuck (and possibly other cars) seats and C-pillar breaking when using realistic damage on the car
    • Fixed Break Random Brittle Part damaging engines and driveshafts sometimes
    • Fixed the UI message of Break Off Random Part adding "Bolt" in the beginning of every part name which made no sense

    Other changes:
    • Migrated app layout from JS to HTML, JS has purely the functionality, will make it easier to update in the future
    • Removed unused buggy stuff from code
    • Some of the code should be somewhat easier to read, some long lines have been converted to vertical tables
    • The thumbnail is better lol

    Known issues as of now:
    • DEFLATING TIRES OR IGNITING SOME OLDER MODS CAN POTENTIALLY BREAK THE GAME. The options that can cause it are unchecked by default in the app, and there is a mechanism that is supposed to prevent you from using them, but it's not 100% reliable. So when using old mods, be careful, set Ignore Wheels on and don't use Ignite or Deflate Tires.
    • On some mod vehicles (most often heavy or offroad ones, the key is really stressed suspension) the wheels can fall off when you use the Deform Random Part failure despite having Ignore Wheels on. It happens when the wheel hubs deform as a result of overall suspension deformation, and can't hold the wheels anymore.
    • Older mods might not have many engine components to break, so using Deform Random Part with Only Engine Components checked on them will only affect the radiator.
    • The app resets every time you use anything on the UI that isn't other apps. This is required for the car selector to work unfortunately so I can't really fix it.
    • Deform Random Part might potentially deform some parts much harder than they would normally deform on impact. I may fix it some time in the future.
    • Some mods can show some weird names of parts that broke, I have no control over that, I only display what the part is called in the mod, so if you find something weird there then it's not my fault.
    • On some mods, using Realistic Damage Only might not result in realistic damage sometimes, and I can't fix this either, it's a problem with those mods.
    • The mod might behave weird when used on SolarPower's NASCAR mod or the Capsule bus mod, I tried to fix it the best I could.

    Update credits:
    • Me - original app and most of the revamp
    • Angelo234 - updated function randomizer code that accounts for which functions are selected and which not
    • _N_S_ - adding the vehicle selector to the app
    • CrashHard - beta testing, feedback, bug reports
    • BeamNG - some code from vanilla game, some HTML controls settings from the traffic app that I reused

    Notice: You can use my code from the app in your mods, but for the code from other people (I clearly marked and separated it in LUA) you have to ask them for permission first.

    Have fun, leave suggestions (I got a lot of them already, thanks!), and make sure to report any issues you find.
Return to update list...
  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