wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > MDL Editing
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 06-27-2007, 06:34 PM   #1
Whitehorn
SPOON!
 
Whitehorn's Avatar


Respected User
 
Join Date: Sep 1983
Posts: 4,900

Submissions (114)

Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)

Default Finding & Editing model textures - Novice - MDL Editing

Step 1: Get The Model.

For this tutorial, I will be using my tainted despoiler

Step 2: Convert the model.

You need to use a .mdx to .mdl file converter. MDLX converter is a good example.

Open your model file with the converter and convert it to .mdl format.

Step 3: Find the textures.

Open the .mdl version of your model. It should open in any text editing program.

Scroll down, or choose the Edit | Find command or press Ctrl+F, to find the textures.

If you use Find, type in 'tex'. It will find the textures section. Close Find.

The Textures section should appear similar to the following (or identical if you are using the Fiend model):

Code:
Textures 5 {
    Bitmap {
        Image "Textures\gutz.blp",
    }
    Bitmap {
        Image "Fiend.blp",
    }
    Bitmap {
        Image "",
        ReplaceableId 1,
    }
    Bitmap {
        Image "Textures\Peasant.blp",
    }
    Bitmap {
        Image "Textures\Satyr.blp",
}

Most textures appear as Bitmap { Image "Imagepath.blp", }.

You have now found all the textures used by this model.

Step 4: Editing a path.

To change the path of a texture you simple edit the part between speech marks ("). For example, change:
Code:
Bitmap {
        Image "Textures\Satyr.blp",
}

Into:

Code:
Bitmap {
        Image "FiendHorns.blp",
}

Step 5: Convert the model back.

If you edited the model you will need to convert it back to .mdx format.

Again, you need to use a .mdl to .mdx file converter.

Open your model file with the converter and convert it to .mdx format.

###
Note, it is possible to view texture paths without converting the file to .mdl. Simply open an .mdx model file with a text editor and search for '.blp'. The composition of the file will be mostly gibberish, but the texture paths do appear:

Code:
TEXS<      Textures\gutz.blp                                                                                                                                                                                                                                                           Fiend.blp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Textures\Peasant.blp                                                                                                                                                                                                                                                        Textures\Satyr.blp                                      

Additionally, Warcraft 3 Viewer can display skin paths by pressing Ctrl + [M].
__________________
My Wargame

Be excellent to each other.

Last edited by Whitehorn : 06-27-2007 at 06:36 PM.
Whitehorn is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 07-01-2007, 09:46 PM   #2
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

As for editing paths directly in the mdx: I suggest using a hex-editor. It helps getting the padding zeros right.

A very good collection of tutorials, Whitehorn!
I'd approve all of them right away, but the images are all hosted at other sites, which is a problem because it breaks the tutorials if the other sith goes down.
Please attach them to the posts.

Oh well, I'm sure you already know our rules :)
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 07-02-2007, 09:03 AM   #3
Whitehorn
SPOON!
 
Whitehorn's Avatar


Respected User
 
Join Date: Sep 1983
Posts: 4,900

Submissions (114)

Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)

Default

Quote:
Originally Posted by PitzerMike
A very good collection of tutorials, Whitehorn!
I'd approve all of them right away, but the images are all hosted at other sites, which is a problem because it breaks the tutorials if the other sith goes down.
Please attach them to the posts.

I was under the impression that hosting filespace was not so infinite as before.
I'll see if i can get Vex to upload an entire folder so I can quickly replace the links.

Bear in mind this one has no attachments.
__________________
My Wargame

Be excellent to each other.

Last edited by Whitehorn : 07-02-2007 at 09:04 AM.
Whitehorn is offline   Reply With Quote
Old 07-04-2007, 05:31 PM   #4
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Yes, I'll approve them all for now.
We can update the images later, when all parts of the site are back up and running.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 07-05-2007, 06:47 PM   #5
Guesst
User
 
Guesst's Avatar
 
Join Date: Mar 2006
Posts: 301

Submissions (3)

Guesst is a jewel in the rough (185)Guesst is a jewel in the rough (185)Guesst is a jewel in the rough (185)

Default

For people looking for the easiest way to get a path changed you might want to mention that Magos' editor (right?) or this program can do it for you.
Guesst is offline   Reply With Quote
Old 07-05-2007, 09:03 PM   #6
Whitehorn
SPOON!
 
Whitehorn's Avatar


Respected User
 
Join Date: Sep 1983
Posts: 4,900

Submissions (114)

Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)Whitehorn is a name known to all (510)

Default

Guesst, you trivialized MDL editing. Half the skill was manually editing these ugly models back in the day :P
__________________
My Wargame

Be excellent to each other.
Whitehorn is offline   Reply With Quote
Old 07-07-2007, 10:03 PM   #7
waaaks
User
 
waaaks's Avatar
 
Join Date: Apr 2007
Posts: 356

waaaks is on a distinguished road (12)

Default

if i do this method, will the model work without the texture imported in WE?
im finding a method where your model uses your skin and in WE the skin file is not needed...how to do this?
waaaks is offline   Reply With Quote
Old 07-17-2007, 12:42 PM   #8
Pyritie
Doesn't come here often
 
Pyritie's Avatar
 
Join Date: Jan 2007
Posts: 451

Submissions (9)

Pyritie will become famous soon enough (47)Pyritie will become famous soon enough (47)

Send a message via MSN to Pyritie
Default

If the skin is a custom skin, it must be imported in WE.
Pyritie is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 02:19 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services