Colleen Lilliehook
Registered User
Join date: 16 Jul 2007
Posts: 16
|
01-11-2010 15:43
hi, first of all - i am a complete novice.
I am building a shared tip jar for an event at Immersiva. I bought a script and put it into the contents of the object i built. I also inserted a visitor listing script. so first question... will these two scripts clash in any way - is it better to put the scripts in separate prims, then link the prims?
second question - i need a very low profile setup, so i wanted to take the box that comes with the stream i'll be renting, as well as an orb that announces songs, and hide those objects by moving them inside the tip jar, which will be a cube. Will the scripts and stream in such close proximity to each other cause a problem?
Thanks so much - i really appreciate your help!
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-11-2010 15:53
it all depends on if those scripts communicate or change any prim properties that another might read from... any single script objects are good candidates for combining as they aren't likely to have any link message communication.
prim properties being modified is another story, for example, many will use the description field to store information, and if two different script want to use it for two different things, one or both may blow up.
another consideration is dataserver, any two scripts that read from a notecard, or grab avatar information like online status can potentially clash if they aren't coded properly.
finally there are communications like e-mail, or http, which can have the same potential problems as the dataserver, but be more likely to be hidden from view.
if you have open acces to the scripts in question you can tell if they have any of those events or usages, but otherwise not, in which case your only way to know is drop them in together and try it... just make sure you have backups.
_____________________
| | . "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... | - 
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
01-11-2010 16:11
From: Colleen Lilliehook i wanted to take the box that comes with the stream i'll be renting, as well as an orb that announces songs, and hide those objects by moving them inside the tip jar, which will be a cube. Will the scripts and stream in such close proximity to each other cause a problem? You mean, hide the orb and box by moving them inside of the tip jar prim(s), not put them into the tip jar contents? That would be fine; scripts are not affected by the physical proximity of their respective objects. Of course, your prim count for the parcel will be the same regardless of where you place the prims. If, instead, you pick up the orb and stream box and put them inside the contents of the tip jar prim, their scripts won't run anymore. And Void is right. LSL is an event-driven language, so whether a script conflicts with another in the same prim usually depends on whether they each have a handler for the same event, and/or do conflicting things. Impossible to tell without looking at the scripts, but it seems quite possible to me that a visitor counter and tip jar script would not conflict. .
|
Colleen Lilliehook
Registered User
Join date: 16 Jul 2007
Posts: 16
|
01-11-2010 16:32
From: Nika Talaj You mean, hide the orb and box by moving them inside of the tip jar prim(s), not put them into the tip jar contents? That would be fine; scripts are not affected by the physical proximity of their respective objects. Of course, your prim count for the parcel will be the same regardless of where you place the prims. . yes, exactly - not moving them into the contents of the tip jar, but physically moving the objects inside the tip jar object - for aesthetic reasons. and the shared tip jar script and visitor list scripts are completely independent, so hopefully there won't be a problem - i can always yank out the visitor script at the event if the tip jar fails. thanks so so much for your help!
|