Hearts of Iron IV

Hearts of Iron IV

133 ratings
James's Ammunition Mod
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
571.378 KB
Feb 19, 2024 @ 4:22pm
Mar 4 @ 7:38pm
5 Change Notes ( view )

Subscribe to download
James's Ammunition Mod

In 2 collections by 1230james
The Associate's Artillery Accoutrements
59 items
James's HoI4 Mods
9 items
Description
James's Ammunition Mod
Guns don't shoot nothing!

Overview
James's Ammunition Mod (JAM) is a mod that adds Ammunition as a resource demanded by your military, similar to Fuel.

With JAM, your army, navy, and air forces will all demand ammunition during times of war. Large, lengthy wars now have an additional cost to consider - your troops will only be effective in combat if you have the ammunition available to provide to them. Any branch of the military that's lacking ammunition will suffer penalties, so make sure you're not sending men to fight without anything to shoot!

To produce ammunition, all you need to do is build military factories. All mils will produce ammunition for no extra cost. Additionally, mils that are idling (i.e., they are not assigned to a production line) will produce extra ammunition, making idle factories beneficial and letting you not fuss so much over assigning every single factory you capture during the war.

Army units will consume ammunition when actively in combat, and will consume twice as much when on the offensive. Due to technical reasons, units without generals will passively lose ammunition to deter players from exploiting what would otherwise be a major loophole.

Ships and air wings will also consume ammunition. Due to additional technical reasons, ships will consume ammunition any time they're not docked, and deployed air wings will consume ammunition regardless of whether they have a mission or not. Consumption rates are tweaked to account for this, and they will also consume no ammunition at all if your country is at peace, allowing you to move and exercise units for free during those times.

For more dynamic play, JAM also provides decisions to set ammunition distribution priorities through a set of decisions, and it also provides a diplomatic action to donate ammunition to other countries at war. AI countries will send ammunition to allies (both military and political) if they see someone becoming dangerously low on ammo or if they have too much and need to get rid of it.

All math calculations for JAM will run daily for player countries and AI majors. They run weekly for all others.

Forked from ebcott's Ebby's Ammunition mod, itself forked from Spielkrokodil's Ammunition mod.

Ironman / Achievements
🏆❌
No

Foreign Languages

Compatibility
HoI4 version 1.16 or newer required.

Mods that do any of the following may be incompatible:
  • Add or remove battalion types, ship types, or aircraft types
    • Non-vanilla unit types will still be counted, but they will use a fallback value for ammo consumption, and this may lead to weird or undesirable ammo consumption rates
  • Removes Military Factories

Mods that change the following may be incompatible, but disabling the related JAM game rules may help avoid issues:
  • Changes or removes Weapons & Equipment technologies
    • e.g., Support Weapons, Anti-Tank Equipment
    • Set the "Tech Raises Infantry Ammo Needs" game rule to Disabled
    • Known problematic mods:
      • Great War Redux
  • Changes or removes Army Doctrines
    • Set the "Ammo Needs from Army Doctrine" game rule to Disabled

JAM does not rely on nor try to overwrite any other content, so all other mods should be compatible.

JAM does not change any attributes related to Military Factories and only relies on being able to count them to function properly. This means any mods that tweak or add buildings at all are compatible without the need for any compatibility patches, unlike its predecessors.

JAM can also be used in existing saves - please allow for at least a week of game time for all numbers to be calculated for all countries.

DLC Requirements
This mod does not rely on any DLC features, so you should not need any DLCs.

Permissions
YES, you may include this mod in any modpacks/collections/whatever.
YES, you may use this mod as a base to create your own. Credit and a link back here would be very much appreciated!
YES, you may translate this mod into other languages.

Links
GitHub repository[github.com]

-----

BEFORE YOU COMMENT
Does this work with KR/KX/MD/EaW/R56/<insert mod here>? — short answer is YES, BUT ammo consumption numbers may not make complete sense. Refer to the Compatibility section above.
Popular Discussions View All (1)
5
Jul 7, 2024 @ 9:33am
Idea
Riekopo
142 Comments
Bangshotuhead May 5 @ 5:05pm 
came in to say props to the dev for actually responding lol this is like a first time i see a creator actually help out and respond
1230james  [author] Apr 23 @ 6:32pm 
Ah, yeah that would do it lol
「Yama」 Apr 23 @ 1:47pm 
I was using this mod in this game :

https://steamcommunity.com/sharedfiles/filedetails/?id=3378477376

I used a little bit "too much" of "Factory Ouput Bonus" and here i got those number...

I am ashmed of myself :steamfacepalm:
1230james  [author] Apr 23 @ 12:53pm 
This is a serious question since it sounds like you caused some number somewhere to overflow, and I need to know if it's that or if there's some other hidden flaw
1230james  [author] Apr 23 @ 10:27am 
...how many mils do you have? 😨
「Yama」 Apr 23 @ 9:32am 
In one of my games, I have the icon in "Empty" with a daily gain of -1307660.5K.
The "From idle Military Factories is at -1506977.4K.

So pretty well, i can't make ammo...

How can i resolve this issue wihout restarting a game ?
1230james  [author] Apr 21 @ 3:58pm 
Good to know; I'll make a note of it in the description for others after work
Sincap Adam Apr 21 @ 9:14am 
nope it worked when i disabled the technology advancement stuff from game rules
Sincap Adam Apr 21 @ 9:06am 
nope it crashed as i expected xd
Sincap Adam Apr 21 @ 9:03am 
hmmmm i will try this mod in Great War Redux , ammo shortage was a huge issue in ww1