Kalah wrote:I have created a dedicated page for the mod
here. It can be spruced up with pictures if you want to.
Thanks Kalah! Is it possible to navigate to it from the main page? Also, would it be possible to make a small announcement somewhere?
Edit: I see the announcement and was able to navigate to the page under general / all articles, thanks Kalah!
dlevin wrote:Hi, I have a question for iLiVeInAbOx05.
I 'm looking for an opportunity to create a game bot for Heroes 4. Now I 'm trying to find coordinates of map objects in unzipped gzip map file (within .h4c file). Would you please explain where these bytes are?
Hi dlevin

A couple questions first:
1) What programming language are you looking to use when creating this game bot?
2) Do you know how to get to the block in the .h4c files that contains the objects?
If you go to the original post in this thread, I have a link to my documentation of .h4c files. If you open that up, you can search for the following heading: "Adventure / landscape objects:" Each object starts with an int (4 bytes) indicating the row, followed by an int indicating the column, and then another int indicating the level (above ground 00 00 00 00, or below ground 01 00 00 00). The objects block starts with an int indicating how many objects follow.
For my first question, I have libraries for java that I will eventually make available to anyone that is interested. There is still work for me to do to make them more complete before I do so, but I can easily get a list of objects for the above and below ground, then for each object you have methods available to get the row, column, and level.
For my second question, unfortunately I do not know a way to locate the starting point of the map objects that will work every time. My parsing libraries step through .h4c files section by section, which is how the files seem to be arranged. There isn't any special sequence of bytes that indicates the start of each section.
Hope this helps. Let me know if you have any other questions
I have updated the original post here to add a link to the H4MG description / download page.