Mod Details

Repair Max Durability

Repair Max Durability 2.0.1

Created by  egbog

17.9K Downloads

SPT 4.0.1 Compatible

Literally just adds an item that repairs the max durability of weapons

Latest Version 2.0.1
SPT 4.0.1

Updated Yesterday at 3:29 AM

0.0 MB

Version Notes

Compatible with SPT 4.0.0

  • Fixed oversight in server injection order
This download is externally hosted.
Always scan for viruses.

Mk-18 picked up off a level 2 PMC

76/76 durability

flea blacklisted

who gunna use this.jpg

just repair it lol o wait thanks BSG we can’t


Obtaining

Obtaining


Spare Firearm Parts can be crafted at Workbench lvl 1 using a Toolset (keep), 1 #FireKlean gun lube and 1 Weapon Parts. They can also be purchased from Mechanic LL2 and Flea.

Usage

Usage


⚠️You must follow both steps below for the mod to function properly⚠️

  1. Fully repair the weapon you want to fix using either traders or the vanilla Weapon Repair Kit. For example repair 51.2/87.7 -> 87.7/87.7 (minus random degradation)

  2. Drag the Spare Firearm Parts onto your weapon. You should see a notification popup and hear a sound depending on if the repair was successful or a failure.

Configuration

Configuration


All parameters (price, trader, loyalty level etc.) are configurable in the /egbog-RepairMaxDurability/config/config.json file

It is possible to add multiple trades and multiple crafts, all with adjustable parameters.


Multiple trades -

The default config includes two trades, one for Mechanic that is enabled and one for Prapor that is disabled. You can edit the Prapor trade directly and enable it or use it as a template to add more. Simply copy and paste the block, not forgetting to add a comma.

"Traders": [
    {
      "Name": "Mechanic",
      "Enabled": true,
      "Price": 100000,
      "LoyaltyLevel": 2,
      "BuyLimit": 5,
      "Stock": 5
    },
    {
      "Name": "Prapor",
      "Enabled": false,
      "Price": 100000,
      "LoyaltyLevel": 1,
      "BuyLimit": 50,
      "Stock": 2000
    }
  ]

Multiple crafts -

The default config only has one craft defined. Tool is an optional item that is required but not consumed during the craft. Item is the consumed ingredient and areaType: 10 refers to the workbench. You can make another craft like so:

"Crafts": [
     { 
        "default craft here..."
     },
     {
        "Enabled": true,
        "CraftTime": 69420,
        "AmountCrafted": 100,
        "Requirements": [
        {
          "type": "Tool",
          "templateId": "your_mongoid_here",
        },
        {
          "type": "Item",
          "templateId": "your_mongoid_here",
          "isFunctional": false,
          "count": 10
        },
        {
          "type": "Area",
          "areaType": 10,
          "requiredLevel": 3
        }
      ]
   }
]

Known Issues

Known Issues


None so far

Installation

Installation


Installation directions: Extract using 7zip to the root of your SPT directory as shown below

Demonstration Video

(Yes, it’s SAIN, but the same concept applies to all of my mods, I’m not making mod-specific extraction example videos)

vKRw58b.gif

FIKA

FIKA


Compatibility with FIKA is unknown pending testing. Feel free to try it. If you’re using a headless client, you should put the dll only on the client you play on, not the headless

Rant

Rant


Durability burn upon repair is a neglected feature in live EFT that only serves to artificially increase malfunction frequency. Aside from that, it has no other purpose or remedy.

This mod attempts to introduce a lore-friendly alternative to stripping attachments off of uselessly damaged weapons and vendoring the weapon, only to purchase the exact same weapon and put the same attachments on.

The simplest solution is to use the existing framework for weapon repairs and allow the repair to target the maximum durability instead. Lore-wise, a repair kit containing those crtical components that are then swapped out on the chosen weapon makes perfect sense and almost should be implemented in live EFT itself, albeit in a different fashion.

Version 2.0.1
Download Mod Version
SPT 4.0.1
Latest Compatible SPT Version

0.0 MB

373 Downloads

Created Yesterday at 3:28 AM

Updated Yesterday at 3:29 AM

Virus Total Results

Compatible with SPT 4.0.0

  • Fixed oversight in server injection order
Version 2.0.0
Download Mod Version
SPT 4.0.1
Latest Compatible SPT Version

0.0 MB

878 Downloads

Created Sunday at 1:27 AM

Updated Sunday at 1:28 AM

Virus Total Results

Compatible with SPT 4.0.0

  • 4.0.0 update
  • Rewrote pretty much everything from scratch
  • Better error logging
Version 1.3.2
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

1.6K Downloads

Created Aug 10, 7:38 AM

Updated Aug 10, 7:38 AM

Virus Total Results

Compatible with SPT 3.11

  • Long overdue compatibility patch for ODT-ItemInfo
Version 1.3.1
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

4.1K Downloads

Created Mar 24, 4:21 AM

Updated Mar 24, 4:21 AM

Virus Total Results

Compatible with SPT 3.11

Version 1.3.0
Download Mod Version
SPT 3.10.5
Latest Compatible SPT Version

3.2K Downloads

Created Nov 28, 2024 at 10:05 AM

Updated Nov 28, 2024 at 10:05 AM

Virus Total Results

Compatible with SPT 3.10

Version 1.2.2
Download Mod Version
SPT 3.9.8
Latest Compatible SPT Version

3.5K Downloads

Created Jul 7, 2024 at 12:31 AM

Updated Jul 7, 2024 at 12:31 AM

Virus Total Results

Compatible with SPT 3.9.0-3.9.8

Acctim * Pinned

@mod author i keep getting the error below in my server if I start it with one of the kits in my stash when I do the removeModItemsFromProfile thing only thing gone is the kit, done it twice so far to confirm i was correct. using 4.0 one

“Failed to load profile with ID ‘68ecd3da1f17a01dd46fa725’. The profile will be marked as invalid. SPTarkov.Server.Core.Exceptions.Items.InvalidModdedItemException: Item: 68f0a63a30840416d46bce1f found in profile that does not exist in items db. You WILL experience errors, this can be due to using an items mod and removing the mod without deleting the modded items from your inventory. DO NOT USE THIS PROFILE. Open SPT_Data\Server\configs\core.json, edit ‘removeModItemsFromProfile’ to be true. This will allow the server to edit your profile and hopefully remove the bad items”

2 Likes

same here

1 Like
egbog

Thanks for the report, I’ve fixed it in the latest version. Your old profile will be safe to use upon updating

0 Likes
Darezi

Traders don’t fix up to 100% durability if the damaged gear and weapons have red mark in durability, only up to that mark! It doesn’t let me move the bar up to 100% to repair! Not even with repair kits!

1 Like

You should read the description

2 Likes
vismen

Попробовал, работает но с ошибкой,баг инвентаря в убежище,придется ждать обновления до 3.11

0 Likes

updated

0 Likes
vismen

Кто пробовал на 3.11.??

0 Likes
vismen

Good afternoon, is it possible to make a similar mod for repairing armor in the same way.

0 Likes
egbog

Already replied to this question

“i see why you would want it, however with armor plates being a thing I really don’t see a justification for it. most plates are really not repairable irl and are meant to be a one time use thing. with guns there are many replaceable components that are meant to be common wear items replaced after a certain amount of time/rounds fired”

0 Likes
TomBrown

Hello.

In 3.9.0, when I used this mod to repair a weapon that lost its durability and restore it completely, it crashed and the game was terminated.

Do you know anyone who can tell me what is causing this?

Postscript.

I had other mods installed, so I deleted them all and installed this mod, but it crashed the same way.

TypeError: Cannot read properties of undefined (reading ‘Resource’)

TypeError: Cannot read properties of undefined (reading ‘Resource’)

at Repair.ambeeb (G:\SPTTarkov\user\mods\egbog-RepairMaxDurability\src\repair.ts:44:23)

at Object.action (G:\SPTTarkov\user\mods\egbog-RepairMaxDurability\src\mod.ts:46:66)

at DynamicRouterMod.handleDynamic (C:\snapshot\src\di\Router.ts:69:61)

at HttpRouter.handleRoute (C:\snapshot\src\routers\HttpRouter.ts:74:69)

at HttpRouter.getResponse (C:\snapshot\src\routers\HttpRouter.ts:46:24)

at processTicksAndRejections (node:internal/process/task_queues:95:5)

at SptHttpListener.getResponse (C:\snapshot\src\servers\http\SptHttpListener.ts:149:22)

at IncomingMessage.<anonymous> (C:\snapshot\src\servers\http\SptHttpListener.ts:74:38)

TypeError: Cannot read properties of undefined (reading ‘Resource’)

TypeError: Cannot read properties of undefined (reading ‘Resource’)

at Repair.ambeeb (G:\SPTTarkov\user\mods\egbog-RepairMaxDurability\src\repair.ts:44:23)

at Object.action (G:\SPTTarkov\user\mods\egbog-RepairMaxDurability\src\mod.ts:46:66)

at DynamicRouterMod.handleDynamic (C:\snapshot\src\di\Router.ts:69:61)

at HttpRouter.handleRoute (C:\snapshot\src\routers\HttpRouter.ts:74:69)

