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

Function xboxone_gamertag_for_user returns empty string for valid uid #65

Open
andrew171717 opened this issue Jul 27, 2022 · 2 comments

Comments

@andrew171717
Copy link

Testing code:

var xboxID = xboxone_get_activating_user();
global.myGamerTag = xboxone_gamertag_for_user(xboxID);
show_message("uid:["+string(xboxID)+"]Name:["+global.myGamerTag+"]");

show_message returns:
image

@andrew171717 andrew171717 changed the title xboxone_gamertag_for_user() returning empty string for valid uid Function xboxone_gamertag_for_user returns empty string for valid uid Jul 27, 2022
@andrew171717
Copy link
Author

andrew171717 commented Jul 27, 2022

I attempted to change line 861 in YoYo_FunctionsM.cpp:
from YYCreateString(&Result, user->ModernGamertag); to YYCreateString(&Result, user->DisplayName);
and I now receive the display name that I expected to see. I'm not sure what ModernGamertag is supposed to return as I didn't really look into the code, but I wanted to share my results nonetheless.

image
image

@Prazon
Copy link

Prazon commented Feb 10, 2023

Thanks for the fix, I'm not sure what the difference is as the GDK docs refer to the modern gamertag as a DisplayName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants