Scripting problem

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Scripting problem

Post 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
[60th]Capt.Legolas
Lance Corporal
Posts: 19
Joined: Sat Mar 08, 2003 7:24 pm
Location: SC, USA
Contact:

Re: Scripting problem

Post by [60th]Capt.Legolas »

rezner wrote:
rez3
rez
rez
well make sure you have // in front of these lines:
//rez3
//rez
//rez
"He stands not alone," said Legolas, bending his bow and fitting an arrow with his
hands that moved quicker than sight. "You would die before the stroke fell."

Skinner
Modder
Tactical Player
and last but not least.....

the semi-n00b mapper
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post by rezner »

is that it?
[60th]Capt.Legolas
Lance Corporal
Posts: 19
Joined: Sat Mar 08, 2003 7:24 pm
Location: SC, USA
Contact:

Post 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
"He stands not alone," said Legolas, bending his bow and fitting an arrow with his
hands that moved quicker than sight. "You would die before the stroke fell."

Skinner
Modder
Tactical Player
and last but not least.....

the semi-n00b mapper
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post by rezner »

SO why isnt my script loading when i run the map?
[60th]Capt.Legolas
Lance Corporal
Posts: 19
Joined: Sat Mar 08, 2003 7:24 pm
Location: SC, USA
Contact:

Post 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
"He stands not alone," said Legolas, bending his bow and fitting an arrow with his
hands that moved quicker than sight. "You would die before the stroke fell."

Skinner
Modder
Tactical Player
and last but not least.....

the semi-n00b mapper
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Moved to the scripting forum.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Try to check your console for errors.
Live to map, not map to live.
-mohaa_rox, .map
moderator
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 ;).
Image
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Post Reply