Skip to content

Posts from Is it possible to add custom music to the game?

No ratings yet — be the first to rate!
User Avatar
Auto-translated
I'm creating a "Lord of the Rings" campaign and want the Shire's musical theme to play during the first mission, for example. Is it possible to add music? If so, how? Using data.pak and Notepad?
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
It's easiest to do in the extended editor (see FAQ).
To play a music track, you need to set it as the music for the territory the hero is traversing, or as the music for the hero himself. The latter is preferable, as it affects fewer files.
Everything is configured in the "Music" tab of the extended editor (usually the bottom left window).
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
Auto-translated
Hehe, it's hard to figure out there.
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
You can customize the music for campaigns without using mods. You can set additional music for battles, for waiting during a turn, and on the map during your turn. The necessary tags are in the campaign.xdb file; you can find an example in the game files.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
In reply to RedHeavenHero
User Avatar
Auto-translated
I understand, but where can I find the soundtrack for Mordor?

Added 50 minutes later
Regarding the extended editor, I already made it, that's why I'm saying it's hard to figure out how to add music there.
Делаю кампанию "Последний Феникс"
User Avatar
Auto-translated
It is unlikely that you will be able to edit the campaign file through the editor; it might simply not appear there. Most likely, you will have to use a text editor.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
I have a similar question. How can I add my own music to a specific battle? Or is it impossible? And... how can I actually do it?
Автор карт:
Долина расхитителей
Выбор мира
User Avatar
Auto-translated
How can I make custom music play during a specific battle? Or is that impossible? And... how would I even implement it?
Well, if this battle takes place on a unique map location and features unique heroes from unique factions on both sides... then you can achieve the desired effect by replacing all the necessary music tracks, so that the music played there is different compared to any other battle on the map.
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
As an alternative:
1. Remove all combat music.
2. Reconvert all the necessary combat music from the Music type to the Sound type.
3. Play the music as a sound using the Play2DSound function in the combat script.

Pros:
+ The desired result will be achieved.
Cons:
- The map will become a mod.
- Huge file size for the map.
- Not tested in practice, possible issues may arise.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
User Avatar
Auto-translated
Here's another way to do it: 1. In the Map Properties Tree, find Music and click on "...". 2. Choose any theme for the heroes (in my case, it's Godric). 3. Enter "SomeMusicName.ogg" instead of "Heroes-Godric.ogg". Make sure that the music is in OGG format and put this music into the Music/AdvMap-Heroes folder. 4. PROFIT
Делаю кампанию "Последний Феникс"
In reply to Алеха
User Avatar
Auto-translated
Aleha
You can also do it like this:
1. In the Map Properties Tree, find Music and click on "...".


2. Choose any theme for the heroes (in my case, it's Godric).


3. Enter "SomeMusicName.ogg" instead of "Heroes-Godric.ogg". Make sure that the music is in OGG format and you need to put this music into the Music/AdvMap-Heroes folder.


4. PROFIT
I have 2 questions: 1. Why is all the music in a text file with some kind of .htd format? 2. How do I create a Campaign where all scenarios are interconnected?
Dishonestly yours, Liza
In reply to Florkingold
User Avatar
Auto-translated
And now, the key question is: which of the options mentioned above will work for other players who download this map/campaign, without having to ask them to distribute the music files to the corresponding folders (because most people simply won't bother with that)?
Мои карты для:
Heroes 5: Битвы кланов - Борьба за ресурсы - Обитель друидов - Падший рыцарь - Побег
Heroes 4: Немеджихра - Приключения ифрита
Heroes 3: Крюлод и Таталия
Heroes 2: Вторжение - Эктор - Сэр Мильтен - Чёртовы Топи
Мой ютуб канал: Navkratis
User Avatar
Auto-translated
Renaming the Ogg files in other players' games without further modifications will not work. However, the RedHeavenHero method will be functional. P.S. Instead of converting all the music, you can create a new sound (convert Ogg to WAV and export it in the editor) and play that, while simply deleting the paths to the other battle music files!
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to Florkingold
User Avatar
Auto-translated
Florkingold
I have 2 questions: 1. Why is all the music in the folder in a notepad with some kind of .xtd format? 2. How do I create a campaign where all the scenarios are interconnected?

xtd?? Are you opening the music with Notepad?

You can create it through the editor: Tools=>Create Campaign. Or you can do it using Notepad as a template.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________

Statistics

Welcome our newest member: Emil