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

Implenent SL LinksetData methods #55

Closed
renevega opened this issue Jul 23, 2023 · 3 comments · Fixed by #64
Closed

Implenent SL LinksetData methods #55

renevega opened this issue Jul 23, 2023 · 3 comments · Fixed by #64

Comments

@renevega
Copy link

Tracking the ⁠off-topic comments to get SL's LinksetData into OpenSim. Here is the arch-spec:
https://wiki.secondlife.com/wiki/Category:LSL_LinksetData
Second Life Wiki

Mike Chase — Today at 4:52 PM
It is a key value store and I'd probably use json for the representation internally. But the api is fetching values given a key so pretty simple to do with json and string in the database

Balpien Hammerer — Today at 4:52 PM
Yes, the architectural spec, which is K/V oriented, should be followed, though not
necessarily a key/value implementation in the sense of a database.

The fact there is a limit to the size strongly suggestions a serialized json implementation, just like High Fidelity did.
And, this makes it clear its serialized in the root prim: ..."It is possible for data to be rolled back to a previous state if the datastore is stored in an object that is restored via a simulator rollback, or in an attachment that is not properly saved back to the server on logout...."

Mike Chase — Today at 5:56 PM
Just adding that there is a "JsonStore" implementation in OptionalModules that could probably be adapted.

@Misterblue
Copy link

The underlying stored data could be a JSON string and additional functions to just store and fetch the JSON string could be added. The llLinkset* functions would be just operations on the JSON string. There could be a JSONPath operation on the JSON string also.

@renevega
Copy link
Author

Am implementing this. The prims table will have a mediumtext field, LinkSetData default NULL. The linkset data is stored in the root prim (linkNumber 0) as a json string. This data is decanted into an ordered associative list on SOG instancing and reserialized on SOG persist. All other operations act on the in-memory list.

@zontreck
Copy link

See #64

@mdickson mdickson linked a pull request Nov 16, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants