Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Reading and parsing maps
Thread: Reading and parsing maps
melianos
melianos

Tavern Dweller
posted June 16, 2011 11:10 PM

Reading and parsing maps

Hello.

H6 is coming (who doesn't know that here ?), and when it comes out, we shall go through the maps available way to quickly.

Then will come a sad waiting time for new maps, or for people to redo old maps that we played on H5 (or older heroes).

So I've been thinking of parsing (reading) H5 maps, and converting them as H6 maps. So we could convert (once the program is made) maps from H5 to H6.

I know how to do the parser, that's actually quite easy. My problem lies in reading H5 maps, and understanding what I read.

I tried to open the Listen to Silence map with wordpad (was sure it would fail, but well, it's always worth a try), and I got, well, something unreadable, with many special caracters (couldn't even copy/paste it).

Does anyone know how to decode and read the H5 maps (charset and such things) so I could create the parser ?

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mike80d
mike80d


Famous Hero
Map Maker
posted June 17, 2011 12:28 PM

I personally do not, but this is a great idea that I hope works out.

One challenge you will have is that the Developers for Heroes 6 have already stated that the maps in H6 are larger than previous game versions.  Keep this in mind, and good luck!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Warmonger
Warmonger


Promising
Legendary Hero
fallen artist
posted June 17, 2011 02:52 PM

First of all, you need to unzip (unrar?) h5m file.
____________
The future of Heroes 3 is here!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
magnomagus
magnomagus


Admirable
Legendary Hero
modding wizard
posted June 17, 2011 03:13 PM

You won't be able to read the terrain file because it is hardcoded, but you can read the xdb for the placement of objects

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Warmonger
Warmonger


Promising
Legendary Hero
fallen artist
posted June 17, 2011 03:15 PM

You should check the meaning of "hardcoded". Only game executable is hardcoded (compiled), other files may just be given in an implicit format.
____________
The future of Heroes 3 is here!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
markkur
markkur


Honorable
Legendary Hero
Once upon a time
posted June 17, 2011 05:40 PM
Edited by markkur at 17:45, 17 Jun 2011.

Great idea and I hope a way can be found to do this.

However one question comes to mind; will H5 & H6 Editors speak the same lingo?

Another snag may be that even if they do, if Mike80D is right about the larger maps, then the "copy and pasting" map objects in H5, most likely will not work.

I share this, also for general map-making purposes;

In H5, I wanted to copy an "object list" from a normal map to the next larger map-size. My purpose was to "Add more room around all factions, to add more objects to the existing lay-out". When I pasted; all objects were placed "to match the orignal {X,Y} object locations, so those became a "skew" on the larger map. The transfer put the added room only (as I should have expected) to the "North and East", thus my quicker start was a no-go.

On a smaller map, it may be possible to "drag over all objects" and then center the lot (my purpose) but I didn't think of trying that, because all terrain was virgin and all objects placed in the underground were buried and had to be dug out. A serious Dwarven treat.

Anyway, <imo> if the maps ARE different cell sizes then you would need a program to "re-figure the objects {XY}s" on the new map size". That's just objects, I don't know a thing about the transfer of modified terrain and tiles. I should add; the the map description info was copied that appears in the drop-down, but I think I had to change some info there to allow the map to open? Seems it was the clash in listed cell-sizes.

Good luck. It's a great idea.    

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
melianos
melianos

Tavern Dweller
posted June 17, 2011 08:32 PM
Edited by melianos at 20:37, 17 Jun 2011.

Quote:
First of all, you need to unzip (unrar?) h5m file.


Great, I didn't know I could unzip h5m files.

Quote:

However one question comes to mind; will H5 & H6 Editors speak the same lingo?



They can't. That's why I want to parse it. Basically I read it, and translate it into H6 map. But for that, I first need to read it

One extra question, inside there are xdb files, does someone know how to open them ? Also, how do I open the bin files ?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0340 seconds