Question about Modding for Limited Stock

A forum to discuss custom scenarios, campaigns and modding in general.

Moderator: Panzer Corps 2 Moderators

Post Reply
Dunner10
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 2
Joined: Mon Dec 22, 2025 9:40 pm

Question about Modding for Limited Stock

Post by Dunner10 »

Hey all, long time reader, first time poster (I always wanted to say that). I have two questions related to how Limited Stock is implemented:

1. When playing with Limited Stock, units in the Limited Availability section of the purchase window are replenished by some quantity each mission (default being 20). However, sometimes there are units are available in the Limited Availability that do not have their quantity replenished each mission. I don't see a field in the units.csv file that would correspond to this, other than service and that seems to apply to availability of units, not their replenishment. Can this replenishment setting be modded? It's super-annoying when a given unit becomes available but then gets no ability to reinforce for months.

2. A related question, can limited stock availability be controlled on the unit level (i.e. I want an early model unit (e.g. PzIIC) to remain serviceable to a later date (e.g. 1946) but no additional replenishment to the limited stock pool beyond an earlier date (e.g. 1942). Is this possible?
sstejona
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 15
Joined: Mon Oct 30, 2017 11:58 am

Re: Question about Modding for Limited Stock

Post by sstejona »

Hey, I think both of these questions can only be addressed via a Lua script. You could set the availability using the equipment.pzepq file, but not the stock level.

What are you trying to set these parameters for? What does the map you're creating look like? For example, 50 rounds from 1938 to 1946, etc.?
anchorstrake
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 1
Joined: Wed Dec 31, 2025 3:15 am
Contact:

Re: Question about Modding for Limited Stock

Post by anchorstrake »

Limited Stock replenishment is controlled by the service, not the unit.

Units that appear in Limited Availability but do not replenish belong to services with no replenishment value defined. There is no per-unit setting in the unit CSV to control Limited Stock replenishment.

Limited Stock cannot be date-controlled per unit. You can limit when a unit is available, but replenishment always follows the service rules. To stop replenishment after a certain year, you must use a different service or duplicate the unit/service.

replenishment is service-level only; per-unit or per-date replenishment control isn’t supported.
Dunner10
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 2
Joined: Mon Dec 22, 2025 9:40 pm

Re: Question about Modding for Limited Stock

Post by Dunner10 »

sstejona wrote: Wed Dec 24, 2025 12:19 pm Hey, I think both of these questions can only be addressed via a Lua script. You could set the availability using the equipment.pzepq file, but not the stock level.

What are you trying to set these parameters for? What does the map you're creating look like? For example, 50 rounds from 1938 to 1946, etc.?
Thanks, was hoping to mange restock at the unit level not at the mission level. I am aware that others have managed limited stock by scripting the missions but that's a level of detail that I'm just not interested in pursuing.

anchorstrake wrote: Wed Dec 31, 2025 3:18 am Limited Stock replenishment is controlled by the service, not the unit.

Units that appear in Limited Availability but do not replenish belong to services with no replenishment value defined. There is no per-unit setting in the unit CSV to control Limited Stock replenishment.

Limited Stock cannot be date-controlled per unit. You can limit when a unit is available, but replenishment always follows the service rules. To stop replenishment after a certain year, you must use a different service or duplicate the unit/service.

replenishment is service-level only; per-unit or per-date replenishment control isn’t supported.
That's what I was afraid of. I was hoping there was a field in one of the .csv files that I'd missed or someone had some other clever trick to manage stock without scripting at the mission level but it seems I've reached the constraints of what's been made moddable.


Thanks for the help, both of you, even though your answers aren't what I was hoping to hear!
Post Reply

Return to “Panzer Corps 2 Scenario Design”