Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripting

Six Silverman
Junior Member
Join date: 11 Nov 2003
Posts: 1
12-21-2003 09:54
I was wondering if anyone knew of any scripting guides that are more detailed than Lindens'.

There are a few areas I can't seem to grasp, even with looking over other scripts and a fair amount of experimentation.

Also looking for a list of ALL the avatar animations.
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
12-21-2003 10:41
for the gestures, go to the secondlife folder on your comp, and look in the 'motions' folder. heh i am too lazy to retype all of them :D

As to a better scripting guide, jake cellardoor has one that he has been adding to for quite some time that might have the answer to your questions, otherwise, you should post them in the scripting forums, some one should be able to answer them.
_____________________
i've got nothing. ;)
Unseen Marker
Junior Member
Join date: 10 Dec 2003
Posts: 3
12-21-2003 10:47
Yeah, I think just about everyone I've talked to has said the same thing. The best way to learn it is to ask people, maybe they have similar scripts or something they could give you as an example. If you have any specific needs, you can ask about them here and I'll try to help.

Oh, and for the animations, I believe you can find them all locally on your computer. at: C:\Program Files\SecondLife\motions
(or whererever you installed to)

Good Luck
Unseen Marker
Junior Member
Join date: 10 Dec 2003
Posts: 3
12-21-2003 10:48
From: someone
Originally posted by Nada Epoch

As to a better scripting guide, jake cellardoor has one that he has been adding to for quite some time that might have the answer to your questions


Could you tell us where we can find this guide?
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
12-21-2003 10:52
The file Nada is referring is is available at this thread:

/invalid_link.html

Its primary advantage over the Linden guide is that it's much easier to navigate. There is some additional content (for example, the entry for llStartAnimation contains a complete list of all animations), but it is still far from what good documentation would be. A wiki (a group-created web encyclopedia) has been proposed. In the meantime, read the scripting forum and look at the examples in the script library.
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
12-21-2003 13:09
There's also some info in the Alternative Scripting Library:

/invalid_link.html

and I'd like to think the following project contains some useful code and ideas:

http://mmogtoolkit.sourceforge.net

Don't hesitate to send specific questions in game.

Azelda

P.S. Gotchas I came across in my first week. Might be helpful:

- llSetTimerEvent fires way too often, especially for more than a second or so. If you want things to happen at regular intervals, consider using llGetWallclock() in combination with a frequent timerevent

- listeners are not destroyed when you change states, nor when you derez an object. Consider putting all listen commands only in state_entry of the default state

- states delay your scirpts, lose queued events and cause wierd problems. You can live without them

- instantmessage delays your scripts. Avoid like the plague

- state_entry != on_rez You probably want to make a global function Init which you call from both these events

- avatars are always physical. Some functions only work on physical (llMoveToTarget), some only work on non-physical (llSetPos)

That covers most of my first-week problems, except Scripting Philosophy which is the first post in the Alternative Scripting Library.

Just for the record, thanks to Xylor Baysklef, Ezhar Fairlight and Water Rogers for their replying to an endless stream of questions in my first week.
Jack Fate
Junior Member
Join date: 7 Dec 2003
Posts: 11
12-23-2003 14:03
In-game wiki, anyone?

It's an object or set of objects that has commands to fetch a table of contents, fetch text for a given entry, and add/edit/delete/annotate entries. It might need some kind of permissions scheme, and would definitely need to email out its data files every night in case of grief. Ideally it would be queriable from everywhere, though I'm not sure how object IM works.

I don't think this would be too hard, and since I do most of my coding in-game I would be much more likely to use it and annotate it than a web-based system. Anyone interested in working on it?

And, since everything new is old, where has this been discussed before? :)