Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

No Script area's vs. AO's.

Wynter Bracken
Designer, Artist & Wacko
Join date: 8 Nov 2007
Posts: 16
07-15-2009 05:42
Hey guys,

I have a free Sine Wave Over rider where I put my own bought animations in. The thing is, when I go into No script Sim's or area's it does not work - yes I know it's obvious BUT I see other Av's walking on their Over rider's properly; as in their stands work simultaneously and keep going whilst as mine just keeps on the same stand, even when I walk and fly etc...it's the same stand.

Obviously it's not working because of the no script policy on the land, but how come I can see other people with their over riders being normal lol. Is there some sort of other AO that runs even though the land says No Scripts?.

Thanks,

~Wyn
_____________________
:: Math Is Nothing More But The Lesbian Sister of Biology ::
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
07-15-2009 05:48
that is strange. i know that the rule is that scripts will not start in no script areas, but scripts already running will continue to run when you enter a nonscript area.
have you tried using your sine anis in something like a freebie frani AO? i use a frani and have never seen it fail in a no script area.
_____________________
SLU - ban em then bash em!
~~GREATEST HITS~~
pro-life? gtfo! slu- banning opposing opinions one at a time
http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html
learn to shut up and nod in agreement... or be banned!
http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
07-15-2009 05:50
perhaps it matters whether you have walked in from an adjoining parcel rather than tp in?
_____________________
SLU - ban em then bash em!
~~GREATEST HITS~~
pro-life? gtfo! slu- banning opposing opinions one at a time
http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html
learn to shut up and nod in agreement... or be banned!
http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
Wynter Bracken
Designer, Artist & Wacko
Join date: 8 Nov 2007
Posts: 16
07-15-2009 05:50
Ah, that might be a useful thing.

Can you tell me where to get that from Nina? :). Thanks.
_____________________
:: Math Is Nothing More But The Lesbian Sister of Biology ::
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
07-15-2009 05:52
i will send you a few different ones (inc the original) when i log in... maybe an hour from now.
_____________________
SLU - ban em then bash em!
~~GREATEST HITS~~
pro-life? gtfo! slu- banning opposing opinions one at a time
http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html
learn to shut up and nod in agreement... or be banned!
http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
Wynter Bracken
Designer, Artist & Wacko
Join date: 8 Nov 2007
Posts: 16
07-15-2009 05:54
Aww thank you so much hun :).
_____________________
:: Math Is Nothing More But The Lesbian Sister of Biology ::
Skell Dagger
Smitten
Join date: 26 Jun 2007
Posts: 1,885
07-15-2009 06:54
The ZHAO2 also works in no-script areas, fyi.
_____________________
It always ends in chickens...

Store blog - http://primflints.wordpress.com/
Inworld - http://slurl.com/secondlife/Jindalrae/21/25/442
XStreet - http://tinyurl.com/primflints
Photos - http://www.flickr.com/photos/skelldagger/
Yuriko Nishi
Registered User
Join date: 27 Feb 2007
Posts: 288
07-15-2009 07:03
it was suggested many times in the past few years that LL builds an ao into the client, that would free sooooo much script load off the servers...

i guess it will never come though -.-
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-15-2009 07:08
To make a script work in no-script areas:

state_entry { if(llGetAttached()) llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }
attach(key k) { if(k) llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }
run_time_permissions(integer p) { if (p & PERMISSION_TAKE_CONTROLS) llTakeControls(CONTROL_FWD, TRUE, TRUE); }
control(key k, integer l, integer e) {}

I'm surprised that there's an AO that doesn't take controls anyway. It makes many movement transitions so much smoother.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
07-15-2009 07:37
From: Argent Stonecutter
To make a script work in no-script areas:

state_entry { if(llGetAttached()) llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }
attach(key k) { if(k) llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }
run_time_permissions(integer p) { if (p & PERMISSION_TAKE_CONTROLS) llTakeControls(CONTROL_FWD, TRUE, TRUE); }
control(key k, integer l, integer e) {}

I'm surprised that there's an AO that doesn't take controls anyway. It makes many movement transitions so much smoother.



Oh jeezus you zaney ferret! Where does that gobbley-gook go?!!
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
07-15-2009 07:40
i assume only one object can take controls at any time? cos if i could make my wings work in no script areas that would rock.
From: Argent Stonecutter
To make a script work in no-script areas:

state_entry { if(llGetAttached()) llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }
attach(key k) { if(k) llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS); }
run_time_permissions(integer p) { if (p & PERMISSION_TAKE_CONTROLS) llTakeControls(CONTROL_FWD, TRUE, TRUE); }
control(key k, integer l, integer e) {}

I'm surprised that there's an AO that doesn't take controls anyway. It makes many movement transitions so much smoother.
_____________________
SLU - ban em then bash em!
~~GREATEST HITS~~
pro-life? gtfo! slu- banning opposing opinions one at a time
http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html
learn to shut up and nod in agreement... or be banned!
http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-15-2009 07:43
From: Briana Dawson
Oh jeezus you zaney ferret! Where does that gobbley-gook go?!!
In the script! :D

/me hides...



OK, OK...

There's four event handlers you need to add or modify in every state in the script. Some of the event handlers may already be there, and some of the code may already be there. If you've got a basic knowledge of scripting it's obvious once you look. If you don't... well, this might be a good place to start getting it: you've got a simple set of modifications, they're all tagged by the event they need to be in, and it's pretty easy to tell if you did it right.
From: Nina Stepford
i assume only one object can take controls at any time?
That's the third argument to llTakeControls, whether the controls are passed on to other scripts or not.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
07-15-2009 07:48
Well if you fly up high enough in any No Script zone your scripts turn on anyways.

That is what i do.
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Eli Schlegal
Registered User
Join date: 20 Nov 2007
Posts: 2,387
07-15-2009 07:51
I started a thread about this a couple months ago because I use the sinewave AO and I love it excpet for that annoying detail of not working in no script areas because it doesn't take controls. Viktoria was nice enougth to respond and write a script for me that I just added to the sinewave AO and now it works everywhere like a charm. I just copy and pasted the code part of her reply below into a new script, put the AO on teh ground and dropped the new script in there.

From: Viktoria Dovgal
Yeah, you can do it that way. It's a little ugly to add a script just for that, but if you like the object otherwise, I guess it does the job in a no mod world. This needs to go in the same prim as the scripts that are getting shut down.

CODE

default {
state_entry(){
if (llGetAttached()) {
llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
}
}

attach(key id) {
if (id) {
llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
}
}

run_time_permissions (integer perm) {
if (perm & PERMISSION_TAKE_CONTROLS) {
// Take all the same controls ALL the scripts in the same
// object want to use, or SVC-3187 will break them.
// If none of the other scripts in the object take controls,
// you don't need to worry about that (and if they do, you
// probably don't need this little script in the first place).
llTakeControls(CONTROL_FWD, FALSE, TRUE);
}
}
}


You'll want to know that some commercial items are written in a rather paranoid way, and will go so far as to stop or even delete foreign scripts, so if you run into trouble see if the running box is getting unchecked.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-15-2009 07:52
This doesn't stop you from having to kickstart the script if you attached it in a no-script zone, but if you teleport or walk into the zone a script that takes controls will *keep* working, one that doesn't will be stopped.

Edit, interesting, I wouldn't have thought that the control-hack was contagious like that. Even better.

If you look at the scripts, by the way, put my code inside a "default {...}" block to make it a complete script... and it and Viktoria's code are almost identical except for variable names and formatting. This is a piece of code that really is so simple and obvious that there is only one way to do it.

/me goes back to hiding under the table

_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Nina Stepford
was lied to by LL
Join date: 26 Mar 2007
Posts: 3,373
07-15-2009 08:36
awesome. cant wait to fix my wings!
_____________________
SLU - ban em then bash em!
~~GREATEST HITS~~
pro-life? gtfo! slu- banning opposing opinions one at a time
http://www.sluniverse.com/php/vb/zomgwtfbbqgtfololcats/15428-disingenuous.html
learn to shut up and nod in agreement... or be banned!
http://www.sluniverse.com/php/vb/off-topic/1239-americans-not-stupid.html
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
07-15-2009 10:22
In an earlier post, it was stated that a limited number of prims in an object can take the same control. So if you have scripts in 20 prims, you'd need to create 4 variations of the script, each taking a different control. Anyone able to confirm or refute this?

/54/83/320830/1.html
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-15-2009 10:31
If you have scripts in 20 prims you'll be sorry when they start imposing script limits. :D
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
07-15-2009 11:09
Well, that's a thread for the scripting forum (I'm trying to learn lists, really I am!). But I expect there to be major pain felt when those limits are finally imposed.
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
07-15-2009 12:11
Just about any attached script I write includes the needed takepermissions lines. Even as a do-nothing... I prefer my scripts to run regardless of where I am. (^_^)

At the same time, I wrote a standalone do-nothing script with takepermissions. For moddable objects I buy with no-mod scipts, I dump that one in and it takes the rest of the scripts for a ride. Even my Chimera and LAWL-poofer will work in Welcome Areas. (^_^)y
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-15-2009 13:29
From: Galena Qi
In an earlier post, it was stated that a limited number of prims in an object can take the same control. So if you have scripts in 20 prims, you'd need to create 4 variations of the script, each taking a different control. Anyone able to confirm or refute this?

/54/83/320830/1.html

as a side note, if one script in a prim takes controls, they all get to keep working in no script zones

(and sometimes even take controls scripts need to be kick started by flying up, after a TP)
_____________________
|
| . "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...
| -
Katheryne Helendale
(loading...)
Join date: 5 Jun 2008
Posts: 2,187
07-15-2009 14:08
From: Skell Dagger
The ZHAO2 also works in no-script areas, fyi.
So does the original ZHAO.
_____________________
From: Debra Himmel
Of course, its all just another conspiracy, and I'm a conspiracy nut.

Need a high-quality custom or pre-fab home? Please check out my XStreetSL Marketplace at http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=231434/ or IM me in-world.
Katheryne Helendale
(loading...)
Join date: 5 Jun 2008
Posts: 2,187
07-15-2009 16:18
From: Briana Dawson
Oh jeezus you zaney ferret! Where does that gobbley-gook go?!!

I would assume, at the beginning of the main body of the script, after all the declarations and class definitions....

/me runs
_____________________
From: Debra Himmel
Of course, its all just another conspiracy, and I'm a conspiracy nut.

Need a high-quality custom or pre-fab home? Please check out my XStreetSL Marketplace at http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=231434/ or IM me in-world.
Cortex Draper
Registered User
Join date: 23 Aug 2005
Posts: 406
07-15-2009 17:37
Does this mean griefer scripts (the main reason people set land to "no script";) can run on "no script" land ?
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
07-15-2009 17:41
From: Cortex Draper
Does this mean griefer scripts (the main reason people set land to "no script";) can run on "no script" land ?
Totally! Child's play! =^-^=

Only for avatar attached scripts, though. Getting around it with a rezzed prim takes another kind of magic. (^_^)y
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
1 2