Jump to content

llCreateLink issue


Zeinzu Udein
 Share

You are about to reply to a thread that has been inactive for 4086 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I'm having an issue using llCreateLink in a specific way. My goal is to rez objects with the script and then then link them. This in and of itself is not the problem. My issue is that llCreateLink silently fails for any prim that is not already rezzed at the time permissions are granted to link. I would like to ask permissions once at the start of the script and then rez and link as many times as needed after that. This does not appear possible. If I rez the objects then obtain permissions to link it works fine. If I then rez new objects and try to use the previously granted permissions to link the newly rezzed objects by the same script, the linking silently fails without the 1 second delay per link request and no error messages.

Is this a defect or is there a reason for this behavior? As long as the prims are already rezzed it can create and break links for objects owned by the owner all day long. But if the script rezzes new objects from it's inventory that are also owned and created by the owner with all perms, it will fail to link.

Any help would be appreciated. It seems to me that this is an unnecessary limitation to the link function.
Link to comment
Share on other sites

do your objects satsify all the criteria? same owner, both modifiable, within link distance, not called from an attachment?

additionally are you sure you are waiting until the new object is fully rezzed? object_rez event can actually trigger and return a key before the new item is actually rezzed, which would cause silent failures.

the same problem can occur if the parcel is full, and the item doesn't actually rez but the object_rez event still fires (there's a jira on this, marked won't finish, but the next time I see Kelly I'll try to have him take a second look at it)

Link to comment
Share on other sites

Well, after reading your comment I changed my test slightly.  What I did before was rezzed a certain number of objects and stored the keys reported by object_rez in a list.  Then went through the list linking them via a link function I wrote.  This worked as long as you asked for permissions prior to calling the link function, but if I only asked for permission at state_entry it would silently fail.

After reading your response I changed the script to link each object as the keys were reported by object_rez.  Doing it this way seems to work every time.  I will have to think on this more, but as always, LSL can be a bit unpredictable.

Thanks for your response and test.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4086 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...