Skip to content

Animated avatars support / Change CustomChat.FetchUserAvatarURL to use HTML instead of XML#48

Merged
StyledStrike merged 2 commits into
StyledStrike:masterfrom
Flarky55:feature/animated-avatars
Dec 27, 2025
Merged

Animated avatars support / Change CustomChat.FetchUserAvatarURL to use HTML instead of XML#48
StyledStrike merged 2 commits into
StyledStrike:masterfrom
Flarky55:feature/animated-avatars

Conversation

@Flarky55

Copy link
Copy Markdown
Contributor

The only way to retrieve gif avatars seems to be by fetching them from player's profile HTML.
Since HTML contains much more content needs to be downloaded in compare to XML, and the retrieved avatar is always in full size, this might be better controlled by a console variable?
And to be honest, I'm not sure if there are any pitfalls with Chromium-related stuff, but it seems working both on main and x86-64 branches.

@StyledStrike StyledStrike added the enhancement New feature or request label Dec 22, 2025
@StyledStrike

Copy link
Copy Markdown
Owner

I'm not sure if there are any pitfalls with Chromium-related stuff, but it seems working both on main and x86-64 branches.

AFAIK ever since Awesomium was replaced by Chromium, both branches have parity now. I've heard that native Linux main branch still has Awesomium, but in my experience the game does not launch in that branch, so people end up using GModPatchTool to use Chromium anyways

@StyledStrike

StyledStrike commented Dec 22, 2025

Copy link
Copy Markdown
Owner

Since HTML contains much more content needs to be downloaded in compare to XML...

Yeah, although given that we don't have to parse or render the HTML, it's not that big of a deal. Besides, you'd be surprised about how fast string.match is. It also helps that Custom Chat caches those avatar URLs

@StyledStrike

Copy link
Copy Markdown
Owner

the retrieved avatar is always in full size, this might be better controlled by a console variable?

So far, the largest animated profile images I've seen are at most 5 MB. Not much, but certainly a lot more than the static, lower res ones. I think Custom Chat could show the animated avatars by the default, but a cvar to show static images only wouldn't hurt

@wrefgtzweve

wrefgtzweve commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

You could make it so it downloads the animated pfps and stores them to the data folder as they dont change anyways, having some kind of pfp storage would honestly be pretty useful i think, every time a pfp is used just bump the file.Time of the file and on start clear all files that are older than 7 days

very out of scope for this PR but it'd help with any downloading concerns

@StyledStrike StyledStrike merged commit 427e3e3 into StyledStrike:master Dec 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants