Author Topic: Game doesn't start, can't change resolution  (Read 23118 times)

Offline T3hSh4d0w1337

  • Newbie
  • *
  • Posts: 3
Game doesn't start, can't change resolution
« on: May 28, 2011, 04:23:40 am »
I downloaded and installed the AI War demo from Steam, but whenever I attempt to run it an error dialogue appears stating the following:

    Couldn't switch monitor to requested monitor resolution.

    Details:
    Switching to resolution 1215x768 failed, trying lower one
    All resolution switches have failed
    Screen: could not switch resolution (1280x768 fs=0 hz=0)

I can't find any error-related files in the RuntimeData folder, all I have is the following:

    AIWarCredits.doc
    AIWarImportSettings.exe
    altplanetnames.txt
    controls.txt
    disabledaitypes.txt
    sysrequirements.txt
    UnitRelative.dat

My maximum resolution is 1280x800, so it should be able to accommodate the resolution the game said it's trying. I have 32-bit Windows Vista Ultimate, and running the game as administrator didn't change anything, either. Any advice on this problem?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Game doesn't start, can't change resolution
« Reply #1 on: May 28, 2011, 08:04:41 am »
Hi there,

Sorry to hear about your trouble -- that's a new one on me.  To be honest, what it most sounds like is some sort of graphics card driver issue; you might make sure you're on the latest version of your graphics card drivers.  1280x800 isn't a standard monitor resolution that I've ever heard of, so that's a bit odd as well; that may have something to do with it.  Perhaps this is a netbook?

Regardless, what you can do is try manually setting the resolution in a settings.dat file that I've attached here.  If you download that to your RuntimeData folder, then you can open that in a text editor (normally we don't post settings.dat files because they include license keys, but this one is stripped of all settings but the ones relevant to you).

Anyway, if you open that file in a text editor, you'll see lines for FullscreenWidth and FullscreenHeight.  I've set those to 1280x800 for this one, since that's your resolution, but if that still fails then you might try other, more common resolutions.  1024x768, 1024x600,  1280x1024, etc.

If none of that works, you can always set add a line that says

IsFullscreen:0

That will then make it so it opens in windowed mode, and you can see what your options are in the in-game settings window.  It automatically includes a lot of the common resolutions, plus whatever Unity 3D, the engine that AI War runs on, detects.  Normally Unity handles all of this pretty automatically, so this is the first time I've heard of an issue like this -- hence my first thought being graphics card drivers.

There's also always the chance of a bad download from Steam; that happens from time to time and can give odd results.  So you might try having it verify the local file cache in steam for the game to make sure it didn't corrupt anything.

Hope that helps!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Game doesn't start, can't change resolution
« Reply #2 on: May 28, 2011, 11:53:15 am »
Sorry to hear about your trouble -- that's a new one on me.  To be honest, what it most sounds like is some sort of graphics card driver issue; you might make sure you're on the latest version of your graphics card drivers.  1280x800 isn't a standard monitor resolution that I've ever heard of, so that's a bit odd as well; that may have something to do with it.  Perhaps this is a netbook?

It's actually a quite standard resolution.  For example, 13" MacBooks of varying flavors have used 1280x800 for years, including mine, which runs the game fine at that resolution without complaining.  It's the 16:10 version of 1280x720.

Also, I have seen that error before.  It was when I tried running the post-Unity game in VirtualBox to see how it compared to the native OS X port (4.0 on OS X felt slightly slower than 3.120 on XP in VB at the time), and it basically failed miserably.  I never figured out enough details to get it to go beyond failing to set the resolution.  Haven't seen it when running the game natively on any OS I've tried, though.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Game doesn't start, can't change resolution
« Reply #3 on: May 28, 2011, 11:55:28 am »
Okay -- thanks for that.  That's all very useful information. :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline T3hSh4d0w1337

  • Newbie
  • *
  • Posts: 3
Re: Game doesn't start, can't change resolution
« Reply #4 on: May 28, 2011, 04:27:19 pm »
Alrighty...

I've confirmed that my graphics drivers are the most up-to-date version, ran the game, same error.

I had Steam confirm all of the game files, and it said they were all fine, but the same error persisted.

I placed the settings.dat file in the RuntimeData folder, tried 1280x800, 1024x768, even 800x600, but the exact same error occurred, not even any change to the numbers in the error text. I tried adding a line IsFullscreen:0, but still, the exact same error. Just on a hunch, I uninstalled and reinstalled the entire demo, then re-copied the settings.dat file to the game folder, but still, the exact same error.

It seems like it might be less related to resolution, and more related to the game running incorrectly or something? I really don't know, at this point.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Game doesn't start, can't change resolution
« Reply #5 on: May 28, 2011, 04:32:39 pm »
Hmm... that really is super odd.  Are you running on OSX or windows, by the way?  If windows, you could look in the AIWar_Data folder and there should be an output.log that you could post.  On OSX it puts it somewhere else, I'd have to look that up.

I'm just kind of grasping at this point, because I've never seen this before and don't have much else to go on.  There are a couple of things that I found for the engine we use:

http://forum.unity3d.com/threads/29909-Couldn-t-switch-to-requested-monitor-resolution
http://answers.unity3d.com/questions/40263/resolution-error-displayed-at-game-start-up.html\
http://forum.unity3d.com/threads/5480-switching-to-lower-resolution
http://forum.unity3d.com/threads/6573-avert-fate-not-working

But none of those are particularly informative.  This is not a very common issue, it seems; maybe the problem is actually with the latest version of the drivers, I'm not sure.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline T3hSh4d0w1337

  • Newbie
  • *
  • Posts: 3
Re: Game doesn't start, can't change resolution
« Reply #6 on: May 28, 2011, 04:46:26 pm »
Well... never mind. It turns out after restarting my computer, I was able to run the game perfectly on the first try. Thank you very much for all of your help, though!  :)

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Game doesn't start, can't change resolution
« Reply #7 on: May 28, 2011, 04:49:12 pm »
Oh, okay!  Well, that's really odd, but I'm glad that did it! :)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!