[JIRA] Updated: (SVC-388) llGetScriptName() returns script's old name

Harleen Gretzky (JIRA) no-reply at lindenlab.cascadeo.com
Sat Jan 23 14:07:34 PST 2010


     [ http://jira.secondlife.com/browse/SVC-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harleen Gretzky updated SVC-388:
--------------------------------

    Description: 
Steps to reproduce:

1.  Put this script in an object:
{code}
default
{
    changed(integer change) {
        if (change & CHANGED_INVENTORY)
            llOwnerSay("script name: " + llGetScriptName());
    }
}
{code}
2. Rename the script itself.

Observed results:

The script reports the old name, not the new name you give it.

Expected results:

The changed event tells the script that the name has changed.  However, llGetScriptName() still returns the old name.  llGetInventoryName() will return the new name.  llGetScriptName() should be updated BEFORE the changed() event runs.

Workaround:

llSleep(1.0) before calling llGetScriptName() in a changed() event.

  was:
Steps to reproduce:

1.  Put this script in an object:

default
{
    changed(integer change) {
        if (change & CHANGED_INVENTORY)
            llOwnerSay("script name: " + llGetScriptName());
    }
}

2. Rename the script itself.

Observed results:

The script reports the old name, not the new name you give it.

Expected results:

The changed event tells the script that the name has changed.  However, llGetScriptName() still returns the old name.  llGetInventoryName() will return the new name.  llGetScriptName() should be updated BEFORE the changed() event runs.

Workaround:

llSleep(1.0) before calling llGetScriptName() in a changed() event.


> llGetScriptName() returns script's old name
> -------------------------------------------
>
>                 Key: SVC-388
>                 URL: http://jira.secondlife.com/browse/SVC-388
>             Project: 2. Second Life Service - SVC
>          Issue Type: Bug
>          Components: Scripts
>            Reporter: Lex Neva
>
> Steps to reproduce:
> 1.  Put this script in an object:
> {code}
> default
> {
>     changed(integer change) {
>         if (change & CHANGED_INVENTORY)
>             llOwnerSay("script name: " + llGetScriptName());
>     }
> }
> {code}
> 2. Rename the script itself.
> Observed results:
> The script reports the old name, not the new name you give it.
> Expected results:
> The changed event tells the script that the name has changed.  However, llGetScriptName() still returns the old name.  llGetInventoryName() will return the new name.  llGetScriptName() should be updated BEFORE the changed() event runs.
> Workaround:
> llSleep(1.0) before calling llGetScriptName() in a changed() event.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.secondlife.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Jira-notify mailing list