Peace Darkbyrd Posted October 12, 2018 Share Posted October 12, 2018 (edited) 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 October 12, 2018 by Peace Darkbyrd Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 Easy.. Don't use a touch event. Use touch_start. ? Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 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"); } } Link to comment Share on other sites More sharing options...
0 Lindal Kidd Posted October 12, 2018 Share Posted October 12, 2018 Exactly what link are you trying to get the object to post in chat? The Second Life page is https://secondlife.com The avatar's Dashboard page is https://secondlife.com/my/?lang=en-US Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 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"); } } 1 Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 Hi, Thank you so much for letting me know it works and your help and support. It still isn't working for me ! Any help? Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 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! Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 You can do that in Preferences, even without opening your viewer. Look in the Setup tab, in the block of items marked Web: See? Mine is UnChecked, above, except for internal SL links. Link to comment Share on other sites More sharing options...
0 Lindal Kidd Posted October 12, 2018 Share Posted October 12, 2018 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). Second Life stock viewer: Preferences, Setup tab. Same choices. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 Thank you so much. I tried this and I can't believe it but the object is still not opening the url!! Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 Hi, It is not opening the dialog box to go to the web site. I was thinking could it be an ad blocker maybe or Flash? Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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......... Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 It's a simple prim box object...4 sided cube! Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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? Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 LOL!! Your correct...feel free to visit me in SL...problem is still unsolved! Link to comment Share on other sites More sharing options...
0 Niall Braveheart Posted October 12, 2018 Share Posted October 12, 2018 (edited) 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 October 12, 2018 by Niall Braveheart Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 (edited) 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 October 12, 2018 by Peace Darkbyrd Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 Tried in two locations and rezzing fine but the script isn't working for me. Link to comment Share on other sites More sharing options...
0 Rolig Loon Posted October 12, 2018 Share Posted October 12, 2018 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. Link to comment Share on other sites More sharing options...
0 Peace Darkbyrd Posted October 12, 2018 Author Share Posted October 12, 2018 (edited) 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 October 12, 2018 by Peace Darkbyrd Link to comment Share on other sites More sharing options...
Question
Peace Darkbyrd
Hi I am trying to add a load an url to a prim in SL...this script:
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 DarkbyrdLink to comment
Share on other sites
26 answers to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now