Change font size
It is currently Wed Mar 22, 2017 5:13 pm

Forum rules


Image



Post a new topicPost a reply Page 1 of 1   [ 9 posts ]
Author Message
 Post subject: Ready Player One ideas
PostPosted: Fri May 13, 2016 8:36 am 

Joined: Fri May 13, 2016 8:27 am
Posts: 8
Hi

I'm reading Ready Player One book and it describes an evolution of OpenSim. The way you can move, talk, use the inventory, ... is the same.
Steven Spielberg will make a film about this book: http://www.imdb.com/title/tt1677720/

I think people will try OpenSim and Second Life on 2018. This will be a new opportunity for the OpenSim ecosystem.

One of the important thing that Parzival does in the book is playing with virtual computers. And now the question:
Is there any way to control a computer from inside OpenSim?
Some kind of vnc client inside OpenSim?

Thank you


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Fri May 13, 2016 10:27 pm 
Furious Typer
User avatar

Joined: Mon Apr 25, 2011 6:48 pm
Posts: 186
Location: OSgrid, of course!
elmanytas,

It would be possible to create such an interface using a variety of mechanisms provided by Opensim.

In world, one could set the script language to C# and create whatever one could program.

There are IRC gateways and REST and HTTP interfaces, as well.

All of these options come with caveats, so it's best to know what you are doing or know someone who does.

That's the beauty of Opensim!

Shad


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Sat May 14, 2016 1:45 am 

Joined: Fri May 13, 2016 8:27 am
Posts: 8
So, in theory could be possible to integrate something like this https://github.com/humphd/VncSharp ?

Where can I find documentation about how to create opensim modules?


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Sat May 14, 2016 1:03 pm 

Joined: Sat Mar 13, 2010 1:34 am
Posts: 19
Though the info in this might be a bit dated, things change, I had spent some time on the same thought a couple years back and eventually was successful using a vnc solution. Perhaps there might be something in the write up that would help you. That was about 3 years ago so perhaps with all the improvements to OS and viewers some things I tried might work now that didn't then.

http://www.grabanickel.com:81/myfirstlife/index.php Forums / General / Working InWorld in Opensim.

(sorry I couldn't just provide a straight link, my efforts at trying to thwart the hackers has the addresses masked a bit, but follow the first url then use the rest as a guide). Good luck!


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Sun May 15, 2016 11:09 am 
Site Admin

Joined: Sun Jul 04, 2010 8:20 pm
Posts: 448
elmanytas, Here is a link for a sample region module https://github.com/BlueWall/ExampleSharedRegionModule

dan


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Tue May 17, 2016 1:11 am 

Joined: Fri May 13, 2016 8:27 am
Posts: 8
Orb Offcourse: the link is down. Would you make it online? I am very interested on your work.
dan banner: I am studying the repo.

Thank to both!


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Tue May 17, 2016 9:31 am 

Joined: Fri May 13, 2016 8:27 am
Posts: 8
Found: https://web.archive.org/web/20160517141 ... fec9bad133

You propose to use an ajax vnc client from inside a media prim to connect to a vnc server.

There is a problem: the connection in a media prim has the opensim client as origin. In Ready Player One the viewer connects to the server and all connections are made from the server.
The media prim would "create" a virtual browser in the server and all would happen in the OpenSim server. The viewer must be just an OpenSim viewer, not a web browser.

Maybe creating a docker container in the server with a browser and connecting to it.


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Wed May 18, 2016 12:53 am 

Joined: Sat Mar 13, 2010 1:34 am
Posts: 19
Then I'd suggest you follow Dan's suggestion of the region module. I wasn't particularly worried about how it happened or where it came from, just that I could get a desktop to work with inside the viewer.


Top
 Profile  
 
 Post subject: Re: Ready Player One ideas
PostPosted: Sun Jul 10, 2016 1:25 am 

Joined: Fri May 13, 2016 8:27 am
Posts: 8
After a lot of research I find the ajax vnc client the better solution.

OpenStack allows to create a vnc console on demand so I have tried it and, it works!

But I have a scripting problem: viewtopic.php?f=5&t=5737

In python I do this:
Code:
r = requests.post(config["OS_AUTH_URL"] + "/auth/tokens", data=data, headers=headers)
token_id = r.headers["X-Subject-Token"]

and I have the header I need. But in lsl I do this:
Code:
default
{
    state_entry()
    {
        llSay(0, "Script running");
    }
    touch_end(integer num_detected)
    {
        http_request_id = llHTTPRequest("http://openstack-vcenter:5000/v3/auth/tokens", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/json"], data);
    }

    http_response(key request_id, integer status, list metadata, string body)
    {
        if (request_id != http_request_id) return;// exit if unknown

        vector COLOR_BLUE = <0.0, 0.0, 1.0>;
        float  OPAQUE     = 1.0;
        string header = llGetHTTPHeader(request_id, "x-subject-token");
        llSetText("header: " + header + "\nbody: " + body, COLOR_BLUE, OPAQUE);
    }
}

But cannot get the value of the header.
Any idea?


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


Who is online

Users browsing this forum: No registered users and 2 guests


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