Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006121opensim[REGION] Script Functionspublic2012-08-01 12:222013-03-27 00:04
ReporterSignpostMarv 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006121: llSetLinkPrimitiveParams, llSetLinkPrimitiveParamsFast, llGetLinkPrimitiveParams do not work on avatars
DescriptionI've noticed for a while that the link prim params family of functions don't work on avatars. I started to implement them, but ran into a wall trying to get ScenePresence objects to return from GetLinkNumPart()
Additional Informationdefault
{
    state_entry(){
        llSitTarget(<0,0,0.00001>,ZERO_ROTATION);
    }
    
    touch_start(integer total_number)
    {
        llOwnerSay(llList2CSV(["PRIM_BUMP_SHINY"] + llGetLinkPrimitiveParams(2, [PRIM_BUMP_SHINY, 1])));
        llOwnerSay(llList2CSV(["PRIM_CAST_SHADOWS"] + llGetLinkPrimitiveParams(2, [PRIM_CAST_SHADOWS])));
        llOwnerSay(llList2CSV(["PRIM_COLOR"] + llGetLinkPrimitiveParams(2, [PRIM_COLOR, 1])));
        llOwnerSay(llList2CSV(["PRIM_DESC"] + llGetLinkPrimitiveParams(2, [PRIM_DESC])));
        llOwnerSay(llList2CSV(["PRIM_FLEXIBLE"] + llGetLinkPrimitiveParams(2, [PRIM_FLEXIBLE])));
        llOwnerSay(llList2CSV(["PRIM_FULLBRIGHT"] + llGetLinkPrimitiveParams(2, [PRIM_FULLBRIGHT, 1])));
        llOwnerSay(llList2CSV(["PRIM_GLOW"] + llGetLinkPrimitiveParams(2, [PRIM_GLOW, 1])));
        llOwnerSay(llList2CSV(["PRIM_LINK_TARGET"] + llGetLinkPrimitiveParams(2, [PRIM_LINK_TARGET, 2, PRIM_NAME])));
        llOwnerSay(llList2CSV(["PRIM_MATERIAL"] + llGetLinkPrimitiveParams(2, [PRIM_MATERIAL])));
        llOwnerSay(llList2CSV(["PRIM_NAME"] + llGetLinkPrimitiveParams(2, [PRIM_NAME])));
        llOwnerSay(llList2CSV(["PRIM_OMEGA"] + llGetLinkPrimitiveParams(2, [PRIM_OMEGA])));
        llOwnerSay(llList2CSV(["PRIM_PHANTOM"] + llGetLinkPrimitiveParams(2, [PRIM_PHANTOM])));
        llOwnerSay(llList2CSV(["PRIM_PHYSICS"] + llGetLinkPrimitiveParams(2, [PRIM_PHYSICS])));
        llOwnerSay(llList2CSV(["PRIM_PHYSICS_SHAPE_TYPE"] + llGetLinkPrimitiveParams(2, [PRIM_PHYSICS_SHAPE_TYPE])));
        llOwnerSay(llList2CSV(["PRIM_POINT_LIGHT"] + llGetLinkPrimitiveParams(2, [PRIM_POINT_LIGHT])));
        llOwnerSay(llList2CSV(["PRIM_POS_LOCAL"] + llGetLinkPrimitiveParams(2, [PRIM_POS_LOCAL])));
        llOwnerSay(llList2CSV(["PRIM_POSITION"] + llGetLinkPrimitiveParams(2, [PRIM_POSITION])));
        llOwnerSay(llList2CSV(["PRIM_ROT_LOCAL"] + llGetLinkPrimitiveParams(2, [PRIM_ROT_LOCAL])));
        llOwnerSay(llList2CSV(["PRIM_ROTATION"] + llGetLinkPrimitiveParams(2, [PRIM_ROTATION])));
        llOwnerSay(llList2CSV(["PRIM_SIZE"] + llGetLinkPrimitiveParams(2, [PRIM_SIZE])));
        llOwnerSay(llList2CSV(["PRIM_SLICE"] + llGetLinkPrimitiveParams(2, [PRIM_SLICE])));
        llOwnerSay(llList2CSV(["PRIM_TEMP_ON_REZ"] + llGetLinkPrimitiveParams(2, [PRIM_TEMP_ON_REZ])));
        llOwnerSay(llList2CSV(["PRIM_TEXGEN"] + llGetLinkPrimitiveParams(2, [PRIM_TEXGEN, 1])));
        llOwnerSay(llList2CSV(["PRIM_TEXT"] + llGetLinkPrimitiveParams(2, [PRIM_TEXT])));
        llOwnerSay(llList2CSV(["PRIM_TEXTURE"] + llGetLinkPrimitiveParams(2, [PRIM_TEXTURE, 1])));
        llOwnerSay(llList2CSV(["PRIM_TYPE"] + llGetLinkPrimitiveParams(2, [PRIM_TYPE])));
// llOwnerSay(llList2CSV(["PRIM_TYPE_LEGACY"] + llGetLinkPrimitiveParams(2, [PRIM_TYPE_LEGACY])));
    }
}
[04:08 AM] Object: PRIM_BUMP_SHINY
[04:08 AM] Object: PRIM_CAST_SHADOWS
[04:08 AM] Object: PRIM_COLOR
[04:08 AM] Object: PRIM_DESC,
[04:08 AM] Object: PRIM_FLEXIBLE, 0, 0, 0.000000, 0.000000, 0.000000, 0.000000, <0.000000, 0.000000, 0.000000>
[04:08 AM] Object: PRIM_FULLBRIGHT
[04:08 AM] Object: PRIM_GLOW
[04:08 AM] Object: PRIM_LINK_TARGET, SignpostMarv Martin
[04:08 AM] Object: PRIM_MATERIAL, 4
[04:08 AM] Object: PRIM_NAME, SignpostMarv Martin
[04:08 AM] Object: PRIM_OMEGA, <0.000000, 0.000000, 0.000000>, 0.000000, 0.000000
[04:08 AM] Object: PRIM_PHANTOM, 0
[04:08 AM] Object: PRIM_PHYSICS, 0
[04:08 AM] Object: PRIM_PHYSICS_SHAPE_TYPE, 0
[04:08 AM] Object: PRIM_POINT_LIGHT, 0, <0.000000, 0.000000, 0.000000>, 0.000000, 0.000000, 0.000000
[04:08 AM] Object: PRIM_POS_LOCAL, <0.000000, 0.000000, 0.350010>
[04:08 AM] Object: PRIM_POSITION, <23.225866, 16.266962, 29.168310>
[04:08 AM] Object: PRIM_ROT_LOCAL, <0.000000, 0.000000, 0.000000, 1.000000>
[04:08 AM] Object: PRIM_ROTATION, <0.000000, 0.000000, 0.000000, 1.000000>
[04:08 AM] Object: PRIM_SIZE, <0.450000, 0.600000, 1.934201>
[04:08 AM] Object: PRIM_SLICE, <0.000000, 1.000000, 0.000000>
[04:08 AM] Object: PRIM_TEMP_ON_REZ, 0
[04:08 AM] Object: PRIM_TEXGEN
[04:08 AM] Object: PRIM_TEXT, , <0.000000, 0.000000, 0.000000>, 1.000000
[04:08 AM] Object: PRIM_TEXTURE
[04:08 AM] Object: PRIM_TYPE, 0, 0, <0.000000, 1.000000, 0.000000>, 0.000000, <0.000000, 0.000000, 0.000000>, <1.000000, 1.000000, 0.000000>, <0.000000, 0.000000, 0.000000>

