User Title
Join Date: Nov 2006
Posts: 1,059
|
How to Import Custom Models
Importing Custom Models:
Many people still wonder how to import objects and models into their editor, so I made this tutorial for all those newbies out there. This tutorial is designed for Warcraft III World Editor for The Frozen Throne expansion, not for Warcraft III World Editor for Reign of Chaos.
Difficulty Level:
What You Need:- Warcraft III World Editor for The Frozen Throne expansion
- The model file in .mdx format (and its skin in .blp format)
How to Import the Model:
The testing model for this tutorial will be a dwarven mountaineer by Norinrad that can be downloaded here.1. In the World Editor, open the Import Manager. You can open this in one of three different ways: click the icon is on the toolbar of the main (terrain) editor (two papers with a green arrow), use the hotkey (F12), or select it from the module menu.
==--Example Picture:--==

2. Right-click anywhere on the empty white space and select Import File. You can also get this option from the File menu of the Import Manager. If you want to import multiple files at once, select Import Files. When you choose one of the choices, the Editor will open a window to allow you to browse to your file(s).
==--Example Picture:--==

3. Browse to your file and select it. If you chose to import multiple files, you only need to browse to the directory level. Press the button that reads *Ok* or double click the file.
==--Example Picture:--==

Setting up the Imported Model, Skins, and Portraits:
Your file(s) should now appear in the Import Manager window list along with the details of its file type, size, and location. This means that the files have been imported, but you are not yet finished, because you need to set the files up correctly before you can use them. 1. To the right of the area where it says "File Name", there should be something that says "Full Path". Beneath it your file should say "war3mapImported\Mountaineer.mdx". This is the default address that models are imported into and in most cases you will need to change it. The only model types that allow you to keep this path as "war3mapImported" are models that use in-game textures. Some units might use in-game textures but I find more in-game textures used as doodads or decoration than units. Click the checkbox that says Use Custom Path.
==--Example Pictures:--==
 2. Change the path to the directory where your model will go. Now, we shall change the .mdx file path, but it is unnecessary. Change the path so that the full path reads: Mountaineer.mdx.
==--Example Pictures:--==

3. If you want your model to replace a model that already exists in the game, you need to make sure that your model has the same custom path as the model it is replacing.
4. Most models will require that you also import the skin that goes with the model. You can import the skin in the same fashion as you did for the model above. The proper custom path for a model's skin is embedded in the model itself. If you don't know this path (most people post the skin's path with the model when they upload it to sites), you will need to find out what it is before proceeding.
==--Example Picture:--==

5. Models without skins usually will not appear in the editor or the game and may cause the editor to crash. If you can't find the path for the skin, common locations are either no directory which, for our model's skin would read Mountaineer.blp or sometimes they are placed into the Textures directory, which would read Textures\Mountaineer.blp, but since this path has no directory, it will stay at Mountaineer.blp. Keep in mind that some models require multiple skins with different custom paths. This information is part of the model and cannot be changed without editing the model.
==--Example Pictures:--==
 
6. If you cannot find the correct path, seek expert modeler help - any person with even a beginner-level understanding of MDL editing could tell you the correct paths by opening the model in some third-party tools that they should have. You may use this program to easily detect the path as well. Another easy way to detect the path file is getting Warcraft III Viewer, and viewing the textures used by going to Current File | Show Used Texture Names (CTRL + I). To get Warcraft III Viewer, click here...
==--Example Pictures:--==
  
7. Many models also have separate portrait model files that accompany them. These files must always be placed in the same directory as the model that they accompany and the name should have the same name as the model it goes with, but the tag "_Portrait" included before the file type. Import it just as you did for the base model and click the custom path option. For our example the full path for the custom portrait model would be: Mountaineer_Portrait.mdx.
==--Example Picture:--==

Finishing Up the Import Process:- Ok, once you have got the models imported into the editor with the skins and (possibly the portrait) and the custom paths are set, you might think you are finished, but not yet. This is very important: the world editor still doesn't recognize your models; you must exit and re-open your world editor. Not just the map, but the whole editor.
- Re-open your map and assign your model to your unit. You can do this by opening the unit editor, then going down to their model file. Select that part and scroll down to the Imported section to change your model.
==--Example Picture:--==

Have Fun importing your models!
Common Issues and Questions with Importing Models:
- My model appears as a big green checkered cube and the world editor says it can't open the file when the map loads. Please Help!
This usually happens when you haven't enter the correct model path. Try to enter the model path and save, exit, and re-open your map.
- I did everything correctly, but my model is invisible in the game!
This usually means your skin(s) for the model is not found. Make sure you import all of the model files, although the icon and some other stuff like a readme don't need to be imported.
- The model has no color and no skin.
This means the skin was changed, edited, or improperly created. You may edit the skin, but you may find that it isn't worth the trouble, and just look for a new model.
- I don't know the custom paths for my model and skins.
Model downloading sites should display the paths for both the model and the skin . The model might be made using in-game textures (see above) so it may not require one. If the model didn't come with the path, you can usually just set it up as we did above without a directory, but you will still need to find the path for the skin for the model to work correctly. See help from a modeler.
- Special effects work on regular models, but not my custom one.
Some custom models don't have attachment points or they may not be labeled the say way that Warcraft models are labeled. The only way to fix this problem is to seek help from a modeler or someone who knows model editing well enough to add attachment points.
- My model doesn't do anything at all!
This means your model has no animations. Animations allow the unit to do certain stuff such as stand, walk, attack, etc. Once again, a model that should have animations but doesn't, you will need to seek help from a modeler or find another model.
- My model won't play a death animation when it dies! It just stands there.
This means your model was created without a death animation, so that means the unit will just revert to the stand animation until the unit is removed (or the decay time runs out). This model can only be fixed by a modeler.
- My model has no Hero Glow.
Obviously, that means your model was created without a hero glow. You can add hero glows as a separate model and attach it to the unit if you require one or seek help from a modeler.
- Certain parts of the model display correctly, but others won't.
This is usually a problem with the skin being used. If you have used an imported skin, make sure that you have included all of the necessary .blp files and that they have the correct custom path.
- Some parts of the model have color, but others don't!
This usually means that alpha layer on the skin is set up incorrectly or model has the texture set up improperly. It may be possible to edit the skin to resolve the issue or you may need to seek help from a modeler to fix the texture material settings.
I hope you found this tutorial useful!
-- Credits --
- CHUNK for proofreading and editing my tutorial.
- Site thanks:
- Norinrad for his great model
- maps.worldofwar.net
- hiveworkshop.com
- wc3campaigns.net
- thehelper.net
Note: This tutorial was transferred from worldofwar to the Hive ~PurgeandFire111
WooT!
Need Help? Please view my tutorials:
Here are 2 screenshots to show how models look like after they are imported:
Last edited by PurgeandFire111; 05-08-2007 at 02:18 AM.
Reason: Attachments were screwed up!
|