Is it possible to give people unlimited infantry supply even in limited stock mode?
Moderator: Panzer Corps 2 Moderators
-
- Corporal - 5 cm Pak 38
- Posts: 30
- Joined: Sat Jan 22, 2022 8:20 pm
Is it possible to give people unlimited infantry supply even in limited stock mode?
Even in their favorite battlefield (close combat), infantry units are still very easy to take damage…… So is it possible to give people unlimited infantry supply even with limited stock mode? (Yes I know I can switch the supply to 40 or higher but in this case it make no sense to play this mode……)
-
- Major - Jagdpanther
- Posts: 1020
- Joined: Wed Dec 18, 2019 4:26 pm
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
You have to use some cheat command or map editing to get different supply stock replenish number for different units.
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
That is indeed one of the most requested adjustments to this feature which I do hope will get addressed one day, as the topic popped up a many times in the past after Limited Stock got added, with the same points raised (counterargument was it would just lead to overuse of infantry, but I'm in the camp that basic infantry, not pioneers or engineers, should be the one exception to the Limited Stock rule).
I vaguely remember one user setting things up in his installation in a way that he edited some data, so that he essentially got all the limited stock at campaign start. Then he just set the infantry to some absurdly high number so he would never run out and put a cap on the rest. That's one way for a workaround as well, but that was in some post many months back, so I can't locale the thread I'm afraid to check how he did that.
I vaguely remember one user setting things up in his installation in a way that he edited some data, so that he essentially got all the limited stock at campaign start. Then he just set the infantry to some absurdly high number so he would never run out and put a cap on the rest. That's one way for a workaround as well, but that was in some post many months back, so I can't locale the thread I'm afraid to check how he did that.
-
- Corporal - 5 cm Pak 38
- Posts: 30
- Joined: Sat Jan 22, 2022 8:20 pm
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
Wow good to see old friends like Virgil and Tassader still active in forum, hope you guys enjoying the weekend. Yes I agree that we need to limit the usage of pioneer, but we do want more basic infantry supply.
I’m not an expert of coding so cannot tell how they make the “limited stock” work. It looks that there is a (very likely to be hard-coded) script telling that at the beginning of scene add “given amount” of supplys into your stock. I’m not sure how does this script work, considering in every different scene the equipment availability might be different, they might manually defined which kinds of part should be added into your stock, in this case it might be easier, because you can just add “3*your selected amount” or even “10*your selected amount” of basic infantry into your stock. However, if they find a way to automatically check the equipment availability in each scene and use one script for all equipment, that might be more complicated, but I guess they can still add a script to add extra basic infantry.
And, considering PC2 is more likely a single-player game, sometimes I agree that you can use scene editor or even cheat engine to help you “costumize” your game……
I’m not an expert of coding so cannot tell how they make the “limited stock” work. It looks that there is a (very likely to be hard-coded) script telling that at the beginning of scene add “given amount” of supplys into your stock. I’m not sure how does this script work, considering in every different scene the equipment availability might be different, they might manually defined which kinds of part should be added into your stock, in this case it might be easier, because you can just add “3*your selected amount” or even “10*your selected amount” of basic infantry into your stock. However, if they find a way to automatically check the equipment availability in each scene and use one script for all equipment, that might be more complicated, but I guess they can still add a script to add extra basic infantry.
And, considering PC2 is more likely a single-player game, sometimes I agree that you can use scene editor or even cheat engine to help you “costumize” your game……
-
- Corporal - 5 cm Pak 38
- Posts: 30
- Joined: Sat Jan 22, 2022 8:20 pm
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
I guess what he did was editing the .lua file in campaign folder, remember how we capture the 203mm gun in Seville? Copy and paste the code, remove all restrictions, and replace the 203mm gun with other equipment you want, then go the the scene editor to add a trigger for this. Or, you can add this code in some already triggered lua codes so you can skip the annoying scene editor step.Tassadar wrote: ↑Sat Apr 12, 2025 6:44 pm That is indeed one of the most requested adjustments to this feature which I do hope will get addressed one day, as the topic popped up a many times in the past after Limited Stock got added, with the same points raised (counterargument was it would just lead to overuse of infantry, but I'm in the camp that basic infantry, not pioneers or engineers, should be the one exception to the Limited Stock rule).
I vaguely remember one user setting things up in his installation in a way that he edited some data, so that he essentially got all the limited stock at campaign start. Then he just set the infantry to some absurdly high number so he would never run out and put a cap on the rest. That's one way for a workaround as well, but that was in some post many months back, so I can't locale the thread I'm afraid to check how he did that.
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
I think he edited some very specific campaign file instead, but since it was so long ago and I don't even recall what thread it was, I might be misremembering it. So yes, the easiest solution is to probably just edit the first mission lua file and give yourself some absurd number of basic infantry so it would be impossible to ever run out of stock. That's probably going to disable achievements on the Steam version until it's re-installed, but I guess it's a minor thing as even if your using it, you'd do such a thing on a subsequent run, not the first one.
When I was doing the custom minor Axis powers run for AO, I used the hidden caches in the way you mentioned to give me access to vehicles that the devs did not assigned to those minor nations, but were used by them historically. It is indeed a simple thing, just something to be wary of is typos in names.
When I was doing the custom minor Axis powers run for AO, I used the hidden caches in the way you mentioned to give me access to vehicles that the devs did not assigned to those minor nations, but were used by them historically. It is indeed a simple thing, just something to be wary of is typos in names.

-
- Corporal - 5 cm Pak 38
- Posts: 30
- Joined: Sat Jan 22, 2022 8:20 pm
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
Yes I think that’s how they make it…… (tips: Using mod or editing lua file won’t ban the achievement) Another interesting thing is that when I bring my cores from SCW (I used no AI mod and didn’t use the limited stock there) to 1939, it looks that all my core units become unlimited supply. I’m not expecting that so I purchased lots of Ju-87A, Bf-109B and Flak18 at Madrid 39 for reinforcing my core units in early AO 39, but when I disband these extra units, yes the prestige come back but the parts didn’t show up in my supply, and I can just reinforce or overstrength my unit as I want……Tassadar wrote: ↑Sun Apr 13, 2025 7:43 pm I think he edited some very specific campaign file instead, but since it was so long ago and I don't even recall what thread it was, I might be misremembering it. So yes, the easiest solution is to probably just edit the first mission lua file and give yourself some absurd number of basic infantry so it would be impossible to ever run out of stock. That's probably going to disable achievements on the Steam version until it's re-installed, but I guess it's a minor thing as even if your using it, you'd do such a thing on a subsequent run, not the first one.
When I was doing the custom minor Axis powers run for AO, I used the hidden caches in the way you mentioned to give me access to vehicles that the devs did not assigned to those minor nations, but were used by them historically. It is indeed a simple thing, just something to be wary of is typos in names.![]()
-
- Major - Jagdpanther
- Posts: 1020
- Joined: Wed Dec 18, 2019 4:26 pm
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
You can just edit the scenario files. Check the vanilla campaign Sevastopol or AO Operation Cerberus, there is a slot in Scenario Parameter section about adding Prototype equipment to a certain player's stock, which works automatically without the need to do lua editing, and alongside that is the Limited Stock slot and (iirc) Captured slots. If you just need the designated stock added at the start of a scenario, this should be enough. lua is for setting up triggers and other conditional stuffs.Xteam25Boyz wrote: ↑Mon Apr 14, 2025 9:18 am
Yes I think that’s how they make it…… (tips: Using mod or editing lua file won’t ban the achievement) Another interesting thing is that when I bring my cores from SCW (I used no AI mod and didn’t use the limited stock there) to 1939, it looks that all my core units become unlimited supply. I’m not expecting that so I purchased lots of Ju-87A, Bf-109B and Flak18 at Madrid 39 for reinforcing my core units in early AO 39, but when I disband these extra units, yes the prestige come back but the parts didn’t show up in my supply, and I can just reinforce or overstrength my unit as I want……
As for SCW, it is because they created a special country (or faction, technically the same thing) for Condor Legion for SCW campaign as your main faction instead of Germany, so once you moved forward into 1939 and play formally as Germany, those equipments are no longer available to purchase as Germany so they just turned into unlimited supply. Those units you mentioned are exclusive to Condor Legion, and Limited Stock feature, same as Prototype, only works on units owned by the player faction. This is the same reason that picking Industrial Connection can grant you Italian prototypes that disappears in 1939.
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
I can see that this issue comes up a lot. I am not suggesting how anyone should play or enjoy the game but I wanted to share my experience with it.
I was hesitant to try Limited Stock at first but now its the only way I would play. I agree that set at 20 you can run into Inf issues, especially if you are coming from an "Engineers are my only Inf" playstyle.
There's a lot of reasons I enjoy limited stock but 1 of them was that it forced me to branch out from a min/max style and have to utilize all my available units and be very strategic with how I deploy and how much risk I expose units to.
The campaigns are manageable with LS as it is currently working IF you take it into consideration during all of your decision making (upgrades, deployment, and battle). Ex unless I get way ahead on stock I can't run more than 1 group of Eng, Wher, Gren, and Calv at a time. Sometimes I'm eve using Bridge units just to be extra "hold something" duty.
I can also see someone thinking, that just sounds painful and not fun...why would I want to do that? They are right too.
They shouldn't if it doesn't make the game more fun for them. My only point was that if you like the concept you don't have to abandon it because it doesn't work. If you change to that mode, you also need to change your approach.
I was hesitant to try Limited Stock at first but now its the only way I would play. I agree that set at 20 you can run into Inf issues, especially if you are coming from an "Engineers are my only Inf" playstyle.
There's a lot of reasons I enjoy limited stock but 1 of them was that it forced me to branch out from a min/max style and have to utilize all my available units and be very strategic with how I deploy and how much risk I expose units to.
The campaigns are manageable with LS as it is currently working IF you take it into consideration during all of your decision making (upgrades, deployment, and battle). Ex unless I get way ahead on stock I can't run more than 1 group of Eng, Wher, Gren, and Calv at a time. Sometimes I'm eve using Bridge units just to be extra "hold something" duty.
I can also see someone thinking, that just sounds painful and not fun...why would I want to do that? They are right too.
They shouldn't if it doesn't make the game more fun for them. My only point was that if you like the concept you don't have to abandon it because it doesn't work. If you change to that mode, you also need to change your approach.
-
- Captain - Heavy Cruiser
- Posts: 940
- Joined: Thu Jun 27, 2019 1:56 am
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
cheat NewHero NoSupply should work on individual units?
Re: Is it possible to give people unlimited infantry supply even in limited stock mode?
Yes, as far as I remember this hero works fine in the game. Granted, you will just get a new hero, you still need to assign him.scorehouse wrote: ↑Wed May 14, 2025 10:31 pm cheat NewHero NoSupply should work on individual units?