Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripted link failure within 1M minimum size

Eata Kitty
Registered User
Join date: 21 Jan 2005
Posts: 387
04-03-2007 09:25
I use an automated linking system for customisation options, it builds items together from several premade parts. Unfortunately time and time again the link system plays hell with it refusing to link pieces with the reason "Link failed -- pieces too far apart".

Current problem is with an MP5 that easily fits within the 1M size, as soon as you attach a scope it will always fail to link whichever part is last in the link order, no matter which part.

You can however unlink the entire thing, drag select it and it will link fine. It will also link if you select it in a specific order, however I can't replicate this with scripted linking which will always fail on the last piece.

I can in fact squash the entire thing into something that fits in a 0.1x0.1x0.1 box and it still won't link due to distance problems. Here's the code if you want to see how,

CODE

default
{
state_entry()
{
integer x = llGetNumberOfPrims();
integer y;
llSetPos(<211.070, 29.802, 50.161>); // Central pos
for (y = 2; y <= x; y++)
{
llOwnerSay((string)y);
llSetLinkPrimitiveParams(y, [PRIM_POSITION, <0, 0, 0>]);
}
}
}


Andrew Linden's description of the link system ( /111/62/11883/1.html ) says...

From: someone
The astute may have noticed that there is a slight order-of-operations failure for collections of clumps of very small primitives where the clumps rhemselves are spaced such that they just barely link, and each clump barely links itself. For such a scenario the link will succeed or fail depending on the order in which the primitives are selected. This is a known problem, however all of these objects sparse (mostly empty space) and barely fit into the set of objects that we wanted to support for linking.


However it is also pointed out there that: * All prims, no matter how small, with centers within 1 meter of each other are linkable. So does the 1M minimum not really mean anything if you make an "unsupported" shape?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-03-2007 11:20
May be totally unrelated but I recently had problems linking anything manually over 3.4m.
And this was an object I had unlinked to reorder and then tried to relink.