Hearts of Iron IV

Hearts of Iron IV

AI Navy Generator for Random Country Placement [1.12]
33 kommentarer
Barry Bee Benson  [ophavsmand] 8. feb. 2024 kl. 23:46 
@Nicowars
Yes. This mod is mainly just a couple decisions and ship-creation code, the latter of which has mostly stayed unchanged since man the guns.
Nicowars 8. feb. 2024 kl. 20:20 
Hey its me again, is the mod compatible with the newest version of HOI4?
Barry Bee Benson  [ophavsmand] 1. nov. 2023 kl. 23:32 
@SHIN
I have implemented the fixes now. Thank you again.
Barry Bee Benson  [ophavsmand] 1. nov. 2023 kl. 23:32 
@Nicowars
The mod is primarily meant to get the AI going, but I've made it so the player may benifit from the first two steps of the decision. As in, at most, you will get the very basics of ship tech.
Nicowars 1. nov. 2023 kl. 13:00 
Hi, would it be possible to make it that, when we press the "Give Tech Based on Dockyards" decision, it would also give us, the player, some navy tech, please
Barry Bee Benson  [ophavsmand] 3. juni 2023 kl. 12:28 
ah, yes. I'll get around to fixing that. Thank you for letting me know
SHIN 3. juni 2023 kl. 4:16 
Some codes don't have "=". (at least, "Chaser Class", "Pawn Class A"nearline:1133)
Maybe, they dont "create_equipment_variant".
Barry Bee Benson  [ophavsmand] 30. juni 2022 kl. 5:21 
@Mike thanks! I think I have a player specific cheat mod, but I don't remember it was for Vanilla+MtG or frigate's content pack. It's pretty cheat-oriented, but you *can* just only pick the weaker lootboxes
Mike 28. juni 2022 kl. 0:27 
@Barry - Thank you. I have played around with the mod and I have enjoyed it. It sadly doesn ot seem to do anything for the player, but I have gotten around that by tag switching to a landlocked country to run the script, and then returning to my original nation.
Very fun so far. Thank you!

I like the variety of ship designs and classes you have come up with!
Barry Bee Benson  [ophavsmand] 27. juni 2022 kl. 8:57 
@Mike

It will give the AI naval tech. You can't create ships with stuff on it if you don't have the techs, so the AI will get techs based on numbers of shipyards it has.

This will spawn capital ships, yes.

The AI will basically get one-use "loot box" decisions. Most nations will not get a big fleet, but the nations starting with 17+ dockyards get pretty strong stuff.

I don't remember if the player gets anything. I've mostly only worked on the frigate's content pack version where the player does get a couple techs, but not sure if that's the same for this version.
Mike 21. juni 2022 kl. 8:24 
Very keen to try this out, thank you! Can you give a little more detail on what the different decisions the AI takes may lead to?

Will this spawn capital ships?

Is it influenced by the random navy techs that the AI may start with at all?

Does the player get anything?
Barry Bee Benson  [ophavsmand] 31. maj 2022 kl. 22:49 
@der meister. Since the new naval updates to frigate's content pack, this mod is no longer compatible with it. Thankfully, I have made a compatible version that fixes this. It's in the mod description.
Barry Bee Benson  [ophavsmand] 23. maj 2022 kl. 12:41 
I'm glad my mod could be of assistance o7
canavar 23. maj 2022 kl. 11:27 
i always play rcp with frigate's content pack and lately due to frigate's naval updates, ai literally stopped producing naval units. thank you.
canavar 23. maj 2022 kl. 11:26 
THANK YOU I FKIN LOVE YOU
Barry Bee Benson  [ophavsmand] 23. maj 2022 kl. 0:18 
@finfinfin440 you're welcome, and best of luck!
finfinfin440 22. maj 2022 kl. 23:12 
Thank you very much for your kind reply. I can't create the mod myself, but I'll try it with the command.
Barry Bee Benson  [ophavsmand] 22. maj 2022 kl. 22:14 
also, the link to Random Country Placement 1.11 now works again.
Barry Bee Benson  [ophavsmand] 22. maj 2022 kl. 22:11 
@finfinfin440 in short, you're kind of stripped for options. If the AI doesn't want to build big ships, you have to spawn ships in for them, which, you can't do outright from commands. This means you'll either have to switch to other countries via commands and *manually* tinker with their ship production queue, or make a mod that does it for you.
Barry Bee Benson  [ophavsmand] 22. maj 2022 kl. 22:08 
@finfinfin440

I don't fully know the reasons as to why, and what I have found out mostly comes from the discussions section or comments sections under other mods: It seems the devs hard-coded the AI into making tons of screens instead of capital ships to counter player strategies at the time. This didn't work, and now we're stuck with a bad naval AI. In truth, if there was an easy fix for the naval AI, it would probably have been done already, heh. You could see this mod as my own attempt to "fix" the problem, in a way.
finfinfin440 22. maj 2022 kl. 20:36 
Thanks for the great mod!
ai is not actively building battleships or aircraft carriers.
What is the best way to do this?
Barry Bee Benson  [ophavsmand] 14. mar. 2022 kl. 23:14 
@Wommy Juzo

yes
Wommy U 14. mar. 2022 kl. 6:14 
works this with vanilla hoi4 ?
Tragopan 17. feb. 2022 kl. 6:15 
@Barry Bee Benson Thanks! :D
Barry Bee Benson  [ophavsmand] 16. feb. 2022 kl. 23:28 
@Tragopan done!
Barry Bee Benson  [ophavsmand] 16. feb. 2022 kl. 23:03 
@Tragopan that actually sounds like an amazing idea! It should be incredibly easy to implement as well. Hang on tight, I'll get a mod like that out in an hour or two (or less)
Tragopan 16. feb. 2022 kl. 15:23 
This is great! Could you also do something about the AI and airfields? I've noticed that they will almost never build new ones on their own which means large air wars only happen in certain parts of the world with large prebuilt airfields. The AI often has thousands of planes it wasted production on and never deployed.
Lieutenant Gregory Stevens 16. feb. 2022 kl. 6:18 
Thank you so much.
Paradox 13. feb. 2022 kl. 23:32 
thank you.
Barry Bee Benson  [ophavsmand] 13. feb. 2022 kl. 22:55 
@Paradox
Good news! This mod is now confirmed to be compatible with MtGE!
Paradox 13. feb. 2022 kl. 14:46 
Sounds good thanks
Barry Bee Benson  [ophavsmand] 13. feb. 2022 kl. 14:11 
@Paradox I actually haven't tested if it works with MtGE, but, after looking through their description again, I am positive it might just work. No research has been altered, and if there haven't been any changes made to the vanilla ship design module slots, it's most likely completely compatible.

I'll check tomorrow morning and reply to you then!
Paradox 13. feb. 2022 kl. 14:01 
Can you some day make a man the guns expanded varient?