tip: sound loop on/off
This one via Adenoraque Qin. Say you have a 15 second sound loop, and you want the user to be able to toggle sound on and off. If you just use llStopSound(), the loop will keep playing, till it finishes.
Example: Clip is 5 seconds in when user pushes stop button - sound will still play the full 15 second clip. Instead, when the user hits the stop button, call the same sound with volume of 0: llPlaySound(”foo”, 0); then llStopSound();
Working again!
Fixed up the wordpress mail script for second life, so I can postcard post again. I’ve also thrown in some new lsl scripts.
adding lsl (and other languages) syntax highlighting to your wordpress
Get the synthihol plug-in. It comes with GeSHi, though you’ll probably want to get the latest version.
Follow the readme for the plug-in, and go grab my geshi language file for lsl. It’s a first version, but I think I covered everything. The colours are easy enough to change.
Read the rest of this entry »
On HUD Positioning
HUD Shell: I am making this to deal with HUD attachments mainly - A common problem - especially for newbies - is attaching HUD devices where they weren’t meant for, and the HUDevice gets positioned off screen.
You set offset & rotation in the script, and it handles the rest. Doesn’t matter where they attach it, your HUD is always on screen. Also features Kill Switch / IM Finder-Reminder, and accidental non-attach’ed rezzing. Still a work in progress, but it does the job it’s made for.
Read the rest of this entry »
Key Name Reconciliation
As some of you know, neighbours has had an issue where (waiting) was displayed in place of peoples names. Basically, what was happening is that I use the new llHTTPRequest function, and just pull info from the headers, as oppossed to sending it in my request itself. Turns out, when the owner name is not readily available, SL just sends (waiting) rather than hold the request back (thanks Zarf).
So I am posting the two pieces of this reconciler [sanitized], which someone may find useful.
Read the rest of this entry »
SL/Flickr Mashup
Here’s a nice little mashup between SL & Flickr over at
hackdiary by Matt Basiat (sl name).
I have to check with him in world, but based on his description of functions used, I am guessing he uses llParcelMedia to set the ‘movie’ to a .jpg. Smart work-around. (at least, that’s the only way I can think of, since we still don’t have ‘web on prim’). The only limitation would be you have to use it on your land (or land where you have rights to change the parcel media). [thanks D]
Registrator-Tron .3
Bit of a discussion has broken out over here.
Which has led me to post the code of my registrator-tron, hopefully someone finds it useful. Though it’s really quite basic.
Here’s the script.
Using Linden Script Language (LSL )
Using Linden Script Language (LSL ) is a pretty decent tutorial which introduces a lot of scripting concepts, mixedwith script examples.
Second Life Forums - Why are there no
I posted a long reply to this thread. So I thought it worth linking to.
Second Life Forums - Why are there no “Scripting 101″ classes anymore?
my del.icio.us