Audio file for a new unit?

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

Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design

Post Reply
fliegenderstaub
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 182
Joined: Fri Feb 17, 2012 1:20 pm

Audio file for a new unit?

Post by fliegenderstaub »

Some time ago I placed a unit request in that special thread. Unfortunately that unit didn't make it into the new equipment file... :cry:

So I now decided to include the unit myself. It's the Henschel HS 123, a prewar biplane fighter bomber in use until 1944 and rather famous among the troops.

Rezaf provided a *.png for that (Thank you :) ). Editing the equipment file worked fine. Unfortunately playtesting resulted in no sound (combat or move) for that unit! :oops:

My question: How do I add a sound file to a unit? Thanks a lot in advance! :D

P.S.: I would like to get your opinions about the combat values I gave the unit. If anyone is interested, please let me know and I will provide the values. Thank you! :)
...and like the once-mighty Mahi-Mahi, you will end
up on a poo-poo platter in the Tikki Hut of life! -Al Bundy -
Razz1
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 3308
Joined: Tue Jan 18, 2011 4:49 am
Location: USA

Re: Audio file for a new unit?

Post by Razz1 »

Open up EFX
copy the CR42
paste it on the bottom of the file
change the name of the png file to the name of the new unit
nikivdd
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 4919
Joined: Fri Jun 24, 2011 1:21 pm
Location: Belgium

Re: Audio file for a new unit?

Post by nikivdd »

fliegenderstaub wrote:Some time ago I placed a unit request in that special thread. Unfortunately that unit didn't make it into the new equipment file... :cry:

So I now decided to include the unit myself. It's the Henschel HS 123, a prewar biplane fighter bomber in use until 1944 and rather famous among the troops.

Rezaf provided a *.png for that (Thank you :) ). Editing the equipment file worked fine. Unfortunately playtesting resulted in no sound (combat or move) for that unit! :oops:

My question: How do I add a sound file to a unit? Thanks a lot in advance! :D

P.S.: I would like to get your opinions about the combat values I gave the unit. If anyone is interested, please let me know and I will provide the values. Thank you! :)
This line goes into your efx file (you'll find it under \graphics folder):
Hs_123.png (-4,-32) (4,-32) 0 0 StukaAttack AirDefense1 air1 air2 air3
Make sure that the png name matches the name you gave into your efile. Probably the values aren't really accurat but i'm not the expert in offsets.
Edit: Razz beat me to it, now you have two choices :)
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Audio file for a new unit?

Post by guille1434 »

Hello. You should edit the file named efx.pzdat that is inside de "Graphics" folder of the game directory... If you open it using excel (you can proceed as you did when editing the equipment file) you have to add a new line in this efx.pzdat file... The first cell must have the name of your unit just as it is the name of the .png file in the graphics directory (example: Hs_123.png) for the other values, you can just copy the data from other aircraft which sound you like (may be you can check the others air units sounds in game). For example, you can use the sounds from the Ju-87 Stuka (the Hs-123 was also used as a dive-bomber).
I hope this helped...
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Audio file for a new unit?

Post by guille1434 »

Please, post your values for the equipment file... Thanks!
fliegenderstaub
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 182
Joined: Fri Feb 17, 2012 1:20 pm

Re: Audio file for a new unit?

Post by fliegenderstaub »

Thanks a lot for the immediate responses! :D

I'll do my very best. :wink:

My values for the HS 123:

# ID 208
Short Name Hs 123
Class 8
Cost 205 (half of the price of a Me 109 E)
Max Ammo 5
Max Fuel 45 (longer range than the Ju 87 B)
Movement 12
Spotting 2
Range 0
Initiative 8
Soft Attack 8
Hard Attack 5
Air Attack 10
Naval Attack 2
Ground Defense 22 (it is said that the 123 was rugged encountering AA)
Air Defense 14
Close Defense 0
Target Type 2
Flag 0
Icon
Available From 1.1.1939
Available Till 1.1.1946 (The Hs 123 saw action up to 1944, but built just before the war afaik; so I am not sure about this)
Type of Movement 5
Rate Of Fire
Max Strength
Full Name Henschel HS 123
Add Traits
Remove Traits
Series Schlachtflieger (to be honest, I don't know, what "series" does mean here)
Multipurpose
Theatre
Usable
Transports
Transport Category

I tried to value range, speed, bomb load, guns and what I read about the plane. Suggestions and comments welcome! :)
...and like the once-mighty Mahi-Mahi, you will end
up on a poo-poo platter in the Tikki Hut of life! -Al Bundy -
guille1434
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2856
Joined: Sun Jul 01, 2012 5:32 pm

Re: Audio file for a new unit?

Post by guille1434 »

Thank you!
Some explanation about series: in this field you can place a name, so when you are going to update the unit, if the old unit and the new unit to upgrade to share the same series name the cost for the upgrade is the difference of value between the two units, if there is no series or if the units are from different series, the cost of the upgrade is equal to the full cost of the new unit.
fliegenderstaub
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 182
Joined: Fri Feb 17, 2012 1:20 pm

Re: Audio file for a new unit?

Post by fliegenderstaub »

Razz1 wrote:Open up EFX
copy the CR42
paste it on the bottom of the file
change the name of the png file to the name of the new unit
With CR42 you meant the italian fighter bomber, right? I've tried it anyway and it worked fine for the moment. Thanks! :)
nikivdd wrote:
fliegenderstaub wrote:...
This line goes into your efx file (you'll find it under \graphics folder):
Hs_123.png (-4,-32) (4,-32) 0 0 StukaAttack AirDefense1 air1 air2 air3
Make sure that the png name matches the name you gave into your efile. Probably the values aren't really accurat but i'm not the expert in offsets.
Edit: Razz beat me to it, now you have two choices :)
Very good idea. Although I used Razz' suggestion (lazy me...), I will try to experiment with the sounds (I'll leave my hands from offsets, too. At least for the moment :mrgreen: ) StukaAttack seems to be interesting as well, although only the Ju 87 had the Jericho-sirens on board. Maybe they have some Hs 123 clips on youtube... Thanks anyway! :)
guille1434 wrote:Hello. You should edit the file named efx.pzdat that is inside de "Graphics" folder of the game directory... If you open it using excel (you can proceed as you did when editing the equipment file) you have to add a new line in this efx.pzdat file... The first cell must have the name of your unit just as it is the name of the .png file in the graphics directory (example: Hs_123.png) for the other values, you can just copy the data from other aircraft which sound you like (may be you can check the others air units sounds in game). For example, you can use the sounds from the Ju-87 Stuka (the Hs-123 was also used as a dive-bomber).
I hope this helped...
It helped me at least where to find the necessary file. Thank you! I used the editor, because I don't own Excel and I am not used to OpenOffice Calc. :wink:
guille1434 wrote:Thank you!
Some explanation about series: in this field you can place a name, so when you are going to update the unit, if the old unit and the new unit to upgrade to share the same series name the cost for the upgrade is the difference of value between the two units, if there is no series or if the units are from different series, the cost of the upgrade is equal to the full cost of the new unit.
Thanks for that. Well explained. Thank you! Might not apply to the little biplane, I assume... :wink:

Thanks y'all! :D Comments to the combat values are still welcome!
...and like the once-mighty Mahi-Mahi, you will end
up on a poo-poo platter in the Tikki Hut of life! -Al Bundy -
Post Reply

Return to “Panzer Corps : Scenario Design”