Short Question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MillesManson
Corporal
Posts: 48
Joined: Thu Mar 13, 2003 4:54 pm

Short Question

Post by MillesManson »

Hi,
i want to make a shader for my uploadscreen with this code(my map name is Manson,my loadingscreenpicname is loadingscreen.tga,which of the both are correct?

loadingscreen //this one???
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
rgbgen global
//alphagen global
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
clampMap textures/mohmenu/dmloading/loadingscreen.tga
}
}

Manson //or this one???
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
rgbgen global
//alphagen global
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
clampMap textures/mohmenu/dmloading/loadingscreen.tga
}
}

I found both in this forum one said first line must be the name of the map,
other said there must be the name of the map,both without endings *.tga or *.bsp
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

I dont think the name matters ( but I use the map name, because its easier for me to associate it with the map )... the important thing is that you refer to the shader whaterver name U choose in the .urc file...
Admin .MAP Forums
Image
Head above heels.
Gizzy (nl)
Sergeant Major
Posts: 101
Joined: Tue Dec 03, 2002 3:41 pm
Location: Netherlands
Contact:

Post by Gizzy (nl) »

this is the loading screen shader from my first map UTAH.


utah.shader

Code: Select all


utah
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures/mohmenu/dmloading/utah.tga
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
}

My map name is utah and my loading screens has the same name...make sure the loading screen comes in the right directory. Hope this helps.
greets, Gizzy (nl)

Image
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

The name of the shader does not matter in terms of getting it to work. But the name you use for it must also be the name you use in the loading.urc file. (ofcourse you can't use a name that is used by some other shader)

Some important things are that

the loading urc should be named loading_thenameofyourbsp.urc

In the row in the the beging of the urc it should say
menu "dm/thenameofyourbsp" xxx xxx xxxx x (not xxx, values from other urc or your own stuff. dm=deathmatch/TDM map)
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
Post Reply