This is a WIP mod that allows for the repair of individual parts. It adds a UI app called "Individual Part Repair Menu" that can be used to select individual parts for repair, and enabling the "deep" option repairs all nested parts. Now on the Repo: https://www.beamng.com/resources/individual-part-repair-menu.35878/ I started making this mod a while ago, but ran into problems when the new dynamic door system was added to more vehicles. This is mostly because the way parts are repaired is very similar to the current in game beamstate save/load system, which is also currently bugged as when loading a beamstate the new doors will not work and be stuck open. I recently picked it up again and found that the solution is to load the beamstate during the a vehicle reset, which seems to resolve the problem completely. This current version is pretty bare bones, mainly a menu showing all parts with a button to repair them and also an option for repairing nested parts at the same time. I am working on a newer version with more features like better menus and the ability to search parts by name that can be accessed early on my Patreon.
It ended up working way better than I thought it would too, it could be added to career but due to the current save/load system it would break when you change parts on the car. I am currently rewriting it to save and load damage more dynamically so that parts can be added/removed without affecting the rest of the car, but it seems to be a bit more problematic.
V2 is coming along well, features like search functionality and saving fuel levels have been added. My current focus is now on writing a new save/load system, allowing it to save damaged parts "individually" so that parts on the car can be added/removed, as doing so in the current version results in the save file breaking. Once that is ready I will try to implement it in career mode, I've already poked around in the code and in theory every car the player owns/loans should be able to retain a persistent damage state even when in storage, but it will require a lot of workarounds and will probably break in a future career update. If you have any ideas for career mode or other suggestions feel free to post them.
is it possible to have parts removed (without pulling them off with the nodegrabber) while keeping the damage?
The new system I'm writing allows you to add and remove parts using the base game part selector without breaking the save file, meaning you can save the current damage, add or remove parts, and then load the damaged parts. If you want the part to remain in the world then node grabber is you best bet, but I could add an option for detaching certain parts from the vehicle too.
I accidentally deleted the main file and am unable to edit the post so I will post this here. Version 1.5 - New UI, deformGroup fixes and refueling/fuel level saving. This version is still using my original repair method, which is reliable but doesn't work when adding/removing parts to the vehicle, I am working on a newer version that resolved this by saving damage per part allowing for more flexibility that can be accessed early on my Patreon.
Well now that's just swell! I can finally keep destroying vehicles offroad without having to worry about the extremely fragile driveshafts!
I had planned to release V2 yesterday, but the 0.37 update introduced a few unexpected issues that took some time to sort out. Those problems are now fixed and I’ve uploaded the mod to the repository. It’s currently awaiting approval and should be available soon. As for career mode support I had just posted a demo video the night before the update, but haven't gotten around to fixing it yet as it is also broken. It is pretty simple right now, automatically saving/loading damage states and repairing parts that are changed in the part selector. I have a lot more planned for it in the future, and an early beta will probably be on patreon soon.
I'm posting this early despite it not having a special repair system yet as it seems functional and hasn't caused me any problems in the current version. It mainly handles damage persistence and allows for actions that would normally require a repaired vehicle such as storing and retrieving. It should work with existing career mode saves and can be removed at any point as it does not modify existing save files, however it will not work with other mods that modify the career mode game files. Future updates will be posted on Patreon until it is in a more developed state.
Any chance of making a version just for derby? Like only having radiators suspension wheels tires and refuel?
There is a lot of inconsistencies in the part names, so filtering certain parts out of the list would most likely involve having to define them for each vehicle. This is something I would like to avoid but if anyone wants to do something like that custom UI apps should be able to access the repair extension if its installed.
im having two problems, sometimes it repairs the whole car, and other times it works for the first part i click then stops working after that. is it from all of my mods i have installed possibly?
That is very odd, it seems like the lua extension is not being loaded properly. I am unable to recreate that but based on what I see the repair script only runs once and then completely fails as the car itself is not even reset on further attempts. It could be caused by another mod but that would be unusual, my best guess is that you may have an older version of this mod installed causing a conflict. If you can find any errors in the console that may help pinpoint the problem, otherwise I would try disabling all other mods and trying again.
Im having the same issue where its fixing the whole car. EDIT: Also when this happens the mod stops working and you cannot repair anything when clicking on certain parts. EDIT EDIT: Im using this version IndividualPartRepairV1-5.zip and i disabled all other mods.
Well that would be the problem, version 1-5 only works in 0.36. With 0.37 I released the v2 version on the repo. https://www.beamng.com/resources/individual-part-repair-menu.35878/ I probably should have posted this here after it got verified.
Bug Report: for most vehicles, the Part Tree will extend past the screen's height, so if you go beyond a few steps from the main roots, some parts will be inaccessible and thus cannot be directly repaired.
I'm currently working on a total UI rewrite for v3, but in the meantime you can resolve your problem by resizing the UI in the UI manager. You should also be able to scroll through the list when it doesn't fit in the frame, but I'm not sure how consistent that is.