|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
01-24-2009 21:02
This has got me baffled. I created a HUD that controls animations. Therefore it uses llTakeControls. I put on the HUD on my own property and get it started properly. Several versions ago I was able to enter a no-script area and still have it continue to function properly. Now, when I do that, nothing at all works while I'm in the no-script area, but it resumes working when I move back into a scripts allowed area. I always thought that a script that had enabled llTakeControls would continue working in no-script areas.
I can't figure out what has caused this to change. I of course made some code changes between versions, so perhaps I've done something. Does anyone have any ideas of what would cause this? In the meantime, SL has gone through several viewer and server "upgrades". Does anyone know of any newly introduced bugs that would account for this?
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
01-24-2009 21:44
Ok This is strange. I did no more than recompile all the scripts. Didn't change a line of code. Now it works fine when entering a no-script area. What was that about?
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
01-24-2009 22:01
From: Monica Balut Ok This is strange. I did no more than recompile all the scripts. Didn't change a line of code. Now it works fine when entering a no-script area. What was that about? this is sl lol, alot of things don't make sense.
|
|
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
|
01-24-2009 22:21
It depends on when the take controls event was called. On attach? On reset? Take controls won't function while it's in a no-scripts area, it just allows the script to continue after entering. (^_^)y
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-25-2009 01:56
Keep in mind also that certain function calls might cause the script to cease functioning even if controls have been taken and it has worked previously. I think rezzing things in particular will fail to work and grind your script to a halt. Best to stick purely to things like animating and move enhancement if you really want your llTakeControls() script to continue functioning in no-script areas.
Also keep in mind that the no-script behavior only limits you close to the ground. I think it's something like 40m above ground level that all scripting functionality returns over no-script parcels (but you continue to see the flag on the viewer no matter how high you are).
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
Not fixed yet
01-25-2009 07:46
Oh oh. I think I spoke to early about a fix. Recompiling indeed fixes the problem. However, if I simply detach and re-attach the HUD (in a script-allowed area), the problem reappears. I works fine in script-allowed areas, but fails in no-script areas.
As far as I can tell, the only events that get triggered by these actions, are the attach and on_rez events. I completely removed all the code related to those two events from the script but the problem persists. It just doesn't interfere with the animation playing or movement, but freezes everything. I can't even turn it on or off. It also stops responding to listens.
Anyone have any ideas?
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
01-25-2009 08:43
Really sounds like what would happen if there was a perms request/control take started in state_entry but not also in attach.
|
|
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
|
Viktoria wins the prize!
01-25-2009 19:59
From: Viktoria Dovgal Really sounds like what would happen if there was a perms request/control take started in state_entry but not also in attach. Yup that was it. I had missed the point in the wiki that the PERMISSION_TAKE_CONTROLS perm gets lost upon detaching and must be reset. I fixed that and the HUD works fine now in no-script areas. Thank you.
|