Creating an object that's the same in Second Life and Open Sim
18th May, 2015 | Back
What we're going to do
-Write a PHP script to take the objects info and write it to a database
-Set up a database to hold the object parameters
-Create Second Life object that can write it's parameters to a database
-Create OpenSim object that can read the parameters of an object from a database
I am very rusty and distracted. I know I was close to making this work before, but I need to find it in my inventory.
Couldn't find my previous version so I'm just going to start over.
After another hour of plugging at it, I'm making some basic progress. Nothing is cross talking, but the object in SL can get some of it's basic parameters (color,size,rotation) and spit it out in a string and the object in OS can listen for a string and update accordingly.
My workshops in Second Life and OpenSim are quite different.
Second day working on this. Started on the PHP script. It will need to GET some info that's sent to it and then send it to a MySQL database. Working on getting my in-world object to connect to the PHP script first.
This script is coming along. I even made a little controller to so I don't have to keep typoing the chat commands.
It's not pretty though.
Ended up with this for the PHP. Next step is to get the script connecting to a little database to write the values.
Like this one. Then, my OpenSim object will need to connect to another script that will get the information from the database. But I'm going to work on that another day.
Worked on the PHP script a little more today. It takes input via GET and writes it to a database. Next step is to get it to check for existing object UUIDs and update instead of adding a new item each time. Then it'll need to get the object parameters from the database so it can send it to the in world object. Then I need to flesh out the rest of my in world scripts.
I don't feel like working on it any more today.
I got the objects working at least one way. Next is to get 2 way communication, then get them updating automatically.