It is currently August 10th, 2020, 4:12 pm

Mini-Steam Launcher no longer correctly load profile picture

Help with creating, editing & fixing problems with skins
User avatar
SaltyGamer
Posts: 2
Joined: July 20th, 2020, 10:24 am

Mini-Steam Launcher no longer correctly load profile picture

Post by SaltyGamer »

Hi,

A while ago I installed the Mini-Steam Launcher skin.

It used to always work fine, but with Steam's latest update adding profile borders it doesn't load the profile picture correctly.
I know a tiny bit about programming and I changed the Steam logo image before as it was outdated, but updating the profile picture is a bit more complicated.

Instead of loading this image it now loads this image.

With my limited knowledge of scripting I do have a feeling it should not be hard, but I have no idea where to start.

What could be a way to fix this?
I attached some screenshots with the (I think) relevant code, but just in case I also added the script file itself.

Thanks in advance!
You do not have the required permissions to view the files attached to this post.
User avatar
Yincognito
Posts: 2223
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Mini-Steam Launcher no longer correctly load profile picture

Post by Yincognito »

SaltyGamer wrote: July 20th, 2020, 10:38 am Hi,

A while ago I installed the Mini-Steam Launcher skin.

It used to always work fine, but with Steam's latest update adding profile borders it doesn't load the profile picture correctly.
I know a tiny bit about programming and I changed the Steam logo image before as it was outdated, but updating the profile picture is a bit more complicated.

Instead of loading this image it now loads this image.

With my limited knowledge of scripting I do have a feeling it should not be hard, but I have no idea where to start.

What could be a way to fix this?
I attached some screenshots with the (I think) relevant code, but just in case I also added the script file itself.

Thanks in advance!
Set your PROFILE variable to:

Code: Select all

PROFILE=(?siU).*playerAvatar.*src=".*src="(.*)"
What happens is that there are 2 images inside the playerAvatar class <div> element, and you'd want to grab the 2nd, not the 1st:

Code: Select all

				<div class="playerAvatar medium offline">
										<div class="profile_avatar_frame">
						<img src="https://steamcdn-a.akamaihd.net/steamcommunity/public/images/items/1263950/ebe6b674deca163b28423e3b925bd36b0f0f357b.png">
					</div>
										<img src="https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/10/105023bf7828c58d4ae050685c0683c37041331e_medium.jpg">
				</div>
User avatar
SaltyGamer
Posts: 2
Joined: July 20th, 2020, 10:24 am

Re: Mini-Steam Launcher no longer correctly load profile picture

Post by SaltyGamer »

Thank you! That fixed it. I also understand the problem a bit better now. :)
User avatar
Yincognito
Posts: 2223
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Mini-Steam Launcher no longer correctly load profile picture

Post by Yincognito »

SaltyGamer wrote: July 25th, 2020, 9:23 pm Thank you! That fixed it. I also understand the problem a bit better now. :)
Excellent then. :thumbup: