Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can anyone see why this isn't working

Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
12-21-2008 02:30
any idea why this isn't working - just keeps giving a vector <0.000,0.000,0.000>

the note card reads:
<-0.333,0.333,0>
<0.000,0.333,0>
<0.333,0.333,0>
<-0.333,0.000,0>
<0.000,0.000,0>
<0.333,0.000,0>
<-0.333,-0.333,0>
<0.000,-0.333,0>
<0.333,-0.333,0>

The script line reads:

vt_textureParam = (llList2Vector(ls_gridCard,(0 + in_currentSheet)));

where:
ls_gridCard = list created from the card
in_currentSheet = an integer between 0 to 8

???????
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
12-21-2008 03:01
You probably don't read the card right.
What is in the list?
try:
llOwnerSay( llDumpList2String( ls_gridCard, ", ";));
to verify the list
_____________________
From Studio Dora
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-21-2008 05:00
yes.

dataserver returns text from a notecard, if the type returned from the list is text, the result is always zero_vector. either cast the dataserver string to a vector before adding it to your list, or use (vector)llList2String() to retrieve it... either will work

also if you're concerned with data integrity, you can verify that the supplied string is in fact a vector using a small function written by Strife, found at http://wiki.secondlife.com/wiki/Vector
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
12-21-2008 05:37
wowee! - I would never have worked that one out in a month of Sundays - thanks
Siann Beck
Beauty & Braiiiiinsss!
Join date: 14 Jul 2007
Posts: 140
12-21-2008 10:27
This thread brought to you by :)
_____________________
Help find a missing child.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-22-2008 20:38
From: Siann Beck
This thread brought to you by :)

thanks, could've sworn I'd voted for that way back already... not like it matter ::eyeroll::

PS just now read youre forum title.... lol love it =)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -