Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Multiple unrelated scripts in single object

Dustin Quinn
Registered User
Join date: 11 May 2005
Posts: 28
08-31-2005 07:38
I have several scripted objects I wear on a daily basis, and since I recently married... I thought I would take these objects (ao, xflight, hug, etc.) and and consolidate into my ring. What has surprised me is that while the first script( or sets of scripts) is put in, they work fine; but following scripts from another object don't.

Ex. the ao in first - works fine, xflight in second - responds to voice comands but doesn't affect agents flight (ao still works)

I've tried putting the scripts into seperate prims, before linking and after linking with similar results; I've tried putting them into the ring in different order; so I wonder if this is possible, and if so why is it acting goofy?

thanks in advance for any possible solutions as I'm not thinking clearly anymore, lol

after thought: the reason I'm trying not to edit the scripts is some are no mod; and since they work well for my needs, I hate to have to start scripting from scratch if I don't have too.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
08-31-2005 10:24
The problem that you're having might be from linked messages. Check to see if any of the original objects have multiple scripts in them. If they do, they probably have linked messages, and some of the other scripts might be improperly coded, and mess up if they receive an unexpected link message.
Dustin Quinn
Registered User
Join date: 11 May 2005
Posts: 28
09-01-2005 04:38
Thanks I'll have to check that out. I know the AO has multiple scripts, but I'm not sure the Xflight has any message links, but It's a direction I haven't looked yet
Chandra Page
Build! Code. Sleep?
Join date: 7 Oct 2004
Posts: 360
09-01-2005 12:09
You might also encounter conflicts between multiple scripts that request avatar controls. Both animation overrides and flight scripts tend to take controls in order to respond when you move your avatar, and if the scripts are unaware of each other, they can step on each other's toes. The most likely thing to happen is that only one script will actually receive notification that you have pressed a movement key, and other scripts will silently fail because they aren't receiving any control information.

I've been able to work around this by keeping an animation override and a flight script in different attachments, but I've had no success dropping more than one control script into the same attachment. It is possible to make an animation override and flight enhancement cooperate, but it would most likely require merging their code into a single script so they don't interfere with each other.
_____________________
Come visit the In Effect main store and café
Drawbridge (160, 81)
Particle effects, fashion, accessories, and coffee!
On the Web at SL Exchange and SL Boutique
Dustin Quinn
Registered User
Join date: 11 May 2005
Posts: 28
Thanks Again
09-02-2005 08:48
I Have to agree with you Chandra. I didn't realize until after some playing that requesting control permissions would conflict, but they do; I was able to make it so one had permissions and the other would have to ask, and still would fail to see the key presses.

In any case it seems I'll be off to editing/rewriting as time permits. seems I learn something new everday, thanks for the input