<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I've encountered this issue and my solution was a relatively straight-forward one. In the NPC script's changed event (change & CHANGED_REGION_START) I set a timer of 120 sec (or pick a suitable value) and then do the rez & sit from the timer. If I need that timer for something else later, I just set a global flag for it first (integer flag timerToRezNpc=TRUE) and test that at the top of my timer event...if true I do the rez then set the new timer (if needed) and if false proceed to whatever else the timer is normally needed for. That 120sec initial buffer gives the region time to finish processing the bulk of its start-up stuff before hitting it with the NPC activation.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opensim-dev-bounces@opensimulator.org [mailto:opensim-dev-bounces@opensimulator.org] <b>On Behalf Of </b>Mister Blue<br><b>Sent:</b> Monday, December 01, 2014 10:48 AM<br><b>To:</b> opensim-dev<br><b>Subject:</b> Re: [Opensim-dev] BulletSim update for Windows and linkset crashes<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Large meshes can take a while to be converted into physical hulls[1]. I notice this with something like Nebadon's racer (linkset of meshes) -- riding the car makes it physical and the CPU maxes out for a few seconds and the car is unridable until it is meshed.<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>So, if there is a problem, it could be that the vehicle mesh has to be read in (from cache or asset store), converted into a mesh, then converted into a hull. All the while, your NPC is trying to sit on it.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>There is no programatic way to tell if a linkset is fully physical and operational. All I can suggest is adding some delays if there are problems.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>-- mb<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>[1] If you don't supply a physics, hull representation of the mesh (possible with the mesh file format), BulletSim uses a HACD algorithm to turn the mesh into a set of convex hulls. This algorithm is recursive and, sometimes, slow.<o:p></o:p></p></div></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Mon, Dec 1, 2014 at 5:45 AM, Ai Austin <<a href="mailto:ai.ai.austin@gmail.com" target="_blank">ai.ai.austin@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>At 12:00 01/12/2014, Mister Blue wrote:<o:p></o:p></p><p class=MsoNormal>I just checked into the 'master' branch an updated version of BulletSim<br>that hopefully fixes Mantis 7371 [1] and Mantis 7364 [2] and 7191 [3]. The<br>changes are a new compilation that seems to fix the Windows mesh crash and<br>additionally adds 'incomplete linkset' logic that should reduce the errors<br>caused by linksets waiting for assets to be fetched.<br><br>I'm sure the bleeding edge testers will find the problems<o:p></o:p></p><p class=MsoNormal><br><br>Thanks Mister Blue... I will test soon on Openvue and Ailand grids.<br><br>I have a question... in one region I have an NPC that is automatically refreshed after a new OpenSim version is installed and restarted.... and the behaviour of this NPC after its created i to immediately sit in the pilot seat or a vehicle that itself is a very complex multi-part mesh (my Supercar test mesh)<br><br>Could that cause any specific issues on fresh OpenSim build for region startup if the linkset is large and postboy delayed past the point where the NPC attempts the automated sit down?<br><br><br>_______________________________________________<br>Opensim-dev mailing list<br><a href="mailto:Opensim-dev@opensimulator.org" target="_blank">Opensim-dev@opensimulator.org</a><br><a href="http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev" target="_blank">http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#A0A0A0' align=center></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>Version: 2015.0.5577 / Virus Database: 4223/8662 - Release Date: 12/01/14<o:p></o:p></p></div></body></html>