at HttpRouter.getResponse (C:\snapshot\src\routers\HttpRouter.ts:46:24)

at processTicksAndRejections (node:internal/process/task_queues:95:5)

at SptHttpListener.getResponse (C:\snapshot\src\servers\http\SptHttpListener.ts:149:22)

at IncomingMessage.<anonymous> (C:\snapshot\src\servers\http\SptHttpListener.ts:74:38)

0 Likes
egbog

well I haven’t been able to reproduce this. what version are you using? 1.2.2 on 3.9.0?

I would wager it has to do with crafting the repair kit bc for whatever reason the property “Resource” as mentioned in your error log doesn’t exist when you craft it. However I manually set that property as a failsafe so theoretically this error shouldn’t be happening

0 Likes
TomBrown

Hi, thanks for your reply.

I don’t know the details, but it seems that the one I purchased from mod trader was the one that crashed.

When I purchased it again from the mechanic, I found that it did not crash.

I am very sorry for the trouble.

0 Likes
egbog

ohh i see, which mod trader was it? ill look into and see if i can add compatibility for modded traders

0 Likes
TomBrown

KOKO HEKMATYAR

I used this mod.

0 Likes
RogueTech67

@egbob, Hello. See the mod was updated to show support for SPT-AKI 3.8.3. On the [Versions] Download for 1.2.1 (Apr 17, 2024), you added “Compatible with AKI 3.8.3+”. Since the mod didn’t change since working on 3.8.0, does it no longer work on 3.8.0, and needs 3.8.3+, or should that comment say “Compatible with AKI 3.8.0+”? Love this mod. Thanks

0 Likes
egbog

It works for any 3.8.x version so far, 3.8.0+ makes more sense so I changed it to that

0 Likes
GaGiG iZiaeV

не работает мод у меня. не с тем оружием что было, ни с тем что купил после установки и портил в рейде. жаль

0 Likes
lil_RGO

Hello

Thank you for this great mod.

I have a question

That’s when i drag and drop spare weapon parts on bulletproof panels and all the durable equipment,

Change the maximum durability to 100 (good for me😂)

Is this usage intended?

0 Likes
egbog

Nope and should be fixed in the latest version

0 Likes
lil_RGO

Tnx for fast fix

0 Likes
RogueTech67

Hello egbog. Loving the mod. Couple of questions.

1) Regarding your Known Issue in version 1.0.0. Not sure why it is an “issue”? From a damaged weapon 91.5/96.7 (100) choosing [REPAIR] I was able to choose the “Spare firearm parts” option (Along with options Weapon repair kit | Prapor | Skier | Mechanic) and have the weapon repaired to 100/100 (100) for the cost of 1 RP unit. This seems to make sense to me if I choose to use one of the 5 uses (I just paid 121,001 Roubles for) instead of either some of the 1000 RP from the Weapon repair kit or paying one of the 3 Traders.

Known Issues - Spare Firearm Parts are visible is the Repair window, letting you repair a gun for just the 5 resource points it contains. This will act like a regular repair kit and will waste your Parts. This will be fixed in the next update!

2) I see the Mechanic cost for a 5/5 RP “Spare firearm parts” is set at 121,001 Roubles. If we would like change that cost (or the Trader Level, or the Trader, or the number of allowed usages (i.e. /55), where would we do that? Edit which file(s)? Thanks

0 Likes
egbog

1) I’m not sure I understand what you mean. My mod only functions when you specifically drag and drop the repair kit onto a weapon. Using it as a kit in the Repair window treats it like the 1000rp Weapon Repair Kit and will repair it the same as every other time but causes some bugs like a 0 RP kit

Furthermore the high trader cost is there to influence you to craft it instead of buy it. It is nearly half the cost to make it in the hideout. Also paying ~5-10RP (~500-1000 roubles) from the Weapon repair kit plus the 1 use from my kit is still significantly cheaper than re-buying the entire weapon itself.

Initially the durability didn’t matter prior to using the kit however I want the Weapon Repair Kits to retain their usefulness in tandem with my kit

2) Currently it’s all hardcoded but since you mention it, I’ll add a config file for it

0 Likes

Hello egbog. Thanks for the explanation, and for creating a config file for the changes.

0 Likes
egbog

no worries

0 Likes

egbog, Thanks for the config changes in v1.1.0. Tested and can now “easily” change the Trader, Loyalty Level, Item Price and usage amount. Works perfectly. Still can ONLY buy 5 from the trader, but that is fine. Thanks so much for adding this change.

0 Likes
Notice: This mod may make permanent changes to your profile, and may not be removable without starting a new profile. More information.

Details