no working loading screen
Moderator: Moderators
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
no working loading screen
i have a problem whit my loading screen i got the script from blue60007 and i don't know what's the mistake
here are the 2 scripts that i've used for my map
this is the one in the scripts folder:
mymapname
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures\mohmenu\dmloading\The-Real-DM.jpg
}
}
and this is the one in the ui folder
menu "dm/The-Real-DM" 640 481 NONE 0 //shader, needs changing
bgcolor 0 0 0 1
borderstyle NONE
bgfill 0 0 0 1
fullscreen 1
//vidmode 3
virtualres 1
postinclude ui/loadingbar.txt //loading bar
resource
Label
{
name "Default"
rect 0 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 248 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 496 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 496 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 248 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "shadow"
}
resource
Label
{
name "Default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "wrinkles"
}
resource
Label
{
name "Default"
rect 80 32 480 368
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "white"
}
resource
Label
{
name "Default"
rect 80 32 480 368
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "sepiaoverlay"
}
resource
Label
{
name "Default"
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "The-Real-DM" ///needs changing
}
resource
Label
{
name "Default"
rect 76 28 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ul_corner"
}
resource
Label
{
name "Default"
rect 500 28 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ur_corner"
}
resource
Label
{
name "Default"
rect 500 340 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "lr_corner"
}
resource
Label
{
name "Default"
rect 76 340 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ll_corner"
}
resource
Label
{
title "The Real DM: \n -^IW^-dr shenker" //puts text under picture, '\n' makes a new
line, needs changing
name "Default"
rect 72 408 496 32
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.00 0.00 0.00 0.00
borderstyle "RAISED"
font facfont-20
}
end.
i've put the jpg in the texures/mohmenu/dmloading
help is very mutch appeciated
here are the 2 scripts that i've used for my map
this is the one in the scripts folder:
mymapname
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures\mohmenu\dmloading\The-Real-DM.jpg
}
}
and this is the one in the ui folder
menu "dm/The-Real-DM" 640 481 NONE 0 //shader, needs changing
bgcolor 0 0 0 1
borderstyle NONE
bgfill 0 0 0 1
fullscreen 1
//vidmode 3
virtualres 1
postinclude ui/loadingbar.txt //loading bar
resource
Label
{
name "Default"
rect 0 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 248 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 496 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 496 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 248 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "shadow"
}
resource
Label
{
name "Default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "wrinkles"
}
resource
Label
{
name "Default"
rect 80 32 480 368
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "white"
}
resource
Label
{
name "Default"
rect 80 32 480 368
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "sepiaoverlay"
}
resource
Label
{
name "Default"
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "The-Real-DM" ///needs changing
}
resource
Label
{
name "Default"
rect 76 28 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ul_corner"
}
resource
Label
{
name "Default"
rect 500 28 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ur_corner"
}
resource
Label
{
name "Default"
rect 500 340 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "lr_corner"
}
resource
Label
{
name "Default"
rect 76 340 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ll_corner"
}
resource
Label
{
title "The Real DM: \n -^IW^-dr shenker" //puts text under picture, '\n' makes a new
line, needs changing
name "Default"
rect 72 408 496 32
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.00 0.00 0.00 0.00
borderstyle "RAISED"
font facfont-20
}
end.
i've put the jpg in the texures/mohmenu/dmloading
help is very mutch appeciated
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
Remove this from your shader statement in the scripts folder make sure you remove those two curly brackets also...
{
map $whiteimage
}
You are using a jpg and not a tga with an alpha channel. Since there is no alpha channel when it maps the whiteimage it will cover your whole picture. Just get rid of it and you should see the picture just fine.
G3mInI
{
map $whiteimage
}
You are using a jpg and not a tga with an alpha channel. Since there is no alpha channel when it maps the whiteimage it will cover your whole picture. Just get rid of it and you should see the picture just fine.
G3mInI
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
name "Default"
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "The-Real-DM" ///needs changing
see this section ??? where it says needs changing.. this is where u put the name of your shader file. I dont know what your shader file is called but lets say the name of the file was mymap.shader.
Then that section would read like this:
name "Default"
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader mymap
also you need to change this to correctly point to your file:
menu "dm/The-Real-DM" 640 481 NONE 0 //shader, needs changing
the reason they put comments in there is to tell you that you need to change these names according to what you have.
G3mInI
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "The-Real-DM" ///needs changing
see this section ??? where it says needs changing.. this is where u put the name of your shader file. I dont know what your shader file is called but lets say the name of the file was mymap.shader.
Then that section would read like this:
name "Default"
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader mymap
also you need to change this to correctly point to your file:
menu "dm/The-Real-DM" 640 481 NONE 0 //shader, needs changing
the reason they put comments in there is to tell you that you need to change these names according to what you have.
G3mInI
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
hello
i've used the loadingscreen scripts on Nemsis his site but my loading screen still doesn't work, i always get the normal(whit those soldiers) loading screen
==>>this is the *.scr file that i've putted in the scripts folder
==>>this is the*.shader file that I've put in the scripts folder
==>>this is the *.urc file that I've put in the ui folder
i've now used a *.tga file
and the name of the map is The-Real-DM
Please help me i appreciate all the help i've had from you guys but it just doesn't seems to work
i've used the loadingscreen scripts on Nemsis his site but my loading screen still doesn't work, i always get the normal(whit those soldiers) loading screen
==>>this is the *.scr file that i've putted in the scripts folder
Code: Select all
// The-Real-DM
// ARCHITECTURE: -^IW^-dr shenker
// SCRIPTING: -^IW^-dr shenker
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "DIE"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = scripts/The-Real-DM.scr
level waittill spawn
end
Code: Select all
The-Real-DM
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures/mohmenu/dmloading/testload.tga
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
}
Code: Select all
menu "dm/The-Real-DM" 640 481 NONE 0
bgcolor 0 0 0 1
borderstyle NONE
bgfill 0 0 0 1
fullscreen 1
//vidmode 3
//fadein 0.5
virtualres 1
postinclude ui/loadingbar.txt
resource
Label
{
name "Default"
rect 248 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 496 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 496 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 248 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 248 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 0 256 256
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "paper"
}
resource
Label
{
name "Default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "shadow"
}
resource
Label
{
name "Default"
rect 0 0 640 480
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "NONE"
shader "wrinkles"
}
resource
Label
{
name "Default"
rect 80 32 480 368
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "white"
}
resource
Label
{
name "Default"
rect 80 32 480 368
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "sepiaoverlay"
}
resource
Label
{
name "Default"
rect 96 48 448 336
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "The-Real-DM"
}
resource
Label
{
name "Default"
rect 76 28 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ul_corner"
}
resource
Label
{
name "Default"
rect 500 28 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ur_corner"
}
resource
Label
{
name "Default"
rect 500 340 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "lr_corner"
}
resource
Label
{
name "Default"
rect 76 340 64 64
fgcolor 1.00 1.00 1.00 1.00
bgcolor 1.00 1.00 1.00 0.00
borderstyle "NONE"
shader "ll_corner"
}
resource
Label
{
title "The-Real-DM"
name "Default"
rect 72 408 496 32
fgcolor 1.00 1.00 1.00 1.00
bgcolor 0.00 0.00 0.00 0.00
borderstyle "RAISED"
font facfont-20
//font courier16
}
end.
i've now used a *.tga file
and the name of the map is The-Real-DM
Please help me i appreciate all the help i've had from you guys but it just doesn't seems to work
level.script
Your map's script does not go in the "scripts" folder--that folder is for shader files. It should be in the "dm" folder where your bsp file is.
level.script = maps/dm/The-Real-DM.scr
Also, make sure your .urc file is in the "main/ui" folder and is named "loading_The-Real_DM.urc".
BTW, I don't normally use capital letters in the names of files--one file always ends up without them and the game can't find it (case sensitive).
level.script = maps/dm/The-Real-DM.scr
Also, make sure your .urc file is in the "main/ui" folder and is named "loading_The-Real_DM.urc".
BTW, I don't normally use capital letters in the names of files--one file always ends up without them and the game can't find it (case sensitive).
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
-
dr shenker
- Sergeant
- Posts: 65
- Joined: Mon Jan 26, 2004 7:23 pm
- Contact:
Like I said earlier, you can use a .jpg just as easily. And if you're not familiar with alpha channels then I suggest you do use a jpg.
When using a jpg instead of a tga with alpha you MUST change your shader file to read like this:
By removing the map whiteimage statement u can use jpg's.
G3mInI
When using a jpg instead of a tga with alpha you MUST change your shader file to read like this:
Code: Select all
The-Real-DM
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
clampMap textures/mohmenu/dmloading/testload.tga
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
} By removing the map whiteimage statement u can use jpg's.
G3mInI

