Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Clicking on a notecard produces an inventory change event

Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-13-2006 21:16
Has it always been this way?

* Drop a valid notecard (i.e. one that contains some text) into a prim
* Drop a script in that says something on a CHANGED_INVENTORY event
* Edit the prim, double click the notecard to open it
* Click somewhere in the notecard. The script will get a CHANGED_INVENTORY event
* Further clicks don't do anything
* Clicking outside the notecard and then back in the notecard produces another event

I noticed this today, I don't know if it's always done this.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-14-2006 06:13
send a bug report.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
12-14-2006 06:36
This could be useful for some purposes though.
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-14-2006 08:02
I'll bug report it, I just wanted to be sure it didn't always work this way, or if there's a reason for it.
Zaphod Kotobide
zOMGWTFPME!
Join date: 19 Oct 2006
Posts: 2,087
12-15-2006 04:27
the change event should only trigger (in my way of thinking) if the text in the notecard is dirtied. I noticed this same thing last night, and it's mildly annoying, and no it wasn't like this prior to wednesday's update.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
12-15-2006 04:56
From: Geuis Dassin
This could be useful for some purposes though.



It would only be useful if you could get a what changed notification?
Just clicking on it will not tell you what has changed so you cannot action based on the selection.
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
12-15-2006 05:05
Previously it only changed when you saved the notecard if I recall correctly. Which means that this is potentially quite a severe problem, since scripts which use the changed() event to determine when someone has edited a parameter notecard, then re-read it on that event, will now not work unless you open the notecard, change it, save it, then open it again. They'll trigger when it is initially opened only.

I'll test it out when I'm next able.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!

http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal

http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-15-2006 08:04
No, you get a second changed notification when you save it.

I'm guessing some of the focus changes broke it. I see the changed notification if I shift focus away from the notecard and back to the notecard.
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
12-15-2006 08:37
The event should only be triggered on save. Events at any other time are a waste of the sim's time, since any changed information can't be read by the script until it's saved.

Please file a bug report (ingame, under help).