Mod Details

Keep Your Equipment

Keep Your Equipment 1.3.2+alpha

Created by  captainfoam

7.7K Downloads

SPT 3.7.6 Compatible

Keep your original equipment when you die as a PMC in a raid.

Latest Version 1.3.2+alpha
SPT 3.7.6

Updated Nov 24, 2023 at 4:57 AM

Version Notes

For SPT 3.7.3

This should work, I did some preliminary testing but needs more testing. Use at your own risk!

Changelog:

  • 3.7.3 Compatibility
This download is externally hosted.
Always scan for viruses.

Keep Your Equipment

Description

Originally forked from Never Lose Equipments by Revingly and bluwatch, code adapted for SPT 3.7.0 and refactored.

  • Retain all equipment you loaded in with post-death. (Default Behavior)
    • Opt to recover only starting gear post-death without keeping raid-found items by enabling “keepOriginalEquipment”.
    • Configuration for secured container contents during this process is available via “keepSecuredContainer”.
  • Items acquired during a raid (in pockets, rig, backpack, or container) can be kept post-death but lose the FIR status if “enableFoundInRaid” is set to true.
  • Keep map keys like Labs keycards upon successful raid exit
  • Insure and drop items during a raid for insurance fraud purposes.

Installation instructions

Download the archive from the releases page and extract into the user/mods folder.

Configurable values

  • keepOriginalEquipment: true/false (Default: true)
    • Regain all original gear if you die during a raid.
  • keepSecuredContainer: true/false (Default: true, keepOriginalEquipment must also be set to true)
    • Decides if the secured container contents are reset post-death. Note: potential for item duplication exists if raid items are moved to the secured container.
  • enableFoundInRaid: true/false (Default: false)
    • Set to true to retain FIR status for raid-acquired items post-death.
  • keepMapKeys: true/false (Default: true)
    • Normally, the game will consume your Labs keycard on a successful raid. By default, this mod will keep your keycard, because you’re already using this mod to keep your original equipment, so why not?

Encountered a bug or want a feature?

Version 1.3.2+alpha
Download Mod Version
SPT 3.7.6
Latest Compatible SPT Version

3.9K Downloads

Created Nov 24, 2023 at 4:57 AM

Updated Nov 24, 2023 at 4:57 AM

Virus Total Results

For SPT 3.7.3

This should work, I did some preliminary testing but needs more testing. Use at your own risk!

Changelog:

  • 3.7.3 Compatibility
Version 1.3.1
Download Mod Version
SPT 3.7.1
Latest Compatible SPT Version

2.1K Downloads

Created Oct 15, 2023 at 3:02 AM

Updated Oct 15, 2023 at 3:02 AM

Virus Total Results

For SPT 3.7.1

Changelog:

  • Fix issue with setting inventory on successful raid

For those who can’t upgrade to SPT 3.7.1 yet, use version 1.2.4 instead.

Version 1.2.4
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

236 Downloads

Created Oct 15, 2023 at 3:02 AM

Updated Oct 15, 2023 at 3:02 AM

Virus Total Results

For SPT 3.7.0

Changelog:

  • Fix issue with setting inventory on successful raid
Version 1.2.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

315 Downloads

Created Oct 14, 2023 at 1:11 AM

Updated Oct 14, 2023 at 1:11 AM

Virus Total Results

For SPT 3.7.0

