Jump to content

Script to pull Steam status into SL


Epiphany Carnell
 Share

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

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

Recommended Posts

Hey :)

 

I'm hoping to create an object that pulls my online status (online, away, in-game etc) from the Steam app, and shows it within SL, but I have no idea where to start with this.

 

I know it can be done, because I own an item from the MP that does this, but it's not modifiable, and I'd like to change how it looks.

 The one I'm attempting to make will be just for personal use though.

 

Could anyone point me in the direction of how I'd go about creating this please?

Link to comment
Share on other sites

1 hour ago, Epiphany Carnell said:

Hey :)

 

I'm hoping to create an object that pulls my online status (online, away, in-game etc) from the Steam app, and shows it within SL, but I have no idea where to start with this.

 

I know it can be done, because I own an item from the MP that does this, but it's not modifiable, and I'd like to change how it looks.

 The one I'm attempting to make will be just for personal use though.

 

Could anyone point me in the direction of how I'd go about creating this please?

Do you have experience with http communications in SL? If not, it will be a big leap in learning.

 

It appears steam has an API that can be used to gather information like that. https://steamcommunity.com/dev  Specifically the Steam User API

 

Looks like you have to obtain an API key, and then scripting the appropriate http calls using that key to get the information you want.

Link to comment
Share on other sites

4 minutes ago, Phate Shepherd said:

Do you have experience with http communications in SL? If not, it will be a big leap in learning.

 

It appears steam has an API that can be used to gather information like that. https://steamcommunity.com/dev  Specifically the Steam User API

 

Looks like you have to obtain an API key, and then scripting the appropriate http calls using that key to get the information you want.

Thankyou, appreciate the reply.

 

I have no experience whatsoever, is there maybe a tutorial / knowledgebase article somewhere I could learn how to do this? or do you think it's naive of me to think I can create this with no knowledge of http communications / scripting atall?

Link to comment
Share on other sites

That would be a huge hurdle as a first LSL project. HTTP comms aren't THE most complex feature to script in LSL, but nearly so.

Starting from scratch, I would likely point you towards Builders Brewery classes. Maybe start by asking on the Builders Brewery group chat what classes would lead you toward your end goal. If you are already familiar with programming concepts, it may be weeks to months to get proficient enough to do it on your own. If you are not already familiar with languages like php, javascript, http PUT/GET/POST etc.... it may take much longer.

You could shortcut the process and ask in one of the employment wanted threads if someone could write it for you, but anything that uses something tied to your Steam account (The Steam API key) is a little sketchy as they should build and test with their own, and not use yours. Only once the script is tested and handed over to you would you substitute in your own Key. Even then, I would be wary and ask another scripter to look it over and make sure it isn't trying to do something naughty.

Link to comment
Share on other sites

11 hours ago, Epiphany Carnell said:

do you think it's naive of me to think I can create this with no knowledge of http communications / scripting at all?

Yes, but don't let that stop you.

The web API is documented here: https://developer.valvesoftware.com/wiki/Steam_Web_API

Specifically, under "GetPlayerSummaries":

  • Private Data
    • gameid
      • If the user is currently in-game, this value will be returned and set to the gameid of that game.

So once you have your API key, you can do:

http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXXXXXXXXXXXXXXXXXXXXXX&steamids=76561197960435530&format=csv

Note: Some data associated with a Steam account may be hidden if the user has their profile visibility set to "Friends Only" or "Private". In that case, only public data will be returned.

Link to comment
Share on other sites

4 hours ago, Wulfie Reanimator said:

Yes, but don't let that stop you.

The web API is documented here: https://developer.valvesoftware.com/wiki/Steam_Web_API

Specifically, under "GetPlayerSummaries":

  • Private Data
    • gameid
      • If the user is currently in-game, this value will be returned and set to the gameid of that game.

So once you have your API key, you can do:

http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXXXXXXXXXXXXXXXXXXXXXX&steamids=76561197960435530&format=csv

Note: Some data associated with a Steam account may be hidden if the user has their profile visibility set to "Friends Only" or "Private". In that case, only public data will be returned.

Thankyou so much ❤️

 

I'm gonna play around with it and see what I can do. 

 

Thankyouthankyouthankyouthankyou ❤️ 

Link to comment
Share on other sites

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