Smart Lend-Lease Faction Ledger

If you liked this item, please rate it up on Steam Workshop page.

Author: Naisho the Neko

Last revision: 19 Jul at 05:06 UTC

File size: 292.04 KB

On Steam Workshop

Description:
Smart Lend-Lease Faction Ledger

I hate Lend-Lease. It is one of the oldest, untouched, pieces of in game tech. It annoyed me so much. I made this

What it does

SLL adds two always-up-to-date readouts that tell you — at a glance — which of your faction members and subjects are running low on equipment, and exactly what they need.

  • Needs List — a compact ledger that appears when you’re viewing an ally or subject by clicking a state that they own. It ranks their top equipment shortages by severity (Low / Depleted / Critical), using the exact archetype names the game generates — including custom tank and plane designs from the No Step Back and By Blood Alone designers. It it tracks generic chassis and frame.
    Light Tank
    Medium
    Heavy Tank
    etc.
    Fighter,
    CV Fighter,
    Tac Bomber
    Strat Bomber. (I think)
    Sub typing is not easy to track, I broke my code who knows how many times trying to figure out what works.
  • Lend-Lease Alerts — a top-bar that automatically surfaces the 8 most distressed nations in your faction, they are sorted by need. Nations with no manpower left to field new equipment are filtered out why waste your time to know if Transjordan needs equipment when they are maxed out at 182k with scraping the barrel.
  • Hover tooltips — mouse over any listed item to see the real stockpile numbers behind the generic label.

Why it’s smarter

I have never seen a fix for lend lease. Now that I have done something I now know why.
This mod only flags equipment a country actually fields and that you can actually supply. A nation with zero tanks will never show up asking for tanks. I tuned the thresholds but they are not perfect but a nation with 8k+ guns, you don’t need to worry about and if you are less than 3.5k guns, you have nothing to send.

Compatibility

Built entirely with scripted GUI windows — nothing overwrites vanilla interface files. It should sit next to the a deployed diplomacy window attached to the top bar. Equipment archetypes are read dynamically, so as long it is is not a custom category of weapons it should adapts to modded equipment sets.

Notes
  • Single-player focused; some internal tokens are registered as synchronized dynamic tokens for multiplayer safety, but this hasn’t been in MP. I j was trying to just got rid of the dynamic token warnings so I could read the error logs.
  • This mod is my first and in large part done because I used AI help me out. Expect some bugs but logically most of it should be from me. I had to logic my way through a lot of bugs.

    By the way. Did I mention how much I hate planes and tanks now…. they are awful to code for. Planes are literally the worst. I had carrier fighters for nations that had no carrier fighters and I tried everything I could think of to filter them out… nothing worked for hours and hours and hours of coding and research.

    This was primarily tested on a save as the US. I did not test anybody else. I had a save in 1942 that I wanted to lend lease… hence the mod. This was for my convivence and I am giving you my blood and sweat.

    The code base only starts tracking nations once they have 1 division, and runs on a daily tick. If they have no divisions they will never be registered, this is normal. Also if you lack supplies yourself it is normal to not be able to see critical needs from others in your faction or subjects.

Future

Are there things I want to fix/change? Yeah, like I want the alert to go away or names be scrubbed if you can’t help. That would be nice. But not this day….

If you run into a nation that’s flagged incorrectly or a category that doesn’t look right, drop a comment.

Download
Required DLC:

These DLC should be installed in order to use this item.


Hearts of Iron IV: No Step Back
Hearts of Iron IV: By Blood Alone