Page 1 of 1

Editing Units

Posted: Wed Jun 24, 2020 4:32 pm
by jvpontilhao
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?

Re: Editing Units

Posted: Wed Jun 24, 2020 4:43 pm
by dalfrede

Re: Editing Units

Posted: Wed Jun 24, 2020 9:17 pm
by jvpontilhao
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

Posted: Wed Jun 24, 2020 9:41 pm
by dalfrede
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

Posted: Wed Jun 24, 2020 10:21 pm
by jvpontilhao
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?

Re: Editing Units

Posted: Wed Jun 24, 2020 11:14 pm
by dalfrede
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:

Re: Editing Units

Posted: Wed Jun 24, 2020 11:50 pm
by jvpontilhao
Ok, thanks a lot for the help! :D