Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download own avatar with PowerShell #148

Open
PGHJA991id12 opened this issue Nov 19, 2024 · 3 comments
Open

Download own avatar with PowerShell #148

PGHJA991id12 opened this issue Nov 19, 2024 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@PGHJA991id12
Copy link

PGHJA991id12 commented Nov 19, 2024

Something I'd like is for there to be a simple method of grabbing/downloading your own avatar that you currently have on LANCommander, and copying it to a location where it might be needed.

I have a few games that support avatars where you simply place, for example, "avatar.png" in the game files and then that avatar will show up ingame. It would be cool if there was something similar to the "Name Change" function but instead for avatars. "Avatar Change"?

@pathartl
Copy link
Collaborator

There are a couple of API endpoints that could be used for this purpose:

/api/Profile/Avatar
This will return the image of the current user's avatar, but the request has to be authed

/api/Profile/{username}/Avatar
This route will return the avatar image of the specified user and can be used with no authentication.

There may be a way to do more event-driven scripts in the future, but as of right now I'd probably recommend using one of these two routes with a Before Start script.

@PGHJA991id12
Copy link
Author

PGHJA991id12 commented Nov 19, 2024

Ah that's great, thank you. Now I'm just wondering how I would go about grabbing the current username (and not $PlayerAlias) for this purpose? :)

@pathartl
Copy link
Collaborator

Ah, that might not be a bad idea to include in the list of variables.

@pathartl pathartl added the enhancement New feature or request label Nov 28, 2024
@pathartl pathartl added this to the v1.2.0 milestone Nov 28, 2024
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

No branches or pull requests

2 participants