Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linking multiple scripted items...

Quik Taurog
Quik Taurog
Join date: 17 Aug 2007
Posts: 30
09-01-2007 15:15
I put this post in the "Building Tips" forum as well, since, I'm not sure what category it belongs in or if more than one apply...

I have a complex object that has to run 3 scripts...I also want to put an ad board on each side, but, every time I link them so that they will move with the object, the linked item gets absorbed by the whole and the script for the auto rental ad board stops working...Is it possible to build it differently so that it will act as part of the overall object but still work...I guess (If it IS possible) I almost need some way (Prolly a script, so, wrong forum, sorry) to ATTACH the ad board, like you attach items to an avatar, but, I am SOOO noob here, I have no idea if its possible to attach an item to a created object...I have seen working helicopters In_World that MUST be running multiple complicated scripts and have complicated components that must be linked to be part of the whole...Any assistance or advice with this confusing situation would be greatly appreciated...Thx

Quik...See ya In_World!
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
09-01-2007 15:28
From: Quik Taurog
I put this post in the "Building Tips" forum as well, since, I'm not sure what category it belongs in or if more than one apply...

I have a complex object that has to run 3 scripts...I also want to put an ad board on each side, but, every time I link them so that they will move with the object, the linked item gets absorbed by the whole and the script for the auto rental ad board stops working...Is it possible to build it differently so that it will act as part of the overall object but still work...I guess (If it IS possible) I almost need some way (Prolly a script, so, wrong forum, sorry) to ATTACH the ad board, like you attach items to an avatar, but, I am SOOO noob here, I have no idea if its possible to attach an item to a created object...I have seen working helicopters In_World that MUST be running multiple complicated scripts and have complicated components that must be linked to be part of the whole...Any assistance or advice with this confusing situation would be greatly appreciated...Thx

Quik...See ya In_World!



You're going to need to go into a little more detail about the object and the 3 scripts. As far as I know, there's no problem with multiple scripts running at the same time on a multi-prim object.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-01-2007 15:31
Glad to see an interest in scripting, but unfortunately..........................................

You won't find many friends of ad boards in the forums.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Quik Taurog
Quik Taurog
Join date: 17 Aug 2007
Posts: 30
09-01-2007 16:33
From: Jotheph Nemeth
You're going to need to go into a little more detail about the object and the 3 scripts. As far as I know, there's no problem with multiple scripts running at the same time on a multi-prim object.


Okay...I created an aircraft, a nice one that I put ALOT of work into...I want to tow ad boards behind it (It's not big enough to fit an avatar inside, but, that wasn't going to be necessary if I can get it to fly pre-programmed routes automatically). I want to add a compass and altimeter and write a script of my own to "GET" the inputs from the compass and altimeter, along with the waypoints from the nav script and fly pre-programmed routes, sans pilot, so that I don't have to be In-World for the thing to fly its course, and do so at pre-determined time intervals...I have contact with a scripter who is working on a navigation script...I also have a script built into the ad board that works in an automatic payment mode...when a resident clicks on the board, it asks for the rental fee, then provides them the means to upload the ad they want to run...

So, Compass, altimeter, nav script, my script to "automate" the flying I understand would all work as part of the contents for the whole object...I guess 3 scripts NOW, but, ultimately 5 for the finished aircraft...

Sorry for the long winded explanation, but, I think I'm starting to GET IT now...So, even though the prims are all linked, the script belonging to a specific prim remains a property OF that prim, regardless of whether other prims are linked to it or not?




As far as residents not having much enthusiasm for ad boards, I obviously did not know that and for whatever reasons they don't, I can respect that, but, if I knew all of this stuff I wouldn't have bothered to come in here and ask the ones who do know...I didn't intend to offend anyone, just trying to make the most of my own In-World experience and make of it what I envision, no less then I would expect of them or the courtesy I would extend to them if the shoe was on the other foot...I have seen a business in a box for a street corner drug dealer, that's just wrong, yet I see no comments or complaints against it...I find that odd in comparison to opponents of ad boards...I digress...For the most part, the information exchange here on the forums has been very eye-opening and people have been most accomodating with previous posts I have made asking for help...I should hope that will be a continuing trend in the interest of keeping the community growing and the boundaries pushed as far as whats possible In-World!

No offense intended...See you In-World!

Quik
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-01-2007 17:14
No worries, you didn't offend me. The opposition to ad signs is because of ad farms. Some unscruplous people buy a lot and break it up into 16 sqm lots which they then sell and people put signs up on them. They will do this beside a nice home. The owner of the home has two choices, either put up with some horrible tacky ads blocking his view(sometimes porn ads) or has to pay an exorberant amount of money to buy up each and every lot. THis happens on a fairly regular basis.

Yours is not for a stationary rotating sign but you still want to be able to script a device that you can leave running while you are offline and fly signs around SL for everyone to see. Ask yourself honestly, does everyone want to see them? Do most want to see them? Do you really want to see them? Or are you just trying to make a little $L selling the ad space and to heck with what everyone want's?
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Quik Taurog
Quik Taurog
Join date: 17 Aug 2007
Posts: 30
09-01-2007 17:47
Point taken...I understand now and I appreciate the information...I guess I wouldn't take to kindly to it either...


Anyone got an idea for a use of a bada@@ mini-blimp??? LOL

For a brand new amateur around here, I thought I did quite well so far...That took ALOT of time and effort to do (Creating, building, and customizing...) this blimp to look clean...Pic coming here (Next edit). It was such a unique idea that I had not seen yet In-World, I was sure I was onto a good thing here:


http://img183.imageshack.us/img183/4144/quikblimpmg1.th.png

Quik
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-01-2007 18:09
You had a wonderful idea, unfortunately an idea that could have been abused by others. A few months ago a brilliant scripter came up with the idea of the anti-copybot device and posted the code here in the forums. He could have made a huge profit by selling them on SLexchange but he was just trying to help and posted the code here instead. His brilliant idea caused an unbelievable amount of grief for the majority of residents in world. The copybot code was changed immediately so that it wasn't affected, and yet some people are still needlessly spamming thier neighbors with the darned things.

I would say I am sorry about all of the time you put into it but time is the only way to learn anything in SL and everything you did learn will be used again. It is always wonderful to see new people learning to script in SL. I have been away for several months and was actually kind of disinheartened because the scripting forum has been relatively quite compared to what I am used to. Keep the questions coming!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
09-01-2007 21:19
I dunno if this is really the right forum to discuss it, but... I guess I'm not so sure you'd get universally negative reaction to flying the ads around if it remained a novel experience for viewers. So, having the adblimp wander around while you're not in-world may not get such a good reception, but remote-piloting it around the occasional event site might be fun both for you and the viewers. Not very lucrative, though, I suppose. (And some explicitly non-commercial events--like BurningLife--might make you and the blimp feel very unwelcome.)

As for the scripting questions, well, objects can't "attach" to other objects, but they can be linked (as you know). This is much more limited than one might hope though: the builders forum can tell you all about the vagaries of what will and won't link depending on size, distance, phase of moon, etc. The most frustrating thing is probably the "flatness" of the linkset: there's a root prim, and everything else is a child--no hierarchy among children. Scripts, then, can translate and rotate the whole assembly by operating on the root prim, and can *individually* operate on the child prims, whose position and rotation are defined in terms of the root prim's coordinates.

You can also write "follower" scripts that make unlinked prims hang together and move almost sorta kinda like an assembly--and use considerably more sim resources to accomplish it.

Scripts inside linked prims may behave differently from those in stand-alone prims for reasons in addition to the different coordinate systems for motion. Events like touching, colliding, or sitting, for example, can act differently in child prims. But without a lot of detail about what the scripts are doing, it's kinda difficult to predict whether there's anything about which to be concerned or to guess what's wrong when things misbehave.
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
09-02-2007 00:10
From: Quik Taurog
Sorry for the long winded explanation, but, I think I'm starting to GET IT now...So, even though the prims are all linked, the script belonging to a specific prim remains a property OF that prim, regardless of whether other prims are linked to it or not?


Yes. A linkset of 5 prims, each with a script in them, will have 5 running scripts. Any of them or all of them could be running continuously or just entirely event driven.

You can communicate between them with linked messages.

For that matter, you can have 5 or more scripts in a single prim as well.
Simil Miles
Creator
Join date: 1 Mar 2007
Posts: 300
09-03-2007 05:07
When objects are attached to avatars they are in fact linked.
If your scripts break, modify them.
_____________________
UnConWTech @ Flo (144, 84, 224) http://unconwtech.free.fr

SL books http://astore.amazon.com/secondlife-sl-20/

Need a beta tester for quality assurance ?
Need a translator for English, French, Spanish ?