INCLUDE_DATA
  • Second Life

    Posted on April 26th, 2009

    Written by Jeremy

    Tags

    , ,

    I got this question from ‘taurus:’

    I noticed you managed to get the new te.leport.me hud to work on no script land.  I was wondering if you’d tell us how you did this and if you plan to equip your other items with whatever loophole you used here.

    I’m actually kind of embarrassed to have overlooked this on the release, but I’m glad we got it worked out now.

    Basically, there’s a small, intentional hole in the no-script land restriction, and that hole is the control event.  The no-script restriction is designed to allow things like flight enhancers and animation overriders to continue working, so the parcel assumes that an attachment running a control event is one of those things and allows it to continue operating.

    So all you need to do is add a script that takes control cues from the avatar and your attachment should work just fine in no-script parcels.  Maybe something like this:

    default
    {
        attach(key id) {
            if(id != NULL_KEY) {
                llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS);
            }
        }

        control(key id,integer held, integer change) {
            return;
        }

        run_time_permissions(integer perms) {
            if (perms & PERMISSION_TAKE_CONTROLS) {
                llTakeControls(CONTROL_UP,TRUE,TRUE);
            }
        }
    }

    These snippets pull the perms on rez, take controls, and then do absolutely fuck-all with them, which is exactly what you want. The control event will trick the parcel into thinking it should allow this, and should enable every script in the main prim (but not in child prims).

    By the way, you really should be more meticulous than this about your use of the attach() event, but this was just an example and I was lazy.

    A note, however: please don’t abuse this. We like that this works, and it allows handy and harmless HUDs (like TE.LEPORT.ME) to work the way they should. If you give LL a reason to crack down on this by using it for eeeevil we may find ourselves burdened with a trickier work-around.

    In answer to your question about other products, yes, I imagine I’ll be making sure each new/updated attachment product works on no-script land. However, this won’t enable weapons to work on no-script land (bullets need scripts too), nor will I be looking to circumvent this (for the reasons posted above).

    This entry was posted on Sunday, April 26th, 2009 at 9:36 am and is filed under Second Life. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 0 Comments

    Take a look at some of the responses we have had to this article.

  • Leave a Reply

    Let us know what you thought.

  • Name(required):

    Email(required):

    Website:

    Message: