View Single Post
  #8 (permalink)  
Old May 11th, 2007, 02:26 AM
savagesoft savagesoft is offline
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After some messing around on my WORK machine with the new code, I found that the game detects the mouse clicks and displays all the respective screens and plays the game if I set the screen resolution to 800x600. If I set it to 1024x768 or leave it at the default 1440x900, then it only displays the main menu and nothing else works.

To change the resolution, go to BaseGame.cs and in the constructor you will see...
Code:
// Use current desktop resolution if autodetect is selected.
if (resolutionWidth <= 0 
|| resolutionHeight <= 0)
{
    resolutionWidth  = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
    resolutionHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            } // if (resolutionWidth)
change this to...

Code:
// Use current desktop resolution if autodetect is selected.
if (resolutionWidth <= 0 
|| resolutionHeight <= 0)
{
    resolutionWidth  = 800;
    resolutionHeight = 600;
} // if (resolutionWidth)
and it works ( be it slowly, for me ). Now I just need to work out what is causing the black mission screen on my HOME computer.