Skip to content

Posts from Working with map objects without using the editor.

No ratings yet — be the first to rate!
User Avatar
6 years ago
Auto-translated
If there was a way to adjust the properties of map objects without using the map editor. I'm trying to create another town with characteristics identical to the original, but with a different model. When copying the properties of a standard town, half of the options are reset (Combat). And all the settings inside are also reset. Because of this, it's impossible to attack the town. I managed to solve the problem, but if there's a fort built in the town, the game crashes immediately. Also, it's impossible to end the day because it also crashes. Manually re-setting the properties is very inconvenient and takes a long time, and it's not even certain that the changes will solve the problem. Is there a way to work with the same objects but through the game files?
User Avatar
6 years ago
Auto-translated
Could you please refrain from creating numerous threads? Instead, ask your questions in the "Current Answers and Questions Regarding the Map Editor" thread.
Yes, it's possible to do it without using the editor. Create a copy of the data.pak archive, extract the necessary files, copy them, and edit them using Notepad (xdb files can be edited with any text editor). Important: copy the files along with their folder paths.
Then, open the map file with any archiver and add the modified files, including their folders.

However, I believe this is beyond your current modding skills, and it would be better to first familiarize yourself with the basics; I can recommend a couple of resources that will help you understand everything.
User Avatar
6 years ago
Auto-translated
I would appreciate any help.
User Avatar
6 years ago
Auto-translated
The following question arose: Why don't manually modified copies of files appear in the editor on the map? They only appear if they were copied through the editor and then modified manually. It seems like I'm putting them in the same folders.
User Avatar
6 years ago
Auto-translated
I encountered the same problem when adding the Kraken from Zakhar's mod by copy-pasting the files into the map archive: when entering the editor, I couldn't select or find them. The simple solution was to manually enter the file address and name (for example, in my case with the Kraken, I manually entered in AdvMapMonsterShared: "AdvMapMonsterShared:new_creatures/neutral/H7_Kraken/creature.(AdvMapMonsterShared)"), and after the described procedure and pressing Enter, I was able to successfully select the file. In my opinion, this is directly related to the poor interface of the map editor, which hides all created files after the map is packed... Complaints to the developers ;)
User Avatar
6 years ago
Auto-translated
I'll add my question here as it's related to the same issue. I want to customize the hero selection in the map editor, so that when creating a scenario in the game, the desired hero is already displayed in the hero selection window. The problem is that the hero I need is located in the campaign folder of the original game, which doesn't appear in the selection window, just like the campaigns for the Hammers of Fate. Can you suggest a solution?
In reply to DevoRevo
User Avatar
6 years ago
Auto-translated
DevoRevo
I'll add my question here as it's related to the same issue. I want to set up the main hero selection in the map editor, so that when creating a scenario in the game, the desired hero is already displayed in the hero selection window. Problem: the hero I need is in the campaign folder of the original game, which doesn't appear in the selection window, just like the Hammers of Fate campaigns. Can you suggest a solution?

Which hero do you need? All heroes from the original game and Hammers of Fate should be available in the map editor (including Godric, Frida, Duncan, and Saint Isabel, etc.). To allow selecting scenario-specific heroes, in AdvMapHeroShared, set Scenario Hero to false and Hide in editor to false for that hero.
In reply to }{0TT@6bI4
User Avatar
6 years ago
Auto-translated
}{0TT@6bI4
Which hero do you need? All the heroes from the original game and from the Tribes of the East are available in the map editor (including Godric, Frida, Duncan, and Saint Isabel, etc.). To make scenario heroes selectable when choosing a hero, set Scenario Hero to false and Hide in editor to false for that hero in AdvMapHeroShared.
Not exactly what I meant. You can't choose a hero; he is initially assigned to the map. I want him to be displayed when creating the map, like here (Erazeal).
But all heroes, except those that appear in scenarios and those that are in the campaigns of the Tribes of the East, are not displayed in the Mainhero setting.
Attachments 1
1 file attached • Total size: 120.8 KB
User Avatar
6 years ago
Auto-translated
I am attaching a screenshot of the desired result.
Attachments 1
1 file attached • Total size: 45.6 KB
User Avatar
6 years ago
Auto-translated
Then, I'm sorry, I don't understand what you want.

Added 1 minute ago
DevoRevo
I'm attaching a screenshot of the desired result.
Try the option I suggested and check it in the game.
In reply to }{0TT@6bI4
User Avatar
6 years ago
Auto-translated
}{0TT@6bI4
Then, I'm sorry, I don't understand what you want.

Added 1 minute ago

Try the option I suggested and check it in the game.
The action unlocked the Hero from the campaign, allowing him to be selected on any newly created map, and it also allowed me to dismiss him, but I still can't assign the hero as the main hero on the map.
User Avatar
6 years ago
Auto-translated
You can. Place the hero on the map, then go to Map Properties => Players Properties => Player 1 => Main Hero => Select by name in Russian.
In reply to }{0TT@6bI4
User Avatar
6 years ago
Auto-translated
}{0TT@6bI4
You can. You place the hero on the map, then go to Map Properties => Players Properties => Player 1 => Main Hero => and select by name in Russian.
Indeed, it is possible. I forgot about this parameter in this tab. However, you don't even need to change anything in the hero's properties. Thank you for your help.
6 years ago
Auto-translated
DevoRevo
If it's not possible to customize the properties of map objects through the map editor.
I'm trying to create another town that has the same characteristics as the original, but with a different model.
When copying the properties of a standard town, half of the options are reset (Combat). And all the settings inside are also reset. Because of this, it's impossible to attack the town. I managed to solve the problem, but if there's a fort built in the town, the game crashes immediately.
Also, it's impossible to end the day because it also crashes. Manually re-setting the properties is very inconvenient and takes a long time, and it's not even certain that the changes will solve the problem. Is there a way to work with the same objects, but through the game files?

If you somehow managed to create a map.xdb file through the editor, you can edit it. If not, I don't know how to create it, but people have done it.
< Item href="#n:inline(AdvMapTown)" id="item_ххххххххххххх">
			
				
					28
					116
					0
				
                           .....
             
       

Make a copy of the original and save it.
Close the Heroes editors and the game, open it with a normal text editor (if you have Notepad++, select Menu Language->XML). Search for this (using "AdvMapTown"), find the coordinates of the original town and the target town. Be careful when copy-pasting (do not change the position of town B). And your file should be correctly formatted (opening and closing tags). At the same time, close the editor or the game, as they may be using the file and prevent you from editing it during the replacement. Then replace it (open the map with WinRAR, go to the desired folder, drag the file into the desired folder. Don't forget to save the original first). If something goes wrong, restore the original file

Statistics

Welcome our newest member: recijeb