Insurance Plus 1.2.6

Please do not ask when mod authors will update their mods to 3.9.X
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

Insured items aren't dropped on death.

[tabmenu]
  • Also, I found the issue with the pockets for 3.9.X, the issue is that this.inRaidHelper["isItemKeptAfterDeath"](pmcData, item) returns true if the item is in a pocket for some reason. I managed to fix it by just adding this in HandleInventoryItems.


    Code
                    if (itemInInventory.slotId.includes("pocket") && !insuredItems.includes(itemInInventory._id) && !returnObj.DeleteItem.includes(itemInInventory._id) && !this.isRequiredArmorPlate(itemInInventory, item))
                    {
                        returnObj.DeleteItem.push(itemInInventory._id);
                    }


    Just putting this here in case anyone else wants to get pockets working, or if you were curious/wanted to push a hotfix at all.

    • I appreciate it!


      Unfortunately/fortunately I've rewritten the mod for 3.10 in a much less convoluted way (Hopefully it still works lol, need to do lots of testing). So I may look into back porting that work to 3.9 as we wait for 3.10's release.

      Heart 1
  • An interesting thing to note with the insurance and FIKA compatibility, if your body is looted by looting bots while the match is still running, since the new insurance just looks at your inventory, you still lose the items that the bots have looted.


    Not sure how you'd fix this other than the "Reset inventory to start of raid" that the older Insurance+/Never Lose Equipment had where it cached your inventory at start and reset it if you died though.

    • I think this is actually a feature of fika. The original and this current version of the mod operate in the same way.


      Honestly I think this isn't a bug. I ask my friend to not loot my insured equipment that way I get to keep it after the raid. If they loot it and I get to keep my insured equipment then it results in the gear being duplicated which I don't like.

  • Does it work on Labs? If so, can you add a config option to disable it working on Labs?

  • Hey there. I switched the "LoseAmmoInMagazines": false but it wont accept it. Im still loosing all Ammo i took into Raid.

    Is this known?


    Thanks alot for this mod!!

    • I wasn't aware, I appreciate the report. Unfortunately I've since rewritten the entire mod for 3.10 and I'm not going to try and backport the current rewrite to 3.9 as there were many insurance changes.

  • For some reason, the mod seems to be saving anything I put in pockets too... weird. Is this a known issue?

    • Yes, thank you for reporting it though. I need to rewrite the logic for the mod, I've fixed this bug but I've been procrastinating pushing out a release.

    • Pushed the release.

    • Thank you! It honestly wasn't that bad, I was just manually deleting things if I died lol

      Great work, tho!


      Edit: I've encountered some problems and had previously reported it, but, upon review, it occurred to me that it's likely a mod conflict.


      Is there a setting to make sure the insurance is kept when the item is handled by the default system? I tried looking around the configs, but I'm not really a code guy.

  • why is my backpack sometimes still lost after i insurance it? this only happened with backpack.

    • Can you try and recreate the problem and tell me what I need to do to recreate it?

    • Kinda hard to describe, it looks like the first time Insurance will work after death, but second time Insurance will not and cause the bag to "disappear"(It's not even recoverable by vanilla Insurance).

    • Check your config and see if LoseInsuranceOnItemAfterDeath is true

    • Yes it was true, but i always reinsurance everything after each death, but only the backpack gone missing after that.

    • if you can recreate the steps to do it that'd be very helpful. There are a number of bugs I need to fix and I'm planning on taking some time soon to rewrite the core functionality of the mod in a more organized way

  • Don't suppose there's a mod for 3.9 that lets you insure meds/grenades? I know there used to be for some old 3.X versions, but can't find any for 3.9 to use with this.

  • would there be a possibility to add the option to only retain insured items by therapist (as she is the more premium insurance provider) but loose items insured by prapor with normal insurance times. I've got a clunky version of this set up in svm with instant 100% return from therapist and normal insurance with prapor. having therapist set to about 2x insurance to balance this out. I want to hurt but not too much. thanks ^^

    • or just thinking about it an in game toggle to turn on and off would be cool

    • So while it is possible to do, I don't think I'll be dedicating time to implementing it unfortunately. With your config do you tend to actually use different traders for insuring different items?

    • I use a config similar to ZePenuin (also using SPT to fudge this at 100% return for both with higher costs, and long delay for Prapor) and do use both traders for different things, depends how long I can live without what I'm insuring or if I have other options, for example right now I only have 1 'para' auto pistol so I always use Therapist at a premium cost to get it back sooner, but eg random helmets and armour I just use Prapor at less cost and suffer lol


      Having two distinct insurance choices feels cool but at 100% return we really only have the time delay and cost to play around with, not a lot of knobs to tweak!


      So I do wish there was even more nuance to insurance... haven't looked into myself yet at all but I wonder if it's possible to add more insurers and/or more tiers of insurance? (is it the case with SPT modding that 'anything is possible in theory' and just complex or not?) For example sometimes guns still come back stripped (I guess this is base SPT returns process?) and I would love true 100% replacement at a premium cost, or maybe even the insurer could give us a temporary loan weapon until the other is returned... quite a lot of things to potentially play with in this area. It also might be fun to offer different payment models (subscription for n days versus permanent coverage for a single loss only as in the current style).


      Anyway no worries as far as your ability to work on any of this! Mostly just putting these ideas out there in case anyone knows its impossible (before I bash my head against a wall trying it) or even wants to implement them (go for it!).

    • you could add insurance to fence for example, and have the different insurers be the different tiers. There's a list of insured items in the pmc profile data that gets used to see what needs to be returned to you after dying in raid. You'd have to make your own system to make sure items stay insured for x amount of deaths or time but it is possible.

      Thumbs Up 1
    • Alright! Thanks for the extra info! Using the other traders for different insurance types is a good idea.

  • god loves you homie

    Heart 1
  • My items are still being lost despite being set to false in lostondeath.json and on version 1.2.2. Any ideas? SPT 3.9.2 though.

    Heart 1
  • is not being able to insure ammo/grenades and medical items intentional? Tells me that "This item can't be insured" when on the insurance screen. Other things get insured and returned to me and keep their insured status fine. on 3.9.1 using ver. 1.2.2

    • That's vanilla behavior, this mod doesn't change what items can be insured.

    • Ah, okay my bad. Its been too long since I've played vanilla and got used to Rev's Never lose equipments. Thanks

      Thumbs Up 1
  • Thanks for this mod! Would it be possible to also lose ammo in guns/mags post-raid death, like with normal insurance?

    • Yeah i'll look into this next.

    • Thank you! Also something else I noticed - I think this mod also saves quest items in inventory on death. Is that intended?

    • Nope! lol, the previous version of this mod had some bugs, and since im using the same inventory logic those were also ported over :D


      I've got some bugs on the known issues tab, ill get to them in time lol, the last one i did was lostondeath not being respected.

      Thumbs Up 1
  • Seems like it messes with lostondeath.json, I set pockets to false but I still lost them after death. I'll check if it still happens without the mod

    • Looking into it. Thanks for the report.

    • Fixed thank you!

    • Nice, thanks for update

      Heart 1
    • so awesome that you released a 3.8.x version for those of us on the old server. thanks!

      Heart 1
  • just wanna say i love this mod, i like to play softcore, but being that it is tarkov, i still want to be able to loose any loot i find in raid, and adding a price to pay to keep my stuff, instead of gambling to get it back is waaaay better!

    Heart 1
  • I can't update the server we play on from 3.8.3 to 3.9.0 because not all mods are updated, but I would really like to have this for 3.8.3 too. So all I can do is sit and wait months for all the mods to update so I can use this one ;(

  • so glad to see this updated! thanks!

    Heart 1
  • great mod but seems litle bit OP
    i have suggestion, what if the insurance has a limited number of death and after reach the limit you can't insure your item. But, to reset the death counter you must extract the same amount of your death. after that you can insurance again your item again

    • There's a config option to remove insurance after death. That way you need to reinsure it each time. I also have another mod Trader QoL that can be used to increase the insurance prices.

      Thumbs Up 1
    • oh my bad i didn't know that :) , i thought that's to disable the mod
      thanks! ;)

  • Guess I'm confused. Isn't the purpose of insuring items in Tarkov before raid, to get them back when you die? Why do we need a mod to do that? What does this mod do that simply insuring a item in Tarkov doesn't? Again, sorry but just confused. Thanks

    • Instead of getting the item back from whoever you insured it with, it just stays equipped, also has a 100% return rate so I made a mod to increase insurance price that way its a little less OP

    • Gotcha. So you have to insure EVERY item (Rig, Pockets, Backpack, body), and when you die, it's as if nothing was lost? Kind of like [Never Lose Equipments] - Never Lose Equipments ?

      Heart 1
    • Yup!

  • YOU ARE A GOD!!!

    Heart 1
  • Insuring equipped armors only keeps add-on plates, and does not return the internal unremovable armor pieces.

    Edit: probably because this falls under the "container" issue.
    image.png?ex=66908f4e&is=668f3dce&hm=35fe916aff3c1a966ffcfc94ca9487e74ee502a5c85afaafe3baed21fb983dfe&

    • Looking into it, thanks for the report. Didn't consider this when updating a mod from pre-armor slot versions lol

    • Fixed!

    • Word, will kms now!

      Crying 1
    • To test things I now start all my raids with a grenade lol.

  • Absolutely perfect! Thanks a ton for this huge QoL mod.

    Heart 1
  • any chance to increase insurance price,

    costs alot in order to insure and not loose an item.

  • Now this is an interesting mod. I've never seen this before. Time to test it!

    Happy 1
  • You are the king!! Thank you for keeping this mod alive.


    Id like to think JustNU would be happy their work lives on as well!!

    Heart 1