Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Idea for a script, can it be done?

Kathmandu Gilman
Fearful Symmetry Baby!
Join date: 21 May 2004
Posts: 1,418
05-16-2005 00:32
In the spirit of helping to make SL better due to too much inventory, there are scripts out there that can duplicate objects( mirror?), could you not create a script that collects all the information about an object and create a string of numbers or whatever that can be cut and pasted outside the game (word, Notepad, etc) and if you wanted it back you just paste it back into the script. Is this possible? I would love to be able to do this for complex items I have made, a back up if you will so I can delete it out of my inventory. It would also be great to store things I don't use but may need down the road.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-16-2005 02:43
Already plan to. Again, this personal project is on hold until the bulk of my Game Dev contest work is complete.

But here's a good place to start:
http://secondlife.com/badgeo/wakka.php?wakka=llGetPrimitiveParams
_____________________
---
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
very possible
05-16-2005 08:01
Now that we can get prim parameters and textures, you could store all of you items on your own harddrive in text files, including the keys for the textures.

Might even be good to store the keys for the textures somewhere and keep the originals in boxes something.. ooh or save them to your hardrive named their key hehe.. Not sure how much load that would save having all the textures in an object, should at least save time loading inventory, and not as much junk to run through the search engine.

Now I'm getting all sorts of crazy ideas..
Heratiki Turnbull
Juggalo Ninja Master
Join date: 2 Mar 2005
Posts: 81
can't wait to see it...
05-16-2005 08:20
In your project are you planning on making a scanning Prim that will basically attach to an object or be rezzed near it so that it may scan the object and create a notecard with all available parameters in it... It would be very interesting if this would be possible for then ppl who wanted to release open sourced objects could merely post the info on the forums and then copy that over to a notecard and have another scripted prim that reads the notecard and produces the object... Would be a very nice way to store your objects off world... Simply click one prim and get a notecard and then delete the object so that instead of a billion objects in your inventory you would only have that one little notecard or maybe a few notecards depending on the size of the build... Inventory space saver.. SL FPS saver and a great way to just copy and paste your loved objects to and from your hard drive... This could also be a great way to cut down on litter thoughout the SL world... Or heck even sell objects... Just give the person a preformatted NO MOD NO COPY version of your notecard (If that's possible) and then let them plug it into the building prim... Ok I'll quit rambling but I can't wait...

Thanx for listening...
Heratiki Turnbull

** Above All If Ever You Fail Ask For Help **
Alex Edo
Insert Brain Here...
Join date: 27 Feb 2005
Posts: 108
Mirror Tool
05-16-2005 08:23
There is an item called mirror tool.

You have to own the prim and have mod rights (full) to do this.. it uses script and stuff.. not sure how it works...
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
05-16-2005 10:46
this isn't hard to do at all, however... it make it pretty easy to become the creator on objects you only have mod perms on. in otherwords if you have mod copy, youcan get resell. if you have mod resell, you can get copy. This is a danger of leaving objects modify. So, for the time being, I'm not writting this :). sorry.
_____________________
Kathmandu Gilman
Fearful Symmetry Baby!
Join date: 21 May 2004
Posts: 1,418
05-16-2005 11:16
Can't you write the script to only do your objects or objects you have full permissions on? I wouldn't want to use it for mass theft, just store my stuff offline. You can get the creator along with other paramiters can't you and the perissions I would think. If you imbed a code in the string that will unlock it only with the script it was encoded with, would that prevent stealing maybe?
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
copy objects
05-16-2005 11:49
if(llGetCreator() != llGetOwner())
{
llSay(0,"Take a flying leap.";);
}


It still has issues which I won't go into. Might could check the permissions to make sure it was fully permissioned, I haven't looked into the new llGetPermissions stuff yet, not sure what all it can pick up, if it just checked the object it's in or the entire set.

and people wonder why I don't sell most of my stuff modify..
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-16-2005 14:37
Let's not start another discussion on permissions, please. It's been done over already, largely in general, and people also happened to flame me over it.

As far as I'm concerned, that debate came and went. Here are the highlights, though.

First off, the code was not meant as a copier - but rather, a tool to "mirror" prims along an axis, so if you have --// you could get \\--. The debate was that two "mirrors" equals an original copy of the object, and the item made "new" prims instead of using existing ones.



So I:

- Talked with group of residents about posting a "Prim Mirror," an object that was open source and reflected prims along a given axis.
- Talked with Lindens about posting said code. Given an okay.
- Posted support group thread here in Scripting Tips. Little dissent.
- Posted code found here.
- Pull code first time to write a No Modify API for concerned vendors.
- Petition Lindens for New Permissions all over the forums and in-world
- Repost code and API
- Pull code again when people flame me over it anyway
- Rewrite code to avoid "Copier" and just use prims the owner has. That's what's posted now.



Now, I'm not stupid - which is why I actually went to so many people before posting the code first. Furthermore, it did not (at the time) copy textures, and used precisely what Zalandria just posted as a failsafe.

Of course, lo be I to tell people I worked hard before anything saw the light of day.

So if you have any questions pertaining to the logic of llGetPrimitiveParams, I'm more than happy to share - it's not a "bug" so much as a common misconception with how the system works. But I'm not going to go into detail about how to copy others' work, nor did I intend such a tool to be used as such. It just happens people overreacted, and placed a bounty on my head for something I already thought about.

Hell, I even apologized - even though I expected it, and tried with all my power to prevent that reaction short of burying what actual good the code could do. :rolleyes:

Case closed.
_____________________
---
Kathmandu Gilman
Fearful Symmetry Baby!
Join date: 21 May 2004
Posts: 1,418
05-16-2005 19:18
Scratches head... ok.

What you are saying is the general fucktardedness of the SLuminati is such that it couldn't be done without an uproar? Even with some safeguards in place? In other words, could you pretend I am a 4 year old and tell me what the problem is? My coding skills are on par with a bucket of rocks and I haven't ever been accused of being the sharpest tool in the shed.

I mean, this is a good idea right? Storing items outide of SL? The code is possible and even the permissions thing can be worked out, or not? I wouldn't open source it on the forums since it would be easy for the safeguards to be hacked.

To be honest, I don't feel it should be the users who have to make something like this, LL should have done this long ago since the lack of it is causing problems with the game. Even so, we are all in the same boat and if the boat's crew won't bail out the water, we are going to have to or we all sink.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-16-2005 19:48
From: Kathmandu Gilman
What you are saying is the general fucktardedness of the SLuminati is such that it couldn't be done without an uproar? Even with some safeguards in place?

Pretty much.

The short and simple version is people are so afraid their content will be usurped that they're quick to kill the messengers, so to speak.

From: Kathmandu Gilman
I mean, this is a good idea right? Storing items outide of SL? The code is possible and even the permissions thing can be worked out, or not? I wouldn't open source it on the forums since it would be easy for the safeguards to be hacked.

To be honest, I don't feel it should be the users who have to make something like this, LL should have done this long ago since the lack of it is causing problems with the game.

I feel the Lindens would at some point without our help - but at this point, they're too busy saving our assets to shoot for that right now.

Without offering up a name, I've actually gotten an okay from one of the top Lindens for this kind of pursuit, and know exactly how it can be done (XMLRPC, Python, Blender). I just need the time to sit down and code it, which is short for me at present.

So yes, it's a good idea - but a controversial one for the more worried residents.
_____________________
---