Unit/FX/Campaign Editor - New Version 0.9.0

Post new mods and scenarios here.

Moderator: MOD_PanzerCorps

mgarnett
Posts: 270
Joined: Sat Nov 12, 2005 10:50 am

Unit/FX/Campaign Editor - New Version 0.9.0

Post by mgarnett »

Hi All,

A new version has been released adding additional functionality introduced by the 1.10 patch and fixes a couple of bugs.

A new feature has also been added allowing users to edit the unit ID making it easier to organise custom content. The button beside the ID text box automatically scans through the database looking for the next available ID.

To edit a unit's "usable transports", right click in the "usable transports" box and click either "Add" and select a transport type or click "Delete" to delete an already existing transport type. In the FX file editor, to add, edit or delete aliases, simply right click on the "Alias" list box and select which ever option you want to execute (add, edit, or delete).

Cheers

Mark

Version 0.9.0

Fixed - The editor will no longer crash when loading a custom equipment file that contains abnormally/incorrectly formatted entries
Added - Updated the user interface to make it slightly less rubbish
Added - Tooltips added to most functions
Added - The main interface will now load graphics from the "bigunits" folder

Version 0.8.5

Fixed - "Usable transports" are now carried across when modifying an already existing unit

Version 0.8.4

Fixed - "Usable transports" are now carried across when adding a new unit

Version 0.8.3

Added - Unit ID's are now editable
Added - The ability to automatically select the next available unit ID

Version 0.8.2

Fixed - A bug preventing the load of the traitslist.txt file
Fixed - Removed a duplicate entry from the traitslist.txt file

Version 0.8.1

Added - Added functionality into the campaign editor introduced by the 1.10 patch (new campaign)
Fixed - Added additional countries into the filter country list box
Fixed - Included the correct "traitslist.txt" file (idiot mistake by me)

Version 0.8.0

Added - Added additional functionality introduced by the 1.10 patch (usable transports, transport categories theatres)
Added - Added additional functionality to the EFX editor introduced by the 1.10 patch (aliases)
Added - A progress counter when loading the equipment database

Version 0.7.1

Fixed - A date bug on US systems causing the day and month to swap in some circumstances

Version 0.7.0

Fixed - Increased compatibility with custom equipment files

Version 0.6.5

Fixed - Display name was incorrectly being overwritten with the description when saving the campaign data file
Fixed - Scenario briefing files are now correctly saved in Unicode format

Version 0.6.4

Fixed - Some old debug code was causing the app the generate an error when reloading a campaign file in certain circumstances, this code has now been removed

Version 0.6.3

Fixed - the app no longer generates an error when attempting to add a new scenario in the campaign module and the corresponding breifing file or directory is inaccessible

Version 0.6.2

Fixed - Scenarios added for new campaign entries were being inserted incorrectly into the scenario list

Version 0.6.1

Fixed - The equipment editor can now cope with variable length lines in the equipment data file

Version 0.6.0

Added - The campaign editor now gives you the ability to edit existing scenario briefings, the default briefing folder is set in the "Options" dialog in the campaign module and the editor will look in this folder for your briefing files.
Added - The scenario editor now gives you the ability to add scenario briefings.

Version 0.5.2

Added - The ability to edit scenario briefings by right clicking and selecting "Edit Briefing". The chosen text editor and scenario briefing folder are set by clicking the "Options" button and navigating to their respective locations. If no editor is chosen, Notepad is used by default.


Version 0.5.1

Fixed - The campaign module now traces the correct route through all campaign scenarios for the selected campaign entry point
Fixed - The app no longer crashes when attempting to add a scenario if no campaign is currently selected
Fixed - The app no longer crashes when trying to view the scenario route for a campaign that had no scenarios
Fixed - When adding a new campaign, the app was incorrectly using the description for the display name
Fixed - The campaign module now allows "Major Victory" and "Loss" "Next label" values to be blank when adding a new scenario
Added - Deleted campaign entry points are now coloured red rather than deleted from the list and these highlighted entries are NOT saved to the campaign file
Added - You can now un-delete campaign entry points be selecting a red entry and selecting the undelete option, these undeleted entries ARE saved to your campaign file

Version 0.5.0

Added - The campaign module is now functional (please still consider this very much beta though)
Added - A file selection button next to the flag "help" button. If the user selects their "nations.pzdat" using this button PRIOR to selecting the help button, then all custom nations contained in the "nations.pzdat" file are also shown.

Version 0.2.8

Added - A help screen containing countries and corresponding flag numbers
Fixed - The user can now "tab" between edit field in a logical manner
Added - [ALPHA] The beginning of the campaign editor for proof of concept, comments wanted

Version 0.2.7

Fixed - A unit with a blank "short name" cannot be added to the database
Fixed - An error occurred when trying to add a new unit when the currently selected country had no units listed in the unit list box
Fixed - The routine responsible for saving the app settings was not working in some configurations. This now fires when the equipment files are loaded rather than when the application is closing. Feedback on success is needed.
Fixed - The campaign file loading code is now more resilient to abnormally formatted campaign files.

Version 0.2.6

Fixed - Code clean-up including fixing further localisation issues
Added - Read only preview of the campaign module
Added - The editor now remembers the last equipment database and graphics directory used

Version 0.2.5

Fixed - Some unit database entries have unit ID numbers beginning with a "#" character. These units are now displayed correctly in the editor view.
Fixed - If a country filter resulted in the display of zero units, choosing a different country filter would also display zero units until "all" was selected.
Fixed - Incorrect date format when clicking the "Add Unit" button (hopefully this is the last of the date format issues)

Version 0.2.4

Fixed - Null values in the Max Strength and Rate of Fire columns are written back to the database as null values rather than zero

Version 0.2.3

Fixed - Another date bug when writing equipment file back to disk

Version 0.2.2

Fixed - The recon unit filter button was missing
Fixed - The filter buttons now visually deselect when choosing filters for a different group
Fixed - Better detection of different world date formats (i.e. US/UK)

Version 0.2.1

Fixed - The fighter filter button was missing
Fixed - File name extension is no longer added when adding sounds in the EFX editor via the "browse" button in the sound edit box
Added - Better checking to detect corrupt or incorrectly chosen EFX data
Added - Unit graphics can now be loaded individually via the small button in the "unit icon" edit box
Added - Entries can now be deleted from the EFX file by right clicking on the entry in the list box and selecting "delete"

Version 0.2.0

Added - Ability to edit the efx.pzdat file
Added - Query results can now be saved
Added - Tooltips for the filter buttons
Fixed - Max movement and movement type values interchanging
Fixed - Loading multiple equipment lists during an editing session now works correctly

Please send through any bugs or suggestions.

Cheers

Mark
Attachments
PzCEdit 0.9.0.zip
(4.6 MiB) Downloaded 1213 times
Mark Garnett
Brisbane Australia
User avatar
BriteLite
Posts: 26
Joined: Tue Sep 02, 2008 1:03 am

RE: Unit Editor - New Version 0.2.0 Released

Post by BriteLite »

D/L and installed new version and appears to be working fine.[:)]

Note I posted a link over at JP's Panzers in the PC section.
User avatar
Dumnorix
Posts: 793
Joined: Thu Mar 15, 2007 12:37 pm
Contact:

RE: Unit Editor - New Version 0.2.0 Released

Post by Dumnorix »

One problem !

How can I change the attack and damage sound for every unit ??? Its not include in efx - file !!!

Dear PC -Designers, - thats another hard coded or ???

H.Balck
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

One issue with the efx.pzdat file.
When I browse for a sound, and select the sound file that I want, you must import only the name and not the name and the extension of the file. Ex: With air2.wav, it will be only air2. Otherwise it won't play.


ORIGINAL: Dumnorix

One problem !

How can I change the attack and damage sound for every unit ??? Its not include in efx - file !!!

Dear PC -Designers, - thats another hard coded or ???

H.Balck

No it's not hardcoded. You've also to load the efx file with the editor.
mgarnett
Posts: 270
Joined: Sat Nov 12, 2005 10:50 am

RE: Unit Editor - New Version 0.2.0 Released

Post by mgarnett »

ORIGINAL: Dumnorix

One problem !

How can I change the attack and damage sound for every unit ??? Its not include in efx - file !!!

Dear PC -Designers, - thats another hard coded or ???

H.Balck

Hi Dumnorix,

Yeah, not sure about that one. I had a look and couldn't find anywhere where that data is stored. If anybody finds it let me know and I'll add it in.

Cheers

Mark
Mark Garnett
Brisbane Australia
mgarnett
Posts: 270
Joined: Sat Nov 12, 2005 10:50 am

RE: Unit Editor - New Version 0.2.0 Released

Post by mgarnett »

ORIGINAL: VPaulus

One issue with the efx.pzdat file.
When I browse for a sound, and select the sound file that I want, you must import only the name and not the name and the extension of the file. Ex: With air2.wav, it will be only air2. Otherwise it won't play.


ORIGINAL: Dumnorix

One problem !

How can I change the attack and damage sound for every unit ??? Its not include in efx - file !!!

Dear PC -Designers, - thats another hard coded or ???

H.Balck

No it's not hardcoded. You've also to load the efx file with the editor.

Thanks Paulo,

I'll fix that little issue in the next release.

Cheers

Mark
Mark Garnett
Brisbane Australia
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

ORIGINAL: mgarnett

Hi Dumnorix,

Yeah, not sure about that one. I had a look and couldn't find anywhere where that data is stored. If anybody finds it let me know and I'll add it in.

Cheers

Mark
What data?
I don't understand what is the problem. I've changed the sounds, insert new sounds, new sounds filenames..... I even have erased some sounds and the editor inserted the corrected blank entry.
The only problem is the wav extension. Otherwise the editor is working well.
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

I've this issue sometimes when opening the efx file. Not always.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PzCEdit.MainForm.ReadDatabase(String sDatabase)
  at PzCEdit.MainForm.coOpenButton_Click(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


User avatar
Dumnorix
Posts: 793
Joined: Thu Mar 15, 2007 12:37 pm
Contact:

RE: Unit Editor - New Version 0.2.0 Released

Post by Dumnorix »

What data?
I don't understand what is the problem. I've changed the sounds, insert new sounds, new sounds filenames..... I even have erased some sounds and the editor inserted the corrected blank entry.

You don't understand ! You can only change the movement sound - not the damage or attack sound separately !

Its hard coded - I sended out a message to Tim and he reported to Iain.

H.Balck
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

I've already changed and created new attack sound for some artillery.

If you've an attack sound called dum.wav, you also need an animation called dum.png in the animations folder.
Bottom line you have 6 items you need to configure:

1. Need an attack sound file (or reference an existing one)
2. Need an attack animation PNG of the exact same name as #1 (or reference an existing one)
3. Need a BIG UNIT PNG
4. Need a PNG of the unit facing left and right, normal and small.
5. Need to create a line in equipment.pzeqp.
6. Need to create an entry in efx.pzdat.
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

ORIGINAL: VPaulus

I've this issue sometimes when opening the efx file. Not always.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PzCEdit.MainForm.ReadDatabase(String sDatabase)
  at PzCEdit.MainForm.coOpenButton_Click(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Mark, just disregard this error. I was loading the wrong file.
mgarnett
Posts: 270
Joined: Sat Nov 12, 2005 10:50 am

RE: Unit Editor - New Version 0.2.0 Released

Post by mgarnett »

ORIGINAL: VPaulus

ORIGINAL: VPaulus

I've this issue sometimes when opening the efx file. Not always.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at PzCEdit.MainForm.ReadDatabase(String sDatabase)
  at PzCEdit.MainForm.coOpenButton_Click(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Mark, just disregard this error. I was loading the wrong file.

Thanks Paulo, I'll add in a little bit of code to check for the right file before loading so at least you don't get presented with an ugly error screen.

Cheers

Mark
Mark Garnett
Brisbane Australia
User avatar
Dumnorix
Posts: 793
Joined: Thu Mar 15, 2007 12:37 pm
Contact:

RE: Unit Editor - New Version 0.2.0 Released

Post by Dumnorix »

Hi Mark

Your editor Can't work - all units with new parameters have no effects in game.

If I write all parameters manually all runs fine !!!

The written Date with your editor its not the same like the original !!! I think - thats the problem.

H.Balck
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

Just one question. Do you commit the unit after editing or adding its parameters?
Do you save in the end of using the editor?
So far, didn't have any problem with the efx part. It's working well.
User avatar
Dumnorix
Posts: 793
Joined: Thu Mar 15, 2007 12:37 pm
Contact:

RE: Unit Editor - New Version 0.2.0 Released

Post by Dumnorix »

Just one question. Do you commit the unit after editing or adding the parameters?
Do you save in the end of using the editor?
So far, didn't have any problem with the efx part. It's working well.

Yes and yes - BTW - do you test your new or modified units in battle ??? They work not fine !

Example: Wespe

1st Original
90 Wespe 4 254 4 35 5 1 3 4 9 6 0 1 4 6 0 1 0 Wespe.png 13.03.1943 01.01.1946 0 sIGATY

2nd modified with editor
90 Wespe 4 254 4 35 5 1 9 4 9 6 0 1 4 6 0 1 0 Wespe.png Samstag, 13. März 1943 Dienstag, 1. Januar 1946 0 0 0 sIGATY

After an test - the Wespe fire without effect yet ! BTW the same with all other units - If I write all manually dates like the original - all runs fine and the Wespe fires correct over 9 hexfields.

H.Balck
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

I don't use the equipment, just the efx.
This time, Hbalck, you're right.
I think I know what is happening. I'll report back in a minute.

Edit: Yes it's the date format. It will be easy to solve.
User avatar
Dumnorix
Posts: 793
Joined: Thu Mar 15, 2007 12:37 pm
Contact:

RE: Unit Editor - New Version 0.2.0 Released

Post by Dumnorix »

Yes - I trusted the editor - and now I must rework my full equipment work new (over 2 hours !) That sucks Mark !!!

Bring your new software first - IF YOU CHECK ALL PARAMETERS P L E A S E !!! I work on some bigger things with PC and can not carry out - to lost so many time !

H.Balck
User avatar
VPaulus
Posts: 3661
Joined: Thu Jun 23, 2011 2:02 pm
Location: Portugal

RE: Unit Editor - New Version 0.2.0 Released

Post by VPaulus »

I've a better suggestion H. Balck. Do your own editor.

The software is new. Mark is giving us to test and debugging. Each new day there is a new update correcting errors and implementing new things. You don't have to be a genius, that before committing two hours of work, you need to do a little test.
I've 8 hours of using the efx part of the editor. But I've tested it first with a couple of units to see if it was right.

Sometimes, I've the feeling that you're a little kid, H. Balck.
Post Reply

Return to “Mods and Scenarios”