Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006872opensim[REGION] Script Functionspublic2013-12-01 13:062014-03-25 07:45
Reporterdanbanner 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006872: calling non existant state does not fail to compile
DescriptionChanging states to one that doesnt exist still compiles fine and does not cause an error.
Steps To Reproducecompile this script and run it:

default
{ state_entry()
    {
        llSay(0,"default state");
    }
        touch_start(integer number)
    {
        llSay(0,"default - > test2");
        state test2;
    }
}
 
state test2
{
    state_entry()
    {
        llSay(0,"state is test2");
    }
    touch_start(integer number)
    {
        llSay(0,"test2 -> test3");
        state test4;
    }
}
 
state test3
{
    state_entry()
    {
        llSay(0,"state is test3");
    }
        touch_start(integer number)
    {
        llSay(0,"test3 -> default");
        state default;
    }
}
Additional InformationNotice that it has "state test4;" (which doesn't exist) and yet the script compiles fine.

http://i.imgur.com/ZliZYgi.png [^]
TagsNo tags attached.
Git Revision or version numberr/24087
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Viewerfirestorm, kokua, etc
Attached Filestxt file icon state-script.txt [^] (590 bytes) 2013-12-01 13:06 [Show Content]

- Relationships

-  Notes
(0025272)
danbanner (manager)
2014-02-22 09:53

This is still a big fat bug
(0025581)
danbanner (manager)
2014-03-25 07:45

here is a more clarified example that compiles fine and produces no errors:

default
{
    state_entry()
    {
        state B;
    }
}

state A
{
    state_entry()
    {
     
    }
    
}

- Issue History
Date Modified Username Field Change
2013-12-01 13:06 danbanner New Issue
2013-12-01 13:06 danbanner File Added: state-script.txt
2014-02-22 09:53 danbanner Note Added: 0025272
2014-03-25 07:45 danbanner Note Added: 0025581


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker