ArmorUpgrader 1.0.1

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

a trader that can upgrade your armor ,increase the armor points.

hub.sp-tarkov.com/attachment/2782/


A trader that can upgrade your armor ,increase the armor points.

it will cost you some money and an old armor

hub.sp-tarkov.com/attachment/2785/

hub.sp-tarkov.com/attachment/2786/


Config:

  "armorMul": default 2, the armor points multiper, also raise the upgrade fee. integer only
  "repairMul":default 0.6, repair cost discount

replace the jpg file in avatar folder to change icon


Notice:

BACKUP your profile before use this mod. if you are heavily moded,use a new profile test it.


Uninstall:

delete all the armor pro first,then remove the file


about source code:

i am not good at ts or js,so feel free to grab this shitty code and make it better

Images

  • Judging by the comments, it probably doesn't work anymore. Any chance for an update?

  • We gona see an update for this? Kinda link this mod :)

  • Heyo, first of all love your mod. Are you planning to add the same functionality for armored rigs as well? Thanks!

  • what to do if I don't have it in trade and apparently it doesn't work

  • (node:7288) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token u in JSON at position 0

    at JSON.parse (<anonymous>)

    at JsonUtil.clone (C:\Battlestate Games\Escape from Tarkov\obj\bundle.js:16328:21)

    at ArmorUpgrader.createArmorItem (C:\Battlestate Games\Escape from Tarkov\user\mods\101p-ArmorUpgrader\src\mod.js:124:25)

    at ArmorUpgrader.itemLoop (C:\Battlestate Games\Escape from Tarkov\user\mods\101p-ArmorUpgrader\src\mod.js:84:24)

    at ArmorUpgrader.createTrader (C:\Battlestate Games\Escape from Tarkov\user\mods\101p-ArmorUpgrader\src\mod.js:61:25)

    at ArmorUpgrader.delayedLoad (C:\Battlestate Games\Escape from Tarkov\user\mods\101p-ArmorUpgrader\src\mod.js:44:10)

    at DelayedModLoader.executeMods (C:\Battlestate Games\Escape from Tarkov\obj\bundle.js:12313:21)

    at DelayedModLoader.load (C:\Battlestate Games\Escape from Tarkov\obj\bundle.js:12302:14)

    at ModCallbacks.onLoad (C:\Battlestate Games\Escape from Tarkov\obj\bundle.js:1846:24)

    at App.load (C:\Battlestate Games\Escape from Tarkov\obj\bundle.js:16016:59)

    (Use `Aki.Server --trace-warnings ...` to show where the warning was created)

    (node:7288) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.htm…unhandled_rejections_mode). (rejection id: 1)

    (node:7288) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


    Conflict with SamSWAT's armors, like Exoskeleton Duty or others.

  • Hi, I would love to play the mod but I get this error

    Quote
    In response to http://127.0.0.1:6969/client/t…aderAssort/armorupgrader: Error converting value {null} to type 'System.Double' Path '5c0e541586f7747fa54205c9_protid[0][0].count', line 1, position 5181
  • I like the mod, thanks a lot. One qick question: is it possible to implement also changing the armor class via config file?

    • Until the mod creator add this feature you can do it yourself.


      Open the mod.js file with a text editor and navigate to ~line 117 in function createArmorItem() and add the following line:


      item._props.armorClass = 6;


      Example:


      let item = JsonUtil.clone(items[oid]);

      //change item properties

      let nid = oid + "_pro";

      item._id = nid;

      item._props.Durability *= Config.armorMul; //changed 6/29

      item._props.MaxDurability *= Config.armorMul; //changed 6/29

      item._props.CanSellOnRagfair = false;

      item._props.RepairCost = 15000;

      item._props.armorClass = 6; // added 7/2

      item._props.RepairCost = Math.ceil(item._props.RepairCost);

      items[nid] = item;



      This will make any armor you upgrade into class 6 armor, I tested this in my own game and it works.

    • Yeah i did so already, thanks :)

      But I tought it would be nice to change the armor class individually on each armor.

    • sorry no plan to add that,im sure there are other mods can change items value one by one


      even not, you can edit the item.json

  • Cant insure armor from mod. Is this intended?

    • yes,he can only repair

    • Oh,sorry. I wrote my question wrongly. Armor made by upgrader is not insurable. No trader can insure armor made by this mod. Is this a bug on my side? I can click on "insure" but then it says "item is not insurable" and insurance costs 0 rubles.

    • Same issue here. Error in serverlog says, that it can't calculate insurance costs. So you can not insure anything.

    • sorry guys ,fixed in new version

      backup config file if you changed it

      Like 2