Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 4 - Lands of Axeoth > Thread: Changing music and sounds
Thread: Changing music and sounds
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted September 06, 2017 02:53 AM

Changing music and sounds

I know in other forum they knew how to change H4 music and sounds, but I can't seem to find it and it hasn't been discussed here anyways...

It would be nice for modding and customization to have the following information:

- WHat format does H4 use for music?

- What is the bitrate?
- How many channels? (probably either stereo or mono, I doubt it has something like 5.1 )

- Is there any difficulty packaging tracks to make a new music file?

Etc.

If anyone has answers to these questions, post them here.

__________________________

So far I know that ingame sound effects are in .mp3 format and they are easily replaceable. This counts hero and creatures sounds, ambience sounds from adventure objects, dialog sounds from adventure objects, and sounds from spells.

* It is also possible, but not tested, that new sounds can be added to these where they don't exist, by just using their names. Sounds are packaged within the main H4R resource file.

But it doesn't include music, which is also in another file - apropiately called "music.h4r"


____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted September 06, 2017 08:47 AM

Its simply format. We have mods. See this thread too:
HIV music
Programm Mh4096 can do this.
But music is wonderfull and I dont see similiar that I want to replace :-)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted September 06, 2017 10:20 PM

MH096 doesn't ever work for me.

That's why I wanted to set conversion myself.

Also that thread does not say the original properties of H4 music...

As for the quality... it's not about "Better" or "Worse"

It is about changed towns in my mod. I need to put new music so people instantly know it's not the "same town". For example desert town doesn't share a single creature with the old "life town", and the vocal music is inappropiate.

Same for barbarian town which is now Inferno...
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted September 06, 2017 11:24 PM

So use this program you built mod.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Karmakeld
Karmakeld


Responsible
Famous Hero
posted September 09, 2017 12:30 AM

Search Celestialheaven.com I recall the topic is titled 'Is this possible'. There should be a guide for replacing music.
(Sorry for not posting link, but it a bit tricky doing on my phone).

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted September 09, 2017 01:09 AM

I see... I shall look for that topic, thank you.
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted September 09, 2017 09:49 AM

Just extract music and pack. Its simply mp3. Music is only easy to mod resource in this game? And completly DONT NEED MODDING!  We can easy mod only dont needed thing :-(
Special program to extract.
extract music

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted September 10, 2017 09:01 AM

Yes, I saw it's MP3 and read.

But RESEDIT doesn't pack it, since it expects .wav
It can be packed with h4resex

Some tracks are annoying like Grass theme, which is actually a bug...

I only replace H4 music with music from other Heroes games.

For example, New necropolis now has the music of H3 necropolis included with H2 gold release.

Inferno now has inferno theme with some metal chords added, to infuriate people


Dirt theme has a variation of H2 dirt theme.
Sea is now H2 as well.
And grass theme got replaced with "Wandering", the unused section of H4 music.
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
trashid
trashid


Famous Hero
posted September 10, 2017 12:01 PM

I have the same problem with MH096.

While the extracted sound files are in .mp3 format and ResEdit reads only .wav files, it is somehow possible to rename .mp3 extension to .wav and still replace the original files. I have done so with replacing creature sounds one with another and it worked.
Maybe it will work with music also.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted September 10, 2017 09:32 PM

I tried that with resedit and no, the music just sounds mute that way.

I will use H4 Resource extractor to build that part of the mod as a separate file... since it can read and pack .mp3 and I have proven it works.
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted September 11, 2017 09:40 AM

You must only find wav to mp3 and repeat converter. Try this maybe:
wav mp3
If not find another.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
menelag
menelag

Tavern Dweller
posted August 05, 2018 09:33 PM

Does anyone could pack modified extracted .mp3 file to .h4d?
I tried to use H4resex, but my operating system (win 8.1) blocked it...

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
verriker
verriker


Honorable
Legendary Hero
We don't need another 'eroes
posted August 05, 2018 10:19 PM

I have actually replaced the music of H4 before myself using the guide of Celestial Heavens so I firsthand know that it is for sure possible, check a guide of Celestial Heavens to work out how to do that cheers lol
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted August 05, 2018 11:52 PM

With the H4 resource extractor utility I could pack music and directly, but it requires a different file than the one I build with resedit.

Thus in the future I will just create a new one completely replacing music.h4r

It will take a lot of space and make the mod heavier but there's always a price to pay :V
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted February 28, 2020 02:30 PM

Have you new tool to add it? Because its little hard.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Roman2211
Roman2211


Adventuring Hero
posted February 29, 2020 06:57 AM
Edited by Roman2211 at 07:11, 29 Feb 2020.

When I make "new.h4r" for add the music, the "replay iteration" didn't work, only once played, then silence.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted February 29, 2020 01:22 PM

Because it needs special header for mp3 or special type of mp3... Cant find what. I read via hexeditor it must be LAME mp3.

lame

You can try maybe it be work?!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NimoStar
NimoStar


Responsible
Supreme Hero
Modding the Unmoddable
posted February 29, 2020 05:17 PM
Edited by NimoStar at 17:18, 29 Feb 2020.

LAME is for Audacity, is that right?

However it needs some special marker, it isn't enough just to save it.

I don't know how to put the setting for repeating so that H4 recognizes it...

( https://www.moddb.com/mods/greatest-mod/downloads/nimmusic1hommiv file link )
____________
Discover H4 Greatest Mod!
https://www.moddb.com/mods/greatest-mod/downloads
(Also biggest of only two 2 mods for HOMM IV)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted February 29, 2020 10:33 PM
Edited by Baronus at 22:37, 29 Feb 2020.

Baronus

Yes plugin but not works. Must be special header in each mp3.

As Ive found posted by Akuhak
Header must be:
01 00 00 10 02 44 AC 00 00 00 B4 AC 02 01 00 E0 1A 3E 00
01 00 - ??
00 10 - 16-bit (per sample)
02 - stereo
44 AC 00 00 - 44100 Hz (Sampling rate)
00 B4 AC 02 - sample count*4 which we get in step 2
01 00 - ??
E0 1A 3E 00 - exact mp3 size which we get in step 1h

...

01 00 00 10 02 44 AC 00 00 - just copy it

Next you must give ,sample count x4'??? I dont know what it is, you can read it in advanced mp3 editor? I cant in audiacity! By I give 10x file size and it works. Not perfectly but this moment I dont know how to do it 100% correctly.
At the end global file size you can read simply in folder.
Two second values must be reversed! Not 080a04 but 040a08!!! Always in Heroes hexediting values are reversed!!!

All mp3 must be hexedited like this. H4 modding is for masochists... Massacre... Simply mp3!!!

My first changed song menu of course:

new menu music

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0336 seconds