LSL: Linden Scripting Language Andrew Orr 12/17/07.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Java Applets:. How Applets differ from application?: They do not use main method but init(), start() and paint() methods of the applet class They can.
1 COMM 1213 H1 COMP 4923 X1 JavaScript 1 (Readings: Ch. 10, 11 Knuckles)
Introduction to JavaScript
Syscall in MIPS Xinhui Hu Yuan Wang.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Chapter 3 - Java Programming With Supplied Classes1 Chapter 3 Java Programming With Supplied Classes.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
M OTION P LANNING IN R EAL AND V IRTUAL E NVIRONMENTS F ALL 2007 Second Life: Introduction Russell Gayle Comp – Robot Motion Planning Fall 2007.
Macromedia Director 8 Advanced Level Course. Script Basics Lingo can be used to offer your users navigational control of the order of the scenes of your.
Compiled vs Interpreted A tradeoff of flexibility vs efficiency.
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
Reasons to study concepts of PL
Scripting Languages For Virtual Worlds. Outline Necessary Features Classes, Prototypes, and Mixins Static vs. Dynamic Typing Concurrency Versioning Distribution.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
Programming in Java; Instructor:Moorthy Introduction, Objects, Classes, Libraries1 Programming in Java Introduction.
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
A.I. in Second Life Akihiro Eguchi. Why Second Life? Real world like environment where we can visually show the demo of our work E.g. ◦ Workflow ◦ Ontology.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Java Language and SW Dev’t
Libsecondlife: Bots Hyungwook Park. LSL vs. libsecondlife Linden Script Language (LSL)  Programming language used by residents of Second Life  Controls.
Connecting to the Island Ensure you are in the UA CSCE Artificial Intelligence group Ensure you are in the UA CSCE Artificial Intelligence group Open the.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
Scons Writing Solid Code Overview What is scons? scons Basics Other cools scons stuff Resources.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Java Programming, Second Edition Chapter One Creating Your First Java Program.
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
1 Problem Solving with C++ The Object of Programming Walter Savitch Chapter 1 Introduction to Computers and C++ Programming Slides by David B. Teague,
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
Second Life in School And the LSL Programming Language Jordan Widiker.
The Second Life of a Sensor: Integrating Real-World Experience in Virtual Worlds using Mobile Phones Mirco Musolesi, Emiliano Miluzzo, Nicholas D. Lane,
CS590VC - Tutorial 3 Linden Scripting Language (LSL)
C++ Programming Basic Learning Prepared By The Smartpath Information systems
CT1513 Introduction To java © A.AlOsaimi.
JavaScript Syntax, how to use it in a HTML document
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Modeling Big Data Execution speed limited by: –Model complexity –Software Efficiency –Spatial and temporal extent and resolution –Data size & access speed.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Presented By: Mamta Yadav Final Year IT. CONTENTS Introduction PC & Mac Minimum Requirements Technology Residents or Avatars Currency Membership in Second.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 27, 2004 Last update:
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
Java Script. introduction Today’s web sites need to go much beyond HTML. browsing through a web site, to actually interact with the web site. The web.
PHP – PHP Hypertext Processor A quick overview. How is PHP used? Embedded with HTML, e.g. Not like CGI: PHP files not an executable Used with servers.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Applications Active Web Documents Active Web Documents.
Modeling Big Data Execution speed limited by: Model complexity
F/XUAL EDUCATION SERVICES
What is Second Life?.
CMPE419 Mobile Application Development
JavaScript What is JavaScript? What can JavaScript do?
JavaScript What is JavaScript? What can JavaScript do?
(Computer fundamental Lab)
Tutorial 10: Programming with javascript
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Visual Basic CSC
CMPE419 Mobile Application Development
Presentation transcript:

LSL: Linden Scripting Language Andrew Orr 12/17/07

“Object”-Oriented LSL is a high-level scripting language Developed by Linden Labs for their virtual world Second Life. Simple, powerful language used to attach behaviors to the objects

Purpose of LSL Control the behavior and interaction of objects within Second Life Allows internet communication through HTML requests and Users create scripts to enhance their products that they make available to other SL residents

LSL is very similar in syntax to C/C++ and Java, and is compiled into byte code much like Java LSL is state-event driven language Event triggers: collisions with other objects, movement, chat commands from users, , timers, etc.

Functions There are approximately 300 preset library functions, but users can also define their own functions. All Linden library functions begin with ll, eg. llSay (0, “Shoulda had take home exam!”);

Script Facts Each script executes within its own chunk of the simulator’s memory. Each script is given a slice of time from a set amount of time given to scripts in a simulator. Multiple scripts can be attached to an object to allow for complex behaviors.

Data Structures Integers Floats Strings Vectors (used for position, direction, colors) Rotations (quaternions) Lists

Example Script default { state_entry() { llSay(0, "Hello, Avatar!"); } touch(integer total_number) //executes when an avatar { //touches the object. llSay(0, "Touched."); }