Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to build a plugin for second life?

CD Salamander
Registered User
Join date: 6 Apr 2009
Posts: 8
04-06-2009 19:53
Hello,

I would like to write a plugin to observe the positions and velocities of avatars nearby me.
What I can find now is the page to describe Plugin architecture on SL page,
but it seems the information brings me more question marks.
http://wiki.secondlife.com/wiki/Plugin_architecture

any sample, example and tutorial would be great help.

thanks a lot
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
04-06-2009 20:21
Not sure Animation Tips is the best forum to post questions about software development, but...

There's currently no supported method for developing plugins. You could conceivably get the open source client code and build any desired functionality into that, but that's probably much more involved than typical plugin development.

I don't know precisely what kind of functionality you need, but the ability to observe the velocity and position of nearby avatars (up to 16 of them, anyways) can be done via fairly simple LSL script.

You might also consider looking into the libopenmetaverse codebase. With that, you could quite easily develop a proxy that can track ObjectUpdatePacket and it's siblings looking for packets that relate to avatars, and display that information in any way you wish.


.
_____________________
CD Salamander
Registered User
Join date: 6 Apr 2009
Posts: 8
04-06-2009 20:58
Hi RobbyRacoon,
Thank a lot for your reply, this would be a great help to me.

I am planning to design a spatial voice chat system ( so this thread shouldn't be here ),
so I need to collect the spatial information of nearby avatars.
I was thinking if I could collect data and maintain them using database by attaching a plugin on second life viewer side, but I cannot find enough information to do that.

I will learn how LSL and libopenmetaverse work, thanks for suggestion.