custom texture problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Stitch
Lance Corporal
Posts: 16
Joined: Thu Mar 04, 2004 12:00 pm

custom texture problem

Post by Stitch »

I've followed the custom texture tutorial on nemesis' page but in radiant i can't see the texture when creating a brush.

This is my .shader file:

textures/mine/brickwall1
{
qer_keyword rock
qer_keyword wall
surfaceparm sand
{
map textures/mine/brickwall1.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

And this is how I saved the .pk3:

one folder named scripts, containing the .shader file
one folder named textures, containing another folder named mine wich contains the .TGA file

I hope I can get some help here!
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

yea, that happened with me too :(
ImageImage
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

type 2

Post by tltrude »

The game only likes "type 2" images. I don't know what that is, but you can copy one of the images in pak2 and paste your new image on top. Then save with the original name. Later you can rename the file "brickwall1".
Tom Trude,

Image
User avatar
Stitch
Lance Corporal
Posts: 16
Joined: Thu Mar 04, 2004 12:00 pm

Post by Stitch »

But won't you be loosing the original texture then??
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

copy

Post by tltrude »

Not if you make a copy and move it to "custom".
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

And even if you don't rename it won't make a difference, the game sees textures as:

custom\mytexture

and say

stocktexturefolder\mytexture

even if those filenames are the same they are still two different textures.

Also as long as you don't overwrite the original. :wink:
Image
User avatar
Stitch
Lance Corporal
Posts: 16
Joined: Thu Mar 04, 2004 12:00 pm

Post by Stitch »

so what I've gotta do is copy a shader of another wall texture and name my tga the same as the one in the copied shader?? save it and done?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

No

Post by tltrude »

What I was saying is to copy a TGA image from the game, move it to your "textures/mine" folder and then modify it to look like your brickwall1 image (using the method I suggested). Your shader should be fine, but your current TGA image may, or may not, be the wrong type.

maybe you should do the tutorial again, you might have missed a step.
Tom Trude,

Image
Phil
Lance Corporal
Posts: 15
Joined: Wed Apr 28, 2004 6:08 pm

Post by Phil »

Change the folder name to STITCH, because i've had alot of problems when using mine/mines in folder names, shaders & loading screens. :?

Then use this script for your shader & when you add another texture just repeat & change the red to what it should be.

textures/Stitch/brickwall1
{
qer_keyword wall
qer_keyword concrete
surfaceParm stone
qer_editorimage textures/stitch/brickwall1.tga
{
map textures/stitch/brickwall1.tga
rgbGen identity
depthWrite
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
depthFunc equal
}
}

Look at some original files & you will be able to adjust the green for all you textures.

If you have trouble with things, your best just looking at the original files. (in the Pk3 files)
you could learn alot. :wink:
Post Reply