Page 1 of 1

Scripting problem

Posted: Mon Mar 10, 2003 3:30 am
by rezner
I followed the very vague tutorial and heres what ive got
the end is for a multiple trigger activating hurt and sound

let me know whats wrong console says it fails to load telling me to add a line - cacheing of american_army.tif or something to that affect


rez3
rez
rez

main:

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"

level waittill prespawn

exec global/DMprecache.scr

exec global/ambient.scr rez3


level.script = "maps/dm/rez3.scr"


level waittill spawn

shock_setup:
$shocktrigger volumedamage 25
$shocktrigger playsound elec
end

Re: Scripting problem

Posted: Mon Mar 10, 2003 3:38 am
by [60th]Capt.Legolas
rezner wrote:
rez3
rez
rez
well make sure you have // in front of these lines:
//rez3
//rez
//rez

Posted: Mon Mar 10, 2003 3:38 am
by rezner
is that it?

Posted: Mon Mar 10, 2003 3:40 am
by [60th]Capt.Legolas
Well those three lines are for reference only, meaning are just to help us humans out, and so you put // in front so your machine looks over them as just comments

Posted: Mon Mar 10, 2003 3:41 am
by rezner
SO why isnt my script loading when i run the map?

Posted: Mon Mar 10, 2003 3:43 am
by [60th]Capt.Legolas
try what i said, if that doesnt work you'll need one of the .map guys or mpowell to give you some expert advice

Posted: Mon Mar 10, 2003 6:15 am
by mohaa_rox
Moved to the scripting forum.

Posted: Mon Mar 10, 2003 6:16 am
by mohaa_rox
Try to check your console for errors.

Posted: Mon Mar 10, 2003 4:32 pm
by rezner
the console is saying that the scr file wasnt properly loaded and that i should add the line cache models/player/american_army.tif to the precache scr

Posted: Mon Mar 10, 2003 4:35 pm
by jv_map
rezner wrote:the console is saying that the scr file wasnt properly loaded
It should say why. That's the information you need ;).

Posted: Mon Mar 10, 2003 4:37 pm
by rezner
Hey JV im totally new to scripting and its all greek to me i need help bad
i get tons of error info from console but i dont have the first clue on how to fix it

Posted: Mon Mar 10, 2003 4:44 pm
by jv_map
You need the first error. If you can't read the first error because the console is full of errors, type logfile 2 before starting the map (in console).

Afterwards, open qconsole.log and find the first error message.