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

Complying with the evil checklist and XNA networking

Last post 07/11/2009 1:05 by PinoEire. 11 replies.
  • 06/11/2009 21:43

    Complying with the evil checklist and XNA networking

    If you have a gold profile signed in and also a silver profile logged in and try to find or join a network session get, you receive an error. Meaning I have to force players silver or offline to log out in order to continue. I have changed the code a million times to comply with these checklist items, but it seems contradictory. If literally cannot have a logged in profile that is silver or offline, how can I comply with keeping all players signed in? On top of that I was advised in my playtest thread I should ignore the input of other players and always allow 4 local players to prevent force signing out, but that is simply not possible then.

    You cannot designate a player index for who is playing, and it will always start the session with the first signed in player, etc.

    I know people have had network games passed, obviously, so can someone shed some light on this?
  • 06/11/2009 22:23 In reply to

    Re: Complying with the evil checklist and XNA networking

    Answer
    Reply Quote
    You can choose which profiles participate in the network session: this is one of the parameters when you create or search for sessions.

    What I would do is:

    • Let the player pick which local profile they are using (via a Press Start screen, and whichever gamepad presses start becomes the active profile)
    • If your game supports more than one local player, let them pick other local profiles in addition (via some kind of "press A to join in" screen)
    • When they go to network mode, check if all the active profiles have the necessary privileges
    • If they do not, show the sign-in screen to let the players pick a different profile
    • When you create the session, tell the network API which profiles are active
    • This way it's fine to have a silver profile signed in, just not fine for that silver profile to be chosen to play in the network session (which is never allowed)
    XNA Framework Developer - blog - homepage
  • 06/11/2009 22:31 In reply to

    Re: Complying with the evil checklist and XNA networking

    Shawn,

    How do I designate which profiles are active for a session when creating?

     I could not find this in the documentation.

    Thanks again, your always helpful.



  • 06/11/2009 22:38 In reply to

    Re: Complying with the evil checklist and XNA networking

    I actually see now an add local gamer and remove local gamer in the network session. Since I had to do nothing before, does that mean everyone is already signed in? Would I need to manually remove the players then? The only reason i am confused about that is everyone was showing up before I even discovered this, so everyone seems to be added from the start.

    I am confused as to how this would work since I get errors when searching for games before one is even created. Perhaps the "active" profiles methods are different then the method I found?

    I guess my question is how to I designate a profile as actuve, everyone seems to be active when they sign in. Thanks
  • 06/11/2009 23:16 In reply to

    Re: Complying with the evil checklist and XNA networking

    Hi,

    I don't think you are talking about the same thing. I suppose Shawn was talking about the third syntax of the BeginCreate, the one containing as second parameter a list of the gamers participating in the game: http://msdn.microsoft.com/en-us/library/dd231925.aspx

    Cheers,
    Pino
    My game * Astro Match3 * Second update in Playtest now!
    Forum XNA Italia - Linkedin - Twitter (Rarely) - Facebook
    Web XNA Italia - email contact - Messenger: g_defrancesco AT hotmail DOT com
  • 06/11/2009 23:18 In reply to

    Re: Complying with the evil checklist and XNA networking

    I guess I was confused because that parameter is not available in Create, only BeginCreate. I have been using create. So I guess I am forced to use that?


    Thanks
  • 06/11/2009 23:20 In reply to

    Re: Complying with the evil checklist and XNA networking

    Raining Talent LLC:
    I guess I was confused because that parameter is not available in Create, only BeginCreate. I have been using create. So I guess I am forced to use that?
    That's not correct, that syntax is available in the Create as well: http://msdn.microsoft.com/en-us/library/dd231953.aspx

    Cheers,
    Pino
    My game * Astro Match3 * Second update in Playtest now!
    Forum XNA Italia - Linkedin - Twitter (Rarely) - Facebook
    Web XNA Italia - email contact - Messenger: g_defrancesco AT hotmail DOT com
  • 06/11/2009 23:26 In reply to

    Re: Complying with the evil checklist and XNA networking

    Intellisense is not recognizing the parameter. Let me see if I can add it anyway and I will get back to you and let you know if it worked. Thanks.
  • 06/11/2009 23:29 In reply to

    Re: Complying with the evil checklist and XNA networking

    Answer
    Reply Quote
    Raining Talent LLC:
    Intellisense is not recognizing the parameter. Let me see if I can add it anyway and I will get back to you and let you know if it worked. Thanks.
    For the IntelliSense is the syntax #3: if you don't see it something is wrong with your installation.

    Cheers,
    Pino
    My game * Astro Match3 * Second update in Playtest now!
    Forum XNA Italia - Linkedin - Twitter (Rarely) - Facebook
    Web XNA Italia - email contact - Messenger: g_defrancesco AT hotmail DOT com
  • 07/11/2009 0:30 In reply to

    Re: Complying with the evil checklist and XNA networking

    I have 3.1 and everything else seems to be working correctly.The only issue I have i its not showing that parameter allowed.

    Here is a screen shot

    Screenshot
  • 07/11/2009 0:34 In reply to

    Re: Complying with the evil checklist and XNA networking

    Nevermind, I see its an overload. Thanks :)
  • 07/11/2009 1:05 In reply to

    Re: Complying with the evil checklist and XNA networking

    Raining Talent LLC:
    Nevermind, I see its an overload. Thanks :)
    You're welcome ;)
    My game * Astro Match3 * Second update in Playtest now!
    Forum XNA Italia - Linkedin - Twitter (Rarely) - Facebook
    Web XNA Italia - email contact - Messenger: g_defrancesco AT hotmail DOT com
Page 1 of 1 (12 items) Previous Next