ISSUE: SetTexture via passed UUID
|
|
Doc Herrey
DH Graphics
Join date: 30 Nov 2005
Posts: 21
|
03-31-2006 12:31
Im sure this is a simple mistake on my end, just havent been able to figure it out  Im passing a texture key via email to a "client" object from a server. Instructing the client to switch the texture to the UUID. Well, It keeps telling me 'Couldn't find Texture' Ive tried passing the key and setting it as a string, as a key, using llKey2Name, nothing works. Help Anyone?
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
03-31-2006 12:47
Have you tried adding an llSay in the client and printing the received texture key, and then verifying that it's correct? Also, posting the server and client code (or at least, the parts involved here) might help.
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
03-31-2006 12:50
I hope your llSexTexture is adult and this isn't llAgePlay!
|
|
Gabe Lippmann
"Phone's ringing, Dude."
Join date: 14 Jun 2004
Posts: 4,219
|
03-31-2006 12:51
I have no answer for this, but needed to point out that the thread title sounds like some kind of awful SLextually Transmitted MetaVirus problem.
_____________________
go to Nocturnal Threads 
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
03-31-2006 12:53
Damn, I totally missed that. LOL.
|
|
Doc Herrey
DH Graphics
Join date: 30 Nov 2005
Posts: 21
|
03-31-2006 12:57
LMAO I also missed that. Talk about a bad timed TYPO lol But yeah, after testing quite a few ways, it doesnt seem to work, here's the portion of the code that reads the email received and attempts to set the texture. email(string time, string address, string subject, string message, integer num_left) { if(subject == "registered") { // put in stuff to read host data llSay(0, "Client Status: " + subject); message = llDeleteSubString(message, 0, llSubStringIndex(message, "%!") + 1); llSay(0, "Message Received: " + message); if (llSubStringIndex(message, " ") == -1) { llSetTexture((key)message, ALL_SIDES); } else { llDeleteSubString(message, llSubStringIndex(message, " "), llSubStringIndex(message, " ") + 1); llSetTexture((key)message, ALL_SIDES); } } }
|
|
Kim Anubis
The Magician
Join date: 3 Jun 2004
Posts: 921
|
03-31-2006 12:57
Doc, what sim are you in? llSexTexture won't work in PG.
_____________________
http://www.TheMagicians.us 
|
|
Doc Herrey
DH Graphics
Join date: 30 Nov 2005
Posts: 21
|
03-31-2006 13:15
Funny thing is, I've compared the UUID to what is sent via the email msg, and its all the same. The SetTexture works by setting the key manually but not via the same key passed via email.
*scratches head*
|
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
03-31-2006 13:20
You have an llDeleteSubString that isn't assigned to anything. If it's going into that case, the original message still has the space in it, and it won't work.
Like I said, put in llSays right before every call to llSetTexture, so you know the exact string that gets passed into that function. It would also help to identify the llSays in some way so you know which one got called.
|
|
2fast4u Nabob
SL-ice.net
Join date: 28 Dec 2005
Posts: 542
|
03-31-2006 13:42
From: Doc Herrey Im passing a texture key via email to a "client" object from a server. Instructing the client to switch the texture to the UUID. I recently did something similar...I ended up with solutions similar to what is already here in this thread except for one thing: I copied the texture to the Server object. I had the same problem as you...'texture not found' - copying the texture into the Server solved it right away  -2fast
|
|
Leonard Churchill
Just a Horse
Join date: 19 Oct 2005
Posts: 59
|
03-31-2006 14:40
You'll hate me.
Remove the (key) typecasting on llSetTexture; its string, not key.
|
|
Doc Herrey
DH Graphics
Join date: 30 Nov 2005
Posts: 21
|
03-31-2006 15:52
Thanks for the responses guys. I actually hate myself. It was a STUPID LITTLE bug, kinda like I figured, but one where I just wanted to bang my head against the wall for a good 20 minutes.
The email message was sending a space at the end of the key. so the SetTexture was trying to use a key with a space at the end. So I parsed that out, and bam, there it is.
Oh, and yes, SetTexture takes a string, but if your passing it a key, you have to typecast the string. The key typecast is based off the string typecast. =)
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
03-31-2006 17:45
*quietly renames thread*
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|