Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007970opensim[REGION] Script Functionspublic2016-07-20 16:572016-07-21 10:53
ReporterMandarinka Tasty 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Statuspatch includedResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007970: Enhancement of osNpcCreate. Giving possibility to set any title, regardless the object's group
DescriptionHello :)

I've created possibility to set any title, regardless the object's group that

creates NPC.

Here is OSSL example of the usage:

key npc = NULL_KEY;
default
{
    touch_start(integer num)
    {
        if(npc == NULL_KEY)
        {
            osOwnerSaveAppearance("MyClone");
            llSetTimerEvent(2);
        }
        else
        {
            osNpcRemove(npc);
            npc = NULL_KEY;
            llRemoveInventory("MyClone");
        }
    }
    timer()
    {
        llSetTimerEvent(0);
        npc = osNpcCreate("John","Smith",llGetPos()+<0,0,2>,"MyClone","I am the Bot");
    }
}

The patch has been attached.
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
Script Engine
EnvironmentUnknown, Mono / Linux32, Mono / Linux64, Mono / Windows, Mono / OSX, .NET / Windows32, .NET / Windows64
Mono VersionOther
Viewer
Attached Filespatch file icon 0001-Enhancement-of-osNpcCreate.-Giving-possibility-to-se.patch [^] (8,013 bytes) 2016-07-20 16:57 [Show Content]

- Relationships

-  Notes
(0030939)
Mata Hari (reporter)
2016-07-21 07:37
edited on: 2016-07-21 07:38

Will your patch in any way cause problems with the assorted changes to permissions, etc recently added in 0.9? More importantly, is your patch 100% compatible with existing scripts that use the existing function (last,first,position,cloneFrom,flags)?

(0030940)
Mandarinka Tasty (reporter)
2016-07-21 07:52

Hello. The string title, that I have introduced in my patch does not change anything in the context of parameters (last,first,position,cloneFrom,flags)

It is simply enhancing idea of grouptitle.

I also use defintion of ownership of npc in a followign way:

1. osNpcCreate("John","Smith",llGetPos()+<0,0,2>,"MyClone"); <--- that creates npc owned by the owner of the script

2. osNpcCreate("John","Smith",llGetPos()+<0,0,2>,"MyClone",OS_NPC_NOT_OWNED); <--- that creates npc not owned = npc can listen scripts owned by other users.

That is logical for me and i also consider that , You also agree with it , in

aspect of your dance system: created npc should be always defaultly owned by

owner of the prim, that creates them
(0030941)
Mata Hari (reporter)
2016-07-21 10:53

Yes, I'm not so much worried about what you're adding, I just want to be sure that if a script executes a osNpcCreate command from a script written for 0.8.x it will still work properly under 0.9 after your patch is applied. As you can imagine, I wouldn't want to have to redo and redistribute (and support!) all of my existing scripts that are out there in the metaverse that use NPCs. I've already had to do it once with 0.9...I really, really don't want to have to do it yet again.

- Issue History
Date Modified Username Field Change
2016-07-20 16:57 Mandarinka Tasty New Issue
2016-07-20 16:57 Mandarinka Tasty File Added: 0001-Enhancement-of-osNpcCreate.-Giving-possibility-to-se.patch
2016-07-20 16:58 Mandarinka Tasty Status new => patch included
2016-07-21 07:37 Mata Hari Note Added: 0030939
2016-07-21 07:38 Mata Hari Note Edited: 0030939 View Revisions
2016-07-21 07:38 Mata Hari Note Edited: 0030939 View Revisions
2016-07-21 07:52 Mandarinka Tasty Note Added: 0030940
2016-07-21 10:53 Mata Hari Note Added: 0030941


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker