Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem with llInstantMessage()?

Zaphod Kotobide
zOMGWTFPME!
Join date: 19 Oct 2006
Posts: 2,087
01-12-2007 11:59
Is anybody aware of any current issues with llInstantMessage? Suddenly, without any changes having been made to a particular script, it seems broken -

if (useIM == 1) <-- assume this is true, because it is.
{
llWhisper(0,(string)avKey +" " +IMText); <-- this statement executes llInstantMessage(avKey, IMText); < -- this used to, suddenly no longer
}

Whatever the problem, it's tied to this particular object. I created a new prim and put an llInstantMessage on the touch event, and it works fine. avKey contains the correct agent key, and IMText has no malformatted text in it. I cannot figure out why the llInstantMessage statement refuses to run.. if the llWhisper statement does? By the way, both variables are declared globally, and avKey is typed as 'key', IMText as 'text'. In fact the first statement outputs exactly what's expected. IMText is 129 characters.

This has me stumped.
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
01-12-2007 13:32
Does the same script work in a different object? Sometimes prims get sick and need to be 'euthenized' :)
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-12-2007 13:35
Have you tried resetting the script? It may just have its virtual knickers in a twist.
Zaphod Kotobide
zOMGWTFPME!
Join date: 19 Oct 2006
Posts: 2,087
01-12-2007 14:13
I've done everything but send the script through the washing machine. But I have solved it. I assumed the data inside IMText was intact, but apparently it wasn't. It was being read out of a notecard, so I thought I'd hard code it in the script, and it suddenly started working.. so I replaced the notecard line, and now it's all functioning as designed. So nevermind :)
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-13-2007 06:10
From: Zaphod Kotobide
I've done everything but send the script through the washing machine. But I have solved it. I assumed the data inside IMText was intact, but apparently it wasn't. It was being read out of a notecard, so I thought I'd hard code it in the script, and it suddenly started working.. so I replaced the notecard line, and now it's all functioning as designed. So nevermind :)



Did you replace just the line or the whole notecard?
There had been some issues recently with the 'upgrade' to teh character set supprot.
Every notecard containing non 7-bit ASCII started to return NULL from the dataserver.
See this thread for more info
.
Zaphod Kotobide
zOMGWTFPME!
Join date: 19 Oct 2006
Posts: 2,087
01-13-2007 07:04
I just replaced the one line. Literally re-typed it below the "bad" line and deleted the bad one. I think for S&Gs I'll probably replace the entire notecard. Some of it was constructed in notepad and pasted into the notecard..