Problem with my scripting
Posted: Sat Oct 04, 2003 5:37 am
Hi all,
I have a problem with my custom screen loading and sound in my map. I followed Nemesis's tuts on these two but still having a problem. The custom screen will not show up, just the MOH Spearhead custom screen. And I don't get any sound in my map. I am sure I didn't do something quite right. These are the folders i do have and whats in them:
In the Pk3 file are these folders:
maps - dm folder; deathwoods.scr & deathwoods.bsp
scripts - deathwoods.shader
textures - mohmenu folder, dmloading folder;deathwoods.tga
ui - loading_deathwoods.urc & ubersound
music - music.mus (I think I need to change it to deathwoods.mus)
Here are the files:
music.mus:
path sound/amb_stereo
normal Amb_M6_BattleInt_01.mp3 // Plays over entire level
!normal volume 1
!normal loop
//Music Recommendation
//mus_02f_suspense.mp3
//Just in case we can get multiple ambiences working...
//normal Amb_M6_BattleInt_01.mp3 // Player Start
//!normal volume 1
//!normal loop
loading_deathwoods.urc:
menu "dm/deathwoods" 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 "deathwoods"
}
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 "Death In The Woods"
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.
deathwoods.shader:
deathwoods
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures/mohmenu/dmloading/deathwoods.tga
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
}
deathwoods.scr:
// Deathwoods
// ARCHITECTURE: Voltaire
// SCRIPTING: Voltaire
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
exec global/exploder.scr
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/deathwoods.scr
exec global/ambient.scr deathwoods
//$world farplane 5000
//$world farplane_color (.333 .333 .236)
Did I do something wrong anywhere?
Also in the music tut you mentioned that you should move the bsp file anywhere but in the dm file, is there a certain place to move it. I tried both moving it out of the dm folder and in the dm folder, while in the dm folder the map works with out custom screen and sound I want to use. But when I take out the bsp file, i can't even find the game in map dm map list or the other map lists, even though it's in the main folder.
Any help will be appreciated here
Voltaire
I have a problem with my custom screen loading and sound in my map. I followed Nemesis's tuts on these two but still having a problem. The custom screen will not show up, just the MOH Spearhead custom screen. And I don't get any sound in my map. I am sure I didn't do something quite right. These are the folders i do have and whats in them:
In the Pk3 file are these folders:
maps - dm folder; deathwoods.scr & deathwoods.bsp
scripts - deathwoods.shader
textures - mohmenu folder, dmloading folder;deathwoods.tga
ui - loading_deathwoods.urc & ubersound
music - music.mus (I think I need to change it to deathwoods.mus)
Here are the files:
music.mus:
path sound/amb_stereo
normal Amb_M6_BattleInt_01.mp3 // Plays over entire level
!normal volume 1
!normal loop
//Music Recommendation
//mus_02f_suspense.mp3
//Just in case we can get multiple ambiences working...
//normal Amb_M6_BattleInt_01.mp3 // Player Start
//!normal volume 1
//!normal loop
loading_deathwoods.urc:
menu "dm/deathwoods" 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 "deathwoods"
}
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 "Death In The Woods"
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.
deathwoods.shader:
deathwoods
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures/mohmenu/dmloading/deathwoods.tga
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
}
deathwoods.scr:
// Deathwoods
// ARCHITECTURE: Voltaire
// SCRIPTING: Voltaire
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
exec global/exploder.scr
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/deathwoods.scr
exec global/ambient.scr deathwoods
//$world farplane 5000
//$world farplane_color (.333 .333 .236)
Did I do something wrong anywhere?
Also in the music tut you mentioned that you should move the bsp file anywhere but in the dm file, is there a certain place to move it. I tried both moving it out of the dm folder and in the dm folder, while in the dm folder the map works with out custom screen and sound I want to use. But when I take out the bsp file, i can't even find the game in map dm map list or the other map lists, even though it's in the main folder.
Any help will be appreciated here
Voltaire