Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008579opensim[REGION] Scripting Enginepublic2019-08-19 14:292019-08-19 14:32
Reporterpolybius 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Platformx86OSubuntuOS Version
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008579: while(1) doesnt repeat forever
DescriptionI made a script in SL and copied to my personal opensim, the script play a list of sounds randomly, there is a while cycle that repeats forever but after 0000045:0000032 sound reproductions it stops, if I reset the script it do the same thing and also the scipt doesnt start when the object is equipped

I tried playing just one specific sound file over and over but the result is the same no matter if mono is check or not

I also tried using different viewers like firestorm and singularity to the same result

the code is:

default
{
    state_entry()
    {
        while(1)
        {
            llPlaySound( "sound_1", 1.0 );
            llSleep(1.0);
        }
    }

    touch_end( integer vIntTch )
    {

    }
}
Steps To Reproducejust copy the code in the description into an object along a test sound file called "sound_1"
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region)
Physics EngineBasicPhysics
EnvironmentMono / Linux64
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0035594)
UbitUmarov (administrator)
2019-08-19 14:32

events cannot run for ever.
Use a timer in that case.

In Xengine, events are killed after a timeout.

- Issue History
Date Modified Username Field Change
2019-08-19 14:29 polybius New Issue
2019-08-19 14:32 UbitUmarov Note Added: 0035594


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker