Page 1 of 1

Problem with my scripting

Posted: Sat Oct 04, 2003 5:37 am
by Voltaire
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

sound

Posted: Sat Oct 04, 2003 6:27 am
by tltrude
The reason you have problems with the sound is because of this line in your script.

exec global/ambient.scr deathwoods

It is looking for "deathwoods.mus" and your file is named "music.mus". It would be easier to just use a stock .mus file like this:

exec global/ambient.scr mohdm1

*********************************

The ubersound script does not go in the ui folder. It has it's own folder in main or mainta called ubersound.

*********************************

For the loading screen problem, you should do the tutorial again, or find another for the same thing.

Posted: Sat Oct 04, 2003 7:33 am
by jv_map
Also in the music tut you mentioned that you should move the bsp file anywhere but in the dm file
Could you specify where you read that :shock: not in one of our tuts I hope :?

Posted: Sat Oct 04, 2003 12:43 pm
by Voltaire
No jv, I used one of Nemesis tuts for that one :oops: Maybe I should have stuck one here.

Voltaire

Posted: Sat Oct 04, 2003 12:45 pm
by Voltaire
Thanks tltrude, I will do that. :D
Voltaire