Insurance+
-
-
i've written this in the comments before, not realizing there's this support thread.
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.
Serverdev.sp-tarkov.com -
Hello! I installed this mod, and when I died, it caused my game to hang, and threw the following error on Aki server. I restarted my game (alt f4), and my stuff was still on my character as intended. So the mod works, but throws back a weird error.
Code
Display MoreTypeError: 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 (E:\SPT\user\mods\InsurancePlus\src\mod.js:157:23) at Function.customPostDeath (E:\SPT\user\mods\InsurancePlus\src\mod.js:100:17) at Function.customSavePmc (E:\SPT\user\mods\InsurancePlus\src\mod.js:68:18) at InraidController.result.savePmcProgress (E:\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) 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 (E:\SPT\user\mods\InsurancePlus\src\mod.js:157:23) at Function.customPostDeath (E:\SPT\user\mods\InsurancePlus\src\mod.js:100:17) at Function.customSavePmc (E:\SPT\user\mods\InsurancePlus\src\mod.js:68:18) at InraidController.result.savePmcProgress (E:\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)
Suggestions
-
mod is outdated, don't forger to take a look version tags before installing any mod
-
JustNU added a new version:
Quote- Updated codebase to work with 3.6.X
I haven't had time to fully test out this update, but from my limited testing it should work. Worse case scenario, you might not get your insurance back if the mod breaks.
-
JustNU added a new version:
Quote- Fixed server dying on extract (InsuredItems undefined)
Still marked as experimental, as I have noticed some fuckery with insurance. -
JustNU added a new version:
Quote- FIXED ITEM LOSING INSURANCE ON DEATH EVEN IF "LoseInsuranceOnItemAfterDeath" WAS SET TO FALSE
- FIXED GETTING DUPLICATE ITEMS FROM INSURANCE
ok should mostly work now (i hope), sorry for late update I'm very effing busy -
-
Can someone explain how to use the mod? Thanks
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!