Changelog:

  • Keep map keys like Labs keycards upon successful raid exit (#4)
Version 1.1.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

161 Downloads

Created Oct 13, 2023 at 10:13 PM

Updated Oct 13, 2023 at 10:13 PM

Virus Total Results

For SPT 3.7.0

Fixes issue when extracting raid as a scav (#1)

Version 1.0.3
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

1.0K Downloads

Created Oct 11, 2023 at 5:19 AM

Updated Oct 11, 2023 at 5:19 AM

Virus Total Results

For SPT 3.7.0

  • Fix for exit status check

Should be mostly sorted now, thanks for your patience!

Insers

can you please make that you only keep earpiece, headwear, face cover, armband, body armor, eyewar, weapons (without ammo), tactical rig (empty), and backpack?

I mean, you lose all your meds, ammo, mags and stuff from inside pockets, rig, backpack that you have taken to raid with you but keep all gear items on you (Ithat you taken to raid not looted on raid) ?

Is this possible?

0 Likes

That’s a really good idea tbh

0 Likes
MIRAGGIO

it doesn’t work with 3.7.5 as soon as I start the server there are many errors in red and I have to close to go back to windows. With 3.7.4 it works. With the Never Lose Equipments mod everything works fine.

Reason:

Cannot inject the dependency “inRaidHelper” at position #14 of “NLE” constructor. Reason:

Cannot read properties of undefined (reading ‘getConfig’)

Stacktrace:

Error: Cannot inject the dependency “onLoadComponents” at position #5 of “App” constructor. Reason:

Cannot inject the dependency “httpServer” at position #0 of “HttpCallbacks” constructor. Reason:

Cannot inject the dependency “httpListeners” at position #4 of “HttpServer” constructor. Reason:

Cannot inject the dependency “httpRouter” at position #0 of “AkiHttpListener” constructor. Reason:

Cannot inject the dependency “staticRouters” at position #0 of “HttpRouter” constructor. Reason:

Cannot inject the dependency “inraidCallbacks” at position #0 of “InraidStaticRouter” constructor. Reason:

Cannot inject the dependency “inraidController” at position #0 of “InraidCallbacks” constructor. Reason:

Cannot inject the dependency “inRaidHelper” at position #14 of “NLE” constructor. Reason:

Cannot read properties of undefined (reading ‘getConfig’)

at C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:324:23

at Array.map (<anonymous>)

at C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:295:38

at InternalDependencyContainer.construct (C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:297:11)

at InternalDependencyContainer.resolveRegistration (C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:166:51)

at InternalDependencyContainer.resolve (C:\snapshot\project\node_modules\tsyringe\dist\cjs\dependency-container.js:109:33)

at C:\snapshot\project\src\Program.ts:32:32

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

at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:64:3)

at Function.runMain (pkg/prelude/bootstrap.js:1980:13)

Press Enter to close the window

0 Likes
ikryptic

Same here, on 3.7.6.

0 Likes
Kontroll

Same 3.7.6

0 Likes
JussAren

anyway to add just keep the guns and lose what’s in bag, pocket & vest when death so this way we can just rely on the container for quest items and med kits.

This way I can empty my inventory and use my money cause if I can never lose my stuff in vests, pocket and bag.. I’ll never use my inventory and purchase from trader.

0 Likes
ligma929130

who’s the girl in profile pic?
damn, she’s fine

0 Likes
flacopol

Hi Thanks for the mod , there is any chance to add the function to only save for example the backpack?

That´s maybe only my request , anything else great

Regards

0 Likes
DonkeyWrong

Was having a long black screen after death(3~5min), it was working fine after the black screen, i just thought of checking the the server cmd and saw this error in red. What to do?

Keep Your Equipment: Player died, restoring original equipment!

Keep Your Equipment: Keeping secured container

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

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

at KeepYourEquipment.keepSecuredContainer (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:217:96)

at KeepYourEquipment.performPostRaidActionsWhenDead (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:190:18)

at KeepYourEquipment.savePmcProgress (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:163:35)

at KeepYourEquipment.savePostRaidProgress (C:\snapshot\project\src\controllers\InraidController.ts:100:18)

at InraidCallbacks.saveProgress (C:\snapshot\project\src\callbacks\InraidCallbacks.ts:44:31)

at RouteAction.action (C:\snapshot\project\src\routers\static\InraidStaticRouter.ts:20:53)

at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)

at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)

at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)

at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)

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

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

at KeepYourEquipment.keepSecuredContainer (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:217:96)

at KeepYourEquipment.performPostRaidActionsWhenDead (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:190:18)

at KeepYourEquipment.savePmcProgress (C:\SPT\user\mods\KeepYourEquipment\src\KeepYourEquipment.js:163:35)

at KeepYourEquipment.savePostRaidProgress (C:\snapshot\project\src\controllers\InraidController.ts:100:18)

at InraidCallbacks.saveProgress (C:\snapshot\project\src\callbacks\InraidCallbacks.ts:44:31)

at RouteAction.action (C:\snapshot\project\src\routers\static\InraidStaticRouter.ts:20:53)

at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61)

at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62)

at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)

at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)

0 Likes
Redd

This is a fantastic mod thank you!

I don’t know if it’s possible or if it’s more work than it’s worth, but it would be really cool to see an option that keeps things like weapon durability and armor damage from the raid. Kinda like you get dragged back to base the way you were found.

0 Likes
jmg1228

When i try to load the spt server it tells me this mod is not compatible, how do i fix this?

0 Likes
captainfoam

What version of SPT Server are you running? Can you paste the exact error from the server console?

0 Likes
Dietre

I havn’t tried myself on the mod or on my own, but is it possible to configure it so that only the pistol stays after death like the melee ?

On one of the 1st spt releases I was able to do it, but the code has changed since way back when and i havnt been able to recreate. I like playing the game as hard as possible, without insurance etc too, but would be nice to keep a custom pistol lol

0 Likes
captainfoam

It’d certainly be possible, though I’m not sure how much work it would be. The mod currently takes a copy of your inventory before going into the raid, so you should theoretically be able to filter by what’s in the pistol slot and keep only that.

If you want to create an issue in the project page I’ll take a look when I get some time!

0 Likes
Lockesly

I like this idea.. of keeping just what you came in with!

Dietre to answer the question about never losing a pistol.. Well I got good news!! (not really sure if this counts as a cheat or exploit.. since a lot of the mods are doing this anyhow.. in one form or another. If it’s against forum policies just delete the post and lemme know)

Easy to do without a mod.
My SPT-AKI Tarkov folder is SPTarkov where I installed the SPT-AKi.

Go to \SPTarkov\Aki_Data\Server\configs and look for “lost on death” and open it, notepad works for this. And it should look like the following. I already set the holster (pistol) to false for you in the example below. Copy from { down and replace.. or just change what ever you want to false so dying doesn’t lose it (recommend you just change it yourself in notepad.) And Save it. Keep in mind.. you can’t really insurance fraud like some do.. where you die and keep it, and the insurance gives you a copy. That doesn’t work with this method.

{

“equipment”: {

“ArmBand”: false,

“Compass”: false,

“Headwear”: true,

“Earpiece”: true,

“FaceCover”: true,

“ArmorVest”: true,

“Eyewear”: true,

“TacticalVest”: true,

“Backpack”: true,

“Holster”: false,

“FirstPrimaryWeapon”: true,

“SecondPrimaryWeapon”: true,

“Scabbard”: false,

“Pockets”: true,

“SecuredContainer”: false

},

“questItems”: false,

“specialSlotItems”: false

}

2 Likes
Dietre

OMG, how did i over look this, so simple thank you so much

Just what I wanted!!

I like to play no insurance to make it harder, but always wanted to keep just a custom pistol on me lol , now i can!

0 Likes
Lockesly

Your most welcome.

0 Likes
Esswasim

I downloaded mod opened with 7 zip and copied folder to user/mods and After finishing raid a black screen, force quit spt and come back I see all my initial gear but no loot even after surviving the raid.

0 Likes

This is with version 1.0.3? It’d be annoying I’m sure, but would you be able to try the latest version and if it happens, copy the error that the server program outputs in red? That way I can try to identify the issue.

I’ve maybe done 20+ raids with 1.0.3 and haven’t run into any black screen issues since publishing 1.0.3…

0 Likes
Esswasim

Correct, the version was 1.0.2. Thanks for the update

1 Like

Details