r/hoi4 • • 12h ago

Mod (other) I made a mod that lets you rename basically anything in HOI4: your country, leaders, parties, factions, states, cities, your leader's picture, country flag, even your subjects!

Thumbnail
gallery
458 Upvotes

Upfront: I built this with AI coding agents (Claude Code and Codex). It's mainly for roleplay in my campaigns, a toy I tinker with after my day job as an AI software engineer. If the AI part bothers you, fair enough, just don't download it. I'm not going to argue about it.

Links

- Rename Anything on the Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=3819937546

- CAPIE on the Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=3819929471

- Rename Anything source: https://github.com/capie-mods/rename-anything

- CAPIE source and releases: https://github.com/capie-mods/capie

You click a pencil next to a name, type a new one, and press Enter. That works for:

- your country's name and adjective, without touching its flag or colour
- your leader and your parties (all four ideology groups)
- states, cities and other characters (generals, admirals, advisors)
- factions you lead
- your subjects, through a new "Rename this country" diplomatic action

There's also a flag picker (any flag from the game, or a subset, depending on the game rules you set) and a leader portrait picker. Game rules decide who may rename what, and any feature can be switched off. The host can also turn on a news event when someone renames a country. There's a 5-day cooldown between renames. Polish letters (ą, ę, ł and the rest - my native language) work, typed straight from your keyboard.

About the injector, because people will ask: HOI4 mods can't do this on its own. There's no way for a mod to read free text the player types, and the only way to change a country's name from script is a cosmetic tag. Cosmetic tags have to be written into the mod ahead of time, and they swap the flag and colour along with the name. I wanted any name, typed in game, without touching the flag.

So the mod comes with a small native library, CAPIE (Cyprian's API Extender, after my name). A launcher loads it into the game once the main menu is up, and the game files on disk stay as they are. It makes no network connections, and it only starts on the exact game build it was written for (1.19.3.0). On any other build it stays off and the game runs normally. You switch it on and off like a mod: there's a "CAPIE" item on the Workshop, and the launcher only loads CAPIE when that item is in your playset.

Without CAPIE the mod still partly works: characters, states and cities can be renamed with an on-screen keyboard, and everything else tells you it needs CAPIE.

A few things before you try it. Multiplayer hasn't been tested with two players yet. It might work, it might desync, so I'd play single player with it for now. It's also only for HOI4 1.19.3.0 currently; a game patch turns CAPIE off until I update it.

Some antivirus engines on VirusTotal flag the DLLs (4 out of 75 at most, all machine-learning or reputation engines; Defender, Kaspersky, ESET, Bitdefender and Avast don't). That's expected for a new, unsigned file that loads itself into another process. The results are linked in the release notes, and the code is open, so you can check what it does or build it yourself.

If something breaks, tell me here or open a GitHub issue. Ideas are welcome too. I'm thinking right now about giving an ability to switch your nation's colors, and in the future it'd be nice to create something resembling a custom nation builder.


r/hoi4 • • 5h ago

Image Can anyone save my Germany.

Post image
140 Upvotes

Hey guys I did a pretty nornal playthrough. I almost got to Moscow, but those pesky Soviets pushed me back! Then I went for Stalingrad, hoping to get that juicy oil, but they encircled like, an entire army.

Now 2 days ago the Allies landed on Normandy despite all of my defenses and things are seeming harder. Can anyone fix this?!? I'm sick and tired of my generals lying to me, even the SS!

https://drive.google.com/file/d/1BA0Fex3pwd7Xr999dnHWJCBsFWvZ9vVI/view?usp=drivesdk


r/hoi4 • • 14h ago

Question Are army sizes inflated in HOI4?

486 Upvotes

I recently learned that in the real WW2, the Soviet encirclement of the Axis forces at Stalingrad consisted of 22 encircled German divisions.

I feel like in HOI4, a 22 division encirclement would be nice, but wouldn't be a particularly large one that turns the tide of the whole war, as Stalingrad was.

Likewise when reading about the island hopping of the Southwest Pacific campaign, I read that the US had to deploy 6 divisions to deal with Japanese holdouts and remnants. Specifically Wikipedia has the following sentence:

Containing these Japanese forces tied up six American divisions, threatening to make the American Army the one that became strategically ineffective.

From all my HOI4 experience, six divisions of the US army is nothing in strategic terms. I might easily use more than six marine divisions to naval invade a single significant pacific island, like Guam, let alone deploying six divisions to clean up New Guinea or something.

So my question is, is the scale of HOI4 armed forces inflated compared to the real orders of battle?


r/hoi4 • • 9h ago

Question Been building a navy from scratch as Italy and decided to build cheap aircraft carriers as well to fight the Allies. Would this AC design work with that strategy knowing that Italy has very limited resources?

Post image
131 Upvotes

r/hoi4 • • 4h ago

Discussion I used an AI enhancement mod and this is the result in the air.

Thumbnail
gallery
44 Upvotes

AI Germany knew how to concentrate its planes, and there were thousands in the air zones I tried to contest. My plane template is the third image, but despite how good it was, they beat me in the air by sheer mass.


r/hoi4 • • 1d ago

Humor Help

Post image
1.2k Upvotes

Any body have some supply tricks?


r/hoi4 • • 23h ago

Bug No Compromise No Surrender makes it impossible to befriend Japan as Italy on historical, since Japan needs to be Fascist and factionless while the new focuses make Japan a faction leader before becoming fascist.

Thumbnail
gallery
972 Upvotes

I don't even understand why Japan can't be in a faction for this focus in the first place.


r/hoi4 • • 8h ago

Question Shouldn't communist mongolia be a Soviet puppet?

41 Upvotes

Why is it independent? Historically wasn't it a Soviet puppet just like Manchukuo was for Japan?


r/hoi4 • • 14h ago

Image Is this rare?

Post image
125 Upvotes

Franco-British union has formed


r/hoi4 • • 1h ago

Humor Admirals in Soviet Union:

Post image
• Upvotes

r/hoi4 • • 17h ago

Humor Accidentally formed Albion (?)

Thumbnail
gallery
154 Upvotes

Thanks to the genius of the hoi4 AI, during my invasion of Italy, Scotland, Wales, and Northern Ireland all declared independence one after another, and all immediately joined the communist faction, pulling the Soviet Union into a war with me. After I retook Northern Ireland, suddenly I'm Albion now.


r/hoi4 • • 7h ago

Discussion Forget your best encirclements and world conquests, what's the *worst* you've bungled a game?

24 Upvotes

Feeling pretty annoyed at myself after effectively losing an hours-long Imperial Germany game by getting too hyperfocused on the northern front and not noticing that my Balkan allies had all imploded. Therefore I'm curious to know what sorts of epic fuckups everyone else has managed, especially once you've gotten out of the "total noob who gets conquered by Belgium" phase. The more disastrous and improbable the better :)


r/hoi4 • • 54m ago

Image rate my encirclement (sheeps mod)

Post image
• Upvotes

r/hoi4 • • 1d ago

Video When you forget the Italian front exists...

Enable HLS to view with audio, or disable this notification

579 Upvotes

This could have turned into the biggest throw ever


r/hoi4 • • 12h ago

Humor Hungarian Italy in Libya asks for Independence

Post image
43 Upvotes

r/hoi4 • • 16h ago

Question Does Anyone Know What This Is?

Post image
62 Upvotes

I got it after releasing germany as a puppet of the funny argentina path, its now this.


r/hoi4 • • 59m ago

Image Leave an escape for your enemy....

• Upvotes

...or in this case, a reinforcement route.

Soviets keep sending in more troops to reinforce their exclave in lithuania, to the delight of German seamen. Their convoy drops from 300 to 60 in a month.


r/hoi4 • • 6h ago

Discussion Is this a good standard to decide how many factories I need?

8 Upvotes

One of my weaknesses in the game currently is overproducing certain equipment, and not producing enough of others. So I'm trying to get it down to a science.

What I've come up with is to base my production on division training time. It takes, on average, 120 days, or 4 months, to train a division. So, my goal is to produce enough equipment to field a new division of every type I'm using (infantry, armor, mountaineers, etc) every 4 months.

So, for example, with artillery. I use it in my infantry, mountaineers, and marines. I use support company and two infantry gun regimental supports in each template, a total of 24 artillery per division.

So, to deploy a new infantry div, mountaineer div, and marine div every 4 months, I need to produce 72 artillery equipment in that same time frame.

Of course I'm not actually going to be deploying a new division of every type every 4 months, especially for special forces since they're hard capped. But, I feel like this standard would also provide me with sufficient output to replace combat and attrition losses.

So I ask the pros: is this a good standard to go by, or do you have a better one to recommend?


r/hoi4 • • 3h ago

Question Help with late Fascist US Game

Thumbnail
gallery
3 Upvotes

I've been trying to do a world conquest as fascist US and this game was going well but it went to hell after I defeated the allies without the axis being completely dead which allowed them to take everything and gain a hold over Europe so was just wondering is it pretty much over or is there something I could do to win?

Navally I'm fine at this point but my air and army are struggling (Don't know why air and army are struggling so much honestly I'm pretty sure I'm using the meta)


r/hoi4 • • 1h ago

Question How the hell do you beat the royal navy?

• Upvotes

So I am new to this game and I want to play as Italy, but every run I get absolutely fried by the British navy. When this happened the first time I decided to look up naval combat and learned the meta. I researched into the navy a lot in order to beat them, but because of how much naval research I was doing my land units were trash, not to mention that it said it would take 2 years to finish refitting all of my ships to the current model. What is the best strategy that people usually use? I can’t seem to find a way to have a decent navy without having terrible land units


r/hoi4 • • 22h ago

Bug Typo

Post image
97 Upvotes

There is a typo in "The Voice of the People" focus in the communist branch of the Norwegian focus tree.

"Only then will our Revolution will be achieved from the bottom up."


r/hoi4 • • 2h ago

Discussion Reddit Challenge: Capture Berlin and defeat Germany as USSR with 100 military factories or less

2 Upvotes

Challenge:

  • Capture Berlin and defeat Germany as USSR

Conditions:

  • Have no more than 100 military factories assigned at any moment.
  • Accept no lend lease
  • Build no forts
  • Stay as an all volunteer army

Other stuff:
You can have more than 100 military factories, they just can't be used to build stuff. So like you don't need to be converting mil to civilian as you conquer land.

I just completed on my first attempt and that was with a traditional opening of building civvies until 1939, so if you can do a world conquest I'd think this challenge is within reach.


r/hoi4 • • 1d ago

Question UK somehow knowing my invasion plans?

Enable HLS to view with audio, or disable this notification

236 Upvotes

This has been happening for a month now and it keeps me from invading GB.

I've looked up this online and apparently I'm the only one with this issue, because I couldn't find anyone with the same problem.

Edit: Apparently that's an intended feature, pretty unrealistic IMO.


r/hoi4 • • 9h ago

Art Hoi4 Mod Luxem Legacy

Thumbnail
gallery
8 Upvotes

# Welcome to Luxem Legacy 1.0!!!

Hello all who come, to my very first hoi4 mod. I am making this mod as a practice for future projects, and even as it’s still in development I am happy to announce that there are already 2 planned major expansions for after its release.

This mod is centered around Luxembourg, with playable content stretching from the Congo to the Benelux. The plan is a new, non-aligned, monarchist Luxembourg that you can eventually return to the glory days. Stay tuned for teasers, major developmental updates, and more!

Here is day 3 and day 5 to give you a rough idea of my progress and how fast the mod develops:

# Luxem Legacy Devlog October 13th (3 days into development)

Current Progress: Map is currently Fully Finished besides localization and naming conventions (No progress since last devlog)

Focus Tree: Politics Branch is approximately 50% Complete (With a Grain of Salt). Focus icons are being implemented, and 3 custom focus icons have been made. Added 5 focuses and fixed multiple.)

Events: First Development Underway (No progress since last devlog)

Portraits: 1 Portrait is ready, 2 more are planned right now. (The mod will definitely get way more portraits than that though)

National Spirits: First Development Underway (No progress since last devlog)

No Other Progress Recorded

Summary of day 3’s Progress:

Yesterday, I fixed all of the errors with the current focus tree and added new focuses. Tomorrow and the days after, the goal will be to finish the politics tree, begin working on localization, add custom focus icons, a few events, hopefully a national spirit, and after all that I will begin working on localizing the states. That is the plan for the next week or so.

# Luxem Legacy Devlog October 15th (5 days into development)

Current Progress: Map is currently Fully Finished besides localization and naming conventions (No progress since last devlog)

Focus Tree: Politics Branch is approximately 100% Complete with over 2 dozen focuses. I also added 2 extra focuses to it, and started the industry tree with about 10 focuses already and up to 15 more planned. Localization for the entire politics tree is finished.

Events: First 3 events completed. (No progress)

Portraits: 1 Portrait is ready, 2 more are planned right now. (No progress since last Devlog)

National Spirits: I think I finished about 6-8, and all of them are now localized.

Summary of day 5ms Progress:

I didn’t have time to summarize while I was writing the devlog, as my entire morning is dedicated to modding and I have school immediately after, but the progress is clear.

(I will start posting pictures of the focus tree when it looks more attractive. Some focuses are missing pictures and clip into eachother, plus not everything needs leaked this early on.)

https://discord.gg/RhCGFNdy3


r/hoi4 • • 15h ago

Tutorial I followed Bittersteel’s USSR guide, but I still keep losing to Germany. What am I doing wrong?

Thumbnail
gallery
22 Upvotes

Hey everyone,а е

I’ve been following Bittersteel’s guide for the Soviet Union, and I’ve tried to do everything properly. I built a decent, even pretty good, air force, developed a strong infantry industry, and got almost all my focuses done. My supply hubs are mostly motorized, and I’ve tried to prepare my country as well as possible before the German invasion.

I do have a small tank equipment deficit, but my overall industry is pretty strong. However, I still keep losing to the AI Germany, and I honestly have no idea what I’m doing wrong.

I usually lose the air war, which obviously makes things harder, but even when I try to play defensively, hold my borders, and wear the Germans down through attrition, they still manage to break through my lines in multiple places. I try to micro my divisions and respond to breakthroughs, but eventually the Germans push all the way toward Moscow.

By the time the fighting reaches Moscow, I haven’t upgraded the railways or supply hubs in that area, so the situation becomes pretty much hopeless.

One thing I should admit is that I haven’t built any tank divisions at all. Could that be a major mistake? I followed Bittersteel’s guide pretty closely, so I thought my preparation would be enough, but apparently I’m missing something important.

I’d really appreciate any advice, especially on how to defend against Germany effectively, win the air war, and stop the German breakthroughs without losing half the country.