Change font size
It is currently Sun Dec 15, 2019 11:23 am

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 5 posts ]
Author Message
 Post subject: Script fo read/write on disk ?
PostPosted: Wed Mar 20, 2013 9:08 am 

Joined: Wed Mar 20, 2013 9:07 am
Posts: 2
Hello,

Can you suggest how to do a script to read & write on a file on disk ?

Thank you,
-michel


Top
 Profile  
 
 Post subject: Re: Script fo read/write on disk ?
PostPosted: Wed Mar 20, 2013 10:48 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
Not sure if my info is 100% fresh but i think there is no function allowing direct write to disk. If this is correct then you have generally 4 options
1) write a notecard
http://opensimulator.org/wiki/OSSL_Impl ... #Notecards
2) create a web service (PHP or so) secured by IP (if localhost) and simple auth. Then call this webservice by the script
3) write own opensim module doing what you want.
4) add own OSSL function (harder to maintain than 3)

Bo


Top
 Profile  
 
 Post subject: Re: Script fo read/write on disk ?
PostPosted: Wed Mar 20, 2013 11:14 am 
Furious Typer

Joined: Tue Mar 06, 2012 3:57 pm
Posts: 101
Hi Michel,

can you tell me what the script should do, play stream music from your PC, save automatic your oars when you start, restart opensim after 24 hours, etc etc etc ..... ?
and which system do you use windows or Linux ?

Hans


Top
 Profile  
 
 Post subject: Re: Script fo read/write on disk ?
PostPosted: Sat Apr 20, 2013 3:55 am 

Joined: Wed Mar 20, 2013 9:07 am
Posts: 2
Hello Bo and Hans,

Thank you very much for the replies.

Sorry for the delay, but I forgot to set up automatic notification of replies.... I'm new here...

I'm planning to build a "simple" serious game -- scripts should e.g. display score infos on screen, and also write scores on disk per user. Many other things too actually (mainly to be defined sooner or later).

Servers will be Linux, clients will be Windows mainly.

Btw: i just heard about SLDB (http://aubretec.com/products/sldb) which could help too -- any feedback about it ?

-michel


Top
 Profile  
 
 Post subject: Re: Script fo read/write on disk ?
PostPosted: Sun Apr 21, 2013 10:41 pm 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
I didn't try that system. But anything with real database out of LSL is the right way ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 5 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net