|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
04-15-2007 12:57
Just today (4/15/07 about 19:00 GMT)... ...I have found that writing a simple script that does nothing but read a notecard line... ALWAYS returns an empty-set. Someone please confirm/deny this bug for me?
string note; integer line; key query;
default {
state_entry() { note = llGetInventoryName(INVENTORY_NOTECARD, 0); line = 0; query = llGetNotecardLine(note, line); line++; }
dataserver(key id, string data) { if(id != query) return; if(data == EOF) return; llSay(0, data); llGetNotecardLine(note, line); line++; }
}
I guess I ought to put the notecard lines I'm attempting: 1.Home:<99,66,21.75> 0.2mFloor:<99,66,27.5>
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
04-15-2007 13:24
That script and notecard worked fine for me.
Though to get the second line to print in your logic you need to change the dataserver line
llGetNotecardLine(note, line);
to:
query = llGetNotecardLine(note, line);
Rj
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
04-15-2007 13:48
Yea...sorry...was just writin' that fast for the bug-testing...
...I actually worked it a bit farther and it seemed that it was the notecard itself that was the problem...
...copy/pasting the exact same information from the notecard to a different notecard ended up with a functioning script...but using that notecard itself...renamed/re-data'd/etc...always failed.
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
04-15-2007 13:54
No problem. Yeah looking at the earlier logic, if the first line in the notecard had been blank (or some corruption of a new line perhaps) the script would have printed a blank and nothing else, since the dataserver event would always have returned after the first pass since the query vartiable wasn't keeping up.
Rj
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
04-15-2007 15:31
In any instance...that's a disparaging reminder that holding data on a notecard isn't "safe"
_____________________
--AeonVox--Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
|