Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

[solved] UFO2000/Allegro: Error: set_gfx_mode() failed

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
tbart
Apprentice
Apprentice
Posts: 151
Joined: Sun Oct 31, 2004 4:14 pm

[solved] UFO2000/Allegro: Error: set_gfx_mode() failed

  • Quote

Post by tbart » Tue Nov 22, 2005 10:37 pm

Hello!

i am desperated to get this funky game running, i spent years of my life with xcom and ufo games...

but whatever settings i try (fullscreen or windowed, root or not, different X resolutions, different resoulutions/colors in ufo2000.ini) i always get

Code: Select all

AcerGentooBox bin # ./ufo2000
Error: set_gfx_mode() failed (Can not set video mode).
This seems to be an allegro problem, though liquidwar for example works in all resolutions.


the only (ugly) picture i got was when i tried it in fbconsole; some 640x480 with 4 colors or so.
this has to work with X, too.

these are the things i can think of as being relevant. if something's missing, feel free to tell me and i'll be glad if you can help me!

Code: Select all

AcerGentooBox bin # emerge --info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 Mobile AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.inode.at/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr cpdflib crypt cscope ctype cups curl dga dio directfb divx4linux dvd dvdread eds emboss encode esd ethereal exif expat fam fbcon fdftk ffmpeg flacflash flatfile foomaticdb fortran ftp gd gdbm gif gimpprint glut gpm gstreamer gtk gtk2 idn ieee1394 imagemagick imap imlib jack java jpeg kde ladcca lcms libg++ libwww lirc mad mikmod mime ming mmx mmxext mng motif mp3 mpeg nas ncurses nls nptl ogg oggvorbis openal opengl oss pam pcre pda pdflib perl png pnp ppds python qt quicktime readline real samba sdl slang sndfile sockets spell sse ssl svg svga tcpd tetex tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wifi win32codecs wmf xine xinerama xml xml2 xmms xosd xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Code: Select all

AcerGentooBox bin # emerge -pv allegro ufo2000

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/allegro-4.0.3  +X +alsa +arts -doc +esd +fbcon +mmx +oss +sse -static +svga +tetex 0 kB
[ebuild   R   ] games-strategy/ufo2000-0.6.627  +vorbis 0 kB

Total size of downloads: 0 kB

Code: Select all

AcerGentooBox bin # emerge -pv xorg-x11 ati-drivers

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] x11-base/xorg-x11-6.8.2-r4 [6.8.2-r1] -3dfx +3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server* -insecure-drivers -ipv6 -minimal +mmx +nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 172 kB
[ebuild   R   ] media-video/ati-drivers-8.14.13-r2  +opengl 0 kB

Total size of downloads: 172 kB

Code: Select all

AcerGentooBox ~ # cat /etc/X11/xorg.conf | /usr/bin/perl  -e 'while(<>) { print unless m/^#/ or m/^\s+$/; }'
Section "dri"
    Mode 0666
EndSection
Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "glx"   # libglx.a
    Load        "dri"   # libdri.a
    Load        "synaptics"
EndSection
Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "de"
EndSection
Section "InputDevice"
    Identifier  "Mouse1"
    Driver "mouse"
    Option "Protocol"   "ImPS/2"
    Option "ZAxisMapping"   "4 5"
    Option "Device"     "/dev/input/mice"
    Option "Buttons"    "7"
EndSection
Section "InputDevice"
        Identifier      "Touchpad"
        Driver          "synaptics"
        Option          "Device"        "/dev/psaux"
        Option          "SendCoreEvents"
        Option          "Protocol"      "auto-dev"
        Option          "LeftEdge"      "1900"
        Option          "RightEdge"     "5400"
        Option          "TopEdge"       "1900"
        Option          "BottomEdge"    "4000"
        Option          "FingerLow"     "25"
        Option          "FingerHigh"    "30"
        Option          "MaxTapTime"    "180"
        Option          "MaxTapMove"    "220"
        Option          "VertScrollDelta" "100"
        Option          "MinSpeed"      "0.02"
        Option          "MaxSpeed"      "0.18"
        Option          "AccelFactor"   "0.0010"
        Option          "UpDownScrolling" "on"
        Option          "SHMConfig"       "on"
EndSection
Section "Monitor"
    Identifier  "LaptopTFT"
    HorizSync   31.5 - 48.4
    VertRefresh 50 - 70
    Option "DPMS"
EndSection
Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "vga"
EndSection
Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
    #Option                              "NoDDC"
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
    Option "DesktopSetup"               "0x00000200"
    Option "MonitorLayout"              "AUTO, NONE"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
    Option "NoTV"                       "no"
    Option "TVStandard"                 "PAL-B"
    Option "TVHSizeAdj"                 "0"
    Option "TVVSizeAdj"                 "0"
    Option "TVHPosAdj"                  "0"
    Option "TVVPosAdj"                  "0"
    Option "TVHStartAdj"                "0"
    Option "TVColorAdj"                 "0"
    Option "GammaCorrectionI"           "0x06419064"
    Option "GammaCorrectionII"          "0x06419064"
    Option "Capabilities"               "0x00000000"
    Option "VideoOverlay"               "on"
    Option "OpenGLOverlay"              "off"
    Option "CenterMode"                 "off"
    Option "PseudoColorVisuals"         "off"
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4e50
    Screen 0
