Skip to content

Posts from Current questions and answers regarding the map editor. Auto-translated

5.0 (12 ratings)
User Avatar
#1638
Auto-translated
In data.pak, I found the arenas, but they are in the .xdb format, split into several files each :(. How did you open them in the editor? If that works, the rest of the questions will probably become irrelevant.

The map does contain the files for the new arena, yes. But, again, they are in xdb format :(.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#1639
Auto-translated
And they shouldn't be in a different format anyway, as they are flat. It's just a list of objects, and the bin file that creates the terrain isn't needed.
I opened it by double-clicking with the left mouse button.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
#1640
Auto-translated
Ment

I used to open them with a double left-click.
In the editor? Sorry, but I don't understand how you opened the arenas, because they can't be found in the "Open" list, and clicking on the .xdb file only allows you to open it with Notepad.

UPD: Never mind, I figured it out. Now I just need to figure out how to save them :).
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#1641
Auto-translated
My apologies, I just rechecked, and it's a bit more complex. Those arenas link to the corresponding AdvMapDesc (the map template itself), and that one opens perfectly fine in the editor.
 

К А
Стикеры GBF в Telegram
User Avatar
#1642
Auto-translated
I skimmed through the basic manual and didn't find anything useful. Which manual about StartCombat were you talking about? :)

UPD: And again, I think I found it. So, is it only possible to link an arena to a hero using a script?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#1644
Auto-translated
I'm having trouble with StartCombat. I placed two heroes on the map. I'm writing: `
StartCombat('Zehir', 'Raelag', etc.);
` It gives an error: "Hero 'Raelag' is not reserved". If I remove it, it gives "Hero 'Raelag' does not belong to any player". How can I reserve a hero? I need a battle specifically with a hero.

And the battle starts on a random arena. It seems like the path is correct, but it still uses the default grass arena. The console doesn't show any errors (I checked the arena by using StartCombat without a hero).
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#1645
Auto-translated
Yes, you need to reserve them. There's a special property in MapPropertiesTree (ReservedHeroes), I think. Or just in MapProperties. It's strange about the arena...
 

К А
Стикеры GBF в Telegram
User Avatar
#1646
Auto-translated
It doesn't work with the arena, so there's no point in using StartCombat. And I also read in the manual that it's impossible to influence the music played in the game. Without that, there's no point in setting a specific arena.

Although... you somehow managed to set the AI's melody in "Adept of War". Could you share how you did it?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#1647
Auto-translated
The manual is wrong. In the game, each territory and each hero (excluding minor ones like Godric, Findan, and various Rutger and Ossir) has its own unique music. Each faction also has its own music during battles and when skipping a turn. All these correspondences are defined in the extended editor, under the Music tab: it contains links to the music files in the game's Music folder.
 

К А
Стикеры GBF в Telegram
User Avatar
#1648
Auto-translated
And all of this works automatically. The game itself selects the music based on the correspondences. So, in the end, the player doesn't have any influence. Or are you suggesting rewriting the correspondences?
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
User Avatar
#1649
Auto-translated
Of course, I always do that. Naturally, the music will still be chosen randomly, but among all the other tracks, yours will eventually appear.
 

К А
Стикеры GBF в Telegram
In reply to Победитель
#1650
Auto-translated
Winner
It doesn't seem to work with the arena, so there's no point in using StartCombat. And I also read in the manual that it's impossible to influence the music played in the game. Without that, there's no point in setting a specific arena.

Although... You somehow managed to set the AI music in "Warlord". Could you share how you did it?


To be honest, from your debate with Ment, I still don't understand what task you're trying to solve. I used to insert "the right" music into the game (using a mod), and Ment subsequently used a similar method to insert music into his map.
User Avatar
#1651
Auto-translated
I would like to add more epicness to the final battle of one of the maps. To do this, I would include a different melody during the battle. It would be easier to modify one of the arenas that isn't used in the game, but now I can't figure out how to enable it. By the way, a similar script was used in the 6th campaign / 5th mission. It would be great to see that map in the editor.
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"