Dirk McKeenan
-
Posts
5 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by Dirk McKeenan
-
-
1 hour ago, Wulfie Reanimator said:
And if you were to go the viewer-code route, you could either make an extension to RLV (since that's a system that bridges the gap between LSL and viewer functionality via llOwnerSay commands), or look into the Lua scripting system used by Cool VL Viewer.
I don't think there's a way to get data back into the LSL script though, since scripts run exclusively server-side.
This sounds an appealing path. I'll pose the same question as above to see if there is a not-as-simple-as-hello-world example that I can play with? I find the idea of extensions to be less daunting than the thought of trying to create a full viewer code fork. Would this be a situation of needing to work with, for example, the RLVa folks, with a specific viewer group, or all alone out in the cold with a full fork?
-
10 hours ago, Coffee Pancake said:
I think you're heading into the realm of viewer code at this point.
The viewer is open source so are all of the third party projects. How's your C++ ?
My strength is in C, but I suppose I have never had a real need for C++ for a project. Probably worth looking in that direction.
-
11 hours ago, Gabriele Graves said:
You cannot do this from LSL. There are no inventory management functions. You would have to write a bot to do it.
Thanks, Gabriele. I've not written a bot before, but I can see where that might be interesting. Are there any links you know of that would give a simple starter example, possibly a little less simple than a "Hello, world" version?
-
I have a background in programming, but not in LSL so much. I've been looking around and trying to find example LSL scripts for this, but not having much luck. In fact, so far, I'm getting the impressions it can't be done.
What I would like to do (and I have several different goals in mind) is having a way to start from a given folder and do a tree search. Maybe just traverse the tree and return a list of objects in the tree.
One project is to have a script that traverses a tree, making note of the folders, then be able to create the same tree (even if for another avatar) in another target folder.
Another project is to search for some condition through a tree of folders, for instance, return a list of empty folders.
I'm not asking for somebody to write these for me, that is most of the fun. What I'd like is suggestions on the functions I should be looking at and, just maybe, some sample scripts that do something similar.
I appreciate any help / guidance! Thanks in advance.
- 2
Crawling the inventory folders
in LSL Scripting
Posted
Thank you, KT. Yes, this is intended to be run by the owner (me, my partner, and an alt or two). Two things I have wanted specifically to try to do are:
This has primarily been for managing folders in RLV for the CTS Wardrobe, but I'd expect that I might want to act on folders not under RLV which would probably put me into the LSL realm of "sorry, can't do that".
I had thought it would be great to be able to create a traversal routine and pass it a function to perform on each node discovered, but I can see how that would quickly get into a creepy world.
KT, are you aware of any options for either of the above bullet point ideas?