Ammo Stats in Description 3.0.0

No more wondering about which ammo type is best or strongest, it's all now clearly placed in game for you! Modded ammo support and more! USE THE COLOR CONVERTER API FOR MORE COLORS! Now with Realism support!

[tabmenu]

Images

  • Version 3.0.0

    HIGHLY recommend downloading the companion Color Converter API with this mod, it pairs very well! Check the top of this mod's description for a link.


    NOTICE: To enable Realism compatibility, you need to edit "usingRealismMod" in the config.jsonc!


    Changelog:


    Added support for the new Color Converter API client plugin.
    Added support for the SPT Realism mod.
    Added Polish language support - thanks RandomCitizen!
    Changed config to .jsonc, added proper comments to the options.

    Color profiles! Check the config.jsonc to view the new color profiles (including colorblind/grayscale mode).
    Minor change to the version in the package.json, compatible with version 3.7.0+ of AKI.


    This version will NOT work for versions prior to 3.7.0 due to the change to .jsonc - please use the older release if you're playing on 3.6.1 or earlier!

  • Version 2.2.1

    Changelog:


    Minor change to the version in the package.json, compatible with version 3.5.0 of AKI.

  • Version 2.2.0

    Changelog:


    Added German language support - thanks MAEGE!

    Major refactor to localization to comply with new standards as of client version 20765.

    Minor change to the version in the package.json, compatible with version 3.4.0 of AKI.

  • Version 2.1.6

    Changelog:


    Added Spanish/Mexican language support - thanks javitecge!

    Minor change to the version in the package.json, compatible with version 3.3.0 of AKI.

  • Version 2.1.5

    Changelog:


    Added Czech language support - thanks lastocka!

    Minor change to the version in the package.json, compatible with version 3.2.4 of AKI.

  • Version 2.1.4

    Changelog:


    Minor change to the version in the package.json, compatible with version 3.2.2 of AKI.
    Added option to suppress the debug logging to get rid of some warning text when modded ammo types don't have descriptions added for all languages.

  • Version 2.1.3

    Changelog:


    Added the ability to show the penetration tier in the ammo name, so you can see it during magazine checks!
    Added the ability to change the background color of ammo icons based on the penetration tiers!
    Added Japanese language support - thanks jackrippergame!

  • Version 2.1.2

    Changelog:


    Fixed bug that showed localized languages in English even though they are supported.

    Minor refactor to support SPT-AKI version 3.1.1.

  • Version 2.1.1

    Changelog:


    Minor refactor to support SPT-AKI version 3.1.0.

  • Version 2.1.0

    Changelog:


    Major refactor to support SPT-AKI version 3.0.0!

    Added French language support (thanks MasterAuger!)

    License update.

  • Before you leave a comment or write me a message on Discord, PLEASE READ THIS FIRST.


    KNOWN ISSUES:

    • The Realism mod compatibility is currently a beta. This will be fixed with the next release. You have to manually enable it in the config settings if you're using Realism. To do this:
      • Open the config.json file with any text editor like Notepad, and change "usingRealismMod" to true.
      • Make sure AmmoStats loads AFTER Realism - you can do this one of two ways.
        • 1. Add a "z" to the beginning of the mod folder for AmmoStats (folder name should look like this: zRaiRaiTheRaichu-AmmoStats-3.0.0. This is the easiest and quickest way to ensure the mod loads afterwards.
        • 2. The proper way is to edit the "order.json" file within your user/mods/ folder such that AmmoStats loads after SPT-Realism.


    NON-ISSUES:

    • Exception produced: Error: Cannot find module 'jsonc'
      • This is not an issue with the mod. You're using an outdated version of SPT-AKI - likely a prerelease build for 3.7.0 that didn't include JSONC support. Update your SPT-AKI to the latest version or via the auto-installer and try again.
  • Is there an option to see the values Penetration and Damage after the ammunition names? In the past, you could see that even if you checked your magazine

  • how i can enable that i can see the damage and penetration on ammo ?

    In the past, you could see this in the Ammo Description

  • Thank you for this incredible mod, i learn from this sooooo good keep up for this master work THANK YOU !!!!!!!

  • When update? :D <3

  • Hey, dealing with a problem where editing in the config to set either color setting to false does not turn off the custom background colors. I am not running realism or the color api mods, and have tried disabling both the color settings in the jsonc. The only way I was able to achieve near results was to manually change all the colors in the list to "yellow". This still creates the problem of mags all being colored yellow at all times though if loaded.

    • Okay, I'll look into it, thank you for the report. In the meantime, can you post your mod list? Just want to make sure there are no conflicts going on.


      EDIT: I have the issue fixed for the next release. In the meantime, if you want to disable the colors, you can:

      - Delete "mod.js" in the mod's /src folder, if it exists.

      - Open "mod.ts" in the mod's /src folder with notepad or any text editor.

      - Find the line

      itemTables[itemID]._props.BackgroundColor = colorProfile[bulletArmorTier.toString()];

      and comment it out by placing two slashes in front of it


      ex.:

      //itemTables[itemID]._props.BackgroundColor = colorProfile[bulletArmorTier.toString()];


      That will disable the colors entirely regardless of the config option. Thanks again for reporting the issue ^^

  • I got an error when I add this mod to my folder



    The application had a critical error and failed to run

    Exception produced: Error: Cannot find module 'jsonc'

    Require stack:

    - D:\Kostya\Escape From Tarkov13.05\user\mods\RaiRaiTheRaichu-AmmoStats-3.0.0\src\mod.js

    - C:\snapshot\project\obj\loaders\PreAkiModLoader.js

    - C:\snapshot\project\obj\controllers\GameController.js

    - C:\snapshot\project\obj\callbacks\GameCallbacks.js

    - C:\snapshot\project\obj\di\Container.js

    - C:\snapshot\project\obj\Program.js

    - C:\snapshot\project\obj\ide\ReleaseEntry.js

    1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.


    Stacktrace:

    Error: Cannot find module 'jsonc'

    Require stack:

    - D:\Kostya\Escape From Tarkov13.05\user\mods\RaiRaiTheRaichu-AmmoStats-3.0.0\src\mod.js

    - C:\snapshot\project\obj\loaders\PreAkiModLoader.js

    - C:\snapshot\project\obj\controllers\GameController.js

    - C:\snapshot\project\obj\callbacks\GameCallbacks.js

    - C:\snapshot\project\obj\di\Container.js

    - C:\snapshot\project\obj\Program.js

    - C:\snapshot\project\obj\ide\ReleaseEntry.js

    1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.

    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)

    at Function._resolveFilename (pkg/prelude/bootstrap.js:1951:46)

    at Function.Module._load (node:internal/modules/cjs/loader:778:27)

    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 Object.<anonymous> (D:\Kostya\Escape From Tarkov13.05\user\mods\RaiRaiTheRaichu-AmmoStats-3.0.0\src\mod.js:7:17)

    at Module._compile (node:internal/modules/cjs/loader:1105:14)

    at Module._compile (pkg/prelude/bootstrap.js:1890:32)

    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

    • Hi, as it says in the mod description, This version will NOT work for versions prior to 3.7.0 due to the change to .jsonc - please use the older release if you're playing on 3.6.1 or earlier!



      You are using an outdated version of SPT-AKI, either one of the old testing builds for 3.7.0 or earlier.

  • The link to the Color api gets me an 404 error.

  • You have the most recent version of AKI tagged, but in your most recent file before 3.6.1 was released you dont have 3.6 listed as compatible. When I downloaded your mod, the console says its outdated and it also doesnt work.

    • It works on 3.6.1. I've gone back and re-tested it with a fresh install as well, and it works perfectly fine.

      The warning is just that, a warning. If you want the warning gone, change "akiVersion" in package.json to 3.6.1.

  • Yay, update!

  • I am fairly new to all this and having issues getting it to show at all. I have dragged the contents of the mod folder into the Bepinex>plugins. Loaded up the server and gotten nothing, then tried to just drag the folder in. Nothing still, where am I going wrong?

    • The installation instructions are in the readme, but this is a server mod, not a client mod. That means the mod's folder goes into your user/mods/ folder, not the BepInEx/plugins folder. Give that a try and see if it shows up in your server console!

      Heart 1
    • I got it to work! Thank you, and reading...my greatest foe!

      Heart 1
  • Working with 3.6.1. I get a compatibility warning when launching the server.

    • Yeah, that's a normal error. It just lets you know the package file has an old AKI version set, so it might not work as intended. This mod, however, was written to always work regardless of AKI versions.


      ...in theory.

    • I'm sorry, I was hasty in my comment and I forgot to add the part where I was going to say that the error does not bother me or affect the gameplay stability in any way. Thank you so much, you guys are doing great things. ;)

  • Can confirm it still works with 3.5.8! :thumbup:

  • Still works on 3.5.7 in case anyone needs kanasmug

    Thumbs Up 5
  • STILL working as far as i can tell with 3.5.6 if anyone was curious.

    Thumbs Up 7
  • Tested with 3.5.4. No problems so far. Thanks for the mod!

  • Tested with 3.5.2. Works just fine, haven't noticed any issues.

  • Works in 3.5.1 by making changes in the package.json file.

    • It still works even without changing it, you just get a warning that it may not be compatible, but it does still load and function fine.

      Thumbs Up 1
  • I love this mod. It's really helpful.


    Polish translation:


    "pl":

    {

    "Damage": "Obrażenia",

    "Penetration": "Siła penetracji",

    "TextEffectArmorLv": "Skuteczny przeciwko pancerzowi poziomu",

    "EffectNone": "Brak efektu",

    "Pellets": "Śrucin"

    },

    Heart 1
  • is it compatible with 3.4.1 ?

  • I can help with Italian translation...

  • Love the Mod


    German translation:


    "ge":

    {

    "Damage": "Schaden",

    "Penetration": "Durchdringungskraft",

    "TextEffectArmorLv": "Effektiv gegen Panzerung level",

    "EffectNone": "Keinen",

    "Pellets": "Schrotkugeln"

    },

    Heart 1
  • Hi, it says disabled by default but it is actually enabled by default.

    looked around in config and couldnt figure out how to enable it, so i launched client to double check and it is working fine without any config changes. Just figured i would comment this here incase you forgot to omit that from description or if anyone else is confused.

    love u

    • Hi!


      Sorry for any confusion, in the description I was referring to the feature that you can have the penetration tier shown in the name of the bullet (so you can see the tier when you check your mag). That option is a little too much for some people, so I left it off by default.


      The mod is definitely enabled by default though!


      Love u too bugcatlove

  • Thanks for update 3.3.0 !!

    Heart 1
  • "es-mx":


    "Damage": "Daño",

    "Penetration": "Penetración",

    "TextEffectArmorLv": "Eficaz contra el nivel de armadura",

    "EffectNone": "Ninguna",

    "Pellets": "Perdigones"


    It should work with "es" language too, thanks for your work.

    Heart 2
  • Alright, dumb question time, does this work with Fontaine's SPT Realism mod?

    • ah fuck, my idiot ass just read. My bad, good work with the mod

  • "cz":
           
                "Damage": "Poškození",
                "Penetration": "Průraznost",
                "TextEffectArmorLv": "Efektivní proti zbroji úrovně",
                "EffectNone": "Žádný efekt",
                "Pellets": "Broky"


    Czech language for your mod.Thank you.

    Heart 2
  • Any specific place to put the mod as currently most mods gose in (/Your_Game_Install/user/Mods/All_Mod_U_Put_Here).

    is it the same here too ?

    • Also want to ask if u can do compatibility for mod: Illegal Ammounknown.png

    • Yes, that's correct.


      I'll check into it for the next mod update, thank you for letting me know.

      Thumbs Up 1
  • Don't know if it would be a huge task, but since the SPT-Realism mod uses different sets of armor tiers, your mod correctly displays the the information for the ammo values changed within the mod except for the tier that it can penetrate, due to SPT-Realism going beyond tier 6 with some armors. I wanted to ask if there is a way to change that personally within the configs or it is something that can be added later as an optional config for the mod. Thanks in advance for the mod btw!

    • There is a file mod.ts inside zRaiRaiTheRaichu-AmmoStats-2.1.3/src folder. Open it with notepad and change this:

      Code
      return (penetrationValue > 46) ? 6
      :    (penetrationValue > 40) ? 5
      :    (penetrationValue > 31) ? 4
      :    (penetrationValue > 25) ? 3
      :    (penetrationValue > 15) ? 2
      :    (penetrationValue > 6) ? 1

      to something like this:

      Code
      return (penetrationValue > 100) ? 6
      :    (penetrationValue > 80) ? 5
      :    (penetrationValue > 60) ? 4
      :    (penetrationValue > 40) ? 3
      :    (penetrationValue > 20) ? 2
      :    (penetrationValue > 6) ? 1

      Save file, restart server and you'll see the changes.


      Values are vaguely based on PennetrationPower stats from ammo.js located in SPT-Realism-Mod\src.


      Hope it helps!

    • Yeah, you can change that function however you like. I wouldn't mind adding compatibility for it, but I just don't know how the penetration and armor strength system works in that case. The values in the mod as it stands are taken from the NFAM ammo chart rather than any calculations.


      You can also add as many more tiers to that function as you want, just as long as the tiers go in descending order of course.

  • Pls change im russian translation "ME_noarmor": "Без оружия" (No weapon) to Нет пробития (No penetration). Pretty nice mod as for me!

    • Code
      "ru":
              {
                  "Damage": "Урон",
                  "Penetration": "Бронепробитие",
                  "TextEffectArmorLv": "Эффективен против брони уровня",
                  "EffectNone": "Нет",
                  "Pellets": "Дробинок"
              },


      Sorry, this is what should be showing for the Russian text, I'm not sure where you're seeing "Без оружия" anywhere.