Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000821 [opensim] [REGION] Script Functions minor always 2008-03-27 01:18 2008-04-10 14:15
Reporter tglion View Status public  
Assigned To krtaylor
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version Product Version
  Target Version Product Build 4004
Summary 0000821: llDetectedKey(0) not passed into touch event. Can't figure out who touched something.
Description lsl-Function llDetectedKey(0) does not work!


Chat-Result:
[23:55] Primitive: Error executing script function "touch_start":
Object reference not set to an instance of an object

Log:
Region# :
ScriptEngine: Executing function name: default_event_touch_start
08:56:29 - [AsyncLSL]: GetSensorList missing localID: 720321
08:56:29 - [CLIENT]: unhandled ObjectSpinStop packet

Region# :
Steps To Reproduce 1.) Create a script (see Additional Information) in Inventory
    (Creating script in object-content directly does not work!)

2.) Create a cube prim and rez it to ground.
    (No script error or warning occurs)

3.) Touch the object
    (Error-Message see Description)
Additional Information Script:

default {
    state_entry() {
        llOwnerSay("Script is ready.");
    }
    
    on_rez(integer start_param) {
        llResetScript();
    }

    touch_start(integer total_number) {
        key toucher = llDetectedKey(0);
        llOwnerSay("Toucher: "+(string)toucher);
    }
}

Client-Version-Info: (Help -> About Second Life...)
Second Life 1.19.0 (5) Feb 28 2008 17:18:12 (Second Life Release)

You are at 2559872.1, 2559292.7, 22.7 in Tiberium located at tg.webhop.net (85.25.133.107:9001)
OpenSimulator v0.5-SVN on Welcome to SUSE LINUX 10.1 (i586) - Kernel %r ChilTasks:True PhysPrim:True

CPU: AMD (Unknown model) (2412 MHz)
Memory: 3072 MB
OS Version: Microsoft Windows XP Service Pack 2 (Build 2600)
Graphics Card Vendor: ATI Technologies Inc.
Graphics Card: RADEON X800 GTO x86/MMX/3DNow!/SSE2
OpenGL Version: 2.0.5696 WinXP Release
LLMozLib Version: 1.1.0 (Mozilla GRE:1.8.0.12_0000000000)
Packets Lost: 56/7181 (0.8%)
Viewer Digest: 6b1bac12-2a86-e1f2-aa5e-3108db5c8eeb
Tags No tags attached.
Git Revision
SVN Revision 4004
Run Mode Grid (Multiple Regions per Sim)
Physics Engine ODE
Environment Mono / Linux32
Mono Version None
Attached Files ? file icon llDetectedKey.patch [^] (1,007 bytes) 2008-04-02 11:51

- Relationships
related to 0000883closedidb llDetectedKey() still does not work. (0000821 has not been resolved) 

-  Notes
(0001212)
tglion (reporter)
2008-03-27 09:51

Steps to reproduce (updated):

1.) Create a cube prim and rez it to ground.

2.) Create a script (see Additional Information) in Inventory
    (Creating script in object-content directly does not work!)

3.) Put script into the primitive
    (No script error or warning occurs)

4.) Touch the object
    (Error-Message see Description)
(0001240)
krtaylor (developer)
2008-03-28 07:23

touch_start is not currently supported - llDetectedKey appears to be implemented, needs re-test in script w/o touch_start event
(0001354)
thomas (reporter)
2008-04-02 01:05

touch_start works well. But llDetectedXXX do not work.
(0001362)
krtaylor (developer)
2008-04-02 08:56

Touch verified working with:

default
{
    touch_start(integer number)
    {
        llOwnerSay("Touched");
    }
}
(0001363)
krtaylor (developer)
2008-04-02 08:59

Problem isolated and duplicated with:

default
{
    touch_start(integer number)
    {
        llOwnerSay("Touched key: " +(string)llDetectedKey(0));
    }
}
(0001364)
krtaylor (developer)
2008-04-02 09:01

Console message:

10:59:23 - [AsyncLSL]: GetSensorList missing localID: 720002
10:59:23 - [CLIENT]: unhandled ObjectSpinStop packet
(0001372)
krtaylor (developer)
2008-04-02 11:53

Fixed, see attached patch. A null object reference threw an exception. This fixes llDetectedKey, but exposes the fact that the key code is not fully functional (GetSensorList).
(0001373)
sdague (administrator)
2008-04-02 11:59

fixed via patch from krtaylor
(0001445)
tglion (reporter)
2008-04-09 03:26

Now llDetectedKey(0) seem always return null or empty string?
Tested with r4160
(0001460)
tglion (reporter)
2008-04-10 04:20

Seem to be resolved now.
Tested on r4170
(0001473)
krtaylor (developer)
2008-04-10 14:14

Fixed with touch support in r4168.
(0001474)
krtaylor (developer)
2008-04-10 14:15

fixed in r4168

- Issue History
Date Modified Username Field Change
2008-03-27 01:18 tglion New Issue
2008-03-27 01:18 tglion SVN Revision => 4004
2008-03-27 01:18 tglion Run Mode => Grid (Multiple Regions per Sim)
2008-03-27 01:18 tglion Physics Engine => ODE
2008-03-27 01:18 tglion Environment => Mono / Linux32
2008-03-27 09:27 Teravus Summary llDetectedKey(0) seems not work. => llDetectedKey(0) not passed into touch event. Can't figure out who touched something.
2008-03-27 09:51 tglion Note Added: 0001212
2008-03-28 07:23 krtaylor Note Added: 0001240
2008-03-28 07:27 krtaylor Issue Monitored: krtaylor
2008-04-02 01:05 thomas Note Added: 0001354
2008-04-02 08:56 krtaylor Note Added: 0001362
2008-04-02 08:59 krtaylor Note Added: 0001363
2008-04-02 09:01 krtaylor Note Added: 0001364
2008-04-02 11:51 krtaylor File Added: llDetectedKey.patch
2008-04-02 11:53 krtaylor Note Added: 0001372
2008-04-02 11:59 sdague Status new => resolved
2008-04-02 11:59 sdague Resolution open => fixed
2008-04-02 11:59 sdague Assigned To => sdague
2008-04-02 11:59 sdague Note Added: 0001373
2008-04-03 23:08 Teravus Relationship added related to 0000883
2008-04-09 03:26 tglion Status resolved => feedback
2008-04-09 03:26 tglion Resolution fixed => reopened
2008-04-09 03:26 tglion Note Added: 0001445
2008-04-10 04:20 tglion Note Added: 0001460
2008-04-10 14:14 krtaylor Note Added: 0001473
2008-04-10 14:14 krtaylor Status feedback => assigned
2008-04-10 14:14 krtaylor Assigned To sdague => krtaylor
2008-04-10 14:15 krtaylor Status assigned => resolved
2008-04-10 14:15 krtaylor Fixed in Version => SVN
2008-04-10 14:15 krtaylor Resolution reopened => fixed
2008-04-10 14:15 krtaylor Note Added: 0001474
2008-04-10 14:15 krtaylor Status resolved => closed


Mantis 1.1.1[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker