Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005830opensim[REGION] Script Functionspublic2011-12-22 19:262011-12-22 19:39
Reporterdanbanner 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOpenSimOSlinuxOS Version64bit
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0005830: llAbs does not accept certain assignment operators
DescriptionllAbs fails when used with an '='
Below is a test script that compiles fine in SL but fails on opensim
Steps To Reproduceinteger test1 = FALSE;
integer test2 = TRUE;
integer test3 = FALSE;

default
{
    state_entry()
    {
        test3 = llAbs(test3 -= 1);
        llSay(0,"The absolute value of " + (string)test1 + " is: "+(string)llAbs(test1) );
        llSay(0,"The absolute value of " + (string)test2 + " is: "+(string)llAbs(test2) );
        llSay(0,"The absolute value of " + (string)test3 + " is: "+(string)llAbs(test3) );
    }
}
TagsNo tags attached.
Git Revision or version number 456c89a
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineODE
Script Engine
EnvironmentMono / Linux64
Mono Version2.10
ViewerAny
Attached Files

- Relationships

-  Notes
(0020595)
nebadon (administrator)
2011-12-22 19:30

I have confirmed this
(0020596)
kcozens (administrator)
2011-12-22 19:39

A lot of scripts from SL contain bad programming practices and/or other things that just won't work in an Open Simulator based grid. This is another example. Don't use an assignment statement as a parameter to a function. It also doesn't make sense to do so since the variable is about to be set to the return from llAbs(). Just change the line to "test3 = llAbs(test3 - 1);".

- Issue History
Date Modified Username Field Change
2011-12-22 19:26 danbanner New Issue
2011-12-22 19:30 nebadon Note Added: 0020595
2011-12-22 19:30 nebadon Status new => confirmed
2011-12-22 19:39 kcozens Note Added: 0020596


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker