r/heroes3 • u/Witch_Hat_Wearer • Apr 13 '23
Question - Solved Where does the map editor define which obstacle objects are placed via the Obstacle Tool?
In Horn of the Abyss' Map Editor, I want to temporarily disable certain objects, e.g. mountains, from being randomly placed with the Obstacle Tool. I would like to place only trees to make a giant forest-themed map, but the mountains really ruin it. I need to edit the file which defines the mountains as obstacles for the map editor, so that the editor will not place them via the Obstacle Tool. Do you know what file is it or how to achieve that in another way?
Edit:
I found the way to disable specific objects for the Obstacle Tool, check in the comments.
1
u/Cezaros Factory! Apr 13 '23
You can also copy a lot of trees... or delete those spots that are mountains... or use the obstacle tool again to get a new variation
2
u/Witch_Hat_Wearer Apr 13 '23
How do you select and copy a lot of trees? I can select only one object at a time. Do you mean GrayFace's patch for the map editor? I tried to use it (the patch for HotA), but the editor crashed when I tried to paste a segment of the map. I don't know if that's related, but it might be because I'm running the map editor on Debian via Wine.
1
u/Cezaros Factory! Apr 13 '23
You can copy one tree in Hota map editor, but there are other map editors They don't want you to know about. Go to heroescommunity and follow the white rabbit. There you will find Unleashed Map Editor, capable of much more than Hota could ever dream of. But keep it secret. Keep it safe.
1
u/Labriciuss Apr 13 '23
But unleashed only works with WOG doesn't it?
1
u/Cezaros Factory! Apr 13 '23
I was certain it can create a normal h3m map, but my memory is no longer what it used to be
1
u/Labriciuss Apr 13 '23
I think you are right, unleashed Map editor comes with Era that includes wog, Hota and mop
Édit: ERA 3
1
u/Cezaros Factory! Apr 13 '23
You can also copy a lot of trees... or delete those spots that are mountains... or use the obstacle tool again to get a new variation
3
u/Witch_Hat_Wearer Apr 13 '23 edited Apr 13 '23
I found the way! You need a program called MMArchive, it will allow you to extract an important text file called Objects.txt from an archive file called HotA.lod, which is found in the Data directory of your HotA installation. Notice that the EdObjts.txt does not affect the Obstacle Tool, it only affects the menus in the editor. Extract Objects.txt into your Data directory, and then identify the mountains (or any other object you don't like) in MMArchive by their .def filename (you can also see their images in MMArchive). After identifying the objects, notice the following pattern for each object in the text file:
In this example, we see the definition of a wasteland mountain object. The interesting part for the Obstacle Tool in the map editor is the
100000000000
part near the end of the definition. This is a binary flagging value, where each bit represents the terrain type in which this object will be used as an obstacle with the Obstacle Tool. In this example, the1
enables Obstacle Tool to use this object on wasteland terrain. To disable this terrain, replace the one with0
and the Obstacle Tool will no longer use it after restarting the editor. Therefore, the new definition should be:Now, you can repeat this on and off with any other decoration object, and mix decorative objects in other terrain types to create amazing scenery in your maps.