Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to set permissions for a customized object

Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-08-2007 13:30
Hi!

I have just made an object with an script inside that has to be customized for any person who buys the object. So, when someone buys it, they have to contact me, then I go where they want to instal this object and I adjust the coordinates for it to work there.

My doubt is: How Do I sell this product? If I put it in a vendor, when someone buys it, the object's owner changes, and then I can not modify the sript inside the object. Is that right?

In that case, maybe I have to sell another object, that has no scripts inside. The customer contacts me and then I go and i take a copy of the right object from my inventory, I customize it and then I leave it working there. But in this case the owner of the object will not be the person who bought it but me.

Could someone direct me about this?

Thanks.
Ged Larsen
thwarted by quaternions
Join date: 4 Dec 2006
Posts: 294
02-08-2007 13:59
From: Azul Wilder
Hi!

I have just made an object with an script inside that has to be customized for any person who buys the object. So, when someone buys it, they have to contact me, then I go where they want to instal this object and I adjust the coordinates for it to work there.

My doubt is: How Do I sell this product? If I put it in a vendor, when someone buys it, the object's owner changes, and then I can not modify the sript inside the object. Is that right?

In that case, maybe I have to sell another object, that has no scripts inside. The customer contacts me and then I go and i take a copy of the right object from my inventory, I customize it and then I leave it working there. But in this case the owner of the object will not be the person who bought it but me.

Could someone direct me about this?

Thanks.


I haven't done this before, but what about having the customization parameters in a NOTECARD that the client CAN modify, and then the no-modify script reads the customization parameters off the notecard?

A problem I foresee is if you want it so that the product can only be customized ONCE. In that case, I'm not sure how'd you go about doing it.
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-08-2007 14:14
Well, that's an idea but I don't want to complicate life to the possible clients. It is not really easy to customize it.
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
02-08-2007 14:50
But you could make the modifications to the notecard and give it to the client, who can add it to the object that he purchased.

Or you could sell the object without the scripts that need to be modified. Then, you modify the scripts and give them to the client, who puts them inside the object.

Might one of those choices work?

Baron H.
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-08-2007 22:41
Thanks for your ideas. I will be thinking a bit more on this before starting to sell this product.

I will post here the solution.

Thanx for your help.
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
02-08-2007 23:14
From: Azul Wilder
Well, that's an idea but I don't want to complicate life to the possible clients. It is not really easy to customize it.


Probably the easiest way to make life easier on the customer would be to read the values from a notecard. You're only other option is to manually make sales, which is not acceptable. Using editable notecards is used quite often, and, along with decent documentation is not too difficult for the customer to handle.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
just a thought
02-09-2007 00:24
maby you could setup your options on a webform that emails the client, which they can then copy and paste into a notecard, which altho seems to me to be a pita on the clients end, assures proper setup and other fun stuff like encryption :0
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
02-09-2007 12:35
You mentioned adjusting coordinates, couldn't the script just get the object's current coordinates and make the necessary adjustments itself? That would be the most user friendly way to do it.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
02-09-2007 13:50
If you can giuve a few more details about what needs to be customised?
Often its useful to have a setup script, one that is only used to help configure the object.
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-10-2007 01:15
Ok, excuse me for the delay, I've been busy in RL.

It is an elevator system, with two flying dishes, one of them is used to go up to the upper level of the house or mall, etc. And the other dish is used to go down to the lower level.

Both dishes are activated when someone is sitted on it, when this happens the dish goes to the upper (or lower) floor and then it comes back to the original position to wait for the following person to transport.

What I have to customize is the original position and the coordinates of the route in both dishes script.

I don't know if there is a way to arrange this coordinates by scripting. But I think that I have to go to the exact place where the elevators will be working and so customize the scripts. Which I don't care, there is no problem in doing this work as part of the delivery process.

The question is how to sell this system. In a vendor where the buyer pays for a legitimate installin order... and then an engineer goes to the place and installs the system? I think this could be a good idea. But if doing so how do I get this elevators (objects) change the ownership to the buyers name?

What do you think?
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-10-2007 01:19
From: Johan Laurasia
Probably the easiest way to make life easier on the customer would be to read the values from a notecard. You're only other option is to manually make sales, which is not acceptable. Using editable notecards is used quite often, and, along with decent documentation is not too difficult for the customer to handle.



Hi Johan!

May you tell me where to find the information about "reading values from a notecard", and regarding "editable notecards"?

Thanks a lot.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
02-10-2007 03:17
Most systems use notecards for this sort of thing.
Or you can encode the positional data into the description field of a prim.

Basic's of a notecard reader are a dataserver event.
You request a notecard line using llGetNotecardLine then wait for the responce.
Within the dataserver event you need to process any data you do receive

CODE


string strNotecard = "Config";
integer lineCounter = 0;
key dataRequestID = "";

state readNotecard
{
state_entry()
{
lineCounter = 0;
integer itemtype = llGetInventoryType(strNotecard);
if(INVENTORY_NOTECARD == itemtype)
{
dataRequestID = llGetNotecardLine(strNotecard, lineCounter);
llSetTimerEvent(10);
}
else
{
llOwnerSay("Error - configuration notecard missing. Default parameters only");
state Running;
}

}

dataserver(key queryid, string data)
{
//Check to make sure this is the request we are making.
//Remember that when data comes back from the dataserver,
//it goes to *all* scripts in your prim.
//So you have to make sure this is the data you want, and
//not data coming from some other script.

if(dataRequestID == queryid)
{
if(data == EOF)
{
state Running;
}
else
{
GetParameters(data);
lineCounter++;
dataRequestID = llGetNotecardLine(strNotecard, lineCounter);
}
}
}

timer()
{
llOwnerSay("Time out reading notecard.");
llSetTimerEvent(0);
state Running;
}

}
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
02-10-2007 06:05
This is very interesting. I didn't know about that as I'm new to LSL scripting and I'm learning the language. In fact that script for the elevators is my first LSL script.

I will study it and I will decide if applying it.

Thanks a lot you all are very knid.
_____________________
First goes before
AW Devices