ll.RezObjectWithParams() can return an uncompressed uuid
inĀ progress
Tapple Gao
This script:
u = ll.RezObjectWithParams("00", {})
print(`"{u}"`, typeof(u), u.bytes)
prints
[7:59 AM] Object: Could not find object '00'.
[7:59 AM] Object: "" uuid nil
Log In
H
Harold Linden
marked this post as
inĀ progress
H
Harold Linden
marked this post as
planned
Tapple Gao
Perhaps this should be fixed in LSL as well. It's pretty unconventional, and it's a new-ish function
Lucia Nightfire
Tapple Gao
Can you please post an LSL script that repros the issue?
Tapple Gao
Lucia Nightfire
default { state_entry() {
list l = [llRezObjectWithParams("lol", [])];
llOwnerSay((string)(llGetListEntryType(l, 0) == TYPE_KEY));
llOwnerSay((string)(llList2Key(l, 0) == ""));
llOwnerSay((string)(llList2Key(l, 0) == NULL_KEY));
}}
llRezObjectWithParams
returns (key)""
, and so prints:[9:43 PM] Object: Could not find object 'lol'.
[9:43 PM] Object: 1
[9:43 PM] Object: 1
[9:43 PM] Object: 0
Instead, it should return
NULL_KEY
, and so print:[9:43 PM] Object: Could not find object 'lol'.
[9:43 PM] Object: 1
[9:43 PM] Object: 0
[9:43 PM] Object: 1