Lots of permissions-script errors on sim crossing driving vehicles - SLUniverse Forums
Navigation » SLUniverse Forums > Virtual World Discussion > Technical Help > SL JIRA Issue Discussion » Lots of permissions-script errors on sim crossing driving vehicles


SL JIRA Issue Discussion Call attention to JIRA issues you think are important.

Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2013, 01:55 PM   #1 (permalink)
Junior Member
MartinRJ Fayray
 
Join Date: Sep 2012
Posts: 29
Lots of permissions-script errors on sim crossing driving vehicles

How to reproduce:
rez a copy of the library kart ("Kart 1.0"),
and in line 192 add llStartAnimation("stand") and llStopAnimation("stand"), so that it looks like this:


if(level & CONTROL_FWD)
{
llStartAnimation("stand");
llStopAnimation("stand");


I get tons of error messages when I drive with this slightly modified library cart over a sim border (and hold down the forward-key while I'm crossing the region borders), the same happens with scripts that have (and use) camera-permissions.
This probably also affects other permissions.

I found a couple of vehicles that reproduce this bug.

Tested on Second Life Server 13.02.15.270481

Jira# is 1816
MartinRJ is offline   Reply With Quote
Old 02-27-2013, 02:01 PM   #2 (permalink)
But it refused. <3

*SLU Supporter*
 
Kamilah Hauptmann's Avatar
I'm a regular Victor Victoria
 
Join Date: Dec 2007
Location: Cat Country. Can't stop there.
Posts: 12,056

Awards: 1
SLU Creepy Avatar Competition 2014 Participant 
I bet I can even guess the error. Agent not found.

Vehicles and the avatars on them load into the next Sim at different milliseconds, resulting inthose kinds of derps.

My solution:
If(llGetAgentSize(agent_key) != ZERO_VECTOR){run the animations/controls/etc}
__________________
Some days you herp a derp, sometimes the derp herps you.
Kamilah Hauptmann is offline   Reply With Quote
1 User Agreed:
Old 02-27-2013, 02:07 PM   #3 (permalink)
Junior Member
MartinRJ Fayray
 
Join Date: Sep 2012
Posts: 29
No, the error in this case is:
llStartAnimation: Script trying to trigger animations but agent not found
llStopAnimation: Script trying to stop animations but agent not found
llStartAnimation: Script trying to trigger animations but agent not found
llStopAnimation: Script trying to stop animations but agent not found
llStartAnimation: Script trying to trigger animations but agent not found
llStopAnimation: Script trying to stop animations but agent not found

And my guess is that the new region doesn't catch up with the script's permissions in time.
MartinRJ is offline   Reply With Quote
Old 02-27-2013, 02:12 PM   #4 (permalink)
But it refused. <3

*SLU Supporter*
 
Kamilah Hauptmann's Avatar
I'm a regular Victor Victoria
 
Join Date: Dec 2007
Location: Cat Country. Can't stop there.
Posts: 12,056

Awards: 1
SLU Creepy Avatar Competition 2014 Participant 
Quote:
Originally Posted by MartinRJ View Post
No, the error in this case is:
llStartAnimation: Script trying to trigger animations but agent not found
llStopAnimation: Script trying to stop animations but agent not found
llStartAnimation: Script trying to trigger animations but agent not found
llStopAnimation: Script trying to stop animations but agent not found
llStartAnimation: Script trying to trigger animations but agent not found
llStopAnimation: Script trying to stop animations but agent not found

And my guess is that the new region doesn't catch up with the script's permissions in time.
Quote:
Originally Posted by Kamilah Hauptmann View Post
I bet I can even guess the error. Agent not found.
Kamilah Hauptmann is offline   Reply With Quote
1 User Laughed:
Old 02-27-2013, 02:13 PM   #5 (permalink)
Junior Member
MartinRJ Fayray
 
Join Date: Sep 2012
Posts: 29
Well yes in this case it's 'agent not found', but also: "Camera control currently only supported for attachments and objects on which you are sitting."
on other vehicles.

Is that a new bug or do you maybe know a Jira-issue-ID if it's a known issue?
MartinRJ is offline   Reply With Quote
Old 02-27-2013, 02:23 PM   #6 (permalink)
Senior Member
 
Cerise's Avatar
Rawr
 
Join Date: Oct 2010
Posts: 3,749
My Mood:
Client: SL Viewer 5
The camera message is really the same problem, and the same workaround should be good to go. In short, make sure the avatar has caught up before you try to do anything to it.
Cerise is offline   Reply With Quote
1 User Agreed:
Old 02-27-2013, 02:25 PM   #7 (permalink)
But it refused. <3

*SLU Supporter*
 
Kamilah Hauptmann's Avatar
I'm a regular Victor Victoria
 
Join Date: Dec 2007
Location: Cat Country. Can't stop there.
Posts: 12,056

Awards: 1
SLU Creepy Avatar Competition 2014 Participant 
I agree it's goofy the way Sim transitions are handled, that the vehicle can still receive control comments from am avatar it can't get permissions from, I don't know of any JIRA addressing that. I'll leave that for the smarter cookies around here. My workaround above has served me well, though. And its variant to start the control() event: if avatar size == zero vector, return;

That holds up the entire event until everything's talking again. Camera controls might be similar, it's been awhile since I've done camera work on vehicles but I did have to do something along those lines with a swimming pose ball.
Kamilah Hauptmann is offline   Reply With Quote
Old 02-27-2013, 05:01 PM   #8 (permalink)
Junior Member
MartinRJ Fayray
 
Join Date: Sep 2012
Posts: 29
It turned out that this was already reported as jira.secondlife.com/browse/SVC-6553
MartinRJ is offline   Reply With Quote
1 User Said Thanks:
Old 03-03-2013, 08:11 PM   #9 (permalink)
Senior Member
 
Join Date: Feb 2012
Posts: 321
Not only you should test if the avatar is loaded , but you will MUST to do it at the start of the control event .
In this actual version , the kart flies and becomes uncontrollable when you cross an another sim

If you add the test "if ( llGetAgentSize(llGetOwner()) != ZERO_VECTOR )"
at the start of the control event and and at the start of the timer event , your kart will become smoother and drivable even when it crosses sim
( it will fly one second when you cross the sim , but you will be repositionned correctly after this )

The message is not specific for cross sims . It may happen too when you log in and rez in a region . Here too , you must test if the avatar is loaded
miranda is offline   Reply With Quote
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




SEO by vBSEO