Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

disapearing object

Davorak Black
Registered User
Join date: 12 Apr 2005
Posts: 3
05-12-2005 03:06
So I have a script that disappears in the middle of an event and I can not figure out why. I set it up to instant message me if it get to far away, which it never does. The IM works just fine when I teleport away. Nor is it appearing in my lost and found. Nor can I find it with wide area select in edit mode, which should capture it if it with in the distance witch it would not IM. I am puzzled. The code:

CODE

object_rez(key id) {
num_rezed++;
llOwnerSay("I made a bubu and it's key is " + (string)id+" sending message");
llCreateLink(id, TRUE);
llOwnerSay("next");
//key llGetLinkKey(integer linknum)
integer link_num;
llOwnerSay("next");
for(g_i=2;g_i<17;++g_i)
{
llOwnerSay("next: "+(string)g_i);
if(llGetLinkKey(g_i)==id)
{
tracker_link_num_set += g_i;
++tracker_link_num_set_length;
}
}
llSleep(0.5);
}

btw what are the PHP tages?


This is the section of code where it disappears, there are two object rez events waiting to happen from another part of the code. It works perfectly when only one event is waiting.
Here is the output I get:
Agent Helper ~0.02: I made a bubu and it's key is 9d08e896-f510-49c6-6b60-e7145d7ecc77 sending message
Agent Helper ~0.02: next
Agent Helper ~0.02: next
Agent Helper ~0.02: next: 2
Agent Helper ~0.02: next: 3
Agent Helper ~0.02: next: 4
Agent Helper ~0.02: next: 5
Agent Helper ~0.02: next: 6
Agent Helper ~0.02: next: 7
Agent Helper ~0.02: next: 8
Agent Helper ~0.02: next: 9
Agent Helper ~0.02: next: 10
Agent Helper ~0.02: next: 11
Agent Helper ~0.02: next: 12
Agent Helper ~0.02: next: 13
Agent Helper ~0.02: next: 14
Agent Helper ~0.02: next: 15
Agent Helper ~0.02: next: 16
Agent Helper ~0.02: I made a bubu and it's key is 106b5ba8-d643-2069-1ff6-74ec54bfdaa4 sending message

So right after the "llOwnerSay("I made a bubu and it's key is " + (string)id+" sending message";);" the second time through it just vanishes. What am I missing? What is happening to my object?

Thanks in Advance
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
05-12-2005 06:39
It might have to do with changed link permission. I'll do a little research into this.
_____________________
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
Davorak Black
Registered User
Join date: 12 Apr 2005
Posts: 3
05-12-2005 11:51
After further investigation, The object vanishes even if the event happen are not waiting together. The first ojbject_rez works fine and then if another is added on in addition to the first it simply kills the object. The first link can be made and broken as many times as I would like, but if the second link is added poof there goes the object

Where the objects are rezed and then link compared to the root prim does not seem to have any effect either.

I am repeatedly rezing and linking the same object, should I be giving the second rez a different name? Is it illegally to dynamically link two objects with the same name?