Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question about owners and authorized users etc.

Risen Ventura
Registered User
Join date: 31 Oct 2006
Posts: 5
01-12-2009 11:06
I know you cannot write to or append to a notecard. I looked for it once and i have seen the sticky on what you cannot do.

That in mind i have used things that allow you to add users or owners, even add friends and enemies etc. How is this possible without writing to a notecard? Writing to a list in a script would be reset losing the owners and user upon hud remove and reattachment I would think or in the case of a door, tper, other in world console any major sim blip would seemingly cause it to lose this info i would think perhaps I am wrong and the list stays intact unless explicitly reset.

I am interested in writing a device that takes names for an ongoing process storing them and wondered how the in world devices and huds got around this seeming limitation.

Thank you ahead of time for your helpful and positive reponses :)
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
01-12-2009 11:09
Yep, scripts cannot create or modify notecards. Or really modify any asset, I think.

The products you've seen require the owner to manually edit the notecard.

From: Risen Ventura
..Writing to a list in a script would be reset losing the owners and user upon hud remove and reattachment I would think or in the case of a door, tper, other in world console any major sim blip would seemingly cause it to lose this info i would think perhaps I am wrong and the list stays intact unless explicitly reset.

Yes. The list should only go away when the script resets - a rez/attach/change won't cause it to reset.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Risen Ventura
Registered User
Join date: 31 Oct 2006
Posts: 5
01-12-2009 11:14
No the things i have used that i am referring to allow you to speak a command and say somethig like /24add Username

Or in the case of the popular xcite products their hud had a feature where it seemingly used a sensor to tell who was around and let me add the owners from the menu or say a command to add them.

in neither case such as some doors and house scripts or the xcite hud did i have to open a notecard and add the user name directly though i have seen things where you did. i have even made those but for this idea it would not be sensible since i need to allow anyone to basically register at anytime.

Thank you for the response though :)
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
01-12-2009 11:32
And you've seen those products remember that data after a script reset?

Only other thing I can think of is that they're storing the info in some external database, probably a web server somewhere..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
01-12-2009 12:36
Yea, some of the newer xCite things are web integrated.

Other than that, they really are just stored in a list. Scripts don't reset all that often if you're careful.
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
01-12-2009 12:57
There are a few tricks that allow you to store data in some of the object's fields, like for example, the description field. Those tricks are usually ok for storing small amounts of data.

Sounds like you're talking about many names so those techniques would not work for you. Short of that, storing the names in lists in the script or to an external database are the only way to go. As long as you don't reset the script you'll be ok. If you do have to reset the main script, think about an auxiliary script where you store the names and that communicates with the main script via llMessageLinked.