Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008369opensim[REGION] Script Functionspublic2018-09-13 03:502020-06-28 04:55
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Statuspatch includedResolutionreopened 
PlatformPCOSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0008369: [PATCH] llRequestUserKey not implemented
DescriptionSee [^]
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Attached Filesdiff file icon llRequestUserKey-Reimplemented.diff [^] (6,141 bytes) 2019-10-07 07:50 [Show Content]

- Relationships
related to 0008697patch included [PATCH] Implement llRequestUserKey 

-  Notes
Mandarinka Tasty (reporter)
2018-09-22 06:22
edited on: 2018-09-22 06:23

Hello) I have written the implementation of llRequestUserKey(string username).

Here is an example of a school script to test it in-world:

integer a;
integer chan;
key toucher;
string name;
    touch_start(integer num)
        if(a == 0)
            chan = (integer)llFrand(DEBUG_CHANNEL) * -1;
            toucher = llDetectedKey(0);
            llTextBox(toucher,"\nTo receive the user's key\nplease type resident's name in a box below:\n",chan);
            if(llDetectedKey(0) != toucher)
                llRegionSayTo(llDetectedKey(0),0,"\n\nPlease wait a moment.Busy with another resident.\n");
    listen(integer Channel,string Name,key ID,string Text)
        name = Text;
    dataserver(key RequestID,string Data)
        if(Data != NULL_KEY)
            llRegionSayTo(toucher,0,"\n\n"+name+"'s key is: "+Data+"\n");
            llRegionSayTo(toucher,0,"\n\nResident: "+name+" doesn't exist.\n");
        llRegionSayTo(toucher,0,"\n\nSession has expired. Try again later.\n");

That new function returns userkey of any avatar, not only located in the scene, script is in, but also located in other scenes and offline as well.

One can also return the key of the foreign user avatar, certainly under condition, that appropriate hypergrid service has been enabled on the foreign grid side.

I'd like you to test this patch and I'd be very grateful for that)

The supported cases are: username = "FirstName LastName"
or username = "FirstName.LastName"

So suggested tests are:

John Smith

The technique I have applied here, varies from the very last patch of llName2Key, since I do not proceed scan of any grid database to compare strings.

djphil (reporter)
2018-09-22 09:51

Thank you man, it's super nice :)
Mandarinka Tasty (reporter)
2018-09-23 05:49

@djphil ) I'm glad, you have liked it :)
BillBlight (developer)
2018-09-24 00:51

@Mandarinka, I tested your suggested tests and can confirm they work.
Mandarinka Tasty (reporter)
2018-09-24 13:09

@watcher ) Thank you very much for your tests.
tampa (reporter)
2019-10-07 06:47

Recent changes on master broke this patch, it did not apply before that, but that was solvable, the recent change however makes the patch fail to build. Ubit removed the UserAgentConnector method it uses and so on build it fails to connect with that method. The patch thus needs a rewrite against current master to apply and build again.
UbitUmarov (administrator)
2019-10-07 07:33

we still didnt add that function
those using that patch please replace line

UserAgentServiceConnector userConnection = new UserAgentServiceConnector(serverURI, true);


UserAgentServiceConnector userConnection = new UserAgentServiceConnector(serverURI);

(ie remove the true parameter no longer in usage)
tampa (reporter)
2019-10-07 07:50

I added a reimplemented patch that builds against master
UbitUmarov (administrator)
2019-10-07 08:53

Mandarinka Tasty (reporter)
2019-10-25 14:50

I've removed the original patch of mine.
tampa (reporter)
2019-10-25 15:40

I don't know what happened here, but this is neither resolved nor said to be "won't fix", re-opening

@Mandarinka Tasty I don't know why you did this, but this is not how this should be handled at all, please don't resolve issues that you did not open nor actually have any control over, especially not marking them as "won't fix" just because YOU don't want to fix them.
djphil (reporter)
2020-06-28 03:03

Following a recent update of my simulator I tried again to use this function but it does not seem to be implemented yet.

Do you have any information about this?
Thank you in advance.
tampa (reporter)
2020-06-28 03:58

I have not actually tried this recently, but the patch still builds against master as far as I can tell, if all parts are working the function should be available to use. Have you built with the patch? It's not on master yet I think.
djphil (reporter)
2020-06-28 04:55

No no i didn't build with the patch
I simply took advantage of the opportunity to have updated my simulator to test this again.
I thought it was already included but currently it seems not.

- Issue History
Date Modified Username Field Change
2018-09-13 03:50 djphil New Issue
2018-09-13 03:50 djphil Physics Engine BulletSim => ubODE
2018-09-22 06:15 Mandarinka Tasty File Added: 0001-llRequestUserKey-implementation.patch
2018-09-22 06:22 Mandarinka Tasty Note Added: 0033049
2018-09-22 06:22 Mandarinka Tasty Status new => patch included
2018-09-22 06:22 Mandarinka Tasty Note Edited: 0033049 View Revisions
2018-09-22 06:23 Mandarinka Tasty Note Edited: 0033049 View Revisions
2018-09-22 09:51 djphil Note Added: 0033050
2018-09-23 05:49 Mandarinka Tasty Note Added: 0033052
2018-09-24 00:51 BillBlight Note Added: 0033055
2018-09-24 13:09 Mandarinka Tasty Note Added: 0033057
2018-09-26 06:38 Fly-Man- Summary [SCRIPT FUNCTION] llRequestUserKey not implemented => [PATCH] llRequestUserKey not implemented
2019-10-07 06:47 tampa Note Added: 0035713
2019-10-07 07:33 UbitUmarov Note Added: 0035714
2019-10-07 07:50 tampa File Added: llRequestUserKey-Reimplemented.diff
2019-10-07 07:50 tampa Note Added: 0035715
2019-10-07 08:53 UbitUmarov Note Added: 0035716
2019-10-25 14:49 Mandarinka Tasty File Deleted: 0001-llRequestUserKey-implementation.patch
2019-10-25 14:50 Mandarinka Tasty Note Added: 0035784
2019-10-25 14:50 Mandarinka Tasty Status patch included => resolved
2019-10-25 14:50 Mandarinka Tasty Resolution open => won't fix
2019-10-25 14:50 Mandarinka Tasty Assigned To => Mandarinka Tasty
2019-10-25 15:40 tampa Note Added: 0035786
2019-10-25 15:40 tampa Status resolved => patch included
2019-10-25 15:51 UbitUmarov Assigned To Mandarinka Tasty =>
2019-10-25 15:53 UbitUmarov Resolution won't fix => reopened
2020-05-03 09:17 djphil Relationship added related to 0008697
2020-06-28 03:03 djphil Note Added: 0036560
2020-06-28 03:58 tampa Note Added: 0036565
2020-06-28 04:55 djphil Note Added: 0036567

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker