project-navigation
Personal tools

Author Topic: Invalid Video Mode - v. 2.4  (Read 4298 times)

Offline PMMCT

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Invalid Video Mode - v. 2.4
« on: May 09, 2013, 06:45:46 pm »
Hey guys.

I'm getting an error on my laptop, as you can see below:

---- endianness initialization -----
found little endian system

---- filesystem initialization -----
Adding game dir: /usr/local/games/ufoai/base
Adding game dir: ./base
Added packfile ./base/0base.pk3 (15 files)
Added packfile ./base/0maps.pk3 (740 files)
Added packfile ./base/0materials.pk3 (57 files)
Added packfile ./base/0media.pk3 (11 files)
Added packfile ./base/0models.pk3 (2346 files)
Added packfile ./base/0music.pk3 (46 files)
Added packfile ./base/0pics.pk3 (1056 files)
Added packfile ./base/0shaders.pk3 (37 files)
Added packfile ./base/0snd.pk3 (354 files)
Added packfile ./base/0textures.pk3 (1767 files)
Added packfile ./base/0ufos.pk3 (109 files)
Adding game dir: C:\Users\xpts100\AppData\Roaming\UFOAI/2.4/base
using C:\Users\xpts100\AppData\Roaming\UFOAI/2.4/base for writing
executing filesystem.cfg
executing default.cfg
executing config.cfg

----- network initialization -------
libcurl/7.25.0 GnuTLS/3.0.17 zlib/1.2.6 libidn/1.24 libssh2/1.4.0 initialized.

------ server initialization -------
added 8 maps to the mapcycle

----- console initialization -------
Console initialized.

------- video initialization -------
SDL version: 1.2.15
I: desktop depth: 32bpp
I: video memory: 0
I: Available resolutions: 1440x900 1366x768 1280x800 1280x720 1024x768 800x600 720x576 720x480 640x480 (9)
I: video driver: windib
I: setting mode 12
I: invalid mode
Video subsystem failed to initialize
FS_RemoveFile: remove C:\Users\xpts100\AppData\Roaming\UFOAI/2.4/base/keys.cfg
There are still 1 opened files

Shutdown

Well, this only happens when I have no external monitor connected, which I find odd. This must be something to do with video resolution, but I can't seem to get around it.
I tired connecting the external monitor (extended desktop with the same resolution 1440x900 on my laptop and 1920x1080 on the external) and it worked! No error while loading.
Tried turning off the said monitor, and it worked on my laptop display! (@1440x900).

I've tried several resolutions, but it doesn't seem to help. As soon as I take the laptop somewhere I have no external monitor, well, there is no playing!...

By the way, I've changed the game to run windowed, inside the Options menu, but it still doesn't help.

Help is needed. :D this is a great game, excelent work, lads!

Offline Battlescared

  • Squad Leader
  • ****
  • Posts: 107
    • View Profile
Re: Invalid Video Mode - v. 2.4
« Reply #1 on: July 27, 2013, 04:21:56 am »
I got that same error on the Linux version when Linux Mint upgraded my video driver without using the NVidia installer.  It broke my OpenGL layer.

I would suggest deinstalling your driver and reinstalling the latest Nvidia driver.  It may be Windows decided to automatically install it for you, but the Nvidia driver does additional stuff the basic Windows installer doesn't.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Invalid Video Mode - v. 2.4
« Reply #2 on: July 27, 2013, 07:06:55 am »
delete the config.cfg in your homedir or start ufo with: ./ufo +set vid_mode -1

Offline Battlescared

  • Squad Leader
  • ****
  • Posts: 107
    • View Profile
Re: Invalid Video Mode - v. 2.4
« Reply #3 on: July 27, 2013, 01:32:24 pm »
I'll just add that when I got that message, all my openGL games were broke, even Wine.  UFOAI was just the first one I discovered it on.