[04:08 AM] Error: Invalid String [SignpostMarv Martin]: llGetPrimitiveParams error: Param 0 error, texture info cannot be accessed for avatars.
[04:08 AM] Error: Invalid String [SignpostMarv Martin]: llGetPrimitiveParams error: Param 0 error, unknown parameter
[04:08 AM] Error: Invalid String [SignpostMarv Martin]: llGetPrimitiveParams error: Param 0 error, texture info cannot be accessed for avatars.
[04:08 AM] Error: Invalid String [SignpostMarv Martin]: llGetPrimitiveParams error: Param 0 error, texture info cannot be accessed for avatars.
[04:08 AM] Error: Invalid String [SignpostMarv Martin]: llGetPrimitiveParams error: Param 0 error, texture info cannot be accessed for avatars.
TagsNo tags attached.
Git Revision or version number69a5bee
Run ModeStandalone (1 Region)
Physics EngineBasicPhysics
Environment.NET / Windows32
Mono VersionNone
Viewer
Attached Filespatch file icon LinkPrimitiveParams-partial-non-functional.patch [^] (66,743 bytes) 2012-08-01 12:22 [Show Content]

- Relationships
related to 0006421new llSetLinkPrimitiveParams cannot move seated avatars 
related to 0006573new LSL get and set link primitive paramaters functions are broken when the link number is an avatar 

-  Notes
(0021954)
SignpostMarv (reporter)
2012-08-01 12:23

The additional info field contains the test script, script output and error output that I used to determine the appropriate values from Second Life.
(0023686)
Bolivar Shagnasty (reporter)
2013-03-24 03:14

SetLinkPrimitiveParams seems to have problems on prims as well. Attempting to make one of the prims in a linked set phantom makes them all phantom.
(0023687)
melanie (administrator)
2013-03-24 05:16

That is design behavior. An object cannot be partially phantom.
(0023688)
Bolivar Shagnasty (reporter)
2013-03-24 07:37

That is most unfortunate and there doesn't seem to be anyway to change it so I will have to accomplish the task another way. Thank you for pointing this out.
(0023690)
Mata Hari (reporter)
2013-03-25 12:13

This is the same issue I reported in 0006573

While I concur with Melanie that many of those function parameters shouldn't be possible to get or set when the link is an avatar, there are other applications that these functions are commonly used for that are supposed to work (and do currently work in SL).

Examples include several very common applications that need llSetLinkPrimitiveParamsFast(PRIM_POSITION|PRIM_ROTATION|PRIM_POS_LOCAL|PRIM_ROT_LOCAL:

- in-region teleporter systems that use llSetLinkPrimParamasFast) to adjust avatar position (often in multiple steps) no longer work. Yes, one can use osTeleportAgent() as a substitute but many users do not host their own sims and do not have that OSSL function enabled.

- a host of the most popular "next generation" furniture in SL now allows multiple avatar animations without poseballs, accomplished by having the avatars simply sit on the object and then moving them into correct position. These scripts all fail when used in OpenSim

- photo studios using linked props as the sit-target (rather than a separate poseball) use the same technique for correctly positioning avatars and work perfectly in SL
(0023691)
Richardus Raymaker (reporter)
2013-03-25 12:27
edited on: 2013-03-25 12:29

I just tried the above script on 0.7.5 release. but its generating error
"PRIM_PHYSICS_SHAPE_TYPE" does not exists. and the bug report
creator forgot to add what physics engine and opensim version he used.
ok, physics he add, but cant believe someone is still useing basicphysics. ?


- Issue History
Date Modified Username Field Change
2012-08-01 12:22 SignpostMarv New Issue
2012-08-01 12:22 SignpostMarv File Added: LinkPrimitiveParams-partial-non-functional.patch
2012-08-01 12:23 SignpostMarv Note Added: 0021954
2013-03-24 03:14 Bolivar Shagnasty Note Added: 0023686
2013-03-24 05:16 melanie Note Added: 0023687
2013-03-24 07:37 Bolivar Shagnasty Note Added: 0023688
2013-03-25 12:13 Mata Hari Note Added: 0023690
2013-03-25 12:27 Richardus Raymaker Note Added: 0023691
2013-03-25 12:29 Richardus Raymaker Note Edited: 0023691 View Revisions
2013-03-27 00:03 justincc Relationship added related to 0006421
2013-03-27 00:04 justincc Relationship added related to 0006573


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker