Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008577opensim[REGION] Script Functionspublic2019-08-16 06:422019-08-16 13:55
Reporterdjphil 
Assigned Todjphil 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformPCOSWindowsOS Version10
Product Version 
Target VersionFixed in Versionmaster (dev code) 
Summary0008577: [SCRIPT FUNCTION] osGetInventoryName and osGetInventoryDesc by itemid are broken
DescriptionosGetInventoryDesc by itemid remain empty, seems broken on current master
Steps To Reproduce
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch me to show osGetInventoryDesc");
    }

    touch_start(integer n)
    {
        string name = llGetInventoryName(INVENTORY_NOTECARD, 0);
        key uuid = llGetInventoryKey(name);
        llOwnerSay("osGetInventoryDesc(name) is " + osGetInventoryDesc(name));
        llOwnerSay("osGetInventoryDesc(uuid) is " + osGetInventoryDesc(uuid));
        llOwnerSay("osGetInventoryName(uuid) is " + osGetInventoryName(uuid));
    }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Environment.NET / Windows64
Mono VersionNone
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0035583)
UbitUmarov (administrator)
2019-08-16 13:28

llGetInventoryKey(name); does not return the item ID but the ID of the asset it points to

just added key osGetInventoryItemKey(string name)
this will return the item ID within the prim inventory

now the other functions you use should had been named ...InventoryItem.. for coerence, but well..
(0035584)
djphil (reporter)
2019-08-16 13:55

Subtle ...

osGetInventoryDesc and osGetInventoryName work perfectly with osGetInventoryItemKey

Ty sir!

- Issue History
Date Modified Username Field Change
2019-08-16 06:42 djphil New Issue
2019-08-16 13:28 UbitUmarov Note Added: 0035583
2019-08-16 13:55 djphil Note Added: 0035584
2019-08-16 13:55 djphil Status new => resolved
2019-08-16 13:55 djphil Fixed in Version => master (dev code)
2019-08-16 13:55 djphil Resolution open => fixed
2019-08-16 13:55 djphil Assigned To => djphil
2019-08-16 13:55 djphil Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker