• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Give Unit A Tree Model

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
The model is white because the texture is not in the model. Instead, it possesses a replaceable texture path. In object editor >destructables there is a property field to replace this replaceableId with a desired texture. So when you want the tree with the texture as standalone, export the model and the texture of that field, edit the model and replace this replaceable texture path with the other texture.
 
1) Open the tree model with War3ModelEditor.
2) Save it as a .mdl file (you can't edit texture path directly within Magos' editor).
3) Open the .mdl file with a text editor (notepad or whatever).
4) Seek for the following lines :
Code:
Textures 1 {
	Bitmap {
		Image "",
		ReplaceableId 32,
	}
}
5) Delete the ReplaceableId thing and write the tree's texture path (you can see it in the object editor). For the Ashenvale Canopy, it would look like that :
Code:
Textures 1 {
	Bitmap {
		Image "ReplaceableTextures\AshenvaleTree\AshenCanopyTree.blp",
	}
}
6) Save it, re-open it with Magos' editor and Re-save it as a .mdx file.
7) Import the model and that's all done.
 
Do as what Tirlititi said or do the following:
1. Download this http://www.hiveworkshop.com/forums/tools-560/mdlx-converter-62991/.
2. Convert the model to .mdl and do what Tirlititi said on number 4 and 5 of his steps.
3. Delete the .mdx file of the model then convert the .mdl file to .mdx file.
4. Import the model to your map.
5. You are done.
 
Status
Not open for further replies.
Top