Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

help w/ scripting error please!

Jincey Firefly
IC of Assize for Bubbles
Join date: 13 Jul 2004
Posts: 83
03-12-2005 09:47
I keep getting this error on a script:

From: someone
Experimental Particle w/ touch script (246, 13):
PSYS error: rule 15 error, PSYS_SRC_TARGET_KEY needs key data


The script looks like this:

From: someone
integer psystemrunning = FALSE;

default
{
touch_start(integer n)
{
if(!psystemrunning)
{
// start your psystem here
llParticleSystem([
PSYS_PART_FLAGS, PSYS_PART_TARGET_POS_MASK|PSYS_PART_EMISSIVE_MASK,
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE,
PSYS_PART_START_COLOR, <1.0, 1.0, 1.0>,
PSYS_PART_START_SCALE, <0.1, 0.1, 0.0>,
PSYS_PART_START_ALPHA, 1.0,
PSYS_PART_END_ALPHA, 1.0,
PSYS_SRC_ANGLE_BEGIN, 0.0,
PSYS_SRC_ANGLE_END, 0.0,
PSYS_SRC_BURST_RATE, 0.1,
PSYS_SRC_BURST_PART_COUNT, 350,
PSYS_SRC_BURST_RADIUS, 0.0,
PSYS_SRC_BURST_SPEED_MAX, 0.1,
PSYS_SRC_BURST_SPEED_MIN, 0.1,
PSYS_SRC_ACCEL, <0.0, 0.0, 0.1>,
PSYS_SRC_OMEGA, <0.0, 6.0, 10.0>,
PSYS_SRC_TARGET_KEY,"33b40396-7ccf-fe50-b39c-fa18ac159e1d",
PSYS_SRC_TEXTURE, "A76A6562-3CF1-D64D-8FE6-64C679D4D96F"
]);
psystemrunning = TRUE;
}
else
{
llParticleSystem([]);
// clear your psystem here
psystemrunning = FALSE;

}
}
}


I have checked and double checked the target key and it is correct. Maybe the format is wrong?

Thanks in advance for any help!
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
03-12-2005 11:00
This may be wrong, but, despite the fact that keys are strings, keys and strings are two different types. Try casting that string to key by putting (key) in front of it. Also, I'm not sure about having that texture key in all caps like that.
Meatwad Extraordinaire
Nomnomnom
Join date: 6 Aug 2004
Posts: 545
03-12-2005 11:23
From: Lex Neva
This may be wrong, but, despite the fact that keys are strings, keys and strings are two different types. Try casting that string to key by putting (key) in front of it. Also, I'm not sure about having that texture key in all caps like that.

sry, im not a good troubleshooter, BUT the texture key probably isnt the prob if its talking about the target key
_____________________
Tcoz Bach
Tyrell Victim
Join date: 10 Dec 2002
Posts: 973
03-12-2005 12:28
The particle flags are very picky about what you give. For instance, when it says float, it means float (not like anything else where submitting 1 = 1.0).

I'd have to say, dispense with the strings, and use real keys. I've done this before and that's what I did, and it worked.
_____________________
** ...you want to do WHAT with that cube? **
Huns Valen
Don't PM me here.
Join date: 3 May 2003
Posts: 2,749
03-12-2005 14:14
put (key) in front of the key and that will most likely fix the problem