Insurance+ 1.1.6 (AKI 3.7.1)

Please do not ask when mod authors will update their mods to 3.10 or if they can upload older versions of their mods.
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

Insured items will not be dropped on death, with option to disable vanilla insurance completely.

DOES NOT WORK FOR 3.7.3+ AND I HAVE NO INTENTIONS ON FIXING IT ANY TIME SOON


THIS (AND MY OTHER MODS) WILL NOT GET UPDATED ANYMORE ON ACCOUNT ME (JustNU) LEAVING THE SPT-AKI COMMUNITY

ALL OF MY MODS ARE UNLICENCE AKA PUBLIC DOMAIN, SO ANYONE WHO WISHES TO UPDATE/IMPROVE/TAKE OVER THE DEVELOPMENT IS FREE TO DO SO

I HAVE ALSO UPDATED SOURCE ENTRY FOR EVERY MOD OF MINE, IN CASE YOU WANT THE GITHUB REPOS


A mod inspired by ZERO Sievert.

This mod overwrites default insurance system to make you not lose insured items on death, as long you had them equipped on your body or in insured containers, backpacks, rigs.

DON'T FORGET TO INSURE EVERY PIECE OF YOUR GUN, YOU CAN STILL LOSE UNINSURED WEAPON MODS.
SAME GOES FOR KEYTOOLS, DOCS CASE, ETC. INSURE ITEMS INSIDE OF THEM TOO, UNLESS THEY'RE IN YOUR SECURE CONTAINER

Features:
- Don't lose insured items on death (you will not lose the insurance on those items).
- Option to disable default insurance, meaning once you drop item in raid and don't extract/die with it, its gone for good, insurance or not.
- Option to lose insurance on equipped items on death, optional.
- Your insured gun will lose uninsured mods, but will still try to be operable, meaning you will not lose required gun parts, even if they're not insured.

