View Single Post
Old 05-14-2008, 10:08 AM   #24 (permalink)
Khao
Developper
zB Programmer
Experienced Zuner
 
Khao's Avatar
 
Join Date: May 2008
Location: Québec, Canada!
Posts: 104
Reputation: 25
$zB: 89
Donate
Default

You should clean your code a little ionman :P
I specially like this part or 99% useless code :

Code:
 Color background = Color.Gray;

            switch (this.multiplayerRole)
            {
                case MultiplayerRole.None:
                    background = Color.Black;
                    break;
                case MultiplayerRole.Server:
                    background = Color.Black ;
                    break;
                case MultiplayerRole.Client:
                    background = Color.Black;
                    break;
            }

            graphics.GraphicsDevice.Clear(background);
Could be only graphics.GraphicsDevice.Clear(Color.Black);
update :
VERY IMPORTANT FIND!:
When the wireless is turned off in the zune parameters, a NetworkException is created on this code :

AvailableNetworkSessionCollection availableSessions = NetworkSession.EndFind(result);
(line 173)

You need to add a try{} catch{} in case the wireless is turned off on the Zune!
I though it would turn on the wireless in case a game requests a network connection but it doesn't seem like it, also I believe you cannot turn it on with the XNA framework!
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


My website is down! Temporary download link :
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


Feel free to contact me to get my msn/gtalk address if you develop games, I love to help and I know a lot about programming!

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by Khao : 05-14-2008 at 10:16 AM.




Khao is offline   Reply With Quote