Missing texture on weapon?!

General mapping discussions
cec.
Posts: 33
Joined: Sat Aug 20, 2011 11:01 am
Location: Germany

Missing texture on weapon?!

Post by cec. »

Hey,
today, I compiled Aztec for the first time after nearly six month and – surprise, surprise – there is an error again. I had something like this some time ago but this is a bit different. Look at the screenshots, they speak for themselves.
There are only a few models that have this missing texture error but when the rain drops hit the floor you can see also that blue missing texture image (or white/red/blue in UrT 4.1, tested it also).
Last time I just took an older .map-file that were a few days old but now, I can't do this because I only have one .map-file. (Yes I know, this is very stupid and I will save the .map-files from now on after every few changes.)
Please help me, I'm a little bit desperate because I thought to release the map finally after such a long time. :)
Attachments
shot0772.jpg
shot0769.jpg

User avatar
johnnyenglish
Space cake
Posts: 898
Joined: Wed Aug 17, 2011 9:23 am
Location: Nottingham, England

Re: Missing texture on weapon?!

Post by johnnyenglish »

You normally get this kind of thing when a shader has a missing bracket - or too many brackets. Map looks nice though. If you can't fix it there are a couple of us on irc today who might be able to find the problem.

User avatar
Rylius
King wiki
Posts: 232
Joined: Wed Aug 17, 2011 8:14 pm
Location: Germany
Contact:

Re: Missing texture on weapon?!

Post by Rylius »

Missing bracket usually screws up everything, this seems like a closed bracket too much or a missing opening bracket.
We can take a look at the shader if you upload it, but I'm sure you are able to check it yourself.

Gotta write some shader validator some time - if there's enough people interested I'll whip up something real quick
Rain - Blog - deviantArt
<Delirium> I did like a reverse jizz
<Delirium> in my pants
<Delirium> my jeans went into my sack
<Delirium> through my dick

cec.
Posts: 33
Joined: Sat Aug 20, 2011 11:01 am
Location: Germany

Re: Missing texture on weapon?!

Post by cec. »

Well, the only thing I did these days was indeed only to put in some models and a few shaders. Maybe I did something else after the last compile half a year ago but I don't remember.
Anyway, I found something in the shader file. Look at the last two lines. Is it what you meant that could affect other textures, too?

Code: Select all

models/mapobjects/tropicalplant2/diffus
{
   qer_editorimage models/mapobjects/tropicalplant2/diffus.tga
   surfaceparm alphashadow
   surfaceparm nonsolid
   surfaceparm nomarks   
//   nomipmaps
   nopicmip
   cull disable
   q3map_vertexscale 2

   {
      map models/mapobjects/tropicalplant2/diffus.tga
      alphaFunc GE128
      depthWrite
      rgbGen vertex
   }
//   {
//      map $lightmap
//      blendfunc filter
//      depthFunc equal
//   }

}//Phong Shading=========================================================
//======================================================================

User avatar
Rylius
King wiki
Posts: 232
Joined: Wed Aug 17, 2011 8:14 pm
Location: Germany
Contact:

Re: Missing texture on weapon?!

Post by Rylius »

It's possible the game/compiler skip the closing bracket because of the comment afterwards - try moving the //Phong Shading... part into a new line
Rain - Blog - deviantArt
<Delirium> I did like a reverse jizz
<Delirium> in my pants
<Delirium> my jeans went into my sack
<Delirium> through my dick

User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Re: Missing texture on weapon?!

Post by xandaxs »

exactly what i was going to say
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

cec.
Posts: 33
Joined: Sat Aug 20, 2011 11:01 am
Location: Germany

Re: Missing texture on weapon?!

Post by cec. »

Okay, compile took a bit longer, result: the same error.
I looked in the console and found this error, it was in about 1000 lines:

Code: Select all

WARNING: generate permanent shader - MAX_SHADER hit

There was also this error:

Code: Select all

Warning! <default> is not a compatible MD5 shader - material pair using default MD5 material.

User avatar
johnnyenglish
Space cake
Posts: 898
Joined: Wed Aug 17, 2011 9:23 am
Location: Nottingham, England

Re: Missing texture on weapon?!

Post by johnnyenglish »

The MD5 error is odd, did you add a MD5 model to the map? I know it's possible to load them with some versions of radiant but I'm pretty sure none of the q3map2 versions can handle them.

md2, md3, ase, obj and some other model formats are ok but not md5

cec.
Posts: 33
Joined: Sat Aug 20, 2011 11:01 am
Location: Germany

Re: Missing texture on weapon?!

Post by cec. »

No, there are only .ase and .md3 models in the map (about 100, most of them with a shader, but that's not the point?). I tested the models I added the last few days in a separate map and there is no error.
Maybe an interesting fact: in 4.1.1, the shaders for some textures are not loaded (alpha channel for plants) but in HD they work fine.

User avatar
Rylius
King wiki
Posts: 232
Joined: Wed Aug 17, 2011 8:14 pm
Location: Germany
Contact:

Re: Missing texture on weapon?!

Post by Rylius »

Oh that's not looking too good - do you have any 3rd party maps around? If yes, move them somewhere else before compiling
Rain - Blog - deviantArt
<Delirium> I did like a reverse jizz
<Delirium> in my pants
<Delirium> my jeans went into my sack
<Delirium> through my dick

Post Reply