|
Karlito Jung
Registered User
Join date: 17 Dec 2006
Posts: 2
|
12-17-2006 23:02
First of all please excuse me if I ask silly questions, I have only been in SL for a few days and just begun checking the script part.
I run a stock exchange simulation on the web (like trading on the NYSE but with fake money) and I thought it would be pretty cool to integrate it in SL, that way we would have our own wall street in the game.
However I'm wondering if it is possible to do, or if the scripting possibilities are too limited yet. It would mean functionalities such as these: - signing in on the account from Second Life: input username and password, which would be sent to a php script, that returns the user's portfolio information. - allow the user to make operations, select which stock to buy (from a given list or by searching) and the number of shares. Again send it to the php script that will check if it's possible to make the operation and will return the result.
I know the php and the web services part (I have looked at llhttprequest). However I'm not sure if LSL and the displaying possibilities in Second Life would make it possible. For example how to keep track of the user? Is there any similar function to the sessions? How advanced can the User Interface be in SL: can it display graphs, pictures from a URL? how can the user input be made? To select shares, search for them, select amount, etc...
Basically I would just know if you think it makes sense. I have not really seen anything similar in SL (user input of that kind, integration with a web based game), I have only seen rather simple games, but maybe I have missed something?
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-17-2006 23:15
lsl only gets basic plain text info from http requests ... so you have to do backend formatting, once its in SL you use mostly lsl to play browser
search functions, altho perfectly plausable usually ends up as a /12 (or whatever) search phrase in the ol chat window
push button menus aught to be easy enugh with llDialog
graphics and whatnot would either have to be pre-rendered or displayed on a quicktime screen (altho i dont see any reason graphs couldnt be made with prims on a hud)
nowdays it might be easer to format your existing web based system to fit into the profile browser
|
|
Karlito Jung
Registered User
Join date: 17 Dec 2006
Posts: 2
|
12-18-2006 00:54
Thanks for your answer. What is the profile browser? I thought the in-game browser was not implemented yet, is it?
|
|
Ultralite Soleil
Registered User
Join date: 31 Aug 2006
Posts: 108
|
12-19-2006 07:49
He is referring to the new tab on the "View Profile..." window. Residents can put a webpage on the new tab.
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
12-19-2006 16:39
You could detect and use each av's uuid. They have already logged on to SL so you know who they are already and you can trust the id.
|
|
Kermitt Quirk
Registered User
Join date: 4 Sep 2004
Posts: 267
|
12-19-2006 18:55
From: ed44 Gupte You could detect and use each av's uuid. They have already logged on to SL so you know who they are already and you can trust the id. ...and the avatar key is included in the headers for every request made by llHTTPRequest anyway (HTTP-X-SecondLife-Owner-Key). I've used this method myself for some things and it works well. Have a look at the bottom of the wiki page for llHTTPRequest Just a word of warning though. Do not rely on HTTP-X-SecondLife-Owner-Name always having the avatar name in it. If you need to guarantee that's correct you should add it to the post params manually. Sometimes the name lookup takes too long and that header isn't populated correctly.
|