Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is CHANGED_REGION & CHANGED_TELEPORT working?

Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
03-16-2006 03:19
I made sure that new changed event's constants, CHANGED_REGION & CHANGED_TELEPORT were available on the 1.9 preview. But now in the updated grid, they seems not to work. Did anyone succeed to let them work?

[EDIT] :D CHANGED_REGION 0x100 1.9 PREVIEW ONLY The object changed regions
Were those 1.9 PREVIEW ONLY available? :eek:
Then, what should we do now if we want to shoot emitter when teleporting? :confused:
_____________________
:) Seagel Neville :)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-16-2006 04:11
I think i got the CHANGED_REGION to work in preview, but i don't recall CHANGED_TELEPORT working.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
03-16-2006 04:25
From: Strife Onizuka
I think i got the CHANGED_REGION to work in preview, but i don't recall CHANGED_TELEPORT working.


Last night I changed a script of mine to use CHANGED_TELEPORT instead of the attach event. Recompiled and reset it seems to work fine. I wasn't online for a very long time but I teleported a couple of times and the event fired properly.
_____________________
Geometry is music frozen...
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
03-16-2006 04:28
My point is that we have currently lost the both constants, haven't we? Did Lindens announce when they would really release them? It is so sad because I have prepared the script since they were available in the preview. :(
_____________________
:) Seagel Neville :)
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
03-16-2006 04:49
CODE
// ===========================
state ready
{
state_entry()
{
}

touch_start(integer total_number)
{
if ( llDetectedKey(0) == llGetOwner() )
{
particles();
}
}

// attach( key attached )
// {
// particles();
// }

changed( integer c )
{
if ( c & CHANGED_TELEPORT )
{
particles();
}
}

state_exit()
{
}

}


This is my test script that works fine. Try it and see.
_____________________
Geometry is music frozen...
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
03-16-2006 04:58
Is this script working in the main SL, not in the preview? If so, that's great. Something strange must happen just around me. I'll keep up studying. Thank you. :)
_____________________
:) Seagel Neville :)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-16-2006 05:01
just used this script without any problems; it fired properly on sim crossing and teleporting.

CODE

default
{
changed(integer a)
{
if ( a & CHANGED_TELEPORT )
llOwnerSay("Teleported");
if(a & CHANGED_REGION)
llOwnerSay("Changed Region");
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
03-16-2006 05:06
From: Seagel Neville
Is this script working in the main SL, ...


yes, maingrid :)
_____________________
Geometry is music frozen...
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
03-16-2006 06:27
Thank you, guys, I found what's wrong.
I put the script into a child prim and attached it. Doesn't the event work in the attached child prims? hmm... anyway, I got it. :)
_____________________
:) Seagel Neville :)
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
03-16-2006 08:22
From: Seagel Neville
Thank you, guys, I found what's wrong.
I put the script into a child prim and attached it. Doesn't the event work in the attached child prims? hmm... anyway, I got it. :)

That's the exact same problem I was having earlier in the preview grid. The changed event appears not to work at all in a child prim.
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
03-16-2006 08:56
I've just filed a bug report because CHANGED_TELEPORT is intermittently firing when crossing sim borders.
_____________________
Geometry is music frozen...