Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When take back an object, store in known parent inv folder #12

Open
lickx opened this issue Aug 22, 2023 · 0 comments
Open

When take back an object, store in known parent inv folder #12

lickx opened this issue Aug 22, 2023 · 0 comments

Comments

@lickx
Copy link
Owner

lickx commented Aug 22, 2023

This would allow you to take the object back, then the object is back in its original inventory folder.
This would also help in showing the most recent object rezzed in the "About Land" floater, in the Objects tab Mantis 5962

Database
This doesn't need a database migration, all fields exist.

OAR's
Todo: do rez time and parentfolder get written away (save oar) and loaded (load oar)?

On OAR export; both object rez time and object parent inv folder need to be serialized
rez time in unixtime, parent inv folder is a UUID

On OAR import; both object rez time and object parent inv folder need to be de-serialized
With OAR import, if parent inv folder doesn't exist or no such UUID is specified, set the rezzed obj parent inv folder to null key. If no rezdate value exists, set the rezzed obj date to NOW in unixtime

Rezzing an object
The object gets reztime NOW in unixtime, and parent inv folder set to the UUID of the inventory folder the object was rezzed from.
This is already the case. These data get stored and loaded.

Taking back an object
If the parent inv folder taken from the object exists, add the object there. If it is NULL, put it in the system Objects folder. This unfortunately only works until the region is restarted. After a restart, when taking an object it lands in Objects within inventory, not in its parent folder. This is strange, because the code shows the parent folder is set on the item to be returned to inventory.

  • PrimCountModule
  • LandManagement
@lickx lickx changed the title On rezzed objects, store and act upon rezdate and parent inv folder When take back an object, store in known parent inv folder Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant