Hearts of Iron IV

Hearts of Iron IV

Resource Storage
57 Comments
Potätr 9 Aug, 2024 @ 10:26am 
Supply hub 2000 cost and Training Camp don't work with this mod
oWn ƬΞӍⱣŁɅƦ ☨ 25 Oct, 2023 @ 10:11am 
any known incompatibilities?
vonkaja 14 May, 2023 @ 10:23am 
hi fantastic mod, can you create a SUBMOD version for "Ultimate Tech Tree : New Horizon" ?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2677872257
Vytautas 25 Mar, 2023 @ 4:29am 
How this works?
yepiru  [author] 25 Feb, 2023 @ 8:01am 
@lartur, as I said before, this cannot be changed to what you want. If you want to keep all your country's resource stockpile you need to change your trade law.
lartur 24 Feb, 2023 @ 4:02pm 
In fact, it is not about directly limiting imports in any way, but about ensuring that stored resources do not wrongly affect the value of own extraction/production, because this is what is happening now and that is why exports are increasing.
If the inventories in storage will not erroneously affect own production, then exports will not increase erroneously, because I am talking about extra-curricular exports all the time, which increases with the increase in inventories, because the value of own production increases erroneously with the increase in inventories, which is clearly a mistake the algorithm itself, which is unnecessarily based on its own mining.
Taipan 24 Feb, 2023 @ 12:32pm 
The other one uses something else because both the player and the AI stockpiles resources. I won't post the link unless requested by yepiru. Cheers.
Taipan 24 Feb, 2023 @ 11:20am 
Yup, I found another one meanwhile, won't post it here so I don't spam, I will be testing it this evening. Cheers
yepiru  [author] 24 Feb, 2023 @ 11:18am 
@Taipan, he is using the same modifier.
Taipan 24 Feb, 2023 @ 10:32am 
yepiru  [author] 24 Feb, 2023 @ 8:56am 
@lartur, @TheReignMan I understand your issue but as I have stated in a previous conversation in this thread, there is only one modifier to programmatically add resources to a country's stockpile: country_resource_<resource>, but this modifier doesn't let me choose if the resources can be exported or not. So, the issue is not with the algorithm, but with the limitations the HOI4 dev team give to us modders.
TheReignMan 24 Feb, 2023 @ 7:37am 
@yepiru
You have to understand what people are asking for with this mod. They want the ability to stockpile resources for strategic use later in the game.

For example, if I'm playing as Japan and want to use up civilian factories to trade for oil that I know I will need later in high quantities, this mod should allow a player to trade, stockpile, and keep in reserve to never be touched until the appropriate time to be used for war.

This is what nations did in the real world, shouldn't be too hard to change the algorithm to reflect the same actions.
TheReignMan 24 Feb, 2023 @ 7:37am 
@lartur
You are definitely correct in your post. The mod does not work properly as it is described in its title. If resource storage is to occur, any excess resource available after extraction, use, and trade should be added to a national stockpile.

Once a national stockpile has been established it should NEVER be subject to resource available to export because it is surplus resource needed for strategic reserve.

This idea that oh its always subject to export and you never actually create a national stockpile is foolish and yes it is an incorrect algorithm.
lartur 24 Feb, 2023 @ 1:01am 
@yepiru
Unfortunately, your explanation is not entirely correct.
Your too simple algorithm can't handle the complexity of the problem.

It is not true that it is only the fault of increasing exports (which in fact takes place because the stock of the warehouse mistakenly increases the amount of "extracted", which in turn causes an increase in exports), because this summed up with needs still does not exceed a positive value
( because extracted + import > exported + need).
So the stock in the warehouse should increase anyway, but to a lesser extent.
But it doesn't, because "extrakted" is actually smaller than it is displayed because of your algorithm.

If your algorithm didn't cause a false increment of "extracted", then everything should work properly, because the inventory would increase or decrease daily based on the action: (extracted + imported) - (exported + need).

