OpenCollarTeam / OpenCollar

Other
121 stars 127 forks source link

Remote: Rez Inventory non functional #617

Open DogThingTypePerson opened 3 years ago

DogThingTypePerson commented 3 years ago

What version of OpenCollar are you using? 8.1

What behavior did you expect? To give a list of contents to rez

What behavior did you see instead? Nada, Zilch, Nuffin'

What steps does someone need to take to reproduce the problem? Add a leash post or whatever, full perms, to the Remote's contents. Press button. Voila!

(Tested in 3 different mainland sims with full rez rights, on two separate accounts)

Trinkitz commented 3 years ago

I tried this in 3 different mainland rez areas, and I was also unable to get a full-perm object to rez from the remote's contents.

tayaphidoux commented 1 year ago

wonder if the issue is the same one i came across when building my addon unit that rezes items for me, if you are checking for group permisisons it can cause issues i had to coment out that check form code i found to check if you can rez before doing so, below is the function that does check i think i got it from lslwiki when reserachign rezing, note i comented out the check for same group as parcel group.

integer g_iCanRezAt(vector pos)
{
    integer parcelFlags = llGetParcelFlags(pos);
    list parcelDetails = llGetParcelDetails(pos, [PARCEL_DETAILS_OWNER, PARCEL_DETAILS_GROUP]);
    key parcelOwner = llList2Key(parcelDetails, 0);
    //key parcelGroup = llList2Key(parcelDetails, 1);

    if (parcelFlags & PARCEL_FLAG_ALLOW_CREATE_OBJECTS) return TRUE;
    if (parcelOwner == llGetOwner()) return TRUE;
    //if (!llSameGroup(parcelGroup)) return FALSE;
    if (parcelFlags & PARCEL_FLAG_ALLOW_CREATE_GROUP_OBJECTS) return TRUE;
    return FALSE;
}