ArmorModifier 1.3.0

Edit some stats of any armor, and the body armor repair kit. ​Change the buff chances and buff amounts for light and heavy armors.

Change the stats of armors, and the body armor repair kit.
Change the durability, armor zones, and penalties.

Change the buff chances and buff amounts for light and heavy armors.

You need the item ID to apply it, you can get item IDs here.



Known Issues:
NONE

  • So uh do I drag this into the directory or how is this exactly used. Description doesn't give many answers.

  • I can't seem to grasp how to make this mod work, i'm not sure how to add a new item, as far as i understand i have to open config.JSON with Notepad++ and then what? Do i need to open a bracket on line 72? Before that? Do i need to add ""armors": [" before start?


    I REALLY want to alter some items but i have no idea how to do it, i really wished there was a super dumbed down step-by-step tutorial, not even from reading the other comments helped me, the closest i got was when i try to alter the the items already on the file but nothing changes ingame



    What i'm trying to do is add full head coverage to "62a61c988ec41a51b34758d5" and most defensive stats from an Altyn helmet, i mean, armor points, armor class, material, etc

  • Can you change the size of pouches in the chest rig?

  • Do you know how to set max durability for armor? I've tried to use it like this below but it doesn't work.


    "armors": [

    {

    "id": "609e860ebd219504d8507525",

    "durability": 100,

    "MaxDurability": 100,

    "armor_class": "6",

    "speed_penalty": -1,

    "mouse_penalty": -1,

    "weapon_ergonmoic_penalty": -1,

    "weight": 1,

    "armor_material": "Aramid",

    "armor_zones": [

    "Chest"

    ],

  • How do you use it?

    • Nvm how do i do a helmet tho?

    • Man I have read everywhere and cant figure out how to use it LOL

  • Is there anyway to classify each section of our armor configs with the corresponding name of the item? just for easier referencing when coming back and making changes without having to constantly look up the ids everytime to make sure I am editing what I want.

    I attempted to MacGyver it myself with Microsoft Visual Studio and compare with another mod(muchneeded) to see if I can add in a line which allows placement of text without affecting the rest of the code, in order to have both the id and name in the same little indentation thingy for an armor config.


    But I do suck at this sort of thing lmao, so I was hoping if this would be an idea you're interested in. :)

  • Having a problem with the mod, when i try to start spt and run the AKI.server.exe it gives me a "syntax error" and its all red Tried deleting it then starting it and it worked just fine so i downloaded it again and same exact thing happened.

    This is the error i get


    SyntaxError: D:\SPT\user\mods\shredder-Armor Modifier\src\config.json: Unexpected token { in JSON at position 1868 SyntaxError: D:\SPT\user\mods\shredder-ArmorModifier\src\config.json: Unexpected token { in JSON at position 1868

    at parse (<anonymous>)

    at Object.Module._extensions..json (node: internal/modules/cjs/loader: 1173:22)

    at Module.load (node: internal/modules/cjs/loader: 981:32)

    at Function.Module._load (node: internal/modules/cjs/loader: 822:12)

    at Module.require (node: internal/modules/cjs/loader: 1005:19)

    at Module.require (pkg/prelude/bootstrap.js:1851:31)

    at require (node:internal/modules/cjs/helpers:102:18)

    at armor.postDBLoad (D:\SPT\user\mods\shredder-ArmorModifier\src\ArmorModifier.js:11:24)

    at

    at

    at

    PostDBModLoader.executeMods (C:\snapshot\project\obj\loaders\PostDBModLoader.js) PostDBModLoader.onLoad (C:\snapshot\project\obj\loaders\PostDBModLoader.js)

    SyntaxError: SyntaxError:

    D:\SPT\user\mods\shredder-ArmorModifier\src\config.json: Unexpected token { in JSON at position 1868 D:\SPT\user\mods\shredder-ArmorModifier\src\config.json: Unexpected token { in JSON at position 1868

    at parse (<anonymous>)

    at Object.Module._extensions..json (node: internal/modules/cjs/loader: 1173:22)

    at Module.load (node:internal/modules/cjs/loader: 981:32)

    at Function.Module._load (node: internal/modules/cjs/loader: 822:12)

    at Module.require (node: internal/modules/cjs/loader: 1005:19)

    at Module.require (pkg/prelude/bootstrap.js:1851:31)

    at require (node: internal/modules/cjs/helpers:102:18)

    at

    armor.postDBLoad

    at

    (D:\SPT\user\mods\shredder-ArmorModifier\src\ArmorModifier.js:11:24) PostDBModLoader.executeMods (C:\snapshot\project\obj\loaders\PostDBModLoader.js) at PostDBModLoader.onLoad (C:\snapshot\project\obj\loaders\PostDBModLoader.js)

    • Invalid configuration, you have to fix it

    • Any ideas how bc im very new to modding

    • It means you have an extra, or a missing curly bracket {}


      If you share your D:\SPT\user\mods\shredder-ArmorModifier\src\config.json file I can help fix it.

      Heart 1
  • The helmet weighs 15 kg) Throwing out the armor and picking it up, it clones

  • Could you add the ability to change the enhancement effects thats under repair.json in server configs please :aquacries:

  • Ive been trying to add Birdeye's NICE COMM 3 backpack but having some trouble with it, any chance at some help with the coding? And would it be possible to mess with the weight value?

  • First of all: Thanks for this mod and for your work!


    So... it "only" allows me to change the armor value and not type of the armor (heavy / light etc.)?


    Also... does it work for armored chest rigs as well or only the specific armor vests?

    • Great simple mod, hopefully OP can expand on it further.



      Add this line to ArmorModifier file, place it with all the others that look similar.

      Code
      armorItem._props.ArmorType = element.armor_type;

      You can then add "armor_type": "Heavy", under armor_class in the config.json file.


      Works fine for armored rigs too.




      If you want the ability to edit Helmet head zones and weight too..

      Code
      armorItem._props.headSegments = element.head_zones;
      armorItem._props.Weight = element.weight;

      Add a , to the end of the armor_zones closing ] and then put this under it.

      "head_zones": [

      "Top", "Nape", "Eyes", "Jaws", "Ears"

      ]

      You must also set the armor_zones to Head for helmets.




      Examples:


      TV-110 Armored Rig

      Code
      {
              "id": "5c0e746986f7741453628fe5",
              "durability": 100,
              "weight": -10,
              "armor_class": "6",
              "armor_type": "Heavy",
              "armor_zones": [
                  "Chest", "Stomach", "LeftArm", "RightArm"
              ]
          }


      Wendy Exfil Helmet

    • Awesome! Thanks a lot. I figured out to modify helmets, goggles etc. - but only with the armor zones, I wasn't sure about the armor segments and classes.


      You helped a lot! Thank you, brother!


      *Edit:


      I tested also this and it worked perfectly:


      (But you need to delete all existing stuff from your inventory and then buy it again via Flea market, otherweise you get an error.)


      ArmorModifier.js

      Code
        armorItem._props.ArmorMaterial = element.armor_material;


      config.json

      Code
      "armor_material": "UHMWPE",
    • Newest update comes out with all three suggestions, Armor Weight, Head Zones, and Armor Material.

  • What is the format for adding additional areas of protection? Such as thorax and stomach, how would I write that out in the config?

    • There should be some examples in the default config.

      JSON
      // Chest only
      "armor_zones": ["Chest"],
      
      // Chest + stomach
      "armor_zones": ["Chest", "Stomach"],
      
      // Full upper body
      "armor_zones": ["Chest", "Stomach", "LeftArm", "RightArm"],
    • This was all that was in the default config, minus the changes I made to the last preset. Just a heads up.


      [

      {

      "id": "5fd4c474dd870108a754b241",

      "durability": 75,

      "armor_class": "6",

      "speed_penalty": -8,

      "mouse_penalty": -2,

      "weapon_ergonmoic_penalty": -1,

      "armor_zones": [

      "Chest"

      ]

      },

      {

      "id": "5e4abb5086f77406975c9342",

      "durability": 100,

      "armor_class": "6",

      "speed_penalty": -10,

      "mouse_penalty": -2,

      "weapon_ergonmoic_penalty": -1,

      "armor_zones": [

      "Chest"

      ]

      },

      {

      "id": "6038b4ca92ec1c3103795a0d",

      "durability": 100,

      "armor_class": "6",

      "speed_penalty": -10,

      "mouse_penalty": -2,

      "weapon_ergonmoic_penalty": -1,

      "armor_zones": [

      "Chest"

      ]

      },

      {

      "id": "609e8540d5c319764c2bc2e9",

      "durability": 130,

      "armor_class": "6",

      "speed_penalty": -10,

      "mouse_penalty": -2,

      "weapon_ergonmoic_penalty": -1,

      "armor_zones": [

      "Chest"

      ]

      }

      ]



      Thank you

  • i think i am slow, or the mod only has 4 armors listed inside of it, and i don't think an average joe like me knows how to add armors and their respective class and types of materials etc

    • also if i change anything inside the mod i get errors :{

    • It only has 4 as examples, and those are the one's I changed for myself. There is no way to change the type of material the armor is though.

  • 3.5.0 ?

    • Yea it should work on 3.5.0. It does on my version for it at least.

  • lets goo my maaan

  • does it work with helmets and rigs too or just body amror?

    • It works with helmets, visors, ear covers, mandibles, and should work with rigs too.

    • Does it work for backpacks? I religiously play with the COMM 3 backpack but ive get the weight value or container size to change