| 1 |
$Id: README.txt,v 1.2 2007/02/27 05:01:47 kbahey dead $
|
| 2 |
|
| 3 |
Copyright 2007 Khalid Baheyeldin http://2bits.com
|
| 4 |
|
| 5 |
This module is a simple Second Life framework, allowing objects inside
|
| 6 |
Second Life to interact with your web server and do neat things.
|
| 7 |
|
| 8 |
Installation
|
| 9 |
------------
|
| 10 |
To install this module, Upload or copy the the entire secondlife directory and
|
| 11 |
all its contents to your modules directory.
|
| 12 |
|
| 13 |
Configuration
|
| 14 |
-------------
|
| 15 |
To enable this module do the following:
|
| 16 |
|
| 17 |
1. Go to Administer -> Site Building -> Modules, and enable second life.
|
| 18 |
|
| 19 |
Developing for Second Life
|
| 20 |
---------------------------
|
| 21 |
Second Life objects are written in a language called llscript (Linden Lab
|
| 22 |
Script). For more on how to use this language, refer to this wiki:
|
| 23 |
http://wiki.secondlife.com/wiki/LSL_Portal
|
| 24 |
|
| 25 |
The Second Life framework module interfaces with Second Life using the
|
| 26 |
llHTTPRequest function.
|
| 27 |
|
| 28 |
See details here:
|
| 29 |
http://rpgstats.com/wiki/index.php?title=LlHTTPRequest
|
| 30 |
|
| 31 |
In order to write a Drupal application that interfaces with Second Life, you
|
| 32 |
need to create a new module. See the sltest module in the samples directory
|
| 33 |
for an example.
|
| 34 |
|
| 35 |
The app is the application name, and is also the module name. The cmd is
|
| 36 |
a command that your module/app must handle. The args vary from one cmd
|
| 37 |
to the other.
|
| 38 |
|
| 39 |
The $sl object contains the Second Life info you need to know, such as region,
|
| 40 |
location in the grid, user name, user key, ...etc. The $args is an array that
|
| 41 |
is passed from the llScript to you.
|
| 42 |
|
| 43 |
Debugging
|
| 44 |
---------
|
| 45 |
A test client emulator script is provided, called slclient.php. It is designed
|
| 46 |
to run from the command line, and takes two arguments: the server name, and
|
| 47 |
the handler.
|
| 48 |
|
| 49 |
$ php slclient.php localhost /secondlife
|
| 50 |
|
| 51 |
Modify the app and cmd array to the application you are developing. The app
|
| 52 |
will be your module name, and /secondlife should remain the same.
|
| 53 |
|
| 54 |
A variable called secondlife_debug can be set in your settings.php in the $conf
|
| 55 |
array. Set it to a path writable to your web server to see what is going on
|
| 56 |
between your web server and your Second Life object.
|
| 57 |
|
| 58 |
TO DO
|
| 59 |
-----
|
| 60 |
|
| 61 |
- Limit IP address range to accept requests from to Linden Labs servers.
|
| 62 |
- Map Second Life users to Drupal users.
|
| 63 |
|
| 64 |
Bugs/Features/Patches:
|
| 65 |
----------------------
|
| 66 |
If you want to report bugs, feature requests, or submit a patch, please do so
|
| 67 |
at the project page on the Drupal web site.
|
| 68 |
|
| 69 |
Author
|
| 70 |
------
|
| 71 |
Khalid Baheyeldin (http://2bits.com)
|
| 72 |
|
| 73 |
The author can also be contacted for paid customizations of this and other modules.
|