I'm trying to add simple multiplayer to a
3D game I'm working on but the graphicsManager and the Gamerservices are not getting along.
I've based my game off multiple samples, mainly spacewars for the 3d elements and NetworkStateManagement for the screens.
The game starts, but after approx. 5 seconds, I get the following exception:
System.InvalidOperacionException {"An unexpected error has occurred."}This corresponds to the following line of code in the GameplayScreen class, Draw() method:
ScreensManager.GraphicsDevice.Reset();
The funny thing is, I haven't included any code so far! The only line of code I've added is
Components.Add(new GamerServicesComponent(this));
in the constructor for the main class of the solution.
What is going on? Why does resetting the graphicsmanager throw an exception? If i remove that line of code then the model looks a bit transparent once it's drawn.
Any ideas?
Please not that most of the code is based off tutorials and halfbaked understanding of XNA as this is our first project.
Many thanks.
PS: If you just happen to be a genius at this and you're just dying to help me out, I can be contacted via Live Messenger at andresfmol - AT - hotmail. ;)