Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Scripting Second Life with Rational Application Developer

Create a mini game in Second Life

Jesse Dailey (jesse.dailey@gmail.com), Developer, Freelance writer
Author photo
Jesse Dailey graduated with a degree in computer science from University of Chicago in 2003, where he specialized in Artificial Intelligence in games. He's worked as an application developer for 3 years on a large scale Web application built on Coldfusion and Java.

Summary:  The virtual world of Second Life is special in that much of it is made up of content created (and owned) by users. Not only can you create lush 3-D objects (and sell them for the equivalent of real money!), but you can also create both simple and complex scripts to control their behavior and appearance. This tutorial explains the basics (and not so basics) behind Second Life scripts and shows you how to ease development by using Rational Application Developer as you build a small game users can carry around and play.

Date:  05 Jun 2007
Level:  Intermediate PDF:  A4 and Letter (992 KB | 42 pages)Get Adobe® Reader®

Activity:  9037 views
Comments:  

Before you start

This tutorial is for Rational® Application Developer users that would like to use their favorite development suite to create new content on the Second Life grid. You will be setting up Rational Application Developer to use Linden Script Language (LSL) and then developing a small game in the Second Life world.

About this tutorial

Massively Multiplayer Online games (MMOs) have been around since 1996 with the release of Meridian 59, and until now every offering has been either set in space or in the land of fantasy, and all have been well within the bounds of standard role playing fare. But that changed in 2003 with the release of Second Life. The game carries with it a sparse but very daring premise: challenge the users creatively on a scale never before attempted, and allow them to build or create anything the game is possible of representing.

Second Life brings a suite of game editing tools into the game interface itself, and provides rich, event-driven scripting in the form of Linden Script Language (LSL). To aid development, you will take advantage of Rational Application Developer, an Eclipse-based IDE. To demonstrate some of the features of Second Life, and how Rational can help, you will be developing a simple game, a sort of mash-up of Sumo, Go, and Marbles. This game will fit inside a single item, a totem, that the player's avatar can carry in their inventory, or wield. They can then use the game totem to initiate a new game.


Prerequisites

Basic knowledge of programming in some language is required. Experience with events and vector algebra will definitely help, but isn't necessary.


System requirements

To complete the steps in this tutorial, you'll need the following tools:

  • Rational Application Developer -- If you don't already have this, you can download a trial version. More detail about setting this up is provided later.
  • Second Life. -- available for free after you register an account.
  • ByronStar SL plugin -- provides an eclipse based integrated development environment for SecondLife.
  • Windows XP SP2 or Windows 2000 SP4 (Vista is not supported). 800Mhz, 256MB, Geforce 2 or ATI Radeon 8500 or better.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational, Open source
ArticleID=228004
TutorialTitle=Scripting Second Life with Rational Application Developer
publish-date=06052007
author1-email=jesse.dailey@gmail.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.