Units in unit.csv file not available in game play

A new story begins...
The sequel to a real classic: Panzer Corps is back!

Moderator: Panzer Corps 2 Moderators

Post Reply
jimcrotteau
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Oct 19, 2022 8:47 pm

Units in unit.csv file not available in game play

Post by jimcrotteau »

I’ve made some changes to the equipment file then created a new units.csv file with the editor but the units are not available for purchase in game play. I tried clearing the cache (I.e. deleting everything in the cache directory and rebooting) with no success. Any ideas?
Grondel
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1933
Joined: Mon Aug 04, 2014 10:07 pm

Re: Units in unit.csv file not available in game play

Post by Grondel »

jimcrotteau wrote: Tue Feb 07, 2023 10:10 pm I’ve made some changes to the equipment file...
what file?
jimcrotteau wrote: Tue Feb 07, 2023 10:10 pm then created a new units.csv file with the editor...
the editor does not do such things
jimcrotteau wrote: Tue Feb 07, 2023 10:10 pm but the units are not available for purchase in game play. I tried clearing the cache (I.e. deleting everything in the cache directory and rebooting) with no success. Any ideas?
try to discribe in more detail what u did then i might be able to point in the right direction.

sers,
Thomas
jimcrotteau
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Oct 19, 2022 8:47 pm

Re: Units in unit.csv file not available in game play

Post by jimcrotteau »

I tried to follow the directions in an early post about equipment modifications.

1. I renamed equipment.pzeqp file equipment.pzeqp.csv and did my edits. This file was in the editor\data subdirectory.

2. I saved the file and removed the .csv extension.

3. I ran the editor and used the unit tool to make the changes available. A new units.csv file was created in the content\data subdirectory. In checking this file, the changes I made were there.

4. I deleted all the files in the cache subdirectory in documents\mygames and rebooted.

When I restarted the game and started a new campaign, the unit changes were not available.

Thanks for your help.
Grondel
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1933
Joined: Mon Aug 04, 2014 10:07 pm

Re: Units in unit.csv file not available in game play

Post by Grondel »

jimcrotteau wrote: Wed Feb 08, 2023 2:56 am I tried to follow the directions in an early post about equipment modifications.

1. I renamed equipment.pzeqp file equipment.pzeqp.csv and did my edits. This file was in the editor\data subdirectory.

2. I saved the file and removed the .csv extension.

3. I ran the editor and used the unit tool to make the changes available. A new units.csv file was created in the content\data subdirectory. In checking this file, the changes I made were there.

4. I deleted all the files in the cache subdirectory in documents\mygames and rebooted.

When I restarted the game and started a new campaign, the unit changes were not available.

Thanks for your help.
interesting technique. ;)

i just open the unit.csv with an excel clone and edit the units in the way i like.

there are several reasons why the units might not appear. the most prominent one is the "date of availability" near the end of the list.

i am not 100% sure but i think the way the game handles units data has been changed and that post is outdated.

hope this helps.

sers,
Thomas
FunPolice749
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 142
Joined: Thu Apr 30, 2020 11:52 pm

Re: Units in unit.csv file not available in game play

Post by FunPolice749 »

So assuming that method is working and all the files are where they should be (which is the case since you can launch the game). I believe the issue would be one of two things.

1. As Grondel said the editor might not have the right time frame for your units to appear. In the editor you can change it to enable buying all units by going to Edit > Scenario Params > Global Parameters > Advanced Options > Purchasable units and then toggle that to All Units

2. Your new units have the Nopurchase trait which makes it impossible to buy them. You will have go into that Units document and physically remove that trait from any units with it that you want to buy.

If neither of those fix it then the game isn't reading the units file correctly and doesn't know about any changes you made which is a separate issue.
dalfrede
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1492
Joined: Wed Mar 15, 2017 7:48 pm

Re: Units in unit.csv file not available in game play

Post by dalfrede »

Are you using any Mods?
Turn them off.

You might post files here so others can inspect them for errors.
There comes a time on every project when it is time to shoot the engineer and ship the damn thing.
jimcrotteau
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Oct 19, 2022 8:47 pm

Re: Units in unit.csv file not available in game play

Post by jimcrotteau »

Thanks for all of your suggestions. I finally figured out I couldn’t just add units to the units.csv file but had to do so using a mod. I also missed some typos in the units.csv file. All fixed so thanks again.
Post Reply

Return to “Panzer Corps 2”