Can't retrieve Gamer Picture through System-Link

Last post 04-25-2008, 11:35 PM by Twanks. 6 replies.
Sort Posts: Previous Next
  •  04-19-2008, 1:59 PM

    Can't retrieve Gamer Picture through System-Link

    Using the following code I retrieve Gamer Pictures and display them in the Network Lobby.

    foreach (NetworkGamer gamer in session.AllGamers)
    {
    GamerProfile gamerProfile = gamer.GetProfile();
    Texture2D picture = gamerProfile.GamerPicture;
    }
    One of my debugging machines is my Xbox 360 with the gamertag that has my Creator's Club subscription and the other is a PC with a local account created. I get an exception when the PC tries to join the room created on the Xbox 360 saying a live profile is required. When retrieving the Gamer Picture does XNA retrieve it from the Xbox Live servers or does it transfer locally over the network? If anyone knows a way around this it would be a great help because I can't purchase another Creator's Club subscription.
    "I believe the best social program is a job." - Ronald Reagan
  •  04-21-2008, 1:31 PM

    Re: Can't retrieve Gamer Picture through System-Link

    All the gamer profile information (picture, motto, gamer zone, etc) is queried from the Live servers, so this is not available for local profiles or guests.

    --
    XNA Framework Developer
    blog - homepage
  •  04-21-2008, 4:32 PM

    Re: Can't retrieve Gamer Picture through System-Link

    Do you need a CC account for getting the information to use in a System Link game even if you are only using System Link (not Live matchmaking).

    So:

    If the local profile on the PC was signed up for a Silver Live account and no Creators Club, would it be able to pull the information, or would it have to have the CC subscription attached?

  •  04-21-2008, 5:01 PM

    Re: Can't retrieve Gamer Picture through System-Link

    You need a Creators Club subscription to sign any kind of Live profile into an XNA Framework game.

    --
    XNA Framework Developer
    blog - homepage
  •  04-24-2008, 12:02 AM

    Re: Can't retrieve Gamer Picture through System-Link

    That's what I thought, so I guess I will have to comment out the code until I finish my game. Thanks for replying.
    "I believe the best social program is a job." - Ronald Reagan
  •  04-24-2008, 11:35 AM

    Re: Can't retrieve Gamer Picture through System-Link

    You can leave the code in, just catch the exception if the profile data is not available so your game can try this but then recover gracefully if it encounters an error.

    --
    XNA Framework Developer
    blog - homepage
  •  04-25-2008, 11:35 PM

    Re: Can't retrieve Gamer Picture through System-Link

    That makes sense, thanks for the tip.


    "I believe the best social program is a job." - Ronald Reagan
View as RSS news feed in XML
©2007 Microsoft Corporation. All rights reserved. Privacy Statement Terms of Use Code of Conduct Feedback