The 3rd Age

Battle for the Galaxy

Battle for the Galaxy

Battle for the Galaxy seeks to change the land of Middle-earth into the vast Star Wars Galaxy.

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Ultimate beginner's guide. New hero, many topics

Avatar of malvack

malvack

Category: Code
Level: Beginner
Created: Saturday March 5, 2016 - 6:37
Updated: Tuesday October 11, 2016 - 6:19
Views: 16181
Summary: Guide to make new hero based on CaH and many other topics

Rating

Staff says

-

Members say

5.0

Average

5.0/5.0

2 votes

Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
So you want to put new sounds, eh? It's really easy to do. First you need the audio files (lots of them) remember that those sounds is what you are going to hear every time you play with your hero, and if there's no variety it will get annoying very quickly. Keep in mind at all times that you will need:

a) Sound when he/she is bought
b) Sound when he/she is selected
c) Sound when he/she moves
d) Sound when he/she captures a building/garrison
e) Sound when he/she dies
f) Sound when he/she asks for help

Let's say that you have the audio files, well the game can be a little picky about which files is going to use. First off has to be a wav file, but not any wav file, it has to be compressed in a certain way. To be more precise the file has to be compressed as the following:

PCM 44.100 KHz, 16 bit, Mono

In my experience the best software to compress audio for the game is MS Sound Recorder from Win XP. If you don't have that OS, I got you covered (kinda). I work with Win 7, so I'm not sure if this will do the job with Win 10, or Win 8, or something else, but I have the .exe of the Win XP Sound Recorder. I will upload it here so you can use it.




Now that we got that out of the way, let's say that you have all your files correctly and sound beautiful, now you are going to create a couple new folders in you mod directory. To be more precise, you have to create:

data>audio>sounds>

Inside the "sounds" folder you will store all of your files. Let's say that you have this files:

malvack_salute.wav
malvack_attack1.wav
malvack_attack2.wav
malvack_select1.wav
malvack_select2.wav
malvack_move.wav
malvack_capture.wav
malvack_helpme.wav
malvack_dies.wav

So what we need to create are the audio variables which are in data>ini>voice.ini. Now you will create this audio events for your hero, like this:

              
Code

AudioEvent MalvackVoiceAttack
Sounds = malvack_attack1 malvack_attack2
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End

AudioEvent MalvackVoiceMove
Sounds = malvack_move
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End

AudioEvent MalvackVoiceSalute
Sounds = malvack_salute
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End

AudioEvent MalvackVoiceCapture
Sounds = malvack_capture
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End

AudioEvent MalvackVoiceHelpMe
Sounds = malvack_helpme
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End


AudioEvent MalvackVoiceDies
Sounds = malvack_dies
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End

AudioEvent MalvackVoiceSelect
Sounds = malvack_select1 malvack_select2
Priority = high
Volume = #ADD( UNIT_RESPONSE_VOLUME 0 )
MinVolume = #ADD( UNIT_RESPONSE_MINVOLUME 0 )
Type = world player voice
SubmixSlider = voice
End


Multisound MalvackVoiceSelectMS
    Subsounds = MalvackVoiceSelect HeroVoiceSelect2
End


Notice that we don't write the extension of the file, we only write the name. Secondly, each AudioEvent can handle more than one audio file, the game will pick randomly the file (i.e. in MalvackVoiceSelect, the game will pick at random either malvack_select1 or malvack_select2 and play it). Finally, the last event is just for multiple hero selection.

Once you created all the audioevents, you can replace the ones of Boromir with this ones. Remember to write the voice of the hero dying in the SlowDeathBehavior module.

Links / Downloads

 HitsAdded
WinXPSoundRecorder1340March 6, 2016 - 6:03
FinalBigEditor1685March 5, 2016 - 7:29

Comments

Display order: Newest first

Amonrath - Monday August 14, 2017 - 2:16

Hello! I'm trying to do the but in the bfme I. Is there any different steps? I created a folder with my own mod... I then just edit the values that I want and I save them... I have also added the -mod in the end of the "Path" as well as done the lotr.srt extraction. Could anyone help? Thanks =D

--------

Hello! I'm trying to do the but in the bfme I. Is there any different steps? I created a folder with my own mod... I then just edit the values that I want and I save them... I have also added the -mod in the end of the "Path" as well as done the lotr.srt extraction. Could anyone help? Thanks =D

BouncyKnight - Tuesday April 25, 2017 - 22:08

Amazing step-by-step, very detailed and explanatory tutorial on how to create your custom heroes! Thank you sir, you're great!

Gabriel Oak - Tuesday December 13, 2016 - 11:19

I created this account only to thank you, sir. This tutorial is really, really useful.

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
11:27:29