XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

Avatar Descriptions - Game Lobbies and Games

Last post 2/3/2010 8:57 PM by Illustrious. 3 replies.
  • 2/3/2010 1:50 PM

    Avatar Descriptions - Game Lobbies and Games

    Hi Everyone,

    I'm looking for a little help here regarding sending and receiving of a players Avatar Description over XBOX Live.

    I made a silly mistake in my original plan when I just "assumed" - (never assume, you'll just make an ass of you and me), that I could automatically grab a remote players avatar description.  I've since found out that this description needs to be sent to each player but while I can find plenty of posts on the forums saying this is what we need to do, I've seen none which show any examples/tutorials of how to implement it.

    In my case, I'm running an xbox live game lobby and I want each player to have their avatar shown in a window on the screen. The lobby I have for a local game works perfectly, (of course), but I can't get the LIVE version to work.  I've got a loose idea of how to implement it but a solid explanation of the process would be greatly appreciated at this time; or a link to a tutorial or example.

    Thanks In Advance
  • 2/3/2010 2:05 PM In reply to

    Re: Avatar Descriptions - Game Lobbies and Games

    Answer
    Reply Quote
    Use the Description property of the AvatarDescription class to get the data to send in a packet to each player. Pass that byte array to the constructor of the AvatarDescription class to create an instance of the class based on that data.
    Jim Perry - Microsoft XNA MVP
    If people spent a minute searching the forums and reading the FAQs before posting I'd be out of a job.
      Got some XNA Game Studio/XNA Framework development info to share with the community? Put it on the XNA Wiki.
        Please mark posts as Answers or Good Feedback when appropriate.
  • 2/3/2010 3:19 PM In reply to

    Re: Avatar Descriptions - Game Lobbies and Games

    Answer
    Reply Quote
    You can't 'get' other players AvatarsDescriptions... however they can send them to you. SO as they join the lobby each player needs to get their own description and send it to all other players as Jim described above.
    Play Kissy Poo - a game for 4 year olds on Xbox and windows
    The ZBuffer
    News and information for XNA
      Follow The Zman on twitter, Email me
        Please read the forum FAQs - Bug/Feature reporting
          Don't forget to mark good answers and good playtest feedback when you see it!!!
  • 2/3/2010 8:57 PM In reply to

    Re: Avatar Descriptions - Game Lobbies and Games

    Thanks for the replies guys.

    Network programming is something that I'm very new to so I'm just finding my feet in this area; it shouldn't be a problem for me to get this going. It's just a little daunting moving into a new area.  I am surprised though that there isn't a more streamlined, built-in solution in the XNA Avatar API for getting remote players Avatars. Maybe it'll be something in the next versions of XNA.

    Thanks Again for the advice.
Page 1 of 1 (4 items) Previous Next