These forums are CLOSED. Please visit the new forums HERE
Static Data or Database |
|
Hiro Turnbull
Freelance Scripter
Join date: 20 Apr 2005
Posts: 24
|
05-25-2005 13:58
Is there a way I can store data in a notecard. Or change the contents of a note card through a script. What I am looking for is some sort of database. Any thoughts?
|
Talila Liu
Micro Builder
Join date: 29 Jan 2004
Posts: 132
|
05-25-2005 14:34
Nope.
But it has been mentioned that there will be a Database object in the future that can store find and remove data. Just not today, and not tomorrow. |
slick McCoy
Registered User
Join date: 23 Apr 2004
Posts: 47
|
05-25-2005 16:13
Nope. But it has been mentioned that there will be a Database object in the future that can store find and remove data. Just not today, and not tomorrow. So Friday then? lol j/k |
Satchmo Prototype
eSheep
![]() Join date: 26 Aug 2004
Posts: 1,323
|
05-25-2005 16:24
llEmail and XMLRPC are your friends when it comes to persistant data. However there is an ugly hack on the LSL WIKI :Hacks called " Permanent Small Memory Information Storage" that shows you how to use (llSetObjectDesc / llGetObjectDesc) to store small bits of data in a prims description.
_____________________
---------------------------------------------------------------------------------------------------------------- The Electric Sheep Company Satchmo Blogs: The Daily Graze Satchmo del.icio.us |
Hiro Turnbull
Freelance Scripter
Join date: 20 Apr 2005
Posts: 24
|
05-26-2005 15:31
llEmail and XMLRPC are your friends when it comes to persistant data. However there is an ugly hack on the LSL WIKI :Hacks called " Permanent Small Memory Information Storage" that shows you how to use (llSetObjectDesc / llGetObjectDesc) to store small bits of data in a prims description. Is xml-rpc even implemented correctly yet? I have been reading about it and from what I can tell from the LSL Wiki you can't do much with it. Anyone have any advice or knowledge about xml-rpc? |
Satchmo Prototype
eSheep
![]() Join date: 26 Aug 2004
Posts: 1,323
|
05-26-2005 17:47
Is xml-rpc even implemented correctly yet? I have been reading about it and from what I can tell from the LSL Wiki you can't do much with it. Anyone have any advice or knowledge about xml-rpc? Inbound XML-RPC works just fine. So conventional theory says you send an email out to an external server when you need to start XML-RPC. Once you have established an inbound XML-RPC message, you can send data to your server using the XML-RPC reply messege. The obvious problem is email latency. So you have to design your scripts around that piece of knowledge. A more subtle problem is the fact that XML-RPC requires the objects Key. Keys often change, so they have to email thier new keys to the server. Sending a key on initializaition helps mitigate that. There is also a 1-3 second latency on XML-RPC messeges, which for data storage is no big deal. Have any more specific questions? Perhaps I can help. -Satchmo- _____________________
---------------------------------------------------------------------------------------------------------------- The Electric Sheep Company Satchmo Blogs: The Daily Graze Satchmo del.icio.us |
Jeffrey Gomez
Cubed™
![]() Join date: 11 Jun 2004
Posts: 3,522
|
05-26-2005 18:22
Inbound XML-RPC works just fine. So conventional theory says you send an email out to an external server when you need to start XML-RPC. Once you have established an inbound XML-RPC message, you can send data to your server using the XML-RPC reply messege. Just to add to this, for smaller scripts in terms of data, you can loop an inbound XML-RPC call and send out data with the reply message at regular intervals. This takes a little restraint and knowledge of the system, though, because you don't want to turn that into a heck of a lot of requests in a small span of time. I do something like this with my IRC bot, for example. Every time my bot is pinged by the server, I send a request into Second Life for any data that might have not been sent yet. _____________________
---
|
Adam Zaius
Deus
![]() Join date: 9 Jan 2004
Posts: 1,483
|
05-27-2005 07:24
On the latency issue, it's not too bad if you have a dedicated server. I can get sub 1-second round-time ping responses from the twin servers that I use, when using email, XMLRPC is roughly a second or so to do a full response.
-Adam _____________________
|
Satchmo Prototype
eSheep
![]() Join date: 26 Aug 2004
Posts: 1,323
|
05-27-2005 08:36
I can get sub 1-second round-time ping responses from the twin servers that I use, when using email, XMLRPC is roughly a second or so to do a full response. -Adam Yup, it's all in the system design too. As long as you don't design your scripts to run up against the email rate limits, it's a pretty resonable latency. _____________________
---------------------------------------------------------------------------------------------------------------- The Electric Sheep Company Satchmo Blogs: The Daily Graze Satchmo del.icio.us |