Skip to content

Working with map objects without using the editor.

#15
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