View Single Post
08/11/18, 10:58 AM   #7
Cardinal05
AddOn Author - Click to view addons
Join Date: Feb 2018
Posts: 33
Originally Posted by sirinsidiator View Post
In that case, maybe at some point you could implement functions to make these changes in bulk? For example a function to start a transaction. Once that is called, the usual functions don't send the requests to the server directly, but instead they are held back until the addon calls the function to finish the transaction, or rolls it back (much like with SQL databases). In the background you can then optimize these calls (group and compress) to minimize the impact on the server.
That would be an awesome alternative. Even a change Position & Orientation function that accepted a basic table of furniture Ids and coords/orientations:

local furnishings = { }

table.insert( furnishings, { id = someFurnitureId, z = 0, y = 0, z = 0, pitch = 0, yaw = 0, roll = 0 } )
table.insert( furnishings, { id = someFurnitureId, z = 0, y = 0, z = 0, pitch = 0, yaw = 0, roll = 0 } )
table.insert( furnishings, { id = someFurnitureId, z = 0, y = 0, z = 0, pitch = 0, yaw = 0, roll = 0 } )

HousingEditorRequestChangePositionsAndOrientations( furnishings )

If any of that would be possible, that would be a tremendous win for Housing.
(and if not, we understand of course -- I'm super thankful for the stuff you guys have already helped us with! <3)