Difference between revisions of "SL Cert - Advanced Scripting"

From Second Life Wiki
Jump to navigation Jump to search
Line 31: Line 31:
At the advanced level the person should be able to use all of the different commands to obtain information about an avatar or agent. This includes obtaining information about attachments and the related attachment events. The person should be able to use these methods along with other techniques in nontrivial ways.
At the advanced level the person should be able to use all of the different commands to obtain information about an avatar or agent. This includes obtaining information about attachments and the related attachment events. The person should be able to use these methods along with other techniques in nontrivial ways.


For example, a person should be able to detect when an object is attached and based on the attachment point move and rotate the object. They should be able to interact with the agent using dialogs and chat commands to change and adapt based on the agents responses. Such interactions may require the use of the various data server commands and react according to the information obtained through the data server event.
For example, a person should be able to detect when an object is attached and based on the attachment point move and rotate the object. (Note that this implies that an understanding of how rotations and offsets are changed in the context of attachments and can adjust scripts accordingly.) Scripts should be able to interact with the agent using dialogs and chat commands to change and adapt based on the agents responses. Such interactions may require the use of the various data server commands and react according to the information obtained through the data server event.


Additionally, the person must know how to use a single script to obtain multiple permissions from more than one avatar. For example, the person must demonstrate how to animate more than one avatar using a list of agents and maintaining that list and requesting different permissions as is necessary.
Additionally, the person must know how to use a single script to obtain multiple permissions from more than one avatar. For example, the person must demonstrate how to animate more than one avatar using a list of agents and maintaining that list and requesting different permissions as is necessary.

Revision as of 12:47, 27 November 2009

Overview

Criteria required for persons to become certified in advanced scripting.

Audience

Persons who wish to demonstrate competence in advanced LSL scripting.

Prerequisites

Applicant must hold intermediate scripting certification in the specific area.

Criteria for testing to advanced level

Scripting includes a wide variety of categories. At the intermediate and advanced level the different categories are broken out separately. The different categories are given below with the associated topics. Note that there is some overlap between categories. This is because the different topics can not be easily divided and are related. Some topics may be necessary for multiple categories and are listed multiple times to avoid prerequisite clashes between categories.

The understanding and knowledge of any one command is similar to that required at the intermediate level. The primary difference is that at the advanced level a person must understand and know how to bring together a wide variety of different categories available to accomplish sophisticated tasks. For example, a person should know how to read a note card and interact with a person and then change a particular prim in an object based on that interaction.

Primitives, Objects

At the advanced level the person should be aware of all the different ways that a prim can be altered using LSL. This includes all of the methods listed at the intermediate level. The person should demonstrate knowledge of how to change multiple properties of any prim in a linkset in one command. The person should be able to bring together more complex calculations with respect to the various commands. For example, the person should be able to convert between RGB and HSV colors. Another example is the person should be able to construct scripts that automatically scale and position textures to achieve complex effects such as using multiple prims to display one large texture.

The person should also be able to demonstrate an understanding of issues related to lag and script delay. For example, the person should be able to predict potential problems with a particle command and how it relates to client side performance of people viewing the object.

Additionally a person should be able to combine a wide variety of other techniques to manipulate and change the prims within an object to a predetermined state. For example, the person should be able to read the contents of a notecard and interact with an agent using the dialog, chat, and instant message commands to determine how a prim should appear and then change the appearance of the particular prim. The person should also be able to use the link detection commands to determine which prim to change in an object.

Avatars and Agents

At the advanced level the person should be able to use all of the different commands to obtain information about an avatar or agent. This includes obtaining information about attachments and the related attachment events. The person should be able to use these methods along with other techniques in nontrivial ways.

For example, a person should be able to detect when an object is attached and based on the attachment point move and rotate the object. (Note that this implies that an understanding of how rotations and offsets are changed in the context of attachments and can adjust scripts accordingly.) Scripts should be able to interact with the agent using dialogs and chat commands to change and adapt based on the agents responses. Such interactions may require the use of the various data server commands and react according to the information obtained through the data server event.

Additionally, the person must know how to use a single script to obtain multiple permissions from more than one avatar. For example, the person must demonstrate how to animate more than one avatar using a list of agents and maintaining that list and requesting different permissions as is necessary.

Finally, the person should be able to apply fine changes to the agents camera. For example, the person should be able to move a person's camera to a specific location and look at the position from a predefined orientation.

Inventory and Simulator Information

At the advanced level a person should know how to use all of the basic commands. At this level is also vital that the person be able to seamlessly make use of these tools to complete complex tasks. For example, the person should be able to use the various communication techniques to determine which inventory to share with a person based on the creator of the object and a set of permissions based on groups or other limitations defined in a note card.

The person should be able to determine advanced information about the terrain at a given point and react accordingly. For example, the person should be able to make use of the ground normal at a point and have an object moved in an appropriate way based on the ground normal. Also, the person should be able to determine the ownership and restrictions on a given parcel and have the script react in appropriate ways and communicate with an agent to determine how to react.

Advanced I/0

  • HTTP - in
  1. Creating an HTTP server
  2. Reacting to errors in the set up
  3. Reacting to changes to the server
  4. Reacting to outside requests
  • HTTP - out
  1. Sending communications out to other http servers
  2. reacting to errors
  3. Writing flexible scripts that can adapt to server outages and other potential failures.
  • Communication with outside servers.

At the advanced level for communications a person should be able to combine the different communication techniques to complete complex operations. For example, the person should be able to combine the use of dialogs and chat commands to send information to different scripts in various prims in an object using the link message system and a single script that interacts with an agent.

In addition to combining communication routines the person should be able to communicate between different objects in world using the http-in and http-out systems. The person should demonstrate scripts that have the flexibility to handle errors in the set up of the http routines and demonstrate flexibility in handling situations impact the http system. For example, the person should be able to develop systems of scripts that can maintain communication in the presence of sim crossings and resets.

Finally the person should demonstrate that they can communicate with outside servers and provide persistant data sources. The person must show basic proficiency in at least one other scripting language such as php, python, perl, or other relevant language. They should also demonstrate a basic profiency in connecting with a database and manipulating the database.

Physics

At the advanced level for physics a person should know the difference between the linear and rotational commands for force and impulse. The person should understand the impulse momentum theorem and the differential form of Newton's Second Law. The person should know how to put the rotational and linear forms of the commands together to achieve specific objectives.

For example, a person should be able to use the physics commands to move an object to a specific location and keep it in a specific orientation. The person should be able to combine different categories in order to move the object. For example, the person should be able to use a sensor or a timer to have a physical object follow an agent and maintain a specific rotation.

Finally, a person should be able to calculate the moment of inertia for simple objects and combinations of simple objects. The person should demonstrate that they know how to use this understanding when using the rotational commands for angular impulse and torque.


Vehicles

At the advanced level a person should be able to construct a vehicle. A person should be able to construct a variety of vehicles and know the differences between them. For example, the person should be able to construct a boat, car, or plane. They should be able to use the permissions system to have a person control the vehicle in nontrivial ways.

Detection

At the advanced level a person should be able to put together complex systems of scripts using a variety of detection methods. The person should be able to use these methods to interact with a person and react in non-trivial ways. For example, a person should be able to create scripts that can detect which prim a person has touched or collided with and then interact with the person using the various communication methods.

The person should also have an advanced understanding of the sensor system. For example, the person should know what happens when you try to combine different sensor types by using binary "or" and how that changes the results that a sensor will return. Also, the person should be able to use sensors along with other techniques to interact with agents in nontrivial ways. For example, a person should be able to use a sensor to detect an agent and then alter the sensor based on interaction through dialogs and chat commands, or be able to use sensors to identify and object and then use commands such as llGetObjectPrimCount or the data server commands to obtain other information.

Finally, the person should be able to identify potential server side impacts with the use of the various routines. For example, the person should be able to use detection routines that allow complicated interaction between different prims in an object using only one script and identify the server side impact of using more than one script. Also, the person should be able to identify schemes to minimize the use of sensors and avoid the use of sensors using other commands such as llGetObjectDetails and a timer as a way to avoid potential server side impacts.

Programming and Software Development

  • More advanced use of lists and data types.
  1. Multiple Data Types
  2. Using strided lists with multiple data types
  3. Manipulating all data types
  • Advanced revision systems.
  1. Branching and merging revisions.
  2. Tagged revisions.
  3. Finding and using differences between revisions
  • Workflow
  1. Demonstrate effective interactions with clients and remain flexible through the entire development cycle.
  2. Establishing a plan for systems of scripts and carrying it out.
  3. Be able to adapt the plan as the requirements change.
  4. Be able to establish time lines and effectively communicate them with clients.


At the advanced level a person should be familiar with all data types. The person should know when to use a given a data type and when it is appropriate. The person should be able to use the most advanced features of lists and work with strided lists that contain a variety of data types. The person should be able to use the list functions to determine the data type for an entry in the list.

A person should be able to use the more advanced features of a software revision system. The person should know when it is appropriate to create a branch and know how to create a branch. The person should know how to merge a branch back into an established trunk. The person should also know what a tagged release is and how to create a tagged release in the revision software that they are using.

A person should be able to create plans for creating systems of scripts. The person should be able to demonstrate that they can establish a time line for a project and determine a set of intermediate steps necessary in order to complete a project. The person should demonstrate an ability to communicate the time line and the reasons for their decisions with a client. Finally, the person should demonstrate an ability to adapt and change a timeline as the client changes the requirements. As part of this aspect the person should demonstrate that they can anticipate potential problems with a given set of requirements and work with a client in advance to avoid potential problems.