Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Resources and Tools => Topic started by: Cromon on October 30, 2013, 07:05:48 pm

Title: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Cromon on October 30, 2013, 07:05:48 pm
Hello

As the title describes the tool i have created allows you to create minimap images for ADT tiles. So far this is just terrain with lighting, wmo and water are to come.

The tool ships with a DLL and a .lib (with header files) so you can use it in your tools as well. Usage is pretty simple ill show that in the end.

So how does it work? You open the GUI, select the path of your 3.3.5a data (!) folder and you are ready to go. You can load a continent (e.g. Kalimdor) and select the tiles youd like. Then you click build and the files are created in the path you've selected as output path.

Images:
(http://puu.sh/54A4U.png)
(http://puu.sh/54A5J.png)

To use the DLL:
1. Make sure you have all the header files and the .lib in your code directory
2. #include "MinimapCreate.h"
3. Add MinimapCreate.lib to your linker dependencies
4. To get a std::shared_ptr<IMinimapCreate> you use minimapCreateInit()
5. In the thread you want to create the minimaps (important: Using it in another thread will fail!) call IMinimapCreate::initGraphics
6. Use IMinimapCreate::initFileSystem to give it a IFileHandler.
6.1 You can implement IFileHandler yourself if you have already implemented some sort of file handling OR you can use minimapCreateNewMpqHandler which will instantiate a handler that loads all MPQs in a given path and then returns files from there
7. Use IMinimapCreate::fromHandler to get a HBITMAP with the image

[Important]
First try the exe in the debug folder. If it does not work (dll errors) try the one in the release folder.

Download:
http://www.file-upload.net/download-823 ... 7.rar.html (http://www.file-upload.net/download-8237474/MinimapCreate_Mixed_30_10_13_21_47.rar.html" onclick="window.open(this.href);return false;)

Greetings
Cromon
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Hanfer on October 31, 2013, 11:56:28 am
Nice work!
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: fearless_wind on October 31, 2013, 12:41:27 pm
Nice work, Cromon. But it seems that shades are on the wrong side of mountains, so the terrain seems inverted. But anyway it's a great tool, thanks.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Insanity on October 31, 2013, 12:48:25 pm
Awesome.  I really appreciate this.  Creating minimaps was allows one of those polishing features that I couldn’t quite make the time for.  This tool simplifies that process dramatically.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Jøk3r on November 04, 2013, 11:20:27 pm
Big thanks from me! Now it is such a easy thing to create minimaps. Only thing to mention is that the terain is inverted as fearless has said. But anyway: Great Tool!
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: thehsvdude on November 22, 2013, 01:22:16 pm
doesnt work
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Jøk3r on November 22, 2013, 02:36:02 pm
It does work. You did it wrong. So just post some information about your problem or don't post at all.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: thehsvdude on November 22, 2013, 03:30:13 pm
Quote from: "Jøk3r"
It does work. You did it wrong. So just post some information about your problem or don't post at all.
i get an error of some sort. its better described if u take a look at the Dump files.
EDIT: after using this tool it corrupted my wow. :(
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: resinate on January 08, 2014, 06:52:28 pm
can u fix this tool, so images arent saved as png but as TGA so we can run them in the TGAtoBLP tools?

or just make it save as BLP
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Steff on January 09, 2014, 12:32:44 am
And why not use the PNGtoBLP tool as overyone else do :) ?

Better wold be to fixthe inverted ight rendering and that water is mising.
It should render ground, water and WMOs.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Soldan on March 14, 2014, 02:30:18 am
Any updates on this? The fixes to the inverted terrain, etc?
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: shawn on September 01, 2015, 05:37:34 am
new link please, less german/foreign language that google cant translate would be nice :3
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: madman1851 on December 23, 2015, 08:22:59 pm
Getting crash imidietly after program finds any wmo..any help?
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Valkryst on December 23, 2015, 09:49:16 pm
Works fine, although an updated tool with support for WMOs would be nice. :p
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Skarn on December 25, 2015, 08:56:41 pm
It also renders shadows inverted. Mountains look like pits.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Amaroth on December 26, 2015, 10:41:33 am
Now I know why that screenshot looked so strange to me... ofc, light position in WoW is at north-western corner of map, always. The same applies to sun/moon position.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Chaya_1987 on July 04, 2016, 12:43:32 pm
And how do i add it to my minimap?
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Gratural [Харгард] on June 16, 2017, 07:54:35 am
Tool are not work with my custom area - application are closing.
Anybody know a any other tools with same fuctionally?

PS. Win Server 2016 x64. Tried run it in compatibility mode, but got same error.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Amaroth on June 16, 2017, 08:44:58 am
What alwas works:
1. Open 2d paint in Noggit and go to ADT you want to get minimap for.
2. Make a screenshot with grid turned on.
3. Turn grid off without moving camera and make second screenshot.
4. Put those 2 screenshots on each other, cut them along ADT grid lines and save only the one without grid on it.

Very tedious, but works. I haven't find different, correctly working method yet :X.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Gratural [Харгард] on June 16, 2017, 07:49:01 pm
Amaroth, thank. but  Noggit's 2d mode view are dont display water. And wmo's. And m2's too.
Title: Re: [TOOL] MinimapCreate - Minimap creation for ADT
Post by: Amaroth on June 16, 2017, 09:41:52 pm
Don't expect any tool to do that. Especially M2 and WMO part. I think Blizzard is not getting that generated, either. Just saying.