Recommended mods
- KMC SVM - To change trader insurance price.
- InternalError's Insurable Items - Best used with default insurance turned off, as you will instead have used meds, grenades and ammo come back in insurance.

  • To anyone looking for the modern version of this mod:


    hub.sp-tarkov.com/files/file/2115/
  • Good News for anyone looking for this mod in 3.9.0


    I reached out to the mod community and I think someone is going to take it over and modernize it for current versions of the game.


    I will update this comment with a link when it goes live, currently being tested and looks great!

    Thumbs Up 1
  • Wish I knew how to fix this mod. Such a good mod. :(

    • I made a post on reddit begging someone to update, and have been poking around the discord to see if anyone will take it on.


      I am devastated JustNU is gone and this mod is no longer being maintained. I would absolutely love if someone with coding knowledge took some time to look and see if it could be updated.

  • Someone please update this mod :(

    Crying 1
  • Does anyone know if a similar mod has been developed for the latest AKI version?

  • yeah just dosent work

    Thumbs Up 1
  • SPT version 3.7.3 An error pops up when exiting the raid, just a black screen and writes the following:

    Thumbs Up 1
    • Same, need an update

    • Oh good, it's not just me lol. I was messing around with custom traders and thought I messed something up.

      Happy 1
    • Same here. Rolled back to 3.7.2 and the error is gone.

      Thumbs Up 1
  • Found a bug, i dont know if its postet here already, but i think its hard to miss.

    Jaeger encrypted message (quest item) you loot near the crashed plane in "Introduction" quest stayed with me after my death.

    • known issue, dont have time to fix sorry

  • Hey JustNU, just wanted to let you know that there still is an exploit in the most recent version.


    You are able to insure items that are needed to be placed for quests (e.g. the SV-98 for Skier), place them at their designated point, extract, and get it back via insurance.


    Personally I dont think that this requires any fixing - since you deliberately have to insure an item you are intending to get rid of. But wanted to let you know just in case.


    Love the mod btw - thank you for keeping it up to date

    • yeah, there would be no way to fix this one server side, so uh
      *shrugs*

  • I think this mod is causing a quest bug where you dont loose the quest item or status during death.


    For instance i picked up Jagers letter in woods, died before extracting and still had the letter on me afterwards so i could hand it straight in


    also on search mission for prapor in woods, i found both locations, died before i could extract and again i could hand the quest straight in even though i died.

    • Hmm, that shouldn't be the thing... will look into it

  • Hey! Thank you so much for the mod! I've been using it in 3.6.1 and it's been great coming from Zero Sievert.


    Your link for 3.7.0 points to your RealisticMREs mod not Insurance+ FYI


    Cheers!

  • Just wanted to say great job on the mod!

    Was hoping to see something like having insured weapons have the insurance cooldown but function the same way as is now (the item disappears upon death and have it come back in one piece only to be re-insured again)

    Can't wait for the 3.7 compatibility update!

  • I have a suggestion, and I'm not sure if it's possible to implement.

    Adding a configurable option similar to "Lose Insurance on Item After Death"


    When you die, you would lose your insurance on the items. However, if you manage to extract alive, your insurance would still apply, but it would automatically deduct a percentage fee. For example, if all your weapon insurance costs 30,000 rubles, the insurance fee might deduct 10%, which is 3,000 rubles, after you extract and return to your hideout. If you can't afford the fee, you would lose that insurance.

  • I really like your mod as it allows me(big darn noob) to play with guns I like and not be really afraid of losing them due to me being bad at the game:thumbup: Also thanks for updates

    • how do you use the mod?

  • Thanks for the update, boss!


    I play with lose insurance in items after death set to true and make insurance 4x more expensive. Seams like a fair trade-off for instant item return.

  • I made an account just to say how much I love this mod...


    And also to beg you to fix the insurance being removed off items after death, even with the config option disabled.


    I know you said you'd look into it to a couple other users.. any progress? Please, please send an update!!

    • sorry, i've haven't been able to work on this mod for a while now due to lack of motivation
      but i promise i will look into it soon enough

  • i think i have a bug

    when i die all the insured stuff stays on me but they have to be insured again (in my opinion is fine, i think is a good balance)

    the weird part is that even if it stays on me, after some time, i receive from prapor all the insured stuff again, ending with a clone of the same gear i died in

    • will look into it, thanks

      Thumbs Up 1
  • I'm pretty sure I've found a bug:

    I'm using the latest version 1.1.3

    after dying, I'll receive all insured items I had in my inventory as they're supposed to.

    However, They are returned without insurance despite the config setting:

    "LoseInsuranceOnItemAfterDeath": false

    I tried it on a fresh install of SPT and without any other mods and it still happens.

    • gotcha, will look into it

      Heart 1
  • ypeError: Cannot read properties of undefined (reading 'InsuredItems')

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

    at InsuranceService.addGearToSend (C:\snapshot\project\obj\services\InsuranceService.js)

    at Function.customStoreLostGear (C:\SPT\user\mods\InsurancePlus\src\mod.js:230:21)

    at Function.customSavePmc (C:\SPT\user\mods\InsurancePlus\src\mod.js:84:9)

    at InraidController.result.savePmcProgress (C:\SPT\user\mods\InsurancePlus\src\mod.js:14:16)

    at InraidController.savePostRaidProgress (C:\snapshot\project\obj\controllers\InraidController.js)

    at InraidCallbacks.saveProgress (C:\snapshot\project\obj\callbacks\InraidCallbacks.js)

    at RouteAction.action (C:\snapshot\project\obj\routers\static\InraidStaticRouter.js)

    at InraidStaticRouter.handleStatic (C:\snapshot\project\obj\di\Router.js)

    at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

    at HttpRouter.getResponse (C:\snapshot\project\obj\routers\HttpRouter.js)

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

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

    at InsuranceService.addGearToSend (C:\snapshot\project\obj\services\InsuranceService.js)

    at Function.customStoreLostGear (C:\SPT\user\mods\InsurancePlus\src\mod.js:230:21)

    at Function.customSavePmc (C:\SPT\user\mods\InsurancePlus\src\mod.js:84:9)

    at InraidController.result.savePmcProgress (C:\SPT\user\mods\InsurancePlus\src\mod.js:14:16)

    at InraidController.savePostRaidProgress (C:\snapshot\project\obj\controllers\InraidController.js)

    at InraidCallbacks.saveProgress (C:\snapshot\project\obj\callbacks\InraidCallbacks.js)

    at RouteAction.action (C:\snapshot\project\obj\routers\static\InraidStaticRouter.js)

    at InraidStaticRouter.handleStatic (C:\snapshot\project\obj\di\Router.js)

    at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

    at HttpRouter.getResponse (C:\snapshot\project\obj\routers\HttpRouter.js)



    • are you on the latest server version? can you send me your profile?

    • Yep 3.6.1, also note that I have the "remove insurance after death" option on

      EDIT: from CWX, removed profile as it lags the page out :kekw: next time link it please

    • I think it's a mod conflict. when I change it to zInsurancePlus the game doesn't start at all. Could Realism or Traveller conflict with this?


      Also could Looting Bots conflict? It has the mod Skwizzy-NoDiscardLimits and it says in the readme that


      Quote

      "SPT PMC bots by default spawn with loot already in their backpacks, this loot is not marked Found In Raid and thus is subject to BSG’s RMT protection logic. With discard limits enabled, when a bot drops their backback to swap to a new one any loot with discard limits in their bag will be deleted immediately when the bag is dropped. To avoid this we set the EnableDiscardLimits to false, and also make sure to flag all items with a DiscardLimit >= 0 as InsuranceDisabled to prevent items suchs as keys and cases to be insured"

      Edit: yep, removing that mod fixes the errors

    • thank you very much, thats fucky and shouldn't happen, i will have to start working on compact patch it seems

    • Hi all,


      I'm also having this issue in 3.6.1, but I don't have the Looting Bots mod installed. I get the same (verbatim) error log as black_rose.


      All my items are on my player when I boot the game back up (I have to alt+F4 to get out of a black screen after a raid), so it's not game-breaking, just inconvenient.


      Hopefully the fix is going well - let me know if there's any information I could provide that might help you along. Thanks, JustNU!

  • Same thing is happening to me as to NxstyKxing below...I get all those same errors....Im using 3.5.7

    • yes, because the mod is outdated, look at the version tag

    • Plans on updating or should we look for an alternative mod?

    • Im incredible busy rn with college stuff and as such im not working on my mods this moment

    • Oh okay sorry yeah I didnt actually notice that....thanks for the reply

  • Doesnt seem to be working on 3.5.6 when dying in raid


    image.png

    • and all items that were in teh inventory after death are kept on death although they werent insured

    • yes, because the mod is outdated, look at the version tag

  • The mod doesn't work and when I start up the ak.server exe thing it says that the mod doesn't have a json file.

  • I'm having an issue with losing melees on death. I do have the "every slot unlocked" feature from Better Spawns Plus on, but this happens even when I insure the melee. I'll probably check with that mod as well to see which end it's on or if that option is just borked when combined with Insurance+ (which, given both are involved in keeping items, makes sense).

    If anyone does know why that's happening and has a possible fix, please let me know!

  • Hi, i have a problem with death, the game bug, and i must force quit ALT F4, this the error message from Server Value:


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

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

    at InRaidHelper.isItemKeptAfterDeath (C:\snapshot\project\obj\helpers\InRaidHelper.js)

    at Function.customDeleteInv (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:157:23)

    at Function.customPostDeath (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:100:17)

    at Function.customSavePmc (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:68:18)

    at InraidController.result.savePmcProgress (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:14:16)

    at InraidController.savePostRaidProgress (C:\snapshot\project\obj\controllers\InraidController.js)

    at InraidCallbacks.result.saveProgress (C:\Users\User\Downloads\Serveur EFT\user\mods\ServerValueModifier\src\SVM.js:37:23)

    at RouteAction.action (C:\snapshot\project\obj\routers\static\InraidStaticRouter.js)

    at InraidStaticRouter.handleStatic (C:\snapshot\project\obj\di\Router.js)

    at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

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

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

    at InRaidHelper.isItemKeptAfterDeath (C:\snapshot\project\obj\helpers\InRaidHelper.js)

    at Function.customDeleteInv (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:157:23)

    at Function.customPostDeath (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:100:17)

    at Function.customSavePmc (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:68:18)

    at InraidController.result.savePmcProgress (C:\Users\User\Downloads\Serveur EFT\user\mods\InsurancePlus\src\mod.js:14:16)

    at InraidController.savePostRaidProgress (C:\snapshot\project\obj\controllers\InraidController.js)

    at InraidCallbacks.result.saveProgress (C:\Users\User\Downloads\Serveur EFT\user\mods\ServerValueModifier\src\SVM.js:37:23)

    at RouteAction.action (C:\snapshot\project\obj\routers\static\InraidStaticRouter.js)

    at InraidStaticRouter.handleStatic (C:\snapshot\project\obj\di\Router.js)

    at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

  • 3.5.5, i'm getting an error every time i die. i can't get to post-death screen, if i restart my game i keep the items i have on me.

  • Does this mod(including the Fix in the comments) work with 3.5.5?

    If not, does someone know, which Lines to change.

    • just did a raid on 3.5.5 with the fix. it works just fine

    • Perfect THX

    • For me, no matter what options I use, the game won't take me to the death screen when I die and the server thows a lot of errors. When I relaunch the game everything I had, took into the raid and found in raid, will be there. My guess is it's just a weird thing to do with 3.5.5

  • I'm using the fix in the comments so IDK if this is how its supposed to work, but is it possible to make it so that if I insure mags in my rig, but dont insure the rig, that I get them back though insurance ie as an attachment in the messanger? Right now they just get eaten. Idk if this is how its supposed to work in 3.5.0, but if it is sorry, please feel free to ignore this.

    • Enable default insurance

  • Does this work with 3.5.2?

    • No, check comments below

    • Will you be updating the mod?

    • Yes
      When? no idea

    • alright thanks

    • For now you could do what people in the comments below suggested

  • Fix for 3.5.1: (at least i think. couldnt thoroughly test it)


    change the call for the following function in user\mods\InsurancePlus\src\mod.js into:

    inRaidHelper.isItemKeptAfterDeath(pmcData, item)


    in line 157 and 167


    essentially trimming the item parameter and adding pmcdata. apparently they changed the parameter list.

    https://dev.sp-tarkov.com/SPT-…c/helpers/InRaidHelper.ts

    Thumbs Up 2 Heart 2
    • After dying, I would just see a black screen with billion erros on my server client.


      I followed your instructions and the mod functions as intended. The mod is fixed now.


      Thank you for your 200IQ fix.


      Sincerely,

      -Mark

    • May just add the Server Crash not that it's needed or anything just want to provide it.

      Also want to mention I'm on 3.5.2

    • Confirmed this worked perfect for me as well on 3.5.2 Thanks

    • So replacing

      !inRaidHelper.isItemKeptAfterDeath(item.slotId)
      to

      !inRaidHelper.isItemKeptAfterDeath(pmcData, item)

      on line 157 and 167?

    • yep. full lines should be:


      157:

      Code
                      if (!inRaidHelper.isItemKeptAfterDeath(pmcData, item) && !insuredItems.includes(item._id) || item.parentId === pmcData.Inventory.questRaidItems) {

      167:

      Code
                      if (item.slotId != "hideout" && item.slotId != "FirstPrimaryWeapon" && item.slotId != "SecondPrimaryWeapon" && item.slotId != "Holster" && !inRaidHelper.isItemKeptAfterDeath(pmcData, item)) {
      Happy 1 Thumbs Up 1 Heart 1
  • want to ask if u have dropped item u insured will it return or not depending on settings?

    • if default insurance if enabled, then yes

    • Fuck that shit. yea i screwed up then. thanks for the answer.