Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005804opensim[REGION] Script Functionspublic2011-12-01 05:392012-09-08 16:21
Reporterarklo 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005804: Double Loop Script Fails
DescriptionDouble 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)
Steps To Reproduce//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);
        }

        }
    }
}
TagsNo tags attached.
Git Revision or version numberff36a1bc7bcd1d0fe5aecb4c5358dbb072c7ff6e
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
EnvironmentMono / Linux64
Mono Version2.0.1
Viewer
Attached Files

- Relationships

-  Notes
(0020430)
arklo (reporter)
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 (reporter)
2012-09-08 16:21

This might be getting killed due to max event execution thingies ?

- Issue History
Date Modified Username Field Change
2011-12-01 05:39 arklo New Issue
2011-12-01 11:40 arklo Note Added: 0020430
2011-12-03 09:16 arklo Note Edited: 0020430 View Revisions
2011-12-03 09:16 arklo Note Edited: 0020430 View Revisions
2011-12-05 15:04 arklo Note Edited: 0020430 View Revisions
2012-09-08 16:21 SignpostMarv Note Added: 0022555


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker