[Opensim-dev] Major issue with core code.
Marck
marck00 at nexgo.de
Sun Mar 27 13:16:23 UTC 2011
The prim numbering used to change even when an object crossed a region border. This was fixed some time ago.
For an example how to circumvent this issue in a script, see http://forums.osgrid.org/viewtopic.php?p=10732#p10732. A more generalized solution of this can be found in thread "Single Script Color/Linkset Changer"; in both cases, the relevant function is named "getLinkNums". The basic idea is to put a label either in the linked prim's name or description field and then retrieve the proper prim number by searching for the label(s).
Michael Cerquoni wrote:
> Any chance you have an example of how you do this that you can share? I
> would like to see how your doing this.
>
> On Sun, Mar 27, 2011 at 1:41 AM, Wade Schuette <wade.schuette at gmail.com
> <mailto:wade.schuette at gmail.com>> wrote:
>
> Just a note - While I agree entirely that the prim order should stay
> constant for an object the user hasn't changed, as an application
> developer I always start by polling all linked prims to determine
> which one is which number (today), and then work off that list.
> Otherwise, adding a single new prim to the object, or unlinking it
> in order to resize or retexture a prim that refuses to change when
> linked, will totally break the user script, and is maddening.
> With polling, I can unlink or relink or add pieces whenever I feel
> like it and the code doesn't break. The one extra step only has to
> be written and debugged once and used as a utility subroutine after
> that. What WOULD kill it is if the root prim changed, of course.
>
> And, I developed that habit in Second Life, although it's totally
> crucial in OpenSim since we have to keep unlinking complex objects
> in order to change a stubborn linked prim that refuses to change
> while it is linked. Why is THAT, by the way? Can THAT be fixed?
>
> Wade
>
>
>
> On Sun, Mar 27, 2011 at 4:01 AM, Michael Cerquoni
> <nebadon2025 at gmail.com <mailto:nebadon2025 at gmail.com>> wrote:
>
> I spoke to Melanie, she says she has a fix for this! apparently
> this has been an issue for a while, I had no idea, thanks
> Melanie :D
>
> On Sat, Mar 26, 2011 at 11:44 PM, Michael Cerquoni
> <nebadon2025 at gmail.com <mailto:nebadon2025 at gmail.com>> wrote:
>
> I have just stumbled across a major problem with the core
> code, it seems that every time we rez an object its linkset
> prim order is changing. This makes it impossible to script
> things that call upon a certain # in the link-set. I have
> filed a mantis:
>
> http://opensimulator.org/mantis/view.php?id=5421
>
> see screenshots of issue here:
>
> http://www.onikenkon.com/screenshots/link_order_issue_01.png
> http://www.onikenkon.com/screenshots/link_order_issue_01.png
>
> This is a major issue that should be resolved before 0.7.1
> is tagged i believe.
>
> --
> Michael Emory Cerquoni - Nebadon Izumi @ http://osgrid.org
More information about the Opensim-dev
mailing list