LAWLESS SKY and LITTLE GREEN DRAGON


SL scripting

http://blog.secondlife.com/2008/07/19/get-started-scripting-with-autoscript-video-tip-of-the-week-42/

and autoscript from Hilary Mason

http://www.3greeneggs.com/autoscript/

S4S -download

Mac or Window: http://web.mit.edu/~eric_r/Public/S4SL/

Scratch for Second Life

S4S Tutorial http://web.mit.edu/~eric_r/Public/S4SL/tutorial/index.html

Getting Started with Scratch For Second Life (S4SL)

1. Set up

  • Download S4SL
  • Launch S4SL by double clicking “Scratch for Second Life”
    • Due to a bug, you may have better results if you drag Scratch.image and drop it onto “Scratch for Second Life” rather than double-clicking the .app or .exe file
  • Log into Second Life
    • Resize your Second Life window so that it can be side by side with S4SL
      • To resize, drag it from the bottom right corner
      • Also, you can quickly switch between the two applications by pressing alt-tab (windows) or apple-tab (mac)
2. Make an Object

  • In Second Life, switch to build mode
    • click on the blue “build” button at the bottom of your screen
  • Create an object (a prim)
    • click the create button at the top of the edit window, pick a shape below that, then click the wand on the ground to create it
3. Make a Script

  • Switch back to S4SL
  • Start with a “hat” block
    • Click “control” to see the control blocks
    • Pick one of the first five of these orange blocks (like “when I am touched”), and drag it to the scripting area on the right.
    • These are the “hat” blocks. They are different ways to make a program run.
    • For example, “when I am touched” makes the blocks connected below run when you click on the object. Here’s what the others do:
      • “When I receive” runs when you chat a particular message.
      • “When I collide” runs when an avatar bumps into the object.
      • “When I am created” runs when the script is first saved, and when the object is rezzed (like when it is pulled out of your inventory)
      • “Forever” runs over and over, ten times per second.
  • Add a command by snapping it onto the bottom of the stack
    • Most of the other blocks are commands.
    • For example, click on “looks” tab, and drag out a “say” block. You can change the text in the say block.
    • If you connect this below the “When I am touched” block, your object will say something when you touch it.
    • Experiment with other blocks!
    • You can also open up the sample projects that come with S4SL to get ideas.

4. Copy the script into your object

  • In S4SL, click the “copy linden script” button. This puts your code on the clipboard.
  • Switch back to SL
  • Create a new script for your object
    • In the edit window for your object, click more, click on the content tab, and click the”New Script…” button.
    • Double click on the “New Script” that appears.
    • A script window will open, and your object will run the default script (and say “Hello, Avatar”)
  • Paste in your script
    • You want to replace the script that is there with the one you have on the clipboard
    • In the script window, select all, then paste, then save
      • If paste does not work, sorry! This is a bug that we are still working on. You can help us fix it by providing as much information as possible about the computer you are using. Here are some workarounds:
        • Paste into a text editor, select all, copy that text, and then paste into second life
        • Try a windows computer (so far we have only seen this problem on macs)
    • A quick way to do this is with the keyboard shortcuts
      • On windows: ctrl-a, ctrl-v, ctrl-s
      • On mac: apple-a, apple-v, apple-s
    • Once your script has saved, close the window and switch out of build mode
    • Now you can test your object. For example, click on it to see if it says something
    • Repeat! Try things out!

Things to make:

  • Plants that react to people passing by
  • A pet that does tricks when you give it chat commands
  • Toys that change color, spin, or turn invisible
  • A floor that reacts when you step on it
  • A house with doors and windows that automatically open and close
  • Interactive clothing or other crazy things you can attach to your body
  • Whatever else you can imagine!

Other fun stuff to try:

  • Use your own sounds: the sound block lets you can type in the name of a sound you want your object to play. You will need to put a sound with this exact name in the inventory of the object.
  • Make many: Try making a bunch of copies of your object, for example a whole floor made of “intelligent” tiles (like the image above showing the sample project “rainbow floor tile”). Just make a single tile, then shift-drag to copy one object, or even copy a group of selected objects.
  • Make things that communicate: Use “broadcast …” and “when I receive …” to make multiple objects communicate with each other (see the “door” and “rainbow floor tile” examples)
  • Memory: Use variables to store numbers in your object so it can remember things
  • Logic: Use the conditionals if and if-else to compare things to each other
  • Sharing code: To share code, you can try the “paste script” button. To use it:
    • In SL, open an existing object with S4SL code inside (say, created by another person who has made the scripts visible to you)
    • Open the LSL script window, select all, and copy it
    • In S4SL, click “paste script” to regenerate the blocks for that script
    • This is an experimental feature! Thanks to Jens Moenig for Squeak code to save and load scratch blocks in XML format. Any bugs introduced here are mine.
Things to watch out for (known issues):

  • The blocks in the “pen” category for drawing lines will not work unless your object has in its inventory a special object called “lineSegment.” Contact me if you are interested and I can get you a copy of this object (eric_r at mit dot edu)
  • If you rotate your object using SL build mode, the move and point-toward commands may not behave as you expect.
    • One workaround is to use these blocks only with objects that you have not manually rotated.
    • For shapes that you need to rotate, or for more complicated shapes, you can link together multiple objects. Just be sure to put your script into a prim that has not been manually rotated.
  • Special characters in variable names, broadcasts and when-I-receive may cause problems
  • Scripts that have multiple loops running simultaneously, especially with wait blocks, may not behave as you expect
  • Please do not resize the S4SL window (nothing will break, it will just look weird)

If Second Life as a presence machine is to the mind what cyclotrons are to Physics, then…

go ahead, give it a shot. Finish the sentence. I am trying this on another community thread. I am looking forward to everybody’s comments here as well.

Social Presence in Virtual Worlds

Come and join my group in RezEd titled “Social Presence in Virtual Worlds.” Go to http://www.rezed.org/group/socialpresenceinvirtualworlds

As I explained to Barry Joseph, I first thought about posting in the Language Learning/Teaching group or in the Psychology group, but my topic would have been diluted amongst other topics since Psychology in virtual worlds does not deal only with Social Presence.  I hope that this will help me unearth some issues or solutions from comments, questions and discussions with colleagues dealing with immediacy behaviors and other variables related to social presence.

The group features a resource section and a forum. I will add a RSS of a wiki, blog or podcast particularly of interest…when i find it. In the meantime, Keho will do.

I wonder if posting my new group to the SLED would be considered spamming?

Podcast Educational Series: Linden “inside the Lab”

http://blog.secondlife.com/2008/06/02/inside-the-lab-podcast-a-discussion-on-education-in-second-life/

SL goes mobile

Second Life Streaming to your mobile phone by Vollee
http://youtube.com/watch?v=XwRnjbkljnc

World in Motion – Vollee Debuts Second Life Mobile Streaming Beta (http://www.worldsinmotion.biz/2008/06/vollee_debuts_second_life_mobi.php)
“…Mobile gaming solution developer Vollee has launched a free beta application allowing users to access Linden Lab 3D virtual world Second Life through their qualified 3G or Wi-Fi enabled handsets.

Vollee’s technology intelligently adapts applications for screen size and key layout, and then streams the original application to mobile devices. The developer’s interactive video streaming platform optimizes compression to minimize bandwidth, allowing gamers to navigate 3D spaces.

After downloading Vollee’s client to their handsets and logging in to their existing Second Life, users will be able to look up friends, interact, and communicate online with other avatars in the online world.

Said Linden Lab business development manager Christopher Mahoney, “Vollee offers the perfect Second Life mobile service that brings our virtual world to handsets in a way that is ideal for connecting our Residents. We look forward to the new and exciting ways people will be able to extend their Second Life experience through this new service.”

Download the free Beta application
http://www.vollee.com/secondlife

My AT&T Tilt still has to wait for the application to be enabled for it. Let’s hope they get quick with it. :-) )

RC8 lipsyncs :-)

Just saw the blog’s post: RC8 was released yesterday (23rd). I downloaded it and the lipsync works!!! This is so exciting.

RC7 was having too many issues so they withdrew it a few hours after the release. I am just amazed at the quick turnaround. This is so cool.

So while waiting for the main client to get the lipsync, go get it yourself at http://secondlife.com/support/downloads.php#download-Testviewers (as of today 5/24/08, it’s RC8: http://blog.secondlife.com/2008/05/23/new-release-candidate-viewer-120-rc8-available/)

I”ll post a machinima soon to celebrate this glorious day :-)