Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help me Find or Kill Sccripts

InuYasha Meiji
Half Demon
Join date: 14 Mar 2005
Posts: 127
05-24-2005 12:26
ok, I'm new to scripting, and maybe I missed something simple in a class. I am working on a new Tricorder for a Startrek group I've joined. I made it very detailed with lots of Prims and blinking lights. Once I got the lower half done, I wanted to check to see if the script I used to make my Avatar's arm hold the Tricorder out actually worked. It did. But then I forgot to remove the script, and added more parts to the Tricorder and attached (linked) the items.

Then I noticed there was no longer anything listed in the item's contents and without checking to see if the script was still running I added the script again. I had a few more details to add, and did so. Now again, there is no longer any contents listed. I attached my Tricorder to my right hand and the Tricorder sent me a message, "This object wants to animate your character... blah blah.. YES or NO" Twice!

This means apparently that the script is running two copies. I unlinked the whole thing and I looked in each prim, for the script, and can no longer locate an object with a single script in it.

Now for the question.. How do I find the scripts currently running in my object without starting the build all over from scratch. Or what would I do to disable all the scripts in my finished model and put in ONE new one?

How can I make changes to the script if I can't locate it??

I need help,,Please I have two projects in limbo waiting for a reply to this..
Zindorf Yossarian
Master of Disaster
Join date: 9 Mar 2004
Posts: 160
05-24-2005 12:55
Well, it might help to select a group and use Tools > Recompile scripts in selection. That would tell you whether there are any scripts in the group. Perhaps you could select half, check for scripts, if there aren't scripts delete those parts (this would just be to get them out of the way). Then select half of that, check, delete, etc. Eventually you can narrow it down.

You can also use the llSensor function to detect objects that you own which have scripts in them, but I'm not sure of the best way to then use that to find out exactly which prims the sensor found. You could have it say the name, or stream particles to it. But the first method would be simpler.
_____________________
Badass Ninja Penguin: Killing stuff it doesn't like since sometime in May 2004.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-24-2005 15:13
From: InuYasha Meiji
How do I find the scripts currently running in my object without starting the build all over from scratch. Or what would I do to disable all the scripts in my finished model and put in ONE new one?

Contents for an object are kept in two ways - at the "root" level, and by each primitive. When you select an object, all you will see are the root scripts, which can be a little confusing.

However, you can unlink the object - or even better, use "Edit Linked Parts" - to see the contents of each primitive. The scripts will then appear in the "Contents" tab with the prim selected.
_____________________
---
InuYasha Meiji
Half Demon
Join date: 14 Mar 2005
Posts: 127
Tried that, in a way..
05-25-2005 11:32
From: Jeffrey Gomez
Contents for an object are kept in two ways - at the "root" level, and by each primitive. When you select an object, all you will see are the root scripts, which can be a little confusing.

However, you can unlink the object - or even better, use "Edit Linked Parts" - to see the contents of each primitive. The scripts will then appear in the "Contents" tab with the prim selected.



I don't know if it would be different, but I'll give it a try. I already unlinked the whole thing and looked in the contents of each prim, and found nothing. I wouldn't think I had a script at all, if it wasn't for the request (Twice) for the object to animate my AV.

-Inu
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
05-25-2005 20:24
Alternately, are you sure the script isn't just asking twice? Did you disable the script, then try?
_____________________
---
InuYasha Meiji
Half Demon
Join date: 14 Mar 2005
Posts: 127
I think you midssed the beginning
05-25-2005 22:09
From: Jeffrey Gomez
Alternately, are you sure the script isn't just asking twice? Did you disable the script, then try?


The script isn't asking twice. I realize I accidentally put the entire script in twice because I created half the object and added a script to make my character hold out his hand and hold the object. I did it because I wanted to see if I was creating the device the correct size, for my avatar to hold, in the palm of his hand.

Once I saw he could, I then continued to finish the item by adding more prims. Then looking in the contents I thought it was an error and added the script again, and continued to create.

Then I attached the item to my avatar's hand only to have the question "This object is trying to animate your avatar. Blsh Blsh..." Twice. When I realized what I have done, I unattached the item, placed it on the ground, and tried to edit the item. I found nothing in the contents of the linked item. I tryed to unlink it and check each part, I found no Script.

I tried leaving it linked, but checking the box that says something about editing linked prims. I still found no scripts. I tried using the menu option of recompiling the scripts. It told me the number of prims it was compiling, and it gave me the script names. Yes, there were two.

But once it said done, it only gave me the option of closing the window.

I still have no idea where these scripts are, or how to disable them, or find and remove them.. I'm starting to think I'm going to have to start the build all over again. Damn, what a waist of time a positioning of 53 prims.

-Inu