HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

W3Z Map Editor

08-28-2002, 01:18 PM#1
zepir
Give inputs, report bugs, suggestions, share your tips, etc. here!
;)

IMPORTANT NOTE: I do not take care of what's going on with W3ZME now. I just hope someone else will give you the hand...

[UPDATED 03/10/2004]
Get W3Z Map Editor here (final 1.0):
here.

Some docs about maps conversion:
Warcraft 2 to Warcraft 3 Conversion - Technical Documentation (pdf)

Starcraft to Warcraft 3 Conversion - Technical Documentation (pdf)

Find the OLD editing tools tutorial here:
as a zip
or as web page
08-28-2002, 02:51 PM#2
Guest
is it possible to change the ugly minimap thingy when u set protection on? :D
08-29-2002, 09:38 AM#3
zepir
Yes, easy! Just check where you installer W3Z Map Editor, go in the "mapfiles\" directory and then remove/rename/replace (pick up one) the file called War3MapPreview.TGA.
That's all.
08-30-2002, 02:30 AM#4
Guest
Zepir, how did you add docking toolbars with different controls in them? Did you use an existing class or wrote your own? I've been trying to do the same thing in my own application.
08-31-2002, 11:16 AM#5
zepir
It's a not well known MFC called CDialogBar. You can't directly use it on Visual C++, you have to use a trick. Seems like M$ forgot to include that class in the Wizard! :-/

Create your dialog with the controls you need in your toolbar and use the style "Child", border "none", uncheck all the other properties, then create a new class for that dialog using the CDialog MFC type. Then edit the .h and .cpp and replace all your CDialog with CDialogBar.
The .cpp needs additionnal changes. See with the errors you get and try to figure out...

Example:
.h:
Quote:
class CDoodadDialog : public CDialogBar
{
...
CDoodadDialog(CWnd* pParent = NULL); // standard constructor
...



If you want to know more about CDialogBar, go on codeguru.com
http://www.codeguru.com

http://codeguru.earthweb.com/dialog/...init_ddx.shtml

.cpp:
Quote:
...
CDoodadDialog::CDoodadDialog(CWnd* pParent /*=NULL*/)
: CDialogBar(/*CDoodadDialog::IDD, pParent*/)
{
...

void CDoodadDialog::DoDataExchange(CDataExchange* pDX)
{
CDialogBar::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDoodadDialog)
...

BEGIN_MESSAGE_MAP(CDoodadDialog, CDialogBar)
//{{AFX_MSG_MAP(CDoodadDialog)

....


Also, once you got that working, all the controls you will add will be disabled by the MainFrame, to enable them override the message function:
Quote:
void CDoodadDialog::OnUpdateCmdUI(CFrameWnd *pTarget, BOOL bDisableIfNoHndler)
{
// disable auto-disabling buttons! :)
}

If you want to know more about CDialogBar, check out codeguru:
http://www.codeguru.com/
and this in particular:
http://codeguru.earthweb.com/dialog/...init_ddx.shtml
09-01-2002, 03:00 AM#6
Guest
Sad i have no idea what you are talking about...
09-01-2002, 03:26 AM#7
Klintel
Ok I have one problem when going through that, I get CBox but where are you getting CDialog? Or do we go into the resource files and do this, I may get it, if I do ill post again. Thanks in advance.
09-03-2002, 08:43 AM#8
iceslushee
how can u make the map you made using your editor use new sets of map description it seems to use the default or original ones and, how can you change the settings for player forces?


if its not available b/c its the beta one i understand just curious
09-03-2002, 11:52 AM#9
zepir
Quote:
Originally posted by Klintel
Ok I have one problem when going through that, I get CBox but where are you getting CDialog? Or do we go into the resource files and do this, I may get it, if I do ill post again. Thanks in advance.

Code Guru.

http://www.codeguru.com

Look there.
09-03-2002, 11:53 AM#10
zepir
Quote:
Originally posted by iceslushee
how can u make the map you made using your editor use new sets of map description it seems to use the default or original ones and, how can you change the settings for player forces?


if its not available b/c its the beta one i understand just curious

When your map is opened with my editor, hit Alt+Enter or go to Edit->Map Properties.
09-04-2002, 08:30 PM#11
Vaderman
The one problem I have with your editor is I previously used WE and imported some terrain from different sets. When I load up the map in your editor it gets rid of all those tilesets and put in tiles from the default tileset for my map. I imported some grass from another Terrain set and i'm using the cityscape terrain set. I don't want to have to go back and reterrain everything but I still need to use stuff from your editor.
09-04-2002, 09:34 PM#12
zepir
Are you sure? What you say seems weird. Maybe the tiles just show as gray on my editor because their color has not been defined in th .ini?
Just a question to check that:
You open your map, then you save it with my editor, you open it again in the WE: are the tilesets really changed?

It can also come from something else you should check:
when you open the map properties in my editor (alt+enter), is the "use custom tileset" box checked?
09-08-2002, 02:36 AM#13
Guest
hey zefir how do u create an editor whitch prog u use ????
09-08-2002, 11:55 AM#14
zepir
1st my name is Zepir with a "p" and not a "f", then I used Visual C++ and I started from scratch.
09-08-2002, 01:55 PM#15
Guest
sorry zepir for u name ... and c++ where u get this?