So, I was trying to make a re-balance mod for personal use. The problem I faced was that whenever I edited a unit's stats and then opened the game, it crashed. This happens no matter what unit or stat I try to edit, it crashes new campaigns, scenarios, anything really.
Here's an example of one of my edited units, the only thing I changed was the Close Defense stat.
PanzerIIIN,"NSLOCTEXT('units','PanzerIIIN','Panzer IIIN')","NSLOCTEXT('units','PanzerIIIN_full','Panzer III Ausf. N')",Tank,Hard,Tracks,20,TRUE,FALSE,15,TRUE,FALSE,0,TRUE,FALSE,1,TRUE,FALSE,19,8,10,10,6,2,0,50,6,150,(Overrun),PanzerIIIn,(DE),MediumVehicle,430,3,19.06.1942 - 01.01.1946,
Does anyone have any idea of what's going wrong and how can I edit units?
Editing Units
Moderator: Panzer Corps 2 Moderators
-
- Private First Class - Wehrmacht Inf
- Posts: 5
- Joined: Wed Jun 24, 2020 4:05 pm
Re: Editing Units
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 Jun 24, 2020 4:05 pm
Re: Editing Units
So I edit the equipment file, save it with "Character Set: UTF-6" (whatever that is), put it back into Editor>Data, and convert it back to a .pzeqp file? Is that it?
Re: Editing Units
Yes that is it.
Character Set: UTF-16
The game uses units.csv, the editor uses equipment.pzeqp .
The editor creates Units.csv which is in the Data directory.
It is possible to edit units.csv, but it does not allow comments, and has strict formatting requirements.
Most game updates update both files, keep copies to keep track.
Character Set: UTF-16
The game uses units.csv, the editor uses equipment.pzeqp .
The editor creates Units.csv which is in the Data directory.
It is possible to edit units.csv, but it does not allow comments, and has strict formatting requirements.
Most game updates update both files, keep copies to keep track.
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 Jun 24, 2020 4:05 pm
Re: Editing Units
So if I want to play a campaign with the edited stats do I edit which one? Or do I edit both?dalfrede wrote: ↑Wed Jun 24, 2020 9:41 pm Yes that is it.
Character Set: UTF-16
The game uses units.csv, the editor uses equipment.pzeqp .
The editor creates Units.csv which is in the Data directory.
It is possible to edit units.csv, but it does not allow comments, and has strict formatting requirements.
Most game updates update both files, keep copies to keep track.
Re: Editing Units
You change equipment.pzeqp let the editor changes the units file.
Make backups.
If you add a new unit and campaign with the change. When a new game patch comes out, and load an 'old'' save, the game will crash.
So you will have to update the new files with your changes.
If you just change values the game will not crash, but the values will change back.
Sometimes the Devs change values as well, not just add new units.
One occasionally loses track of what one has done
Make backups.
If you add a new unit and campaign with the change. When a new game patch comes out, and load an 'old'' save, the game will crash.
So you will have to update the new files with your changes.
If you just change values the game will not crash, but the values will change back.
Sometimes the Devs change values as well, not just add new units.
One occasionally loses track of what one has done

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 Jun 24, 2020 4:05 pm
Re: Editing Units
Ok, thanks a lot for the help! 