EndSection
Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "LaptopTFT"
    DefaultDepth 24
    #Option "backingstore"
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Touchpad"
EndSection


thanks in advance!

tbart
Last edited by tbart on Tue Nov 29, 2005 5:58 pm, edited 1 time in total.
Top
ssvb
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Thu Nov 06, 2003 12:48 pm

  • Quote

Post by ssvb » Wed Nov 23, 2005 8:18 pm

Try to rebuild allegro with USE="-arts -esd -fbcon -svga" (any extra bloat can be potentially a source of bugs), also try "~x86" version of allegro, preferably the latest 4.2.0 (ebuild can be found in bugzilla).

As for ufo2000, you may try the latest beta version of the game (stable version is almost a year old now). It can be compiled quite easily using scons:
# wget http://ufo2000.lxnt.info/files/ufo2000- ... rc.tar.bz2
# tar -xjf ufo2000-0.7.971-src.tar.bz2
# cd ufo2000-0.7.971
# emerge scons
# scons

Also you can ask for support in ufo2000 forums. Good luck.
Top
tbart
Apprentice
Apprentice
Posts: 151
Joined: Sun Oct 31, 2004 4:14 pm

  • Quote

Post by tbart » Tue Nov 29, 2005 5:58 pm

it took me a long time and studying the sources to find out there's a ufo2000.ini in your homes and editing /usr/share/games/ufo2000/ufo2000.ini won't change a thing.

i put together an ebuild for the newest version which *should* work. everyone interested pm me.

th
Top
ssvb
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Thu Nov 06, 2003 12:48 pm

  • Quote

Post by ssvb » Sat Dec 03, 2005 9:52 pm

disclaimer: I'm one of the upstream ufo2000 developers who is also gentoo linux user
tbart wrote:it took me a long time and studying the sources to find out there's a ufo2000.ini in your homes and editing /usr/share/games/ufo2000/ufo2000.ini won't change a thing.
There is no 'ufo2000.ini' in '/usr/share/games/ufo2000/', only 'ufo2000.default.ini', which contains the following notice by the way:

Code: Select all

# Configuration file for ufo2000
# Settings that are loaded and used by the game are stored in 'ufo2000.ini'
# Please note that 'ufo2000.default.ini' is just ini-file template, that
# can be used to restore 'ufo2000.ini' when it is missing or broken
So there wasn't any need for studying the sources for a long time. But as I did not get any reply in ufo2000 forum about what was the real problem (the default ini-file was considered to be ok), I'm asking it here. My only guess is that it could be 640x400 fullscreen mode that is not supported on your machine for some reason. Is it true?
i put together an ebuild for the newest version which *should* work. everyone interested pm me.
Is it a fix for 0.6.627 version (supposedly a patch for ini file)? Or is it a ebuild for the latest ufo2000 beta? As for the latest beta versions, they are released too often and sometimes break compatibility, so submitting beta ebuilds to the portage tree makes little sense. If anybody is interested, I can make ebuild that fetches the latest ufo2000 sources from SVN repository and compiles them.
Top
AaronPPC
Guru
Guru
Posts: 522
Joined: Sun May 29, 2005 8:22 am
Location: Tucson, AZ

  • Quote

Post by AaronPPC » Sat Feb 04, 2006 7:51 am

ssvb wrote:If anybody is interested, I can make ebuild that fetches the latest ufo2000 sources from SVN repository and compiles them.
I'm interested. I can't believe no one replied before now.
--Aaron
Top
ssvb
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Thu Nov 06, 2003 12:48 pm

  • Quote

Post by ssvb » Mon Feb 06, 2006 8:52 am

AaronPPC wrote:
ssvb wrote:If anybody is interested, I can make ebuild that fetches the latest ufo2000 sources from SVN repository and compiles them.
I'm interested. I can't believe no one replied before now.
OK, that should not be that hard. I even submitted SVN ebuild some time ago, but it is gentoo policy not to put such ebuilds into the portage tree: http://bugs.gentoo.org/show_bug.cgi?id=72733
I'll take that ebuild, ensure that it works (it might require some changes, as it was made very long ago) and put it on ufo2000 home page for download.
Top
ssvb
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Thu Nov 06, 2003 12:48 pm

  • Quote

Post by ssvb » Tue Feb 07, 2006 6:20 pm

Done, SVN ebuld is now available from ufo2000 home page. Tested on x86 and amd64, but ppc and arm might work as well. There might be bugs of course, but don't bug gentoo developers and report any problems to ufo2000 bugtracker. Have fun :)
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic