Never Lose Equipments 6.3.0

You won't lose your equipped items when you die


Description:

  • This mod allows you to keep all your equipped items after your death. Nothing is removed.

IMPORTANT: This mod sometimes doesn't work well with custom/modified items


Configurable values:

  • disableThisMod: true/false => as the name indicate, if you want to go full YOLO then set this value to true
  • backupProfileBeforeSave: true/false => This option will create a backup file of your profile after every raid (whether you character die or live and it will overwrite the previous backup file); one way to prevent broken profile if something went wrong.
  • restoreInitialKit: true/false => when you die you get back everything you had before entering the raid
  • [currently disabled] keepSecuredContainer: true/false => Only matters when "restoreInitialKit" is true. When false your Secured Container also gets reset to its inital State. If true you keep all your items you put in the Secured Container during a raid. Warning can be abused for item duplicating if you put something you brought into raid into your secured Container and then die you have it in your inventory and the secured container.
  • enableFoundInRaid: true/false => If you really want to make things even easier, you can set the "enableFoundInRaid" to true to keep all the items you found during your raid as FIR after your death so you don't have to rat your way to the extract when you have that quest item. Has no affect when "restoreInitialKit" is true.
  • noSaveOnPMCDeath and noSaveOnScavDeath : true/false => means that nothing changes in the profile when a pmc/scav die! the stats for the player will not change anymore so you can't level up your character if they die in raid and anything you put in the secure container will be removed also (set to false by default)



When you die as a PMC you should see this line appear in your server terminal if you wanna verify that the mod works:

Screenshot-1.png


How to install:

  1. extract zip file
  2. move it to spt folder
  3. done



Work in progress:

  • Add option to recover the items from scav if you die (This probably require modding the game as well so I'm probably not gonna do it because it will take too much time)
  • Version 6.3.0

    • Added new configurable features:
      • backupProfileBeforeSave: true/false => This option will create a backup file of your profile after every raid (whether you character die or live and it will overwrite the previous backup file); The backupfile will be in the profiles folder as well next to your character's profile; It's one way to prevent broken profile if something went wrong.

      • noSaveOnPMCDeath and noSaveOnScavDeath : true/false => Added by suggestion from MacQba; means that nothing changes in the profile when a pmc/scav die! the stats for the player will not change anymore so you can't level up your character if they die in raid and anything you put in the secure container will be removed also! Also the health will not be updated so you have to heal your character in the profile menu! (These options are set to `false` by default)


  • Version 6.2.0

    • SPT 3.8.0
  • Version 6.1.0

    • SPT-AKI 3.7.6
  • Version 6.0.5

    • Updated for SPT 3.7.3
  • Version 6.0.4

    • Disabled the "keepSecuredContainer" until I find the bug.
      • Your secure container should reset back to before the raid and without the items you put inside it during the raid in case your die
  • Version 6.0.3

    • Fix FIR status not applying correctly
  • Version 6.0.2

    • SPT 3.7.1
  • Version 6.0.1

    • Remove some extra lines
  • Version 6.0.0

    • SPT 3.7.0
  • Version 5.0.0

    • Rewrite the mod, thanks to bluwatch for the help with the code
      • The mod now actually resets your character's gear to how to stuff you entered the raid with and all the shit you found in raid is removed when you die (secure container stuff obviously will stuff but added option to remove it as well)
      • It is recommended that you don't use insurance
      • Also make sure you backup your profile just in case
    • Add new config, please check and read the README file
  • Is this mod working for aki version 3.9.0? Keeps saying its not compatible.

  • I am having issues with the mod working for SPT and was hoping you might know the issue.


    Code
    {
        "disableThisMod": false,
      "backupProfileBeforeSave": true,
        "restoreInitialKit": true,
      "keepSecuredContainer": true,
        "keepFoundInRaidStatus": true,
      "noSaveOnPMCDeath": false,
      "noSaveOnScavDeath": false
    }


    I have LootValue the only other Server Mod.


    For Client Mods I have;

    - Amanda's Graphics

    - Amanda's Hitmarkers

    - Backdoor Bandit

    - Take a Break

    - Loot Value

    - Minimap


    I am on Version 3.8.0. I have a feeling it might be conflicting with the Loot Value mod but I am unsure.


    Thank you!

  • Thank you for making this mod!I am a Chinese player and I want to ask may I repost your mod to our website? Of course I will indicate the source and your name

    • You can repost it there but my support will be limited to only this website so I can't help you with bugs coming from there!

    • I got that,if there has any bugs,I will return here to tell you. Thank you again!

  • Hi there ! Is there a way to configure this mid, so JUST the Pocket slots Secure container and special slots are saved ? I would like to "loose" my other gear, but I want to keep some meds in my pocket slots and don't wanna buy them all over again

  • Is there a way to configure this mod so that used items are still, well, used when you die? I remember using a mod that did that; let you keep the gear you brought, but any used items were still used and you didn't get them back.

    • It used it to be like that before in the older versions but SPT core code keep changing so I have to change my code as well to make it work with the new version of spt which means some logic has to be updated unfortunately.

      I will think about your suggestion and see if it is possible to add in the future versions but no promises!

      Thumbs Up 1
  • Hello, what do You think about adding the functionality of No Save On Death to Your mod? I have done the code modification when I was doing this for myself, but thought that maybe other people would also like this. I have moved the pmc died log message and added the checks for the new config setting.


    If anyone wants to implement it themself. Let me be clear, that with those options selected. You will not receive any progress from the raid if You die/leave/MIA. No skill changes, no items in the secure container, any quest progress that do not require to safely extract etc. It will be like that raid never happened and You will be back to the state exactly before the raid.

    JSON: config.json
    {
      "disableThisMod": false,
      "restoreInitialKit": false,
      "keepSecuredContainer": false,
      "keepFoundInRaidStatus": false,
      "noSaveOnPMCDeath": true,
      "noSaveOnScavDeath": true
    }
    Heart 1
    • This is fine but you have to make it clear to people that this modification means that nothing changes in the profile when a pmc/scav die! the stats for the player will not change anymore so they can't level up their character if they die in raid and anything they put in the secure container will be probably be removed also!

    • Okay, I have added this info in my description above. But I thought that maybe You would be willing to add this to Your mod during some update? I don't know if You expect some in the nearest future though.

    • I will add it in the next update!

    • I love this feature


      You never die on record because when you die everything resets, but your memories are intact. The world doesn't know you ever died, and for them you're the legendary merc who always come back from the missions.


      It's like the movie Edge of Tomorrow

    • Was hoping Toad updates but luckily you saved the day MacQba.

      Thanks for up Revingly.

      Glory to the Modders.

  • Thank you for making this mod , and i met some issues after i die in a raid, it seems that some item has been added twice , is this just my issue or someone else met this before?

    ERROR:An item with the same key has already been added . Key:0403143251939513647633ff

    I solved this kinds of problems again by use the old saves in profile editor.

    • If you encounter this error again, pls send me the broken profile and the names of the mods you are using as well. Thanks!

    • Thank you for the reply, How can i send the logs to you? In discord or some other ways?

    • Discord is fine

    • Can you check the SPT hub "community support"channel and search"item issue" which is send by Haltzman, i post all the logs there and CJ replied me there, if you cannot find it just tell me and i will send it directly to you. Thank you.

    • I found the issues. Somebody in discord says that If the presets have the same name , even you cover the presets, it seems still exist as two presets. And it caused that issues.I will try to wiped them all. Sorry for wasting your time.

  • thank you for making this mod! this mod totally changes the game for me as i'm just not a fan of loosing gear in the vanilla game. really appreciate all your hard work on this mod!

    Heart 1
  • I've tried using the ammo pouch mod. When I die it disappears, whether it's in the pocket slot or the armband slot. Any workaround for this? Thanks.

    • Give me more information:

      - What version of SPT

      - What other mods you are using

      - If there are errors in the server console, copy/paste them here

  • i just want my ammo back.

    Or can I get my ammo insured, too

  • hi, I encountered the following problem: in general, the mod works the way I want, but sometimes when you die, the backpack disappears: not only its contents, but also the backpack itself, along with everything that is in it.


    spt version 3.7.6, mod version 3.7.3

    config:

    {

    "disableThisMod": false,

    "restoreInitialKit": false,

    "keepSecuredContainer": true,

    "keepFoundInRaidStatus": true

    }

    I also use the mod "JOSH MATE'S BETTER BACKPACKS", perhaps this could have something to do with it?

    how can I solve this problem?

    • Mods that generally adds custom items with unique IDs or modify existing items can cause such issues unfortunately. Even with all the precautions I take here, I can't predict all the weird cases!

  • anyway to just lose what's in my vest, pockets & backpacks but keep my guns and whatever is in my secure container.


    So this way I can actually use what's in my stash.

  • Hey! Does anyone have information whether this will work for current version (3.7.6)?

    • does not work for the most recent spt

    • It does work for me tho. im currently on 3.7.6 and it work just as its intended

  • Hi all,
    Thanks for all the work done.
    Do you think work for an new release with 3.7.6 compatibility ?


    I'm newbie and maybe I use it wrongly but it doesn't work for me ! It's most certainly my fault but I admit I don't understand where the problem lies.


    Thanks for all !

  • I might be a little stupid, but I'm just curious.

    restoreInitialKit means it only restores what you had going into the raid when you die, but what does keepFoundInRaidStatus do?

    Does it keep everything I had in the raid, even the stuff I went in with? Just curious, and want to be thorough. Thanks!

    • Normally keepFoundInRaidStatus makes sure that all items you get in a raid, have a found in raid status, after you die. But for this to work you have to disable restoreInitialKit because this makes you loose everything you found during the raid

    • Ok gotcha, thanks.

  • You can no longer keep items found in raids, but if you die ???

  • Everytime I die or leave a Raid I just get a BlackScreen and this error in the console. Anyone any ideas? TIA



    PMC DIED!!!

    RESTORING INITIAL EQUIPPMENT!!!

    TypeError: Cannot read properties of undefined (reading 'indexOf')

    TypeError: Cannot read properties of undefined (reading 'indexOf')

    at ProfileHelper.removeCompletedQuestConditionFromProfile (C:\snapshot\project\src\helpers\ProfileHelper.ts:47:60)

    at NLE.performPostRaidActionsWhenDead (C:\Users\Stephen\Documents\Tarkov SP\user\mods\revingly-nle-6.0.5\src\NLE.ts:227:40)

    at NLE.savePmcProgress (C:\Users\Stephen\Documents\Tarkov SP\user\mods\revingly-nle-6.0.5\src\NLE.ts:160:35)

    at NLE.savePostRaidProgress (C:\Users\Stephen\Documents\Tarkov SP\user\mods\revingly-nle-6.0.5\src\NLE.ts:93:18)

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

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

    at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:50:63)

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

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

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

    TypeError: Cannot read properties of undefined (reading 'indexOf')

    TypeError: Cannot read properties of undefined (reading 'indexOf')

    at ProfileHelper.removeCompletedQuestConditionFromProfile (C:\snapshot\project\src\helpers\ProfileHelper.ts:47:60)

    at NLE.performPostRaidActionsWhenDead (C:\Users\Stephen\Documents\Tarkov SP\user\mods\revingly-nle-6.0.5\src\NLE.ts:227:40)

    at NLE.savePmcProgress (C:\Users\Stephen\Documents\Tarkov SP\user\mods\revingly-nle-6.0.5\src\NLE.ts:160:35)

    at NLE.savePostRaidProgress (C:\Users\Stephen\Documents\Tarkov SP\user\mods\revingly-nle-6.0.5\src\NLE.ts:93:18)

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

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

    at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:50:63)

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

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

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

    • PS this was fine until 2 days ago. Could it be a MOD I have added?

    • I can't replicate this error with my installation. I am using the newest spt version with no other mods and it works completely fine. Maybe try reinstalling spt. Yes it could be conflicting with other mods, try deactivating each mod to see which one might cause it.

    • Get the same issue, and also seemingly just occurred overnight.


      NLE active

      PMC DIED!!!

      RESTORING INITIAL EQUIPPMENT!!!

      TypeError: Cannot read properties of undefined (reading 'indexOf')

      TypeError: Cannot read properties of undefined (reading 'indexOf')

      at ProfileHelper.removeCompletedQuestConditionFromProfile (C:\snapshot\project\src\helpers\ProfileHelper.ts:47:60)

      at NLE.performPostRaidActionsWhenDead (D:\EFT SPT 376\user\mods\revingly-nle-6.0.5\src\NLE.ts:227:40)

      at NLE.savePmcProgress (D:\EFT SPT 376\user\mods\revingly-nle-6.0.5\src\NLE.ts:160:35)

      at NLE.savePostRaidProgress (D:\EFT SPT 376\user\mods\revingly-nle-6.0.5\src\NLE.ts:93:18)

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

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

      at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:50:63)

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

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

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

      TypeError: Cannot read properties of undefined (reading 'indexOf')

      TypeError: Cannot read properties of undefined (reading 'indexOf')

      at ProfileHelper.removeCompletedQuestConditionFromProfile (C:\snapshot\project\src\helpers\ProfileHelper.ts:47:60)

      at NLE.performPostRaidActionsWhenDead (D:\EFT SPT 376\user\mods\revingly-nle-6.0.5\src\NLE.ts:227:40)

      at NLE.savePmcProgress (D:\EFT SPT 376\user\mods\revingly-nle-6.0.5\src\NLE.ts:160:35)

      at NLE.savePostRaidProgress (D:\EFT SPT 376\user\mods\revingly-nle-6.0.5\src\NLE.ts:93:18)

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

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

      at InraidStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:50:63)

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

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

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


      Mods are:


      {"order":["revingly-nle-6.0.5","SPT-Realism","zSolarint-SAIN-ServerMod","Fontaine-FOV-Fix","aCivicPainter","AKGUYShop","Priscilu","GearGal","TacticalGearComponent","Armalite-Reloaded","CivicBlackCore","CivicMagTape","DoorBreacher","Kiki-DegredationRemover","Lyconox-HK416HeavyBarrel-1.0.1","MoreCheckmarksBackend","RaiRaiTheRaichu-AllTheClothes-1.4.0","RaiRaiTheRaichu-AmmoStats-3.0.0","revingly-biggerkeytool-2.6.4","revingly-micc-3.9.2","VAFELZ-ALLAMMO","WeightlessAmmo","zzDrakiaXYZ-Waypoints"]}Mods are

  • i have been using this for a bit now and it worked in the latest spt version but for some reason now when i try to extract or die in a raid it just sits on a black screen.


    then when you look at the server it just says NLE Active and wont let me get back to the main menu and have to alt F4 out of the game any help with this?

    • You can download an alternative mod to do this :
      SVM (Server Value Modifier) and just modify assurance to minimum.
      You won't lose anything that's insured (like keys, backpacks, armor, helmets, etc.). You will keep only item in your push (Best alternative I find). But you need to run "an empty raid" to retreive your items.
      I hope this mod will be update to "keep what you want".

      Thumbs Up 2
    • Are there any other error messages in the console, because when I tested it the mod worked fine for me.

    • no it jsut sits with NLE active on the console sadly

    • Did you change anything before it stopped working. For example installed a new mod or changed configs of some mods.

  • Disregard previous: I reinistalled it, then installed LoadOrderEditor for the mod load order and it works fine now.


    Thank-you for this mod! :):thumbup:

    • Hey do you mind telling me your mod order? Just paste your order list if thats OK... Cheers

  • Please update to 3.7.6 ;(

    • Are you having any issues, because for me the mod works fine in 3.7.6

    • I Think it´s the Problem with SecureContainer. So the mod himself works fine but all what u put into this Container will deleted if u die.

    • The SecureContainer option caused a bug, where the whole profile was broken afterwards, therefore it was disabled until the bug is fixed.

  • Great mod for pairing with Traveler but I really wish the keepSecuredContainer option was working.

    Thumbs Up 2
  • A very nice mod !

  • 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?

    • you dont need this mod for what u need, u just have to go to aki_data/server/configs and open "lostondeath". change the false to true for what u want

      Thumbs Up 2
    • will it remove contents of the backpack vest etc ?

    • i have set backpack to false, grabbed a backpack and put a single ammo in it, after i died i have backapack and that 1 ammo, i dont want the ammo to stay after death, only EMPTY backpack :)

  • please update for 3.7.6

    Thumbs Up 1
  • Great Mod that means I can actually enjoy playing Tarkov without my usual "gear-fear". However, since SPT 3.7.5 I lose all the stuff put in my secure container during the raid if I get killed (often). All the rest is working okay.

  • any update for spt aki v3.7.5 ?

  • Mod is deleting keys, cash in wallets and dogtags from backpack and secure case. Any fix for that maybe? Either way awesome mod.

    • This happens when your pmc die with this stuff on him or when you extract?

    • Both unfortunately.

  • would there be a way to keep a gun in the holster and nothing else?

    • try to search a file called "lostondeath" should do the trick

      Heart 2
    • mind blow

      Heart 1
  • God bless, this mod is amazing, combining it with the Radar Mod, makes Tarkov feel a lot more casual and just more fun in general. (Especially with double reload speed for mags).

  • im having trouble getting this to work. the mod is in the user/mods folder. do I have to buy the insurance too?