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 3.5 - WoG and Beyond > Thread: GK's Command-line Map Editor
Thread: GK's Command-line Map Editor

Supreme Hero
posted March 18, 2024 03:22 PM
Edited by gnollking at 12:07, 19 Mar 2024.

GK's Command-line Map Editor

h3_map_editor (GitHub)

While working on my maps, the limitations of the normal map editor grew quite annoying. Working on HotA and already having a lot of progress in some maps, using RoseKavalier's excellent Unleashed editor was not an option, so the most logical and simple solution for me was to learn the entire map file format and make my own .


- h3_map_editor is a simple command-line tool made with pure python, useful for mass changes that are tedious to make with the normal editor, or changing literally anything you want with no limitations. Currently supports HotA version 1.7.0.

- The program parses a given map into easily editable python dictionaries, allows you to modify it with custom scripts in any way you need, then saves the map into a new file. The code itself still needs quite a lot of cleanup, but the provided README should be enough for any interested people to check it out. The code is released under the MIT license, allowing anyone to do pretty much anything they want with it.

- Cleaning up the code and explaining what every part does is an ongoing project. The goal is for the editor to be easy to use and expand, especially for making custom scripts. The way the map data is stored is not likely to change much, so any scripts made now should work for a long time. It's just the way the editor reads and writes that map data that needs cleaning up. Hope someone finds it useful!

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

Legendary Hero
fallen artist
posted March 19, 2024 07:33 AM

Ooooh I wanted this

What for? Mostly for some AI-generated maps - think deep learning, but not only.
The future of Heroes 3 is here!

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

Supreme Hero
posted March 19, 2024 12:00 PM

That's a pretty nice idea. I did think about making some helper functions to place and remove objects on the map and modify the terrain, but haven't really had the time. The objects "handler" is probably the one file that needs the most cleaning up (thanks for all the additional bytes to decipher and parse for almost every visitable object, HotA 1.7.0 ).

 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.0270 seconds