MantisBT - opensim
View Issue Details
0005804opensim[REGION] Script Functionspublic2011-12-01 05:392012-09-08 16:21
arklo 
 
normalfeaturealways
newopen 
 
 
ff36a1bc7bcd1d0fe5aecb4c5358dbb072c7ff6e
Grid (1 Region per Sim)
ODE
Mono / Linux64
2.0.1
0005804: Double Loop Script Fails
Double Loop Script Fails
First Loop - a y axis loop of 12 loops runs succesfully
Second Loop - a loop of the first loop fails after 5 loops when set to ++ when <100 (or any other number)

Script runs fine in in SL
Script fails on http://cluster-021.bolton.ac.uk:3389/ [^] AND OS Grid (Samsara)
//Double Loop_Conveyor Can_Move 1_ETERNAL

default
{
    on_rez(integer start_param) {
            llResetScript();
}

    state_entry()
    {
        vector initialPos = <158.036, 38.655, 21.853>; //Samsara TEST
        
            float x=0.0;
            float y=0.5;// variable for y posn move along conveyor
            float z=0.0;
        
        llSetPos(initialPos);
        
        integer i;
        integer j;
        
        for (i=0;i<100; i++) // Reposition and start Conveyor LOOP again 100 times
        {
                    llSetPos(initialPos);
        
         for (j=0;j<12; j++) // Move Along Conveyor LOOP 12 times
         
        {
            
            llSetPos(llGetPos() + <x, y, z>);
                   
                    llSleep(0.5);
        }

        }
    }
}
No tags attached.
Issue History
2011-12-01 05:39arkloNew Issue
2011-12-01 11:40arkloNote Added: 0020430
2011-12-03 09:16arkloNote Edited: 0020430bug_revision_view_page.php?bugnote_id=20430#r34
2011-12-03 09:16arkloNote Edited: 0020430bug_revision_view_page.php?bugnote_id=20430#r35
2011-12-05 15:04arkloNote Edited: 0020430bug_revision_view_page.php?bugnote_id=20430#r36
2012-09-08 16:21SignpostMarvNote Added: 0022555

Notes
(0020430)
arklo   
2011-12-01 11:40   
(edited on: 2011-12-05 15:04)
RESOLVED by Reworking as a 'Do Loop', although some inconsistency with timing


default
{
    on_rez(integer start_param) {
            llResetScript();
}

    state_entry()
    {
        vector initialPos = <189.384, 241.559, 23.923>; //Bolton Above Green Rezzer
       
            
            float x=0.0;
            float y=0.5;// variable for y posn move along conveyor
            float z=0.0;
        
      
        
        integer i=0;
        integer j=0;
        do
        {
                llSetPos(initialPos);
                //llSay(0,"Outer: "+i);
                j=0;
                
             do
                {
                   llSetPos(llGetPos() + <x, y, z>);
                   llSleep(0.5);
                  // llSay(0,"Inner: "+j);
                    j++;
                } while(j<12);
            i++;
        } while(i<100);
        

    }
}

(0022555)
SignpostMarv   
2012-09-08 16:21   
This might be getting killed due to max event execution thingies ?