-
Posts
136 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Restless Swords
-
one reason is a very subtle one, you may be inside another items scope. i know, you say you are not. but one common example is if you have a "surround-sim" around your sim. Some have special design to allow sitting. but others end up blocking any random sitting inside the sim unless the target object has an explicit sit target.
-
QUESTION: If i write a script using firestorm preprocessor then will that script still EXECUTE correctly for folks using another viewer? - and yes, i assume they cannot edit and recompile in other viewers
-
All the items that I make and sell on marketplace are the usual MODIFY-COPY-NOTRANS - and yes, on Marketplace , a customer can buy something as a gift to be delivered directly to recipient. Is there anyway that I, as a merchant, can have an item in a gift-box that is sold to a customer who then gives it to recipient? - for customer to give to recipient the gift-box must be TRANS and I believe that means its content must be TRANS - I want final recipient item to be COPY, but don't want it to also be TRANS, but I cannot find a way to achieve this I wonder if it is possible, since aren't there gift cards and other things in SL that work like that?
-
Closeness enabled SIT, and only clicking ONE prim
Restless Swords replied to Restless Swords's topic in LSL Scripting
1) yes, but the point of the exercise was to disable *ANY* sit action on the other link (2) The solution below is ugly but works, the problem/bug I posted was that this code still allows a sit on prim-2 (even if it ends up on the object sitTarget) llSetLinkPrimitiveParamsFast(2, [PRIM_SCRIPTED_SIT_ONLY , TRUE ]); The wiki says: If some other prim in the linkset does have a sit target (that is not filled or marked PRIM_SCRIPTED_SIT_ONLY), the agent can sit on that prim. 2) PS: if my code (in different, multi-sit products) sets a sit-target on link-1, and a different sit-target on link-2, and the user click-sits on link-2 he *DOES* sit on link-2. I do that all the time in products with multiple sit-targets. -
Closeness enabled SIT, and only clicking ONE prim
Restless Swords replied to Restless Swords's topic in LSL Scripting
I found a solution (workaround) to problem #2 (link sit restriction) not working as per the wiki set PRIM_SCRIPTED_SIT_ONLY on the entire object (not just prim-2) required user to touch prim-1 to enable its sit (mouse icon changes from TOUCH-HAND to SIT-CHAIR) user clicks/sits on prim-1 within 5 seconds, after which the object is returned to PRIM_SCRIPTED_SIT_ONLY and, the touch code includes the solution to problem #1 (closeness requirement) at the same time state_entry() { llSetSitText("Touch"); llSetClickAction(CLICK_ACTION_TOUCH); llSetPrimitiveParams([ PRIM_SCRIPTED_SIT_ONLY , TRUE]); } touch_start(integer n) { if(llDetectedLinkNumber(0) != 1) return; vector avatar_pos = llList2Vector( llGetObjectDetails( llDetectedKey(0),[OBJECT_POS]), 0 ); if( llVecDist(avatar_pos,llGetPos() ) > 2.0) { llWhisper(0,"Sorry, you must move closer to use the rope" ); return; } llSetPrimitiveParams([ PRIM_SCRIPTED_SIT_ONLY , FALSE]); llSetSitText("Slide"); llSetClickAction(CLICK_ACTION_SIT); llSleep(5.0); llSetPrimitiveParams([ PRIM_SCRIPTED_SIT_ONLY , TRUE]); llSetSitText("Touch"); llSetClickAction(CLICK_ACTION_TOUCH); } SHRUGS. not perfect, but for now it works. I don't like the requirement for the extra click process, but at least it works regardless of the bug. - and since it does not do a forced llSitOnLink it does not need to be in an experience -
Closeness enabled SIT, and only clicking ONE prim
Restless Swords replied to Restless Swords's topic in LSL Scripting
GROANS... The #1 solution sounds perfect. I want folks to be able to sit on prim-1 and not on prim-2, but it isn't working: llSitTarget(ZERO_VECTOR, ZERO_ROTATION); llLinkSitTarget(1, <0.0, 0.0, OFFSET>, llEuler2Rot(<0,05*DEG_TO_RAD,0>) ); llSetLinkPrimitiveParamsFast(2, [PRIM_SCRIPTED_SIT_ONLY , TRUE ]); I cleared any object sit-target, set link-1 sit-target, and blocked link-2 sitting --- but folks can still sit I previous reversed the 2nd & 3rd lines, but still did not work llSitTarget(ZERO_VECTOR, ZERO_ROTATION); llSetLinkPrimitiveParamsFast(2, [PRIM_SCRIPTED_SIT_ONLY , TRUE] ); llLinkSitTarget(1, <0.0, 0.0, OFFSET>, llEuler2Rot(<0,05*DEG_TO_RAD,0>) ); The wiki says this should work even outside an experience (my situation), but does not seem to be - I assume it is a bug? but thought I would see if anyone had any observations befoe I opened a JIRA -
Closeness enabled SIT, and only clicking ONE prim
Restless Swords replied to Restless Swords's topic in LSL Scripting
PARTLY SOLVED (#1) and WORKAROUND (#2): @Rolig gave the perfect answer to my problem #2 (blocking link sit) - llSetLinkPrimitiveParamsFast(2,[ PRIM_SCRIPTED_SIT_ONLY, TRUE]); It looks like there is no direct answer to #1 (closeness limit) - so, i think i will have to settle with the touch, test distance, and enable sit for 10 secs. -
I have a 2 prim object, and want to very specifically control sits on it: 1. I only want sit possible/enabled if avatar is within a specified distance 2. I only want sit possible if user clicks prim #1, not clicking sub-link prim #2 I know how to script *TOUCH* restrictions by testing distance to avatar, but from what I can tell SIT just happens and the only (ugly) option is to unsit Suggestions ???
-
i suspect this is simply not possible, but here is what i need 1) an underlying BODY animation (for example standing), a POSE, not moving a) an in dependently invocable animation (POSE) to move right HAND+ARM up or down to a new spot b) an in dependently invocable animation (POSE) to move left HAND+ARM up or down to a new spot c) an in dependently invocable animation (POSE) to move right FOOT+LEG up or down to a new spot d) an in dependently invocable animation (POSE) to move left FOOT+LEG up or down to a new spot 2) for example my script might: A) start the body pose B) move right hand+arm up C) move left foot+leg forward D) pause, E) then move right hand+arm back down to start position F) then move left foot+leg back to start position Is there any way this is possible and can be done ?? - is it any more possible if steps B+C and E+F are each combined into a single animation each ?
-
Is there a design pattern anyone has or knows about for implementing plugin OBJECTS? For example, say I build a car. I would like to have Plugable wheel objects (not just replacement wheel textures) - the idea being that you could buy a new wheel plugin object, and drag it into the car object - the car would accept the plugin object, and attach (link) it and move it to the right physical place There seems like there may be too many issues, but I thought I would ask.
-
BNF syntax for LSL? (ideally YACC+LEX files)
Restless Swords replied to Restless Swords's topic in LSL Scripting
I understand that scripts are compiled/executed on the server. But, there are several aff-line editors (stand-alone, in eclipse, etc) and formatters/pretty-printers. - hence i believe there are almost certainly at least one BNF grammer file floating around, and likely yacc/lex files All i can do is hope, and cross my fingers and toes. -
Can anyone give me a BNF for LSL syntax or point me to one? - and ideally, a YACC and LEX file for processing LSL text THX.
-
How to move Blender Rigged Mesh (*NOT* clothes) object
Restless Swords replied to Restless Swords's topic in Mesh
yes, I went back and looked at the OpenCollar weasels, they are not quite as nice as some other animals I have seen, and it is quite possible there is some sculpt map reloading taking place. Also, I think their "breathing" may be accomplished by scaling up and down the height+width of their body object. I *hate* animals that have many different sub-elements is slightly different positions and then transparency switch -- I saw one yesterday like that which had an LI of way over 700 and took forever to rez. Yes, it looked nice and real but that is totally ridiculous. - I have seen some animals using the position-rotation changes which look lifelike, very smooth movement, but I suspect they might have a significant script load but don't really know. So in the end, I agree with you, we need some way to properly animate obects (like animals but also other things). -
How to move Blender Rigged Mesh (*NOT* clothes) object
Restless Swords replied to Restless Swords's topic in Mesh
somehow (i don't know how) that seems to not be true. if you go to OpenCollar and look closely at the Weasels moving there, they are a few Mesh prims. their head-neck-body is one mesh piece, and flexes. their tail is one mesh piece, and flexes. Or at least it sure looks like they do. watch one just standing, watch his neck-head-body, and his tail. Maybe the blender animation does not use bones in the SL sense, but somehow those weasels (and some other animals I have seen) truly seem to flex. -
I believe you can rig and "animate" mesh object parts in Blender, and I know you can import an overall Blender object into SL. - and I even know how to script move an overall object (mesh or prim) and its individual linked elements - but HOW can you "flex" a single mesh object (or linked element)? - For example, the mesh "weasles" you see moving around, their body+neck+head is one mesh prim, but flexes (as does its single mesh piece tail) NOTE: this is for non-attached stand-alone objects, *NOT* for clothing attachments. i.e., in other words, how can I make standalone mesh objects that flex and move the way rigged clothing moves, and the way those weasels flex their bodies and tails etc.
-
LSL inside attachment to SLOW walk speed?
Restless Swords replied to Restless Swords's topic in LSL Scripting
Tried it, without success. 1) when the attachment box was LSL moved, it hopped up a couple of meters in the air, above the avatar bounding box 2) no movement of the attachment box had any affect on the avatar -
Can sound play only in OWNERS viewer (not everyones)?
Restless Swords replied to Restless Swords's topic in LSL Scripting
Ah yes! I had not planned on requiring a HUD but this would provide the owner-only sounds. THANKS for this suggestion. -
LSL inside attachment to SLOW walk speed?
Restless Swords replied to Restless Swords's topic in LSL Scripting
Hmmm, would not the standard SL WALK animation be running? - I can understand it might look funny ('sliding' slightly backwards) since the forward distance would no longer be the normal 3.2 m/s - If I have to create and play my own WALK animation, I am almost back to going with the sit-on-vehicle and doing my own movement and animation -
LSL inside attachment to SLOW walk speed?
Restless Swords replied to Restless Swords's topic in LSL Scripting
So far it seems that everyone is in consensus that there is no way to alter the SL default walk speed (3.2 m/s) ? - what a shame, I might have to resort to using the 'sit' vehicle approach and new custom animations, which I really wanted to avoid -
LSL inside attachment to SLOW walk speed?
Restless Swords replied to Restless Swords's topic in LSL Scripting
Alduous, I think your suggestion would move the box/item attached to my avatar only if I was sitting on the box, not if I wear it as an attachment? - and then the agent would never be WALKING, just SITTING? ---- unless there is something I am totally missing -
I have an object that will be worn (attached). an example (NOT what I am doing) would be crutches. When worn, can their script slow down the actual SPEED (distance covered) during a walk? not the animation, the actual movement speed. I know an alternative would be to create some sort of vehicle that moved (slowly) but would like to keep this as a worn attachment.
-
Prime sailing *protected* LL OCEAN-shore (NOT restricted river or inlet) on serene eastern edge of Gaeta Continent. Gorgeous sunrise view. Sail all around Gaeta, all the way to Blake Sea and other destinations. http://maps.secondlife.com/secondlife/Geoduck/249/139/21 There is an adjacent parcel which could each be purchased and then joined into one 4096+ sqm parcel
-
Prime sailing *protected* LL OCEAN-shore (NOT restricted river or inlet) on serene eastern edge of Gaeta Continent. Gorgeous sunrise view. Sail all around Gaeta, all the way to Blake Sea and other destinations. http://maps.secondlife.com/secondlife/Geoduck/249/139/21 There is an adjacent parcel which could each be purchased and then joined into one 4096+ sqm parcel
-
Geoduck-Shores Rentals are beautiful and serene sailing parcels in Gaeta Continent. Enjoy the gorgeous sunrise view. Sail all around Geata, even all the way to Blake Sea. There is a generic public landing point http://maps.secondlife.com/secondlife/Geoduck/194/128/21 - parcels have from 350-400 prims, are 900-1100 sqm, and rent for 325-395L - parcels include a furnished house, but you can have it removed if you wish to use your own - parcel tenants and their companions can change parcel audio, access/banned lists, etc 1) Ocean-Front 900sqm 350-prims 375/wk http://maps.secondlife.com/secondlife/Geoduck/249/139/21 2) Ocean-Front 1050sqm 400-prims 395/wk http://maps.secondlife.com/secondlife/Geoduck/249/118/21 3) Ocean-Access 900sqm 350-prims 325/wk http://maps.secondlife.com/secondlife/Geoduck/201/137/21 4) Ocean-Access 1100sqm 400-prims 345/wk http://maps.secondlife.com/secondlife/Geoduck/201/119/21