Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Data Transfer Between Scripts

Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
08-03-2009 12:05
HIyas Everyone,

I have a multi-primmed object with the Main script in the root and a script in the child prim.

These scripts have been hard coded with lists containing keys to sound files. I'm now attempting to add a Notecard Reader script into the root prim so I can change out keys via a notecard.

I have the Notecard Reader set up to read and store the data from the notecard. Now I need to transfer the data to my other scripts. I've almost got the parsing worked out but I am thinking a little ahead on a couple of things.

With the Main and Child scripts in operation, I want to drop a notecard into the root prim. The Notecard Reader will gather the data and store it. As soon as it is ready with the new data, I want to basically stop operation of the other scripts, send the data, and then have the other scripts go into a Config Mode. After the Config Mode, the other scripts will go back into basic operation.

I can stop the other scripts and have them change states into a "data acceptance" mode when the Notecard Reader is ready to send data but how do I tell the other scipts when the data transfer is complete? I thought about just using a timer but I want to make sure I get a complete data transfer. What kind of things do I need to look at setting up? All help will be greatly appreciated. Thanx! :-)
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
08-03-2009 12:11
I'm assuming you are already using llMessageLinked to send the data back and fourth between scripts. Just send an end command in the llMessageLinked and have the link_message event look for it as one of the conditions.
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
08-03-2009 14:24
Take a look at this thread, also:

/54/67/331244/1.html

I needed to know how to send several data elements of various types from one prim to another, and there's some good info in that thread on how to send long lists of variables, as needed.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
08-03-2009 18:41
From: Destiny Niles
I'm assuming you are already using llMessageLinked to send the data back and fourth between scripts. Just send an end command in the llMessageLinked and have the link_message event look for it as one of the conditions.


I kind get ahead of myself sometimes. By the time I started editing again, I had it work out. Who knows what I was thinking... lol Thanx! :-)
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
08-03-2009 18:45
From: Ceera Murakami
Take a look at this thread, also:

/54/67/331244/1.html

I needed to know how to send several data elements of various types from one prim to another, and there's some good info in that thread on how to send long lists of variables, as needed.



Thanx, this is where I found the info I needed for parsing my data. I'm about ready to run some tests. I just hope the little dashes in the UUID get included and doesn't mess things up.

:-)