Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llEjectFromLand limit?

Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
08-18-2007 05:32
Anyone know if there's a limit to how often this function can be called?

I've written a security system that at first warns and then ejects people if they enter a specific area. It only does it within a certain range, and doesn't affect fly-overs.

It works great, at first. But 5 hours later the eject function just fails without any reason. The warnings are still given, and the system thinks the ejection succeeded, but it doesn't.

Resetting the script seems to fix it, temporarily, but it's very strange. I don't think it's a memory issue but I've just added a free memory call to the system just in case.

Anyone got a clue?

Yes, the object is owned by the person who owns the land. As it works at first, this shouldn't be a question. The only way that would happen is if the object owner regularly loses access rights to eject people.
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
08-18-2007 05:58
Scripts that stop working after a certain time sound like memory problems to me.. Do you have both the warning and ejecting in 1 script or are you using link messages?

Since LSL sends stack/heap colission to open chat and not to the owner, and since there is no error trapping at all, this can be a bit hard to detect. I've had a script work fine for over 36 hours and suddenly fail...

In the end, I created another prim that was listening for my failing object on open chat, IMing me anything the failing object would say. And after some time I got an IM that my failing object had a stack/heap colission. Try something like that.
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
08-18-2007 15:34
From: Lyn Mimistrobell
Scripts that stop working after a certain time sound like memory problems to me.. Do you have both the warning and ejecting in 1 script or are you using link messages?

Since LSL sends stack/heap colission to open chat and not to the owner, and since there is no error trapping at all, this can be a bit hard to detect. I've had a script work fine for over 36 hours and suddenly fail...

In the end, I created another prim that was listening for my failing object on open chat, IMing me anything the failing object would say. And after some time I got an IM that my failing object had a stack/heap colission. Try something like that.


I'd get the warnings properly, as well as the message that the avatar was being ejected, and while I stood there watching (or trying to be ejected), I'd see no stack heap errors.

If it IS a memory problem, it's not showing anything in open chat.

I'm testing a work-around right now to see if it does the trick.

I had both the warning and the ejection in 1 script when this was happening, but I'm testing a work-around right now to eject from a second script and then reset itself. That way the first script isn't reset.
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
08-19-2007 00:02
It just hit me what the problem could be.

Could it be that llEjectfromLand(key) won't work if the owner either isn't in the sim or online?

If so, that totally destroys the ability of a security orb if the land has no push allowed.

I'll have to test this out on sunday.

My current work-around didn't work, obviously.

I don't believe this is the intended functionality, or at least the original intended functionality of llEjectFromLand.
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
08-19-2007 10:06
I've verified this.

If the owner isn't online, the ejection won't work.

If the owner comes back online, it does.
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
08-19-2007 16:48
I just verified this as well. Wonder when LL broke this, I know it used to work properly...
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
08-20-2007 07:15
I've seen problems like that occur on land in which running-scripts are set to off for people other than the land-owner / land-group. Out of curiosity...is that the same case in your verification?
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
08-20-2007 08:31
No, the land I tested this on is owned by a friend and scripts are allowed to run for everyone there. I had given her one of my security orbs, she activated it then logged out. I entered the protected area, was warned that I'd be ejected in 15 seconds (as usual) then saw a blue SL popup telling me that I had been ejected. Only I hadn't been moved at all. Then 15 seconds later phase 2 activated and I was TPed home as expected.
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
08-20-2007 11:10
From: Kenn Nilsson
I've seen problems like that occur on land in which running-scripts are set to off for people other than the land-owner / land-group. Out of curiosity...is that the same case in your verification?


That is the situation for my verification. What sucks is that teleportagenthome doesn't work in that sim but ejectfromland will, as long as the orb owner is online.