Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Notecard Keys Should Not Change (*really* defeats purpose of new functionality)

Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
11-23-2003 22:26
I love the new llGetNotecardLine() functionality that allows you to imput a key instead of having the notecard in object inventory.

There's a big problem with it though.
If I make the function get the notecard line of a specific notecard's key, then change and re-save the notecard, the function result doesnt reflect the change.

This is because the notecard's key changes each time the notecard is saved.

This fact really defeats the purpose of the new functionality, I was planning on using the feature to dynamically upgrade stats for several scripts across the world.

Notecard keys should stay the same even if the notecard is edited, to allow remote dynamic updating of data.

Changing the system to allow this behavior will open up *many* new doors to scripters.

==Chris
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
11-23-2003 23:26
Yup, yup, yup. Keep them constant!
Phoenix Linden
SL's Angel of Death
Join date: 3 Dec 2002
Posts: 168
11-24-2003 09:29
Sorry, no-can-do with the current implementation of inventory and assets. I suggest using a listen event to pick up new keys.
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
11-24-2003 15:04
I'm going to jump in here even though I don't know what I'm talking about. :)

Christopher, if notecard keys were constant does that mean you could update scripts all over the world from a notecard in your inventory and they wouldn't each need that notecard in their contents?

If that's the case we need constant notecard keys and llWriteNotecardLine().
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
11-24-2003 15:41
amusingly enough, changing the name of a notecard doesn't change its key. and all notecards that are created, and not edited have the NULL_KEY. Why does this matter? one of the doors i like to make checks to see if it has an inventory item of the name of the avatar, and then does stuff from there.

...Chris, I am not sure why, but there is always a franticness about your posts, that i get a huge kick out of :)
_____________________
i've got nothing. ;)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
11-24-2003 22:22
Yay! I just found out the key to getting a linden to reply to a post! COLOR!! Hehe

From: someone
Originally posted by Julian Fate
I'm going to jump in here even though I don't know what I'm talking about. :)

Christopher, if notecard keys were constant does that mean you could update scripts all over the world from a notecard in your inventory and they wouldn't each need that notecard in their contents?

If that's the case we need constant notecard keys and llWriteNotecardLine().


Yup, exactly what I think :D


From: someone
Originally posted by Nada Epoch
...Chris, I am not sure why, but there is always a franticness about your posts, that i get a huge kick out of :)

hehe :cool:

From: someone
Originally posted by Phoenix Linden
Sorry, no-can-do with the current implementation of inventory and assets. I suggest using a listen event to pick up new keys.


Aww... Hmm....Well... then why does the llGetNotecardLine() continue to read the 'old' notecard data, as if it was still associated with a notecard in my inventory? Isnt the asset trash collector supposed to get rid of these?

::ponder:: I think the only way, then, to automatically find the key of the 'new' saved notecard would be to predict the new key of the notecard... pert near impossible to do.

We need an llGetOwnerInventory(key Inventory) :p

==Chris
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
11-25-2003 11:20
Or put the notecard in an object with a known key and... Aw, nevermind. It's complicated and cumbersome and probably not what you are looking for.
_____________________
~ Tiger Crossing
~ (Nonsanity)