Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Dance machine source help wanted

SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
08-01-2004 19:09
I would like to put a dance machine (multi-user animation controller) like the Dance O Matic or it's competitors on my property. I have spent myself poor now, and would like to save money by writing my own, but I am baffled before writing even one line of code.

According to the help file, llStartAnimaton(string anim ) applies the animation to the owner of the object the script is in, if I am reading things right, but dance machines make animations take effect without visibly transferring any ownership.


Thanks for reading.
Rysidian Rubio
Ruby Red Head
Join date: 14 Jan 2004
Posts: 263
08-01-2004 19:54
Suezanne, this isn't a very easy thing to do, especially if you want to do it right, and now have the machine spitting out errors every few seconds.

I've been writing my own dance machine (haven't got far since i've been very busy IRL) but it's not such an easy thing as you might think. Still if you have patience you can do it!

A bit of help:
llStartAnimaton(string anim ) starts the animation for the avatar that it has permission to animate, which you get by using llRequestPermissions with PERMISSION_TRIGGER_ANIMATION.

If this goes right over your head, then IM me in about a week and I'll give you one of mine (I should be done by then hopefully), just because you asked so nicely :)
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
My Condescending Response Detector is firing full blast.
08-01-2004 21:22
Rysidian -

Your response is annoyingly condescending.

I did not say that writing a multi user animation controller was easy, nor did I ask for some magical way to make it easy enough for my teeny little brain to handle.

Obviously I would want a program placed out for public use not to be spitting out error messages due to slipshod coding. Duh!


The documentation for LSL says this about llStartAnimation:

llStartAnimation(string anim);

Starts the specified animation for the object's owner.

I read that as meaning that it animates the object's owner - not the person who is clicking on the dance machine, but the owner of the object - the person whose name appears in the owner field of the general tab when you right click on the object the script is in - because "object's owner" is what the specs say.

So - are the spec's wrong, or am I just not reading them right?

Your phrase "If this goes right over your head" - what is up with that? You didn't say anything complicated.

There's no reason to give me a complete script for asking nicely for one because I didn't ask for one at all. I was asking about the propriety of the documentation's use of the word owner.
Rysidian Rubio
Ruby Red Head
Join date: 14 Jan 2004
Posts: 263
08-01-2004 22:31
Suezanne. I apologise. I'm very sorry, I didn't mean to be condescending. I was trying to be helpful, but realise that I wasn't very helpful at all.

Please let me explain my response. I don't know you and I guess that because you said that you were baffled before writing one line of code I assumed that you were not good at scripting. I am sorry for that I should not have assumed that.

"If this goes right over your head" -I teach scripting to new people and people that have not had scripting experience and most of them do not understand things like permissions. I didn't mean this to sound condescending or rude, just to say that if you don't understand then I am willing to give you a copy of mine. (which I realise that you didn't ask for, I was trying to be nice by offerring it).

Also when I said "without spitting out errors every few seconds" I didn't mean that you would do this, just that I have seen many machines of this type that spit out lots of errors, which annoys everyone around. For example when a person who is being animated by the machine teleports away the machine gives an error in alot of cases.

I'm really sorry for my post. I agree that it does sound condescending when I re-read it, but I didn't mean it to.
To answer the question that you did ask.

llStartAnimation(string anim);
Starts the specified animation for the object's owner.


Yes the documentation is wrong or at least not clear for this. The function animates any avatar who has granted permission for the script to animate him/her, not just the owner.
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
08-02-2004 02:57
Yeah, Suezanne, the official LSL docs are full of lots of little lies like that. This is because the Lindens are mean and hate us. :)

Wiki is your friend!
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
08-02-2004 04:12
I can just give you a copy of my dance machine for free if you want.
Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
08-02-2004 05:05
Would that be just the machine or the code, too, Eggy? I have a machine done except for synchronization, which is where I'm having my problems.
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
08-04-2004 13:00
Catherine, this is a very good example of the Wiki being one's friend. One should not even read the help file at all, huh? In fact, if the help menu links to a local page, one might replace that page with a page that just has a link to the wiki.

Eggy, I'd love to have a copy of your dance machine.

Rysidian, sorry for being a bit, umm, grouchy.
i


What's going on is that I have 14,384 sq. m. of land that i would like to put to good use to let other's enjoy a nifty cool sweel and keen setting, free of excess buildings, without yet another satanic cult headquarters motif dance club, bereft of rotating signs and other eyesores.