A script that really loves its mother - SLUniverse Forums
Navigation » SLUniverse Forums > Development Discussion and Support > Scripting » A script that really loves its mother


Scripting Discuss scripting and programming for SL and other platforms

 
Reply
 
LinkBack Thread Tools Display Modes
Old 12-23-2010, 12:30 PM   #1 (permalink)
SUPER BANNED

*SLU Supporter*
 
Free Xue's Avatar
Headquarters? They don't suspect a thing.
 
Join Date: May 2009
Location: USA! USA! USA!
Posts: 36,926
My Mood:
SL Join Date: May, 2008
Client: V3 w/Starlight
Blog Entries: 10

Awards: 1
Special Achievement in Thread Titling 
Send a message via Skype™ to Free Xue
A script that really loves its mother

Ok, weird bug or something has cropped up in my latest project, and I'm at a loss.

I wrote an object rezzer - what I call a scene rezzer - to replace one in the club I manage. We use it for swappable dance floors. Let me set the "scene" for the script... The code is broken up in three pieces: controller, rezzer, and a "prop" script for scene objects. Menu access is open only to those in the group. Was working well until last week, when I redid some of the logic for testing who is accessing it. But I'm certain the problem we're having is not due to the change. Let me explain it, and you'll see why I think that.

What happens is, someone in group clicks the controller and the menu pops up with the list (buttons) of scenes to choose from. They click a scene, but then no scene appears. A process *does* occur: the rezzer is a platform which temporarily slides in as a scene rezzes, then moves out of the way and goes transparent/phantom. So I know the script is working. Sort of.

But that is not the REAL problem. The rezzer works fine for me. So I log in with an alt in the same group, and it works for that account, as well. Weird, but not the first time I've seen transient problems like this, so I mark it down to a server burp. But no, it returns the next day! Again it works for me and my alt. Then a crazy idea hits me: what happens when my main account is not in the sim? I teleport it home, and the rezzer keeps working for my alt - but only about a minute! From then on it dies and I see what everyone else has. I teleport Free Xue back, and it works for the alt. I teleport away, and a minute later...

This was not a coincidence. I tried 6 times, and each time the rezzer stopped working a short while after my main account (the creator/owner of the rezzer objects and scripts) teleported away from the area. It began working again the moment I teleported her back. I wasn't running the rezzer with my main account through all this, mind you. I was only using my alt.

There is no code in the scripts that preforms any avatar detection except the part that handles menu access. There's an administration part that watches for the owner's click, only for deciding to display a specific button on the menu. There is absolutely no radar-type scanning going on.

So, what the hell could be causing this?
__________________
Quote:
Originally Posted by Cristiano View Post
you are all trolls (and super gay too!)
[confused cats against feminism]
la lucha sigue...

Last edited by Free Xue; 12-23-2010 at 12:37 PM.
Free Xue is offline   Reply With Quote
Old 12-23-2010, 01:19 PM   #2 (permalink)
Senior Member
 
abVanmoer's Avatar
 
Join Date: Oct 2009
Location: Somewhere in Africa
Posts: 757
It sounds as if it may be related to not having "offline rez-rights". See: LlRezObject - Second Life Wiki
If the rezzer object is not set to the same group that owns the land try setting it to that group (it shouldn't need to be deeded) to see if that fixes it.
This should only really be a problem if the object owner is offline, however recent sim changes may have screwed it up so that it also happens if the owner is out of the sim.
__________________
Vendors, Tipjars, teleporters, clocks, gadgets, etc.
https://marketplace.secondlife.com/stores/8878
abVanmoer is offline   Reply With Quote
Old 12-23-2010, 01:42 PM   #3 (permalink)
SUPER BANNED

*SLU Supporter*
 
Free Xue's Avatar
Headquarters? They don't suspect a thing.
 
Join Date: May 2009
Location: USA! USA! USA!
Posts: 36,926
My Mood:
SL Join Date: May, 2008
Client: V3 w/Starlight
Blog Entries: 10

Awards: 1
Special Achievement in Thread Titling 
Send a message via Skype™ to Free Xue
Ooh, that may be it! Thanks ab.
Free Xue is offline   Reply With Quote
Old 12-23-2010, 05:16 PM   #4 (permalink)
SUPER BANNED

*SLU Supporter*
 
Free Xue's Avatar
Headquarters? They don't suspect a thing.
 
Join Date: May 2009
Location: USA! USA! USA!
Posts: 36,926
My Mood:
SL Join Date: May, 2008
Client: V3 w/Starlight
Blog Entries: 10

Awards: 1
Special Achievement in Thread Titling 
Send a message via Skype™ to Free Xue
Looks like that was it. Sort of a dumb security feature on llRezObject(). But hey, you work with the tools they give you.

Thanks again, ab.
Free Xue is offline   Reply With Quote
Old 12-26-2010, 05:48 AM   #5 (permalink)
Basement Cat
 
Kaluura Boa's Avatar
Purring, of course
 
Join Date: Feb 2010
Location: Off World
Posts: 34
My Mood:
SL Join Date: 2007-03-04
Client: Imprudence
This is an old bug. If rezzing is disabled for everybody but the capability is given back thanks to a group role, rezzers fail if the owner isn't in the sim. Just don't hold your breath until a fix arrives. See:

https://jira.secondlife.com/browse/SVC-3065 (duplicate of SVC-3145)
https://jira.secondlife.com/browse/SVC-3145 (Closed, Expected behavior)

In other words: Won't fix (because the Lindens can't figure out by which end to grab this bug.)

I was bitten once and the only realistic solution I found was to deed the rezzer. Since you're the scripter, that shouldn't be too much of a problem. (Just think of taking copies before to deed.)
__________________
Zen philosophy of scripting: Less is better.
Kaluura Boa is offline   Reply With Quote
Old 12-26-2010, 08:20 AM   #6 (permalink)
SUPER BANNED

*SLU Supporter*
 
Free Xue's Avatar
Headquarters? They don't suspect a thing.
 
Join Date: May 2009
Location: USA! USA! USA!
Posts: 36,926
My Mood:
SL Join Date: May, 2008
Client: V3 w/Starlight
Blog Entries: 10

Awards: 1
Special Achievement in Thread Titling 
Send a message via Skype™ to Free Xue
Quote:
Originally Posted by Kaluura Boa View Post
This is an old bug. If rezzing is disabled for everybody but the capability is given back thanks to a group role, rezzers fail if the owner isn't in the sim. Just don't hold your breath until a fix arrives.
Well, it's working - for now - since I made sure the prim acting as the rezzer platform was under the right group.
Free Xue is offline   Reply With Quote
1 User Said Yay!:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On