Jump to content

Need Help Making Stats and Leaderboards for Game


YoungKrypt
 Share

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

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

Recommended Posts

Hello SL.

I am in the middle of making an original game in second life.

I wanted to be able to save stats and XP in a Google Spresdsheets form.

 

My problem is, I am very unfamiliar with llHttpRequest() and llHttpResponde().

 

I want to give people a Beginners HUD which will register them into Google sheets and give them 50x Water.

(QUICK QUESTION: If the player has resources for the Game  but it is not a physical item, would it not go in a Data Cell in the spreadsheets?)

 

Anyways, back to the original question.

Can someone please tell me how to Write new Player Information and Read it before reWriting it?

 

Link to comment
Share on other sites

Nevermind... All Night I've been searching for LSL tutorials but researching the Programming Terms for HTTP Requests (https://www.w3schools.com/tags/ref_httpmethods.asp#:~:text=The GET Method,data from a specified resource.&text=Some notes on GET requests,remain in the browser history) helped me understand it better.

I might not have the cleanest coding practices but I think I can work something out. 

Link to comment
Share on other sites

1 minute ago, YoungKrypt said:

Nevermind... All Night I've been searching for LSL tutorials but researching the Programming Terms for HTTP Requests (https://www.w3schools.com/tags/ref_httpmethods.asp#:~:text=The GET Method,data from a specified resource.&text=Some notes on GET requests,remain in the browser history) helped me understand it better.

I might not have the cleanest coding practices but I think I can work something out. 

have a read here also to help you get started

 

  • Like 1
Link to comment
Share on other sites

I am still having trouble with the HTTP GET | POST Methods (Honestly, I know a little bit about progamming but I never worked with GET | POST...
I searched the Second Life Forums and found myself walking in circles, always ending up back on the same page just as clueless as the last time...

I figured I might find it easier if I learn how GET POST Methods are used outside of Second Life.
I know nothing about REST JS... I dabbled in Node.js but I don't think I really learned anything because I was just copying the teacher and not training myself to think as a Scripter...
I know LSL has a very useful way to apply HTTP GET | POST but I want to go with a program that might help me understand better...

Is REST JS: https://developers.google.com/sheets/api/reference/rest a good place to start? 
 

Basically this is a small Screenshot of my Leaderboards as well as some Game Items that would be saved in the Leaderboards but used in the Game:
https://ibb.co/pKgRpc8

Link to comment
Share on other sites

11 hours ago, Quistess Alpha said:

If your system can make use of an experience, I'd recommend the Key-value-pair functions over using google sheets. . .

Depends what you're trying to do, I think.   KVP is great if you're interested in storing, updating and retrieving particular records, but not so great if you want to look at lots of records at once.    So I'd use KVP if I want to keep track of individual players' scores, but Google Sheets (or Big Query in extreme cases) if I wanted to produce a league table, at least if it's one of any size, or track all my sales records.

  • Like 1
Link to comment
Share on other sites

2 hours ago, Innula Zenovka said:

KVP is great if you're interested in storing, updating and retrieving particular records, but not so great if you want to look at lots of records at once.

Yeah, if you're clever with KVP, you can store records for everyone, as well as make a 'top ten' list for some specific metrics, but it's not very extensible if you sudenly decide you want to sort by something new. It does however have a clear advantage in being completely 'in-world' and not relying on expensive-to-maintain databases, or brittle APIs.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 450 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...