Editing Units

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

Moderator: Panzer Corps 2 Moderators

Post Reply
jvpontilhao
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Jun 24, 2020 4:05 pm

Editing Units

Post by jvpontilhao » Wed Jun 24, 2020 4:32 pm

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?

dalfrede
Major - 8.8 cm FlaK 36
Major - 8.8 cm FlaK 36
Posts: 974
Joined: Wed Mar 15, 2017 7:48 pm

Re: Editing Units

Post by dalfrede » Wed Jun 24, 2020 4:43 pm

There comes a time on every project when it is time to shoot the engineer and ship the damn thing.

jvpontilhao
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Jun 24, 2020 4:05 pm

Re: Editing Units

Post by jvpontilhao » Wed Jun 24, 2020 9:17 pm

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?

dalfrede
Major - 8.8 cm FlaK 36
Major - 8.8 cm FlaK 36
Posts: 974
Joined: Wed Mar 15, 2017 7:48 pm

Re: Editing Units

Post by dalfrede » 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.
There comes a time on every project when it is time to shoot the engineer and ship the damn thing.

jvpontilhao
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Jun 24, 2020 4:05 pm

Re: Editing Units

Post by jvpontilhao » Wed Jun 24, 2020 10:21 pm

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.
So if I want to play a campaign with the edited stats do I edit which one? Or do I edit both?

dalfrede
Major - 8.8 cm FlaK 36
Major - 8.8 cm FlaK 36
Posts: 974
Joined: Wed Mar 15, 2017 7:48 pm

Re: Editing Units

Post by dalfrede » Wed Jun 24, 2020 11:14 pm

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 :mrgreen:
There comes a time on every project when it is time to shoot the engineer and ship the damn thing.

jvpontilhao
Private First Class - Wehrmacht Inf
Private First Class - Wehrmacht Inf
Posts: 5
Joined: Wed Jun 24, 2020 4:05 pm

Re: Editing Units

Post by jvpontilhao » Wed Jun 24, 2020 11:50 pm

Ok, thanks a lot for the help! :D

Post Reply

Return to “Panzer Corps 2 Scenario Design”