Units in unit.csv file not available in game play
Moderator: Panzer Corps 2 Moderators
-
- 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
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?
Re: Units in unit.csv file not available in game play
what file?
the editor does not do such things
try to discribe in more detail what u did then i might be able to point in the right direction.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?
sers,
Thomas
-
- 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
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.
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.
Re: Units in unit.csv file not available in game play
interesting technique.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.

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
-
- 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
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.
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.
Re: Units in unit.csv file not available in game play
Are you using any Mods?
Turn them off.
You might post files here so others can inspect them for errors.
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.
-
- 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
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.