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