Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can Objects be Automatically Linked?

Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
12-28-2006 07:55
Has anyone seen a good solution for a Portable Skybox?
WHERE OBJECTS BUILT or REZZED are automatically linked to the box? ---I'm sure you can see where I'm going...if you could REZ the portable skybox, do a build (add some furniture, etc.), touch a button and have the whole box pack itself up and put itself away in inventory---how cool would that be?

I've read the LSLWiki, and have been Searching the forums.
It seems like:
llSensor can be used to watch for new objects.
on Sensor event,
then llCreatelink to the skybox 'root'.

This seems just to obvious. Someone would have done this already. What am I missing? :confused:

Can you point me at existing threads or technology in world that is similar?
Thraxis Epsilon
Registered User
Join date: 31 Aug 2005
Posts: 211
12-28-2006 08:23
Problem #1:

LSL does not have the ability to script "packing up, and putting away a build"

Problem #2:

You can't link no-mod items to a general build

Problem #3:

Once an item is linked to your skybox, it is pretty much broken since you can not remove it.

Problem #4:

Scripted Object behavior of items may change when linked to a skybox as link numbers / link orders can and will change.


With that said, you can of course have pre-built skyboxes, and you can rez and move objects into place. But auto-linking probably is not the way you want to go.
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
12-28-2006 08:24
Couple thoughts:

- You can't script taking objects into inventory, you have to just take them. Yeah it would be cool though.

- Linking stuff like that can run you into permissions problems, if you try to add a potpourri of stuff that is mixed "no copy" and "no transfer", it can be ugly. Same with Phantom items like, for example, poseballs and hot tub water. Stuff will not work right.

- You don't really need need to link everything anyway, you can just select it all with the edit tool and do a "take", then next time it will all rez out the same way it was before.

- If you're set on linking everything, is there some advantage I'm missing over just linking all your stuff in the usual way as you go along? Other than the "gee whiz" factor?

- If the above seems too "duct tape" for you, there are products like the Builder's Buddy that won't link everything together but will automagically rez a bunch of stuff and maintain the original relative positions. So you put scripts in your skybox and each piece of furnishing, go through the process of saving positions (simple menu deal iirc), pick up the pieces, and stick them in a rezzer prim that will spit them all back out for you later in your original layout. I sell a product along similar lines (which I won't plug here), that allows you to lay out furnishings and save their positions within your home or skybox, then next time you drag them out they pop back into place.

**edit** Thraxis beat me, and was much more concise too. Back to my coffee :D
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
Wow! I knew it wouldn't be easy, but...
12-28-2006 16:50
Thank you for the replies.

I use 'skybox' as a way of describing the intent and potential complexity. I'm really targeting SandBox users--to help pack up projects and clean up after themselves.

You've pointed me at some big problems, and I'm already glad I didn't spend hours working on this already. If this were baseball, I'd say its a ball and 3 strikes:

1. I see that I can't script [object puts self back into inventory] So the user would have to pack up, then pick up the box and TAKE it, in two steps. That's not too onerous. (call it a 'ball' and not a 'strike'.)

2. I'm not hung up on 'linking' in the traditional LSL sense. I simply wanted a way to collect a set of objects via program control. Only relative physical position would be important. The objects would not need to be aware of each other. Already linked items need to maintain their relationships. I guess I'm after a 'Group/Ungroup' like command.
I'll read up on Builders Buddy. Its's close, in that it does the rebuild. The time I used it, I found the setup to be tiresome--that's the part that I'd like to automate. (1-1)

3. ewwww. Mixed permissions. That could be a problem. Since all objects would be [legitimately] owned by the skybox owner, and the skybox would be nocopy, no transfer, I'd assumed away the permissions issues. But I see now that putting NOCOPY items into the box would be problematic. more reading. (1-2)

4. Phantom items are an issue? :eek: I did not know that. I should have read more. (1-3 and I'm struck out)

Thanks for the feedback and the batting lesson. /me heads back to the Wiki and the Forums.