bull29 / b_draw-lib

ever wanted to draw textures/materials from the internet rather than vtfs/hardmounted pngs?
MIT License
8 stars 2 forks source link

Issues fetching avatar from SteamAPI? #1

Open masonticehurst opened 7 years ago

masonticehurst commented 7 years ago

Seems like this: local link = body:match("http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/.-jpg") no longer returns the proper link to a user's image. The check directly under also returns because it fails

(Hoping i'm not just stupid) This is what I used to test:

hook.Add( "HUDPaint", "A", function( )
    draw.SteamAvatar( tostring( LocalPlayer():SteamID64() ), "large", 0, 0, 64, 64, Color( 255, 255, 255 ) )
end)
bull29 commented 7 years ago

i just used the exact same code you used and it works perfectly fine, next time this happens try opening http://steamcommunity.com/profiles/yoursteam64/?xml=1 in your browser to see if anything with steam is out of the ordinary or changed.