Jump to content
  • 0
Peace Darkbyrd

Spammed with urls

Question

Hi I am trying to add a load an url to a prim in SL...this script:

default 
{ 
touch(integer total_number) 
{ 
llLoadURL(llDetectedKey(0), "Second Life homepage", "http://Secondlife.com"); 
} 
}

I am running through the tests because it is not working and it says when I hold down the touch button that I am being spammed with URLs.  Any help?

Tests are on this page: http://wiki.secondlife.com/wiki/LlLoadURL_Test

Edited by Peace Darkbyrd

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

Hi thank you for your help!  The new script is as follows and is still not working.  Any advice?

default 

touch_start(integer total_number) 

llLoadURL(llDetectedKey(0), "Second Life homepage", "http://Secondlife.com"); 

}

 

Share this post


Link to post
Share on other sites
  • 0

Hi,

I was using this as an example rather than my homepage.  The exact script is:

default 

touch_start(integer total_number) 

llLoadURL(llDetectedKey(0), "Homepage", "http://www.rebecca.kesler.co.uk"); 

}

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Congratulations!  It works perfectly.  Nice web page too.  :)

To make it easier to read and debug scripts, you should get into the habit of using indentations and white space consistently, so your scriopt looks more like this:

default 
{ 
    touch_start(integer total_number) 
    { 
        llLoadURL(llDetectedKey(0), "Homepage", "http://www.rebecca.kesler.co.uk"); 
    } 
} 

If you use the little code widget at the top of the edit window here (the symbol looks like < > ), that will also put your script in a neat box.

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, Peace Darkbyrd said:

It still isn't working for me :(!  Any help?

Except for the default Support Group questions:

1.  Is the script set to Running?

2. Are you in a region/parcel where scripts are allowed?

I have no idea.  This is a dirt simple script, so there's not much to debug.  When it's "not working", what does it do?  Or not do?  As I said, it works perfectly for me.

Share this post


Link to post
Share on other sites
  • 0

Hi,

Script is running.  Mono is off and yes it's attached to the object!  I'm at my rented sim home so yes it is allowing me to rez and I checked with other scripts and these are running.  When I logged in I did notice that the internal browser had a server error but the object with the script attached is not even opening this.

Share this post


Link to post
Share on other sites
  • 0

That's odd. I never use the internal browser, because it has been buggy in the past.  You might try directing your viewer to use your default external browser and see what happens.

It's generally smart to compile LSL scripts in Mono, BTW.  That's the default for any script that you create in world anyway (as opposed to scripts that you write in inventory and then drop into a rezzed object).  Mono has definite advantages aside from being the default.  It gives you a 64k workspace instead of a mere 16k, and it recognizes all instances of the same script in a region, letting them use a common block of server resources.

Share this post


Link to post
Share on other sites
  • 0

Not sure how to direct it externally.  Some more help?!  I have tried it mono and reset the script too...still not working :(.  It's such a simple thing and as you said it should work!  sorry if I'm missing something!

Share this post


Link to post
Share on other sites
  • 0

You can do that in Preferences, even without opening your viewer.  Look in the Setup tab, in the block of items marked Web:

20496e2cdc54043ada1bc354d1dcfbb3.png

See?  Mine is UnChecked, above, except for internal SL links.

Share this post


Link to post
Share on other sites
  • 0

Aha, one I can answer!  To set your viewer to use an external browser, see the following:

Firestorm viewer.  Preferences, Network&Files tab.  Check either the first button (like mine) or the second one (like Rolig's).

Capture.PNG.c9090334cf2e11592031608f63610d6f.PNG

Second Life stock viewer:  Preferences, Setup tab.  Same choices.

Capture2.PNG.50dfe4659d4d5671d67511ddbcb06c84.PNG

Share this post


Link to post
Share on other sites
  • 0

I'm afraid I am out of ideas.  I assume that the script at least opens the dialog box, offering you a button to go to the web site.  If it's doing that, then the problem isn't in the script.  ( In fact, since the script works well for me, we already know that much.)  There's somethnig odd about your browser or your Internet connection.  I can't begin to guess what it is.

Share this post


Link to post
Share on other sites
  • 0

It's not opening the dialog box?  And you're sure that the script is set to Running?  What does the object that the script is in look like?  It's not really a huge muilti-prim linkset, is it?  I'm really grasping at straws now.........

Share this post


Link to post
Share on other sites
  • 0
7 minutes ago, Peace Darkbyrd said:

It's a simple prim box object...4 sided cube!

Probably 6 sided, but I am totally at a loss.  Are you in a particularly haunted part of the UK?

Share this post


Link to post
Share on other sites
  • 0

If it gave you a message about being spammed with urls, is it possible the object has been somehow blocked from sending any more dialog/popups to open the url.

Maybe try it in a new cube or in a different region.

Edited by Niall Braveheart

Share this post


Link to post
Share on other sites
  • 0

Hi, Thanks for getting in touch.  Just rezzed it in another rez area and this didn't work.  I tried adding the script to another cube and it didn't work.  I altered the script to in new prim cube (6 sided!):

default
{
state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }
        touch_start(integer total_number) 
    { 
        llLoadURL(llDetectedKey(0), "Homepage", "http://www.rebecca.kesler.co.uk"); 
    } 
}
 

It came up with hello avatar nothing else.

Edited by Peace Darkbyrd

Share this post


Link to post
Share on other sites
  • 0

I just sent you a copy of a prim with your working script in it.  It was doing all the right things when it left here.

Share this post


Link to post
Share on other sites
  • 0

This really is not making any sense.  That prim was working exactly as it should when I sent it to you.  The script was running and it opened your web page cleanly.  You're doing something different, but I have no idea what it is.  I'm at work now or I would pop over to wherever you are to see what's going on.  I love a good puzzle, but this one has me stumped.

Share this post


Link to post
Share on other sites
  • 0

Thanks Rolig for your help!  Look forward to meeting you.

Have a great day and thanks everyone!

Just to let you know a friend tried the URL on my sim and it worked for them...just not me which means its my side not the scripting...phew!

Edited by Peace Darkbyrd

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...