Multiple .shader file problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
diego
Captain
Posts: 245
Joined: Sun Dec 21, 2003 10:47 pm

Multiple .shader file problem

Post 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?
Diego
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Yeah, the error message(s) would be interesting.

And afaik no bump mapping in mohaa :(
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
Image
User avatar
diego
Captain
Posts: 245
Joined: Sun Dec 21, 2003 10:47 pm

Post 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.
Diego
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

set a pause after bsp stage and look up the exact error message. there ought to be one :wink:
User avatar
diego
Captain
Posts: 245
Joined: Sun Dec 21, 2003 10:47 pm

Post 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.
Diego
Post Reply