Jump to content

Setting up a server site for LSL


ALI131129i
 Share

You are about to reply to a thread that has been inactive for 2263 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

If you are a Premium member (or have a good friend who is a Premium member ), the simplest solution is to create an Experience and save your data in KVP. That's one of the primary uses for Experiences and, arguably, their most valuable function.  You create a KVP key with

llCreateKeyValue("My_Data", "A string of data goes here");

and you can update it at any time with

llUpdateKeyValue("My-Data","New data goes here", FALSE,"");

or read it with

llReadKeyValue("My_Data");

You can pack each key with a single bit of data (as a string variable) or as a delineated set of data (again as a single string) that you parse to a list on readout.  Read more in the LSL wiki and at

 

 

 

  • Like 3
Link to comment
Share on other sites

Experience key KVPs are way easier to handle and use than http bridges to PHP/SQL databases. However I prefer the latter because I can easily see the aggregation of the data. e.g. I have seen that I have designed my last game way to difficult at the start as 90% of players dropped out in the first quater of the game. Now I am trying to design my next game as easy as possible at the start in order to hook up players before giving bigger challenges. Without an external database and by just using KVP, I would have never realised my mistake...

Link to comment
Share on other sites

If you don't have access to a site where you can host your own files,

I've found you can  use Google to get data persistence. You send your data

via http to a google form that is linked to a google spreadsheet, the data gets stored

in the spreadsheet, and you use http to GET the sheet's info from the cell you are interested in :)

the url looks something like this... ( pulling from cell J2 )

https://docs.google.com/spreadsheets/d/(spreadsheet id?)/pubhtml?gid=(some id?)&single=true&gid=0&output=txt&range=J2

you can look up vids on youtube & info on stackoverflow etc on how to query a google sheet ?

 

Edited by Xiija
  • Like 4
  • Thanks 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2263 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...