Jump to content

Rachel1206

Resident
  • Posts

    739
  • Joined

  • Last visited

Everything posted by Rachel1206

  1. For a link set do as below - and yes mother blinks along - to stop mummy blinking - out comment light(bFlash );: in the timer() MOTHER.LSL // Simple link set light controller // Place this script MOTHER in object controlling // If it works, it was made by me integer bSwitch= FALSE; integer bFlash= FALSE; float fTimerPeriod= 0.333; float fGlow; light( integer nState ) { if (nState==TRUE) fGlow= 0.6; else fGlow= 0.0; llSetPrimitiveParams ([PRIM_GLOW, ALL_SIDES, nState, PRIM_GLOW, ALL_SIDES, fGlow]); } default { state_entry() { } touch_start(integer total_number) { bSwitch= !bSwitch; if (bSwitch==TRUE) { llSetTimerEvent( fTimerPeriod ); } else { llSetTimerEvent( 0.0 ); bFlash= FALSE; light( bFlash); llMessageLinked(LINK_ALL_OTHERS, 0, (string)bFlash, ""); } } timer() { bFlash= !bFlash; llMessageLinked(LINK_ALL_OTHERS, 0, (string)bFlash, ""); light(bFlash ); } } // End MOTHER light controller CHILD.LSL // Simple link set light controller // // Place this script CHILD in the other objects // // If it works, it was made by me // integer nState= FALSE; float fGlow; default { state_entry() { } link_message(integer sender_num, integer num, string message, key id) { nState= (integer) message; if (nState==TRUE) fGlow= 0.6; else fGlow= 0.0; llSetPrimitiveParams ([PRIM_GLOW, ALL_SIDES, nState, PRIM_GLOW, ALL_SIDES, fGlow]); } } // End CHILD light controller
  2. Ohh, minor bug it seems, I used PRIM_FULLBRIGHT, ALL_SIDES instead of PRIM_GLOW, ALL_SIDES to the glow parameter, try to replace llSetPrimitiveParams ([PRIM_GLOW, ALL_SIDES, nState, PRIM_FULLBRIGHT, ALL_SIDES, fGlow]); with llSetPrimitiveParams ([PRIM_GLOW, ALL_SIDES, nState, PRIM_GLOW, ALL_SIDES, fGlow]); If you do not want the mother to blink out-comment light(bFlash ); in timer()
  3. You do not specify, if we are talking about an linked object or separate distributed objects placed around. Rule #1 all programming/scripting, define what should be done! Simple solution below if separated objects. Two scripts mother and child, place mother in object controlling and child in all the others objects. MOTHER.LSL // Simple region wide light controller // // Place this script MOTHER in object controlling // // If it works, it was made by me // integer bSwitch= FALSE; integer bFlash= FALSE; float fTimerPeriod= 0.333; float fGlow; integer nChannel; light( integer nState ) { if (nState==TRUE) fGlow= 0.6; else fGlow= 0.0; llSetPrimitiveParams ([PRIM_GLOW, ALL_SIDES, nState, PRIM_FULLBRIGHT, ALL_SIDES, fGlow]); } default { state_entry() { nChannel= 0x80000000 | (integer) ( "0x" + (string) llGetOwner() ); } on_rez(integer start_param) { llResetScript(); } changed(integer change) { if (change & CHANGED_OWNER) { llResetScript(); } } touch_start(integer total_number) { bSwitch= !bSwitch; if (bSwitch==TRUE) { llSetTimerEvent( fTimerPeriod ); } else { llSetTimerEvent( 0.0 ); bFlash= FALSE; light( bFlash); llRegionSay( nChannel, (string) bFlash ); } } timer() { bFlash= !bFlash; llRegionSay( nChannel, (string) bFlash ); light(bFlash ); } } // End MOTHER light controller CHILD.LSL // Simple region wide light controller // // Place this script CHILD in the other objects // // If it works, it was made by me // integer nChannel; integer listenHandle; integer nState= FALSE; float fGlow; default { state_entry() { nChannel= 0x80000000 | (integer) ( "0x" + (string) llGetOwner() ); listenHandle = llListen(nChannel, "", NULL_KEY, ""); } on_rez(integer start_param) { llResetScript(); } changed(integer change) { if (change & CHANGED_OWNER) { llResetScript(); } } listen(integer channel, string name, key id, string message) { if (channel==nChannel) { nState= (integer) message; if (nState==TRUE) fGlow= 0.6; else fGlow= 0.0; llSetPrimitiveParams ([PRIM_GLOW, ALL_SIDES, nState, PRIM_FULLBRIGHT, ALL_SIDES, fGlow]); } } } // End CHILD light controller
  4. See Nalates Urriahs blog post on Second Life: Intel HD Graphics – How to Improve Follow the instructions for the Intel HD Graphics 4000 and uninstall Firestorm 64 bit and install Firestorm 32 bit version, get help from a local computer wizard friend, if you find it hard to do. With more and more complicated features in SL older systems without a newer dedicated graphic card (GPU) will struggle to perform well.
  5. From time to time I experience, I have to enable my media stream in my Linden Home, so try to set it again. Other things to check: Did you block the streaming URL? Many streaming services come and go, disappears from the net. Some radio stations are not available everywhere in the world. Lately I often get this message "This station is not available in your country"
  6. I would as Rolig suggest handle the touch in the invisible object, something like this if the objects are linked. In the invisible object: touch_start(integer total_number) { llMessageLinked(LINK_ALL_OTHERS, 0, "you_touched_me", ""); } In the object behind: link_message(integer sender_num, integer num, string msg, key id) { if (msg=="you_touched_me") { llOwnerSay("Uhh it tickles :-)"); } } Notice, you can also examine the sender_num to ensure correct handling of touched object and avoid false clicks, but the simple solution above should work. If the objects are not linked, you have to use llListen in the object behind and send message from the touched object.
  7. Hotlaps, "the hottest challenge in SL Sailing" Still 3 days left for the hotlaps at Blue Lagoon Naturist Estate - Thursday 18th of May to Saturday 20th of May 2017 Come and do a fast hotlap, enjoy the beautiful sim made of 24 connected sims with public sail areas and roads along seaside, mountains. Lot to see and explore from unique landmarks to surfing, bungee jumping, hang-gliding. LM: http://maps.secondlife.com/secondlife/Rising%20Sun%20Isle/75/190/22
  8. Computer: Leibniz' Arte Combinatoria, 1672 CPU: Integral calculus OS: Binary universal computer Input: Punched cards or black and white marbles.
  9. There is no functions as such to my knowledge, but can be obtained by using llHTTPRequest using the key-id of the person you want the profile picture of. An example of how to do this is found in the Wiki: http://wiki.secondlife.com/wiki/Get_Profile_Picture
  10. Some places are just stunning beautiful and truly landmarks - roads and waterways connecting 20 sims, lot to explore, see, experience. Tropical Desire, Blue Lagoon Naturist Estate
  11. Yes, and notice the usage of unity subroutines. Although this is SL/LSL, looking forward to a lift of the curtain to much more! using LindenLab.ServerScript.Secrets&Things2Come.FromKelly;
  12. Just wanted to add this reference on limits and what else is possible: http://wiki.secondlife.com/wiki/LlGetObjectDetails Notice, max 63 characters and only standard ASCII. See also llGetObjectDesc(), which can be a handy way to store persistent values.
  13. Could it just be you just stumbled into the scheduled rolling restarts grid wide.
  14. People report minor better FPS (8-10 or better FPS) and better performance in general in games depending on their system. Downside is resources are allocated to the game and hence slows other active running apps, say you Alt+Tab to other running programs to check web-pages, e-mail etc., you will experience those program run sluggish - how much depending on overall speed of your computer. Now 8-10+ FPS does not sound as much, but could make an users SL experience more fluid and better, if say FPS jumps from 14 FPS to more fluid 24 FPS.
  15. Check your LINK_FLAG, it is set to LINK_THIS and hence only sends to the prim the script is in. To send to all linked prims use LINK_ALL_OTHERS, Rolig refers to Wiki, take a look at the flags you have to specify,
  16. Yes it should be OK, now I also have a Linden home as you - nice suburbia How old is your laptop? The fan could be worn or there are dust, hair in it. Now opening a laptop is a very delicate procedure and it is easy to do it wrong, so unless your are skilled, do not attempt to do it your self. Now I experience the same heavy load on my fan in my older ASUS N-serie laptop - opening FS causes heavy fan activity, it settles down after a few minutes and then depending on my SL acitivty, it kicks in again. In general SL requires a lot of power usage and heavy usage of the graphic card. As Alwin said one explanation could be heavy textures in the neighboring houses. A good trick is to lift the laptop free of the ground a little, place a flat item at rear of it, to let air circulate below and better. Last - but sadly - it could also be a sign of a laptop entering its last life... and hot components does not extend its lifespan
  17. Take a look at http://wiki.secondlife.com/wiki/LlGetAnimationList You have to use a combination of llGetAgentInfo and llGetAnimation
  18. Some thoughts on this topic... Also consider when to use a notecard, often it is used to store settings, so we can let the user change a given thing like color etc.Here a combination of lists and separate notecards for different parts of a given linked item could be the answer. So instead of reading in a huge single notecard covering say body, eyes, hair, fingers, we only read a small simple notecard on demand. Downside is of course it is more complicated to program and takes more scripts, but a balanced approach could give a most faster experience for the user. Or ditch the notecard and let the user change say color with a HUD, where we just change the values within the object in direct response - within the object values stored as list of just numerical values. This approach requires careful planning - sit down and draw on paper what to do and implement it as a script. If a notecard is used to display huge amount of text information, consider other approaches - for example use a web site to display it on a prim/HUD.
  19. The new function llBigListen( integer channel, string name, key id, string message, float nDecibel, integer bHighVolume ) is the answer - you are able to listen to 5,000 sims and fine tune to within 0.15 cm of the source emitter.This will revolutionize SL communication, but remember to set the boolean .bHighVolume to TRUE to protect against overload of user. Have a nice weekend (And yes just for fun!)
  20. There was an SL woman who lived in a shoe. She had so many shoes, she didn't know what to do; She gave them some polish without any rubbing; Then whipped them all soundly and put them on.
  21. Good to hear and yes, the logic based errors are always the hardest to solve.
  22. Hi Amphei, See attached picture: an object where next owner can MOD/COPY but NOT transfer a script COPY ONLY, not mod/transfer I tested with a friend, send him the object and afterward the script. He could copy the script into the object I gave him - not able to modify script or transfer it, but is did what it should update the object with a sound to be played - works as it should. So unless I misunderstand, what you want, it works without problems.
  23. As Qie wrote, what are the permissions on the target-object? Setting a script COPY only for next owner does basically, what you want, where they cannot modify or transfer it. The receiver though can only use the script for it purpose, if the object it is copied into, allows it being either an object the receiver make them self or are in their ownership with permissions to modify it.
  24. Use llMessageLinked to send a command to your child prims and execute llResetScript. Now IF the prim should hold more than one script, your can solve it by doing as below: resetOtherScripts() { string strName; integer l = llGetInventoryNumber( INVENTORY_SCRIPT ); integer i; for( i = 0; i < l; i++ ) { strName= llGetInventoryName( INVENTORY_SCRIPT, i ); if( strName!= llGetScriptName() ){ llResetOtherScript( strName ); } } }
  25. HaPpY eAsTeR - see if you find the egg!
×
×
  • Create New...