Page 1 of 1

Multiple .shader file problem

Posted: Thu Apr 14, 2005 10:14 pm
by diego
This is a new one on me and it's probably something really simple.


Since I use a lot of custom textures, I like to break them up into multiiple .shader files so it is easier to keep track of things. I had 5 for my first map and it worked fine.

On my new map, I copied all my terrain textures to a new .shader file in my scripts directory. But when I compile it, the BSP process fails. If I copy those shaders back into my original .shader file, and remove the second .shader file, it compiles fine.

All my shaders work fine so there should not be any problems there. I'm at work right now, I'll try to get you the exact error later today if you need it.




----------------------------------

Oh, and while I'm on the subject. I've been reading shader tuts today for RTCW since my new map is for ET and MOHAA. Does MohAA support using Normal maps for bump mapping?

Posted: Thu Apr 14, 2005 10:37 pm
by wacko
Yeah, the error message(s) would be interesting.

And afaik no bump mapping in mohaa :(

Posted: Fri Apr 15, 2005 2:03 am
by bdbodger
It is probably a max surface info error caused by haveing too many shaders . Move any paks you may have with custom textures you are not useing out of the main directory until after you have compiled your map or move the original custom shaders you had to another directory and use the second set .

Posted: Fri Apr 15, 2005 2:23 am
by diego
I doubt it. I only had 1 other custom map in my main folder. My current shader file has no more than 20 customs.

I think the BSP was not writing a portal file. It's been a while since I tried to do it. But it's weird, I just set up another shader file and it worked fine this time.

Posted: Fri Apr 15, 2005 5:22 am
by wacko
set a pause after bsp stage and look up the exact error message. there ought to be one :wink:

Posted: Fri Apr 15, 2005 2:29 pm
by diego
I have my compile write to a logfile. But I'm not getting the error anymore. Maybe I did have something like a missing bracket in my .shader file before.