Kapiainen / Lauhdutin

A Rainmeter skin for launching games.
MIT License
67 stars 8 forks source link

Simple fix for Steam #171

Open dolk89 opened 1 month ago

dolk89 commented 1 month ago

Hey everyone, I was able to fix my Lauhdutin to start polling from steam's new profile format by doing a simple change within Rainmeter\Skins\Lauhdutin.-.3.1.0.beta.4\@Resources\main\platforms\steam\init.lua

Change the follwing line: (Line 135) local url = ('http://steamcommunity.com/profiles/%s/games/?tab=all&xml=1'):format(self.communityID)

To: local url = ('https://steamcommunity.com/id/<steamID>/games/?tab=all&xml=1'):format(self.communityID)

Where steamID is your profile name. Simple way to get your steamID is to login into steampowered.com and look at the url it sends you. Should be something like:https://steamcommunity.com/id/<steamID>/

With this fix, the tool will only work with the one steamID but that should be good enough for most users. Hopefully someone who knows the .lua framework better than I can come up with a way to auto fill the steamID value.

BanCrash commented 1 month ago

Hey everyone, I was able to fix my Lauhdutin to start polling from steam's new profile format by doing a simple change within Rainmeter\Skins\Lauhdutin.-.3.1.0.beta.4@Resources\main\platforms\steam\init.lua

Change the follwing line: (Line 135) local url = ('http://steamcommunity.com/profiles/%s/games/?tab=all&xml=1'):format(self.communityID)

To: local url = ('https://steamcommunity.com/id/<steamID>/games/?tab=all&xml=1'):format(self.communityID)

Where steamID is your profile name. Simple way to get your steamID is to login into steampowered.com and look at the url it sends you. Should be something like:https://steamcommunity.com/id/<steamID>/

With this fix, the tool will only work with the one steamID but that should be good enough for most users. Hopefully someone who knows the .lua framework better than I can come up with a way to auto fill the steamID value.

Did you try to see if communityID is the same as SteamID? If not, try to replace <steamID> with %s, since the communityID is passed as argument.

dolk89 commented 1 month ago

Hey, the %s pass in does not work for some reason. I'm not sure how to source that variable just yet. I'm not too familiar with lua.

BanCrash commented 1 month ago

Hey, the %s pass in does not work for some reason. I'm not sure how to source that variable just yet. I'm not too familiar with lua.

If it's not working it's probably because the steamId is not the same as communityID, because it should work as you have right now.