So I still stand by my opinion that your MOD is not working properly.
Taipan 23 Feb, 2023 @ 1:20pm 
You could add that to the mod description so other don't follow in our footsteps :))
Taipan 23 Feb, 2023 @ 1:20pm 
Thank you sir, I am stupid, I think you have already said that in the comments before.
yepiru  [author] 23 Feb, 2023 @ 10:50am 
@Taipan, @lartur, that is because resources in storage might be exported during trade. So change your Trade Law if you want to keep the resource surplus.
Taipan 23 Feb, 2023 @ 6:27am 
Not working, it stores only the daily plus, so for example if you have 5 tungsten, after 10 days you don't have 50 tungsten, you have 5, the same you have after 2 days, 3 days or 4 days, etc.
lartur 22 Feb, 2023 @ 8:24am 
With two rubber magazines (capacity 200), the increment per magazine stops for me at 11. It does not accumulate stock to a capacity of only 11..
Daniel-DPM 21 Feb, 2023 @ 7:54pm 
Because it already has it in the vanilla game?
Agent X 18 Feb, 2023 @ 12:29pm 
Why there is no oil store
yepiru  [author] 29 Dec, 2022 @ 8:05pm 
Not really
caeao 29 Dec, 2022 @ 2:59pm 
Does the AI benefit from this as well?
HUTIN PUILO 26 Dec, 2022 @ 8:58am 
Dont work with r56
saltypudding 20 Dec, 2022 @ 1:52pm 
basically just infinite resources
thexenobox1997 20 Dec, 2022 @ 5:26am 
yes that one yepiru
Loyalist 20 Dec, 2022 @ 2:24am 
THANKS DUDE, EXATCLY WHAT I NEEDED THX
DoctorGoon 19 Dec, 2022 @ 5:24pm 
Does this mod work with millennium dawn?
yepiru  [author] 19 Dec, 2022 @ 7:13am 
thexenobox1997, do you mean this ?
thexenobox1997 19 Dec, 2022 @ 6:14am 
this does work in the equestria at war mod but the lineups with buffs percent mod doesnt lineup cause of it
Doxun 19 Dec, 2022 @ 6:04am 
@yepiru Ok, thanks for replying.
梦之科学边境 18 Dec, 2022 @ 11:00pm 
@DeHelleman Try to add these to descriptor.mod
dependencies={
"50 Construction Slots"
}
yepiru  [author] 18 Dec, 2022 @ 10:17am 
@Doxun, I agree and I tried to fix this already but the modifier used [hoi4.paradoxwikis.com] to add resources to the country's stockpile doesn't let me choose if the resources can be exported or not.
Doxun 17 Dec, 2022 @ 9:47pm 
@yepiru Since it's a state owned strategic reserve like fuel, it should be unaffected by trade laws. Can this be fixed?
puppy 17 Dec, 2022 @ 1:11pm 
ohj my god
Zander 17 Dec, 2022 @ 12:14pm 
Things that miss with Balance in Mods always cool
yepiru  [author] 17 Dec, 2022 @ 9:01am 
@DeHelleman , the other mod overwrites the buildings.txt file, which is need for this mod. You could fix this by merging the two buildings.txt files.
yepiru  [author] 17 Dec, 2022 @ 8:58am 
@Doxun , that is because resources in storage might be exported during trade. So change your Trade Law if you want to keep the resource surplus.
DeHelleman 17 Dec, 2022 @ 8:53am 
it appears this mod is incompatible with this mod i use

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=902284355&searchtext=50+construction+slots

is it possible to fix this from your side? or would i have to contact the other author?
Doxun 17 Dec, 2022 @ 8:37am 
Ok, so I have 2 rubber storage built and I'm importing 16 with a surplus of 2. The reserve goes up until it gets to 20 then the reserve empties. At the same time my rubber number goes up and turns the yellow that means I'm importing too much. This then repeats, making it impossible to fill my reserve.
yepiru  [author] 17 Dec, 2022 @ 3:51am 
of course ;)
CarrieR [WT] 17 Dec, 2022 @ 3:42am 
great works may I use your cleaner map and division icons too ^^ you will be cretided
yepiru  [author] 17 Dec, 2022 @ 3:37am 
yes ;)
CarrieR [WT] 17 Dec, 2022 @ 3:36am 
Hello can I use your greatest mod in my new developing rp mod
yepiru  [author] 16 Dec, 2022 @ 6:03pm 
yes, fuel silos are still available
沙狐 16 Dec, 2022 @ 6:02pm 
can we still store oil
AIRANBLADE 16 Dec, 2022 @ 5:51pm 
wtf bulgaria among????
erkoc23 16 Dec, 2022 @ 3:24pm 
Perfect
kryptic 16 Dec, 2022 @ 3:04pm 
nvm, i found that it was interfering with the graphics of another mod, and the other must have been displacing the icons somehow. sorry about that lol
yepiru  [author] 16 Dec, 2022 @ 2:11pm 
@cryptic , can you explain in more detail what the problem is? I checked the icons and each icon creates the correct building.