Custom Textures?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Triicky
Colour Sergeant
Posts: 86
Joined: Thu May 08, 2003 6:18 pm

Custom Textures?

Post by Triicky »

How do i import, custom textures, also how do i make them work when i send the map to another person?


Tricky
"just because you cut of their heads doesnt mean their dead"
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

best way to start is:

create a new folder in main/textures/mytextures

choose a texture which came with MOH:AA, that is similar to the one u want to add (like something made of stone, when u want to add a new stone texture...)

lets say, it's called "xmpltex" and it can be found in MOHRadiant in the textures in folder "xmplsubset".

in mohaa/main, u find some files pak#.pk3. these are just zip-compressed, so u could open them with WinZip or WinRAR, but I'd say, u better use PakScape.

Open Pak0.pk3. U'll see some folders. One is called scripts. Inside, you'll find many files *.shader. One is called xmplsubset.shader (see above).

Open it with notepad and save it as mytextures.shader in mohaa/main/scripts.

Is it still opened? Okay. Try to find a line textures/xmplsubset/xmpltex.

This is the first line of the part of the xmplsubset.shader (now it's mytextures.shader), that is describing how xmpltex behaves ingame. This part ends just with the last } before the next line textures/xmplsubset/othertexture .

Delete everything in mytextures.shader but this part and save it.

Now read what your mytextures.shader is saying: the first line tells the name of your texture. it now must be replaced by textures/mysubset/mytexture.
Then, there is lots of stuff, telling what this texture "does" in MOH:AA, but also, there is a / are some line(s) telling which image is to be used. Try to find them: They include something like textures/xmplsubset/anyxmplimage.tga

Now, open Pak2.pk3. U'll see 2 folders, env and textures. In textures, u'll find many folders and one ought to be xmplsubset (see above).
Inside, you'll find the texture that was used in the shader, it can be jpg also! Copy it into mohaa/main/textures/mytextures.

Launch your favorite image editor, open your image and the anyxmplimage.tga (or .jpg). Now try to make your image the way this one is (color depth, maybe size) and save your image as mypic.tga in mohaa/main/textures/mytextures.

Adjust in mytextures.shader the lines from xmplsubset/anyxmplimage.tga to mytextures/mypic.tga. Save it.

Open mohradiant and try to find the texture folder mytextures. There u ought to find your new texture ready to use.

Though this is a long and rather confusing post, there'll be many cases where it's even more complicated. So better start with something easy, like a new wall texture, a sig or a poster...

For the sharing topic, read the tut about pk3 creation!
Post Reply