Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006504opensim[REGION] Script Functionspublic2013-01-16 01:152013-01-16 07:03
Reporterdogwomble 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOpenSim 0.7.4 (Stable)OSWindowsOS VersionServer 2003
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006504: llRezObject quirk when attached as a HUD
DescriptionHi,

I have noticed a quirk when using llRezObject in a scripted HUD.

Before people start askign weird things, the idea is to have a number of useful objects (eg. a pose stand or building platform) easily available as part of the HUD.

The code I am using is as follows:

    listen(integer channel, string name, key id, string message)
    {
        if (message == "20m Platform")
        {
            llRezObject("20m Building Platform", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 1);
        }
    }

The 20m Building Platform is non-physical and is a simple 1-prim cube with a texture.

When the HUD is placed on the ground, the HUD works as expected - when I ask for a 20 meter building platform, I get one.

When the HUD is actually worn as a HUD, it works - except that I get *two* building platforms.
Steps To Reproduce* Create a cube for the HUD
* Place a sample object inside the HUD
* Insert the following script into the HUD prim

integer CHANNEL = -69;
list MAIN_MENU = [ "20m Platform" ];
    
default
{
    state_entry()
    {
        llListen(CHANNEL, "", NULL_KEY, "");
    }
    
    touch_start(integer total_num)
    {
        llDialog(llDetectedKey(0), "Please choose an option.", MAIN_MENU, CHANNEL);
    }
    
    listen(integer channel, string name, key id, string message)
    {
        if (message == "20m Platform")
        {
            llRezObject("INSERT THE NAME OF THE REZZZSBLE OBJECT HERE", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 1);
        }
    }
}


* Take a copy of the HUD prim and wear as a HID
* Click the HUd and rezz the option
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows32
Mono VersionNone
ViewerSingularity
Attached Files

- Relationships

-  Notes
(0023413)
Talun (manager)
2013-01-16 07:03
edited on: 2013-01-16 07:04

I tried (in stand alone mode) in both a fresh compile of head and a fresh copy of 0.7.4 an it worked OK.

You say
* Take a copy of the HUD prim and wear as a HID
* Click the HUd and rezz the option

Was the original copy of the prim still inworld? the only way I could get 2 platforms rezzed was to have 2 copies of the hud, one attached and one on the ground (or worn elsewhere) which would be correct behaviour.


- Issue History
Date Modified Username Field Change
2013-01-16 01:15 dogwomble New Issue
2013-01-16 07:03 Talun Note Added: 0023413
2013-01-16 07:04 Talun Note Edited: 0023413 View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker