Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Embedding a URL in a notecard

Abba Thiebaud
PerPetUal NoOb
Join date: 20 Aug 2006
Posts: 563
01-22-2007 21:10
I don't know if this can be done but I do know I haven't been able to make it happen. Here's what I'm trying to do:

I'm passing out a notecard with an object embedded in it. The object uses the llLoadURL() function. Here's the code in the object:

CODE


string MESSAGE = "Click for a super cool web site";

default
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), MESSAGE, "http://www.some super cool website.com");
llDie();
}

on_rez(integer start_param)
{
llSetPos(llGetLocalPos() + <0, 0, 1>);
llSetText("", <0,0,0>, 0);
llSetText("Touch me to get to \"Super Cool Website\"", <1,0,0>, 1.0);
}
}



I can save the object from the notecard and when I rez it it works like I hope it would. All permissions in the object and embedded script are set to copy/modify/resell are set to enabled. However, when I give the notecard to anyone else they get the message "Unable to create requested object. Object is missing from database." when they rez the object from their inventory.

Any ideas what I'm doing wrong or if I'm trying to do something that can't be done in Second Life?

Thanks in advance.

A
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
01-23-2007 02:30
My guess is that the problem is nothing to do with your code and is in fact a database error on the server side. Try embedding a fresh copy of the object in the notecard and ask someone to check it works.
_____________________
www.nandnerd.info
http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum
Abba Thiebaud
PerPetUal NoOb
Join date: 20 Aug 2006
Posts: 563
01-23-2007 20:13
From: nand Nerd
My guess is that the problem is nothing to do with your code and is in fact a database error on the server side. Try embedding a fresh copy of the object in the notecard and ask someone to check it works.


nand Nerd I really appreciate the reply. However, I tried it several times, logged out and logged in again to try it a few times, and even tried another PC but no matter what I do I get the same error message. I have created a new object and a new notecard each of those times so I'm using a new instance each time.

Another thing I've tried was to give the object to a friend and it works like expected but when I give the same friend the notecard they get the same error message when they rez the object in it. Again here I've tried it a couple of times with new notecards and new objects embedded in them so I really don't believe it is anything specific to that instance of the object or the notecard.

I really believe either I'm doing something wrong or it can't be done. Any other ideas?

Thanks

A
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
01-24-2007 02:25
I can't check this myself just now but I reckon you should bug-report this. What you have written here is pretty much the bug replication information so some copy&pasting together with some editing should have you a bug report in no time.

I shall have a go at this myself when I'm next in and if I can't get it to work then I too shall bug report it.

Anyone else given this a go?
_____________________
www.nandnerd.info
http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
01-24-2007 03:55
Bug reported. As you said nothing can be done to rez an object/prim which was stored in a notecard.
_____________________
www.nandnerd.